vue2-client 1.16.61 → 1.16.62

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,13 @@
22
22
  @change="onChange">
23
23
  <a-icon slot="prefix" type="search"/>
24
24
  </a-input>
25
+ <span v-if="config.addParent.isShow" style="margin-left: 10px;">
26
+ <a-icon
27
+ :type="config.addParent.icon || 'plus-square'"
28
+ :style="{ fontSize: config.addParent.size || '30px', color: config.addParent.color }"
29
+ @click="addParent(config.addParent.func)"
30
+ />
31
+ </span>
25
32
  </div>
26
33
  </a-row>
27
34
  <a-row v-if="config.tabBtn && config.tabBtn.length > 0">
@@ -271,6 +278,11 @@ export default {
271
278
  this.nodeItemClick(node)
272
279
  this.$emit('itemChecked', node)
273
280
  },
281
+ addParent (func) {
282
+ if (func) {
283
+ this.$emit('action', null, null, null, func, null)
284
+ }
285
+ },
274
286
  action (record, func) {
275
287
  this.$emit('action', record, record[this.replaceFields.key], null, func)
276
288
  },