-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
83 lines (78 loc) · 2.08 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import UAdmin from './components/Admin'
import UAlert from './components/Alert'
import UBreadcrumb from './components/Breadcrumb'
import UCheckbox from './components/Checkbox'
import UCheckboxGroup from './components/CheckboxGroup'
import UDatetime from './components/Datetime'
import UDropdown from './components/Dropdown'
import UEditor from './components/Editor'
import UFace from './components/Face'
import UInputBtn from './components/InputBtn'
import UInputTag from './components/InputTag'
import ULogin from './components/Login'
import ULogo from './components/Logo'
import UModal from './components/Modal'
import UPagination from './components/Pagination'
import URadio from './components/Radio'
import URadioGroup from './components/RadioGroup'
import USelect from './components/Select'
import USidebar from './components/Sidebar'
import USidenav from './components/Sidenav'
import USwitch from './components/Switch'
import UTable from './components/Table'
import USingleUploader from './components/SingleUploader'
import UUploader from './components/Uploader'
import UImageUploader from './components/ImageUploader'
import UUserDropdown from './components/UserDropdown'
import UWelcome from './components/Welcome'
import UInput from './components/Input'
import UCenter from './components/Center'
import UValuePrinter from './components/ValuePrinter'
import UCodeViewer from './components/CodeViewer'
import VFocus from './directives/Focus'
let components = {
UAdmin,
UAlert,
UBreadcrumb,
UCheckbox,
UCheckboxGroup,
UDatetime,
UDropdown,
UEditor,
UFace,
UInputBtn,
UInputTag,
ULogin,
ULogo,
UModal,
UPagination,
URadio,
URadioGroup,
USelect,
USidebar,
USidenav,
USwitch,
UTable,
USingleUploader,
UUploader,
UImageUploader,
UUserDropdown,
UWelcome,
UInput,
UCenter,
UValuePrinter,
UCodeViewer
}
let directives = {
VFocus
}
export default {
install: function (Vue) {
for (let component in components) {
Vue.component(component, components[component])
}
for (let directive in directives) {
directives[directive](Vue)
}
}
}