File tree 9 files changed +30
-32
lines changed
9 files changed +30
-32
lines changed Original file line number Diff line number Diff line change @@ -108,9 +108,9 @@ const globalOptions = {
108
108
},
109
109
HELPERS : {
110
110
// 是否mini显示 description
111
- isMiniDes (formProps ) {
112
- return formProps && [' left' , ' right' ].includes (formProps .labselPosition );
113
- }
111
+ // isMiniDes(formProps) {
112
+ // return formProps && ['left', 'right'].includes(formProps.labselPosition);
113
+ // }
114
114
}
115
115
};
116
116
Original file line number Diff line number Diff line change @@ -178,7 +178,6 @@ export default {
178
178
const isRootNode = isRootNodePath ( curNodePath ) ;
179
179
180
180
const isMiniDes = self . formProps && self . formProps . isMiniDes ;
181
- const miniDesModel = isMiniDes || self . globalOptions . HELPERS . isMiniDes ( self . formProps ) ;
182
181
183
182
const descriptionVNode = ( self . description ) ? h (
184
183
'div' ,
@@ -188,14 +187,14 @@ export default {
188
187
} ,
189
188
class : {
190
189
genFromWidget_des : true ,
191
- genFromWidget_des_mini : miniDesModel
190
+ genFromWidget_des_mini : isMiniDes
192
191
}
193
192
} ,
194
193
) : null ;
195
194
196
195
const { COMPONENT_MAP } = self . globalOptions ;
197
196
198
- const miniDescriptionVNode = ( miniDesModel && descriptionVNode ) ? h ( COMPONENT_MAP . popover , {
197
+ const miniDescriptionVNode = ( isMiniDes && descriptionVNode ) ? h ( COMPONENT_MAP . popover , {
199
198
style : {
200
199
margin : '0 2px' ,
201
200
fontSize : '16px' ,
@@ -302,7 +301,7 @@ export default {
302
301
303
302
// description
304
303
// 非mini模式显示 description
305
- ! miniDesModel ? descriptionVNode : null ,
304
+ ! isMiniDes ? descriptionVNode : null ,
306
305
h ( // 关键输入组件
307
306
self . widget ,
308
307
{
Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ const globalOptions = Object.freeze({
24
24
} ) ,
25
25
HELPERS : {
26
26
// 是否mini显示 description
27
- isMiniDes ( formProps ) {
28
- return formProps && [ 'left' , 'right' ] . includes ( formProps . labelPosition ) ;
29
- }
27
+ // isMiniDes(formProps) {
28
+ // return formProps && ['left', 'right'].includes(formProps.labelPosition);
29
+ // }
30
30
}
31
31
} ) ;
32
32
Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ const globalOptions = Object.freeze({
67
67
} ) ,
68
68
HELPERS : {
69
69
// 是否mini显示 description
70
- isMiniDes ( formProps ) {
71
- return formProps && [ 'left' , 'right' ] . includes ( formProps . labelPosition ) ;
72
- }
70
+ // isMiniDes(formProps) {
71
+ // return formProps && ['left', 'right'].includes(formProps.labelPosition);
72
+ // }
73
73
}
74
74
} ) ;
75
75
Original file line number Diff line number Diff line change @@ -108,9 +108,9 @@ const globalOptions = {
108
108
},
109
109
HELPERS : {
110
110
// 是否mini显示 description
111
- isMiniDes (formProps ) {
112
- return formProps && [' left' , ' right' ].includes (formProps .labselPosition );
113
- }
111
+ // isMiniDes(formProps) {
112
+ // return formProps && ['left', 'right'].includes(formProps.labselPosition);
113
+ // }
114
114
}
115
115
};
116
116
Original file line number Diff line number Diff line change @@ -178,21 +178,20 @@ export default {
178
178
const isRootNode = isRootNodePath ( props . curNodePath ) ;
179
179
180
180
const isMiniDes = props . formProps && props . formProps . isMiniDes ;
181
- const miniDesModel = isMiniDes ;
182
181
183
182
const descriptionVNode = ( props . description ) ? h (
184
183
'div' ,
185
184
{
186
185
innerHTML : props . description ,
187
186
class : {
188
187
genFromWidget_des : true ,
189
- genFromWidget_des_mini : miniDesModel
188
+ genFromWidget_des_mini : isMiniDes
190
189
}
191
190
} ,
192
191
) : null ;
193
192
194
193
const { COMPONENT_MAP } = props . globalOptions ;
195
- const miniDescriptionVNode = ( miniDesModel && descriptionVNode ) ? h ( resolveComponent ( COMPONENT_MAP . popover ) , {
194
+ const miniDescriptionVNode = ( isMiniDes && descriptionVNode ) ? h ( resolveComponent ( COMPONENT_MAP . popover ) , {
196
195
style : {
197
196
margin : '0 2px' ,
198
197
fontSize : '16px' ,
@@ -304,7 +303,7 @@ export default {
304
303
default : otherAttrs => [
305
304
// description
306
305
// 非mini模式显示 description
307
- ...( ! miniDesModel && descriptionVNode ) ? [ descriptionVNode ] : [ ] ,
306
+ ...( ! isMiniDes && descriptionVNode ) ? [ descriptionVNode ] : [ ] ,
308
307
309
308
...props . widget ? [
310
309
h ( // 关键输入组件
Original file line number Diff line number Diff line change @@ -135,12 +135,12 @@ const globalOptions = {
135
135
} ,
136
136
HELPERS : {
137
137
// 是否mini显示 description
138
- isMiniDes ( formProps ) {
139
- return formProps && (
140
- [ 'left' , 'right' ] . includes ( formProps . labelPosition )
141
- || formProps . layout === 'horizontal' || formProps . inline === true
142
- ) ;
143
- }
138
+ // isMiniDes(formProps) {
139
+ // return formProps && (
140
+ // ['left', 'right'].includes(formProps.labelPosition)
141
+ // || formProps.layout === 'horizontal' || formProps.inline === true
142
+ // );
143
+ // }
144
144
}
145
145
} ;
146
146
Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ const globalOptions = {
48
48
} ,
49
49
HELPERS : {
50
50
// 是否mini显示 description
51
- isMiniDes ( formProps ) {
52
- return formProps && [ 'left' , 'right' ] . includes ( formProps . labelPosition ) ;
53
- }
51
+ // isMiniDes(formProps) {
52
+ // return formProps && ['left', 'right'].includes(formProps.labelPosition);
53
+ // }
54
54
}
55
55
} ;
56
56
Original file line number Diff line number Diff line change @@ -105,9 +105,9 @@ const globalOptions = {
105
105
} ,
106
106
HELPERS : {
107
107
// 是否mini显示 description
108
- isMiniDes ( formProps ) {
109
- return formProps && [ 'left' , 'right' ] . includes ( formProps . labelPosition ) ;
110
- }
108
+ // isMiniDes(formProps) {
109
+ // return formProps && ['left', 'right'].includes(formProps.labelPosition);
110
+ // }
111
111
}
112
112
} ;
113
113
You can’t perform that action at this time.
0 commit comments