File tree 3 files changed +43
-4
lines changed
3 files changed +43
-4
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,38 @@ $ yarn test
43
43
- vue 语法高亮, less 语法高亮,es6 语法支持
44
44
- eslint (最好开启保存时自动修复 auto-fix on save)
45
45
46
+ ## 缓存策略
47
+
48
+ ### Vuex 数据管理
49
+
50
+ ## UI 组件
51
+
52
+ 组件方面使用 ` iView ` 作为原型组件库,使用时请添加前缀 ` I ` 。
53
+
54
+ ``` html
55
+ <IButton type =" primary" >确定</IButton >
56
+
57
+ <IForm >
58
+ <IFormItem >
59
+ <IInput v-model =" name" placeholder =" 默认有前缀 I" />
60
+
61
+ <Select >
62
+ <Option >这两个组件没有前缀 `I`</Option >
63
+ </Select >
64
+ </IFormItem >
65
+ </IForm >
66
+ ```
67
+
68
+ > ** 注意** : ` Select ` ` Option ` 这两个组件** 不能** 添加前缀 ` I ` ,否则会不能选中选择项
69
+
70
+ ### 按需加载
71
+
72
+ iView 使用按需加载,如果要使用某组件,在 ` plugins/iview ` 中加载即可
73
+
74
+ > 若导入后缺失样式,在 ` assets/less/iview/components/index.less ` 中将相应组件的注释打开即可
75
+
76
+ iView 样式表使用 less 重新导入在 ` assets/less/iview/ ` 下
77
+
46
78
## API
47
79
48
80
### 全局组件
@@ -94,10 +126,6 @@ export default {
94
126
95
127
## iView
96
128
97
- iView 使用按需加载,如果要使用某组件,在 ` plugins/iview ` 中加载即可
98
-
99
- iView 样式表使用 less 重新导入在 ` assets/less/iview/ ` 下
100
-
101
129
[ 组件手册] ( https://www.iviewui.com/docs/guide/start )
102
130
103
131
## axios
Original file line number Diff line number Diff line change 10
10
&-body {
11
11
padding : 0 ;
12
12
}
13
+ &-rel {
14
+ width : 100% ;
15
+ }
13
16
}
14
17
15
18
.ivu-modal {
Original file line number Diff line number Diff line change 5
5
Button ,
6
6
Breadcrumb ,
7
7
BreadcrumbItem ,
8
+ Checkbox ,
8
9
Form ,
9
10
FormItem ,
10
11
Input ,
@@ -18,12 +19,15 @@ import {
18
19
Spin ,
19
20
Tag ,
20
21
AutoComplete ,
22
+ Select ,
23
+ Option ,
21
24
} from 'iview'
22
25
23
26
const components = {
24
27
Button,
25
28
Breadcrumb,
26
29
BreadcrumbItem,
30
+ Checkbox,
27
31
Form,
28
32
FormItem,
29
33
Input,
@@ -44,6 +48,10 @@ const install = function (Vue, opts = {}) {
44
48
Vue . component ( `I${ key } ` , components [ key ] )
45
49
} )
46
50
51
+ // 这两个需要特殊处理,不使用前缀`I`, 因为如果加了前缀使用会异常
52
+ Vue . component ( 'Select' , Select )
53
+ Vue . component ( 'Option' , Option )
54
+
47
55
Vue . prototype . $Message = Message
48
56
Vue . prototype . $Modal = Modal
49
57
Vue . prototype . $Notice = Notice
You can’t perform that action at this time.
0 commit comments