mali-applet-ui 0.1.8 → 0.1.9
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.
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
24
|
<script>
|
|
25
|
+
import XEUtils from 'xe-utils'
|
|
26
|
+
|
|
25
27
|
export default {
|
|
26
28
|
name: 'MlForm',
|
|
27
29
|
props: {
|
|
@@ -98,7 +100,7 @@ export default {
|
|
|
98
100
|
},
|
|
99
101
|
validRule (item) {
|
|
100
102
|
const rules = item && this.rules ? this.rules[item.field] : null
|
|
101
|
-
const itemValue = item && this.value ? this.value
|
|
103
|
+
const itemValue = item && this.value ? XEUtils.get(this.value, item.field) : null
|
|
102
104
|
let errRule = null
|
|
103
105
|
if (rules) {
|
|
104
106
|
for (let i = 0; i < rules.length; i++) {
|