mooho-base-admin-plus 2.0.49 → 2.0.50
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.
- package/package/mooho-base-admin-plus.min.esm.js +32 -6
- package/package/mooho-base-admin-plus.min.js +48 -48
- package/package.json +1 -1
- package/src/components/input/dialog-select.vue +8 -2
- package/src/components/view/modal-table.vue +6 -3
- package/src/components/view/view-form.vue +12 -0
- package/src/components/view/view-table.vue +16 -0
|
@@ -35549,7 +35549,12 @@ const _sfc_main$C = {
|
|
|
35549
35549
|
this.$refs.dialogTable.setSelected([]);
|
|
35550
35550
|
}
|
|
35551
35551
|
}
|
|
35552
|
-
|
|
35552
|
+
if (this.param) {
|
|
35553
|
+
this.$refs.dialogTable.open(this.param);
|
|
35554
|
+
} else {
|
|
35555
|
+
this.$refs.dialogTable.clear();
|
|
35556
|
+
this.$refs.dialogTable.opened = true;
|
|
35557
|
+
}
|
|
35553
35558
|
});
|
|
35554
35559
|
}
|
|
35555
35560
|
},
|
|
@@ -35615,7 +35620,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35615
35620
|
ref: "dialogTable",
|
|
35616
35621
|
"view-code": $props.source,
|
|
35617
35622
|
selectEnable: $props.multi,
|
|
35618
|
-
"check-cross-page":
|
|
35623
|
+
"check-cross-page": true,
|
|
35619
35624
|
"footer-enable": $props.multi
|
|
35620
35625
|
}, {
|
|
35621
35626
|
command: withCtx(({ row }) => [
|
|
@@ -37035,6 +37040,14 @@ const _sfc_main$w = {
|
|
|
37035
37040
|
item.needClear = true;
|
|
37036
37041
|
});
|
|
37037
37042
|
}
|
|
37043
|
+
} else if (column.controlType === "DialogSelect" || column.controlType === "MultiDialogSelect") {
|
|
37044
|
+
if (param == null) {
|
|
37045
|
+
column.dataSource = [];
|
|
37046
|
+
this.setData(this.data, column.code, null);
|
|
37047
|
+
column.triggers.forEach((item) => {
|
|
37048
|
+
item.needClear = true;
|
|
37049
|
+
});
|
|
37050
|
+
}
|
|
37038
37051
|
} else if (column.controlType === "List") {
|
|
37039
37052
|
if (param != null) {
|
|
37040
37053
|
let res2;
|
|
@@ -42615,6 +42628,13 @@ const _sfc_main$q = {
|
|
|
42615
42628
|
data2._needClear[item.code] = true;
|
|
42616
42629
|
});
|
|
42617
42630
|
}
|
|
42631
|
+
} else if (column.controlType === "DialogSelect" || column.controlType === "MultiDialogSelect") {
|
|
42632
|
+
if (param == null) {
|
|
42633
|
+
this.setData(data2, column.code, null);
|
|
42634
|
+
column.triggers.forEach((item) => {
|
|
42635
|
+
data2._needClear[item.code] = true;
|
|
42636
|
+
});
|
|
42637
|
+
}
|
|
42618
42638
|
}
|
|
42619
42639
|
}
|
|
42620
42640
|
data2._needClear[column.code] = false;
|
|
@@ -43024,6 +43044,10 @@ const _sfc_main$q = {
|
|
|
43024
43044
|
this.loadData(data2);
|
|
43025
43045
|
}
|
|
43026
43046
|
},
|
|
43047
|
+
clear() {
|
|
43048
|
+
this.staticData = [];
|
|
43049
|
+
this.data = [];
|
|
43050
|
+
},
|
|
43027
43051
|
parseDataWithOther(model2, column) {
|
|
43028
43052
|
let expression2 = column.code;
|
|
43029
43053
|
let selectValue = this.parseData(model2, expression2 + "_o");
|
|
@@ -52529,6 +52553,9 @@ const _sfc_main$l = {
|
|
|
52529
52553
|
selectAllCancel() {
|
|
52530
52554
|
this.setSelected([]);
|
|
52531
52555
|
},
|
|
52556
|
+
clear() {
|
|
52557
|
+
this.$refs.table.clear();
|
|
52558
|
+
},
|
|
52532
52559
|
dragDrop(args) {
|
|
52533
52560
|
this.$emit("on-drag-drop", args);
|
|
52534
52561
|
},
|
|
@@ -52607,10 +52634,9 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52607
52634
|
static: this.static,
|
|
52608
52635
|
filter: $data.tableFilter,
|
|
52609
52636
|
"setting-enable": $props.settingEnable,
|
|
52637
|
+
"auto-load": false,
|
|
52610
52638
|
"select-enable": $props.selectEnable,
|
|
52611
|
-
|
|
52612
|
-
selectEnable: $props.selectEnable,
|
|
52613
|
-
checkCrossPage: $props.checkCrossPage,
|
|
52639
|
+
"check-cross-page": $props.checkCrossPage,
|
|
52614
52640
|
"tree-enable": $props.treeEnable,
|
|
52615
52641
|
"tree-load": $props.treeLoad,
|
|
52616
52642
|
"has-children": $props.hasChildren,
|
|
@@ -52685,7 +52711,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52685
52711
|
})
|
|
52686
52712
|
]),
|
|
52687
52713
|
_: 3
|
|
52688
|
-
}, 8, ["view-code", "static", "filter", "setting-enable", "select-enable", "
|
|
52714
|
+
}, 8, ["view-code", "static", "filter", "setting-enable", "select-enable", "check-cross-page", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "span-method", "onCreate", "onEdit", "onOnReady", "onOnLoadData", "onAfterInit", "onOnDragDrop"])
|
|
52689
52715
|
])
|
|
52690
52716
|
]),
|
|
52691
52717
|
_: 3
|