sadais-piui 1.2.6-beta3 → 1.2.6-beta6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,13 +2,7 @@
|
|
|
2
2
|
<view
|
|
3
3
|
class="pi-form-item"
|
|
4
4
|
:style="[customStyle, itemStyle]"
|
|
5
|
-
:class="[
|
|
6
|
-
{ disabled: getDisabled },
|
|
7
|
-
{ border: getBorder },
|
|
8
|
-
{ 'pi-align-center': !getWrap },
|
|
9
|
-
getFormItemClass,
|
|
10
|
-
customClass
|
|
11
|
-
]"
|
|
5
|
+
:class="[...getFormItemClass, customClass]"
|
|
12
6
|
@tap="handleItemClick"
|
|
13
7
|
>
|
|
14
8
|
<!-- 表单标题 -->
|
|
@@ -92,9 +86,9 @@ const alignFlexMap = {
|
|
|
92
86
|
}
|
|
93
87
|
|
|
94
88
|
const verticalAlignFlexMap = {
|
|
95
|
-
top: '
|
|
96
|
-
center: 'center',
|
|
97
|
-
bottom: '
|
|
89
|
+
top: 'pi-align-start',
|
|
90
|
+
center: 'pi-align-center',
|
|
91
|
+
bottom: 'pi-align-end'
|
|
98
92
|
}
|
|
99
93
|
|
|
100
94
|
export default {
|
|
@@ -364,15 +358,15 @@ export default {
|
|
|
364
358
|
}
|
|
365
359
|
},
|
|
366
360
|
getFormItemClass() {
|
|
367
|
-
const classList =
|
|
361
|
+
const classList = []
|
|
368
362
|
if (this.getDisabled) {
|
|
369
|
-
classList.disabled
|
|
363
|
+
classList.push('disabled')
|
|
370
364
|
}
|
|
371
365
|
if (this.getBorder) {
|
|
372
|
-
classList.border
|
|
366
|
+
classList.push('border')
|
|
373
367
|
}
|
|
374
368
|
if (!this.getWrap && this.getItemVerticalAlign) {
|
|
375
|
-
classList
|
|
369
|
+
classList.push(verticalAlignFlexMap[this.getItemVerticalAlign])
|
|
376
370
|
}
|
|
377
371
|
return classList
|
|
378
372
|
}
|