lw-cdp-ui 1.2.11 → 1.2.13

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.
@@ -38,6 +38,12 @@
38
38
  active-text="启用"
39
39
  inactive-text="禁用" />
40
40
  </el-form-item>
41
+ <el-form-item label="内容提示">
42
+ <el-input v-model="item.tips"
43
+ type="textarea"
44
+ placeholder="请输入"
45
+ clearable />
46
+ </el-form-item>
41
47
  </div>
42
48
 
43
49
  <template v-if="item?.span">
@@ -252,6 +252,13 @@ export default {
252
252
  }
253
253
  },
254
254
  watch: {
255
+ item: {
256
+ handler(val) {
257
+ this.objItem = val
258
+ },
259
+ immediate: true,
260
+ deep: true
261
+ },
255
262
  form: {
256
263
  handler(val) {
257
264
  if (this.item.component === 'checkbox' || this.item.component === 'upload') {
@@ -259,15 +266,9 @@ export default {
259
266
  option.value = this.flattenObject(this.form, option.name, option.value)
260
267
  });
261
268
  } else {
262
- this.objItem.value= this.flattenObject(this.form, this.item.name, this.objItem.value)
269
+ this.objItem.value = this.flattenObject(this.form, this.item.name, this.objItem.value)
263
270
  }
264
- },
265
- immediate: true,
266
- deep: true
267
- },
268
- item: {
269
- handler(val) {
270
- this.objItem = val
271
+
271
272
  },
272
273
  immediate: true,
273
274
  deep: true