Browse Source

修复多选框组的选项设置问题

old
Jimi 4 years ago
parent
commit
a064dc83f3
  1. 5
      src/views/form/editor/RightPanel.vue

5
src/views/form/editor/RightPanel.vue

@ -1404,8 +1404,9 @@ export default {
addSelectItem() {
let lastItem = _.last(this.activeData.__slot__.options);
this.activeData.__slot__.options.push({
label: "",
value: lastItem ? lastItem.value + 1 : 1,
label: '',
value: lastItem ? lastItem.value === 0 ? _.max(_.values(this.activeData.__slot__.options.map(item =>
item.value))) + 1 : lastItem.value + 1 : 1
});
},
async blukAddSelectItems() {

Loading…
Cancel
Save