bm-admin-ui 1.0.68-alpha → 1.0.69-alpha
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.
|
@@ -18583,7 +18583,6 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
18583
18583
|
"rule",
|
|
18584
18584
|
"extraConfig",
|
|
18585
18585
|
"disabled",
|
|
18586
|
-
"disabledTable",
|
|
18587
18586
|
"hidden",
|
|
18588
18587
|
"formCreateInject",
|
|
18589
18588
|
"formData"
|
|
@@ -18671,11 +18670,6 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
18671
18670
|
width: "54px"
|
|
18672
18671
|
});
|
|
18673
18672
|
}
|
|
18674
|
-
if (props.disabledTable) {
|
|
18675
|
-
childRules.forEach((rule) => {
|
|
18676
|
-
rule.disabled = true;
|
|
18677
|
-
});
|
|
18678
|
-
}
|
|
18679
18673
|
childRules?.length && columns.push(
|
|
18680
18674
|
...childRules.reduce((pre, cur) => {
|
|
18681
18675
|
if (cur.hidden) {
|
|
@@ -19388,7 +19382,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
19388
19382
|
return value;
|
|
19389
19383
|
})
|
|
19390
19384
|
);
|
|
19391
|
-
if (childRules.length)
|
|
19385
|
+
if (childRules.length) {
|
|
19386
|
+
if (props.disabled?.includes?.("editTable")) {
|
|
19387
|
+
childRules.forEach((rule) => {
|
|
19388
|
+
rule.disabled = true;
|
|
19389
|
+
});
|
|
19390
|
+
}
|
|
19392
19391
|
return {
|
|
19393
19392
|
title: {
|
|
19394
19393
|
title: "\u660E\u7EC6\u5217\u8868"
|
|
@@ -19399,7 +19398,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
19399
19398
|
},
|
|
19400
19399
|
value: activePane2.tableData
|
|
19401
19400
|
};
|
|
19402
|
-
else
|
|
19401
|
+
} else
|
|
19403
19402
|
return void 0;
|
|
19404
19403
|
}
|
|
19405
19404
|
function handleTableDataChange(value) {
|
|
@@ -19487,19 +19486,20 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
19487
19486
|
onChange: handTabChange
|
|
19488
19487
|
}, {
|
|
19489
19488
|
rightExtra: withCtx(() => [
|
|
19490
|
-
|
|
19489
|
+
!__props.disabled?.includes?.("selectBtn") ? (openBlock(), createElementBlock("span", {
|
|
19490
|
+
key: 0,
|
|
19491
19491
|
class: "bm-fc-material-temp__add",
|
|
19492
19492
|
onClick: handleAdd
|
|
19493
19493
|
}, [
|
|
19494
19494
|
createVNode(unref(PlusOutlined))
|
|
19495
|
-
])
|
|
19495
|
+
])) : createCommentVNode("v-if", true)
|
|
19496
19496
|
]),
|
|
19497
19497
|
default: withCtx(() => [
|
|
19498
19498
|
(openBlock(true), createElementBlock(Fragment, null, renderList(panes, (pane) => {
|
|
19499
19499
|
return openBlock(), createBlock(unref(TabPane), {
|
|
19500
19500
|
key: pane.key,
|
|
19501
19501
|
tab: pane.title,
|
|
19502
|
-
closable: panes.length !== 1
|
|
19502
|
+
closable: panes.length !== 1 || !__props.disabled?.includes?.("selectBtn")
|
|
19503
19503
|
}, {
|
|
19504
19504
|
default: withCtx(() => [
|
|
19505
19505
|
createVNode(unref(FormItemRest), null, {
|
|
@@ -19689,7 +19689,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
19689
19689
|
accept: ".jpg,.png"
|
|
19690
19690
|
},
|
|
19691
19691
|
"extra-props": {
|
|
19692
|
-
maxCount: 9
|
|
19692
|
+
maxCount: 9,
|
|
19693
|
+
hideDelBtn: __props.disabled?.includes?.("uploadPic")
|
|
19693
19694
|
},
|
|
19694
19695
|
"upload-request": __props.extraConfig.materialTemp.uploadRequest,
|
|
19695
19696
|
"default-list": pane.uploadList,
|
|
@@ -19698,7 +19699,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
19698
19699
|
},
|
|
19699
19700
|
onUpdate: handleUpload,
|
|
19700
19701
|
onError: handleError
|
|
19701
|
-
}, null, 8, ["upload-props", "upload-request", "default-list"])
|
|
19702
|
+
}, null, 8, ["upload-props", "extra-props", "upload-request", "default-list"])
|
|
19702
19703
|
]),
|
|
19703
19704
|
_: 2
|
|
19704
19705
|
}, 1024)
|
|
@@ -19714,11 +19715,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
19714
19715
|
pane.tableRule ? (openBlock(), createBlock(TableWidget, {
|
|
19715
19716
|
key: 0,
|
|
19716
19717
|
rule: pane.tableRule,
|
|
19717
|
-
|
|
19718
|
+
disabled: __props.disabled?.includes?.("editTable"),
|
|
19718
19719
|
"extra-config": __props.extraConfig,
|
|
19719
19720
|
"form-data": unref(formData),
|
|
19720
19721
|
onChange: handleTableDataChange
|
|
19721
|
-
}, null, 8, ["rule", "disabled
|
|
19722
|
+
}, null, 8, ["rule", "disabled", "extra-config", "form-data"])) : createCommentVNode("v-if", true)
|
|
19722
19723
|
]),
|
|
19723
19724
|
_: 2
|
|
19724
19725
|
}, 1024)
|
|
@@ -20063,6 +20064,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
20063
20064
|
filterByUser: props.dataFiltering
|
|
20064
20065
|
}));
|
|
20065
20066
|
const isAssociated = computed(() => {
|
|
20067
|
+
if (!props.fdRule)
|
|
20068
|
+
return false;
|
|
20066
20069
|
for (const rule of props.fdRule) {
|
|
20067
20070
|
if (isAssociatedFn(rule))
|
|
20068
20071
|
return true;
|
|
@@ -20075,9 +20078,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
20075
20078
|
}
|
|
20076
20079
|
if (rule?.config?.childRules?.length) {
|
|
20077
20080
|
for (const cRule of rule.config.childRules) {
|
|
20078
|
-
if (cRule
|
|
20081
|
+
if (isAssociatedFn(cRule))
|
|
20079
20082
|
return true;
|
|
20080
|
-
}
|
|
20081
20083
|
}
|
|
20082
20084
|
}
|
|
20083
20085
|
}
|
|
@@ -18594,7 +18594,6 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
18594
18594
|
"rule",
|
|
18595
18595
|
"extraConfig",
|
|
18596
18596
|
"disabled",
|
|
18597
|
-
"disabledTable",
|
|
18598
18597
|
"hidden",
|
|
18599
18598
|
"formCreateInject",
|
|
18600
18599
|
"formData"
|
|
@@ -18682,11 +18681,6 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
18682
18681
|
width: "54px"
|
|
18683
18682
|
});
|
|
18684
18683
|
}
|
|
18685
|
-
if (props.disabledTable) {
|
|
18686
|
-
childRules.forEach((rule) => {
|
|
18687
|
-
rule.disabled = true;
|
|
18688
|
-
});
|
|
18689
|
-
}
|
|
18690
18684
|
childRules?.length && columns.push(
|
|
18691
18685
|
...childRules.reduce((pre, cur) => {
|
|
18692
18686
|
if (cur.hidden) {
|
|
@@ -19399,7 +19393,12 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19399
19393
|
return value;
|
|
19400
19394
|
})
|
|
19401
19395
|
);
|
|
19402
|
-
if (childRules.length)
|
|
19396
|
+
if (childRules.length) {
|
|
19397
|
+
if (props.disabled?.includes?.("editTable")) {
|
|
19398
|
+
childRules.forEach((rule) => {
|
|
19399
|
+
rule.disabled = true;
|
|
19400
|
+
});
|
|
19401
|
+
}
|
|
19403
19402
|
return {
|
|
19404
19403
|
title: {
|
|
19405
19404
|
title: "\u660E\u7EC6\u5217\u8868"
|
|
@@ -19410,7 +19409,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19410
19409
|
},
|
|
19411
19410
|
value: activePane2.tableData
|
|
19412
19411
|
};
|
|
19413
|
-
else
|
|
19412
|
+
} else
|
|
19414
19413
|
return void 0;
|
|
19415
19414
|
}
|
|
19416
19415
|
function handleTableDataChange(value) {
|
|
@@ -19498,19 +19497,20 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19498
19497
|
onChange: handTabChange
|
|
19499
19498
|
}, {
|
|
19500
19499
|
rightExtra: vue.withCtx(() => [
|
|
19501
|
-
vue.
|
|
19500
|
+
!__props.disabled?.includes?.("selectBtn") ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
19501
|
+
key: 0,
|
|
19502
19502
|
class: "bm-fc-material-temp__add",
|
|
19503
19503
|
onClick: handleAdd
|
|
19504
19504
|
}, [
|
|
19505
19505
|
vue.createVNode(vue.unref(iconsVue.PlusOutlined))
|
|
19506
|
-
])
|
|
19506
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
19507
19507
|
]),
|
|
19508
19508
|
default: vue.withCtx(() => [
|
|
19509
19509
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(panes, (pane) => {
|
|
19510
19510
|
return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.TabPane), {
|
|
19511
19511
|
key: pane.key,
|
|
19512
19512
|
tab: pane.title,
|
|
19513
|
-
closable: panes.length !== 1
|
|
19513
|
+
closable: panes.length !== 1 || !__props.disabled?.includes?.("selectBtn")
|
|
19514
19514
|
}, {
|
|
19515
19515
|
default: vue.withCtx(() => [
|
|
19516
19516
|
vue.createVNode(vue.unref(antDesignVue.FormItemRest), null, {
|
|
@@ -19700,7 +19700,8 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19700
19700
|
accept: ".jpg,.png"
|
|
19701
19701
|
},
|
|
19702
19702
|
"extra-props": {
|
|
19703
|
-
maxCount: 9
|
|
19703
|
+
maxCount: 9,
|
|
19704
|
+
hideDelBtn: __props.disabled?.includes?.("uploadPic")
|
|
19704
19705
|
},
|
|
19705
19706
|
"upload-request": __props.extraConfig.materialTemp.uploadRequest,
|
|
19706
19707
|
"default-list": pane.uploadList,
|
|
@@ -19709,7 +19710,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19709
19710
|
},
|
|
19710
19711
|
onUpdate: handleUpload,
|
|
19711
19712
|
onError: handleError
|
|
19712
|
-
}, null, 8, ["upload-props", "upload-request", "default-list"])
|
|
19713
|
+
}, null, 8, ["upload-props", "extra-props", "upload-request", "default-list"])
|
|
19713
19714
|
]),
|
|
19714
19715
|
_: 2
|
|
19715
19716
|
}, 1024)
|
|
@@ -19725,11 +19726,11 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19725
19726
|
pane.tableRule ? (vue.openBlock(), vue.createBlock(TableWidget, {
|
|
19726
19727
|
key: 0,
|
|
19727
19728
|
rule: pane.tableRule,
|
|
19728
|
-
|
|
19729
|
+
disabled: __props.disabled?.includes?.("editTable"),
|
|
19729
19730
|
"extra-config": __props.extraConfig,
|
|
19730
19731
|
"form-data": vue.unref(formData),
|
|
19731
19732
|
onChange: handleTableDataChange
|
|
19732
|
-
}, null, 8, ["rule", "disabled
|
|
19733
|
+
}, null, 8, ["rule", "disabled", "extra-config", "form-data"])) : vue.createCommentVNode("v-if", true)
|
|
19733
19734
|
]),
|
|
19734
19735
|
_: 2
|
|
19735
19736
|
}, 1024)
|
|
@@ -20074,6 +20075,8 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20074
20075
|
filterByUser: props.dataFiltering
|
|
20075
20076
|
}));
|
|
20076
20077
|
const isAssociated = vue.computed(() => {
|
|
20078
|
+
if (!props.fdRule)
|
|
20079
|
+
return false;
|
|
20077
20080
|
for (const rule of props.fdRule) {
|
|
20078
20081
|
if (isAssociatedFn(rule))
|
|
20079
20082
|
return true;
|
|
@@ -20086,9 +20089,8 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20086
20089
|
}
|
|
20087
20090
|
if (rule?.config?.childRules?.length) {
|
|
20088
20091
|
for (const cRule of rule.config.childRules) {
|
|
20089
|
-
if (cRule
|
|
20092
|
+
if (isAssociatedFn(cRule))
|
|
20090
20093
|
return true;
|
|
20091
|
-
}
|
|
20092
20094
|
}
|
|
20093
20095
|
}
|
|
20094
20096
|
}
|