File tree 2 files changed +12
-14
lines changed
packages/lib/vue2-form-iview3/src
2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ const {
18
18
export default {
19
19
types : {
20
20
boolean : 'el-switch' ,
21
- string : 'el -input' ,
22
- number : 'el- input-number' ,
23
- integer : 'el- input-number' ,
21
+ string : 'i -input' ,
22
+ number : 'input-number' ,
23
+ integer : 'input-number' ,
24
24
} ,
25
25
formats : {
26
- color : 'el- color-picker' ,
26
+ color : 'color-picker' ,
27
27
time : TimePickerWidget , // 20:20:39+00:00
28
28
date : DatePickerWidget , // 2018-11-13
29
29
'date-time' : DateTimePickerWidget , // 2018-11-13T20:20:39+00:00
Original file line number Diff line number Diff line change @@ -21,13 +21,11 @@ const JsonSchemaForm = createVue2Core(Object.freeze({
21
21
form : {
22
22
functional : true ,
23
23
render ( h , context ) {
24
- const labelWidth = ( context . data . props . labelPosition === 'top' || ! context . data . props . labelWidth || ! context . data . props )
25
- ? undefined
26
- : parseFloat ( String ( context . data . props . labelWidth ) ) ;
27
-
28
24
context . data . props = {
29
25
...context . data . props ,
30
- labelWidth
26
+ labelWidth : ( context . data . props . labelPosition === 'top' || ! context . data . props . labelWidth )
27
+ ? undefined
28
+ : parseFloat ( String ( context . data . props . labelWidth ) )
31
29
} ;
32
30
33
31
return h ( 'i-form' , context . data , context . children ) ;
@@ -68,11 +66,11 @@ const JsonSchemaForm = createVue2Core(Object.freeze({
68
66
} ,
69
67
} ) ,
70
68
ICONS_MAP : Object . freeze ( {
71
- question : 'el -icon-question ' ,
72
- moveUp : 'el -icon-caret-top ' ,
73
- moveDown : 'el -icon-caret-bottom ' ,
74
- close : 'el -icon-close' ,
75
- plus : 'el -icon-plus '
69
+ question : 'ivu -icon ivu-icon-md-help-circle ' ,
70
+ moveUp : 'ivu -icon ivu-icon-md-arrow-round-up ' ,
71
+ moveDown : 'ivu -icon ivu-icon-md-arrow-round-down ' ,
72
+ close : 'ivu -icon ivu-icon-md -close' ,
73
+ plus : 'ivu -icon ivu-icon-md-add '
76
74
} )
77
75
} ) ) ;
78
76
You can’t perform that action at this time.
0 commit comments