commit | author | age
|
9bcb19
|
1 |
/** |
I |
2 |
* 该文件是为了按需加载,剔除掉了一些不需要的框架组件。 |
|
3 |
* 减少了编译支持库包大小 |
|
4 |
* @author yubaoshan |
|
5 |
* 当需要更多组件依赖时,在该文件加入即可 |
|
6 |
*/ |
|
7 |
import Vue from 'vue' |
|
8 |
import { |
|
9 |
ConfigProvider, |
|
10 |
Layout, |
|
11 |
Input, |
|
12 |
InputNumber, |
|
13 |
Button, |
|
14 |
Switch, |
|
15 |
Radio, |
|
16 |
Checkbox, |
|
17 |
Select, |
|
18 |
Card, |
|
19 |
Form, |
|
20 |
Row, |
|
21 |
Col, |
|
22 |
Modal, |
|
23 |
Table, |
|
24 |
Tabs, |
|
25 |
Icon, |
|
26 |
Badge, |
|
27 |
Popover, |
|
28 |
Dropdown, |
|
29 |
List, |
|
30 |
Avatar, |
|
31 |
Breadcrumb, |
|
32 |
Steps, |
|
33 |
Spin, |
|
34 |
Menu, |
|
35 |
Drawer, |
|
36 |
Tooltip, |
|
37 |
Alert, |
|
38 |
Tag, |
|
39 |
Divider, |
|
40 |
DatePicker, |
|
41 |
TimePicker, |
|
42 |
Upload, |
|
43 |
Progress, |
|
44 |
Skeleton, |
|
45 |
Popconfirm, |
|
46 |
message, |
|
47 |
notification, |
|
48 |
TreeSelect, |
|
49 |
Tree, |
|
50 |
Transfer, |
|
51 |
Empty, |
|
52 |
PageHeader, |
|
53 |
Descriptions, |
|
54 |
Result |
|
55 |
} from 'ant-design-vue' |
|
56 |
// import VueCropper from 'vue-cropper' |
|
57 |
|
|
58 |
Vue.use(ConfigProvider) |
|
59 |
Vue.use(Layout) |
|
60 |
Vue.use(Input) |
|
61 |
Vue.use(InputNumber) |
|
62 |
Vue.use(Button) |
|
63 |
Vue.use(Switch) |
|
64 |
Vue.use(Radio) |
|
65 |
Vue.use(Checkbox) |
|
66 |
Vue.use(Select) |
|
67 |
Vue.use(Card) |
|
68 |
Vue.use(Form) |
|
69 |
Vue.use(Row) |
|
70 |
Vue.use(Col) |
|
71 |
Vue.use(Modal) |
|
72 |
Vue.use(Table) |
|
73 |
Vue.use(Tabs) |
|
74 |
Vue.use(Icon) |
|
75 |
Vue.use(Badge) |
|
76 |
Vue.use(Popover) |
|
77 |
Vue.use(Dropdown) |
|
78 |
Vue.use(List) |
|
79 |
Vue.use(Avatar) |
|
80 |
Vue.use(Breadcrumb) |
|
81 |
Vue.use(Steps) |
|
82 |
Vue.use(Spin) |
|
83 |
Vue.use(Menu) |
|
84 |
Vue.use(Drawer) |
|
85 |
Vue.use(Tooltip) |
|
86 |
Vue.use(Alert) |
|
87 |
Vue.use(Tag) |
|
88 |
Vue.use(Divider) |
|
89 |
Vue.use(DatePicker) |
|
90 |
Vue.use(TimePicker) |
|
91 |
Vue.use(Upload) |
|
92 |
Vue.use(Progress) |
|
93 |
Vue.use(Skeleton) |
|
94 |
Vue.use(Popconfirm) |
|
95 |
// Vue.use(VueCropper) |
|
96 |
Vue.use(notification) |
|
97 |
Vue.use(TreeSelect) |
|
98 |
Vue.use(Tree) |
|
99 |
Vue.use(Transfer) |
|
100 |
Vue.use(Empty) |
|
101 |
Vue.use(PageHeader) |
|
102 |
Vue.use(Descriptions) |
|
103 |
Vue.use(Result) |
|
104 |
|
|
105 |
Vue.prototype.$confirm = Modal.confirm |
|
106 |
Vue.prototype.$message = message |
|
107 |
Vue.prototype.$notification = notification |
|
108 |
Vue.prototype.$info = Modal.info |
|
109 |
Vue.prototype.$success = Modal.success |
|
110 |
Vue.prototype.$error = Modal.error |
|
111 |
Vue.prototype.$warning = Modal.warning |