sadais-piui 1.2.7-beta168 → 1.2.7-beta169
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.
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view
|
|
3
|
-
:id="formItemId"
|
|
4
3
|
class="pi-form-item"
|
|
5
4
|
:style="[itemStyle, customStyle]"
|
|
6
5
|
:class="getFormItemClass"
|
|
@@ -280,7 +279,7 @@ export default {
|
|
|
280
279
|
// ''
|
|
281
280
|
return formItem.sort
|
|
282
281
|
}
|
|
283
|
-
}
|
|
282
|
+
}
|
|
284
283
|
},
|
|
285
284
|
data() {
|
|
286
285
|
return {
|
|
@@ -291,13 +290,6 @@ export default {
|
|
|
291
290
|
}
|
|
292
291
|
},
|
|
293
292
|
computed: {
|
|
294
|
-
formItemId() {
|
|
295
|
-
// 移除标点符号,只保留英文和数字
|
|
296
|
-
const itemId = this.prop
|
|
297
|
-
? String(this.prop).replace(/[^a-zA-Z0-9]/g, '')
|
|
298
|
-
: ''
|
|
299
|
-
return `form-item-${itemId}`
|
|
300
|
-
},
|
|
301
293
|
getShowRightIcon() {
|
|
302
294
|
return this.$pi.expand.getPropValue(
|
|
303
295
|
this.inheritProps.showRightIcon,
|
|
@@ -491,7 +483,6 @@ export default {
|
|
|
491
483
|
validation(trigger) {
|
|
492
484
|
const _getResolve = () => {
|
|
493
485
|
return {
|
|
494
|
-
formItemId: this.formItemId,
|
|
495
486
|
prop: this.prop,
|
|
496
487
|
validateState: this.validateState,
|
|
497
488
|
validateMessage: this.validateMessage
|