bm-admin-ui 1.0.64-alpha → 1.0.65-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.
- package/es/components/edit-form/index.d.ts +1 -1
- package/es/components/edit-form/src/edit-form.vue.d.ts +1 -1
- package/es/components/editor/index.d.ts +8 -8
- package/es/components/editor/src/editor.vue.d.ts +8 -8
- package/es/components/feedback/index.d.ts +4 -4
- package/es/components/feedback/src/bmAlert.vue.d.ts +4 -4
- package/es/components/flow-designer/index.d.ts +45 -4
- package/es/components/flow-designer/index.js +1284 -11
- package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -5
- package/es/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +1 -1
- package/es/components/flow-designer/src/config.d.ts +1 -0
- package/es/components/flow-designer/src/flow-designer.vue.d.ts +47 -4
- package/es/components/flow-designer/src/utils.d.ts +1 -0
- package/es/components/form-create/index.js +17562 -212
- package/es/components/form-designer/index.js +69 -12
- package/es/components/input-tags-display/index.d.ts +1 -1
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
- package/es/components/search-filter/index.d.ts +3 -3
- package/es/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/es/components/select-all/index.d.ts +10 -10
- package/es/components/select-all/src/selectAll.vue.d.ts +10 -10
- package/es/components/staffs-selector/index.d.ts +0 -1
- package/es/components/staffs-selector/index.js +19 -16
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -1
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -1
- package/es/components/timeline/index.d.ts +1 -1
- package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/lib/components/edit-form/index.d.ts +1 -1
- package/lib/components/edit-form/src/edit-form.vue.d.ts +1 -1
- package/lib/components/editor/index.d.ts +8 -8
- package/lib/components/editor/src/editor.vue.d.ts +8 -8
- package/lib/components/feedback/index.d.ts +4 -4
- package/lib/components/feedback/src/bmAlert.vue.d.ts +4 -4
- package/lib/components/flow-designer/index.d.ts +45 -4
- package/lib/components/flow-designer/index.js +1285 -9
- package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -5
- package/lib/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +1 -1
- package/lib/components/flow-designer/src/config.d.ts +1 -0
- package/lib/components/flow-designer/src/flow-designer.vue.d.ts +47 -4
- package/lib/components/flow-designer/src/utils.d.ts +1 -0
- package/lib/components/form-create/index.js +17561 -211
- package/lib/components/form-designer/index.js +69 -12
- package/lib/components/input-tags-display/index.d.ts +1 -1
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
- package/lib/components/search-filter/index.d.ts +3 -3
- package/lib/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/lib/components/select-all/index.d.ts +10 -10
- package/lib/components/select-all/src/selectAll.vue.d.ts +10 -10
- package/lib/components/staffs-selector/index.d.ts +0 -1
- package/lib/components/staffs-selector/index.js +19 -16
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -1
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -1
- package/lib/components/timeline/index.d.ts +1 -1
- package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/package.json +1 -1
- package/theme-chalk/flow-designer.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/types/components/edit-form/index.d.ts +1 -1
- package/types/components/edit-form/src/edit-form.vue.d.ts +1 -1
- package/types/components/editor/index.d.ts +8 -8
- package/types/components/editor/src/editor.vue.d.ts +8 -8
- package/types/components/feedback/index.d.ts +4 -4
- package/types/components/feedback/src/bmAlert.vue.d.ts +4 -4
- package/types/components/flow-designer/index.d.ts +45 -4
- package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -5
- package/types/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +1 -1
- package/types/components/flow-designer/src/config.d.ts +1 -0
- package/types/components/flow-designer/src/flow-designer.vue.d.ts +47 -4
- package/types/components/flow-designer/src/utils.d.ts +1 -0
- package/types/components/input-tags-display/index.d.ts +1 -1
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
- package/types/components/search-filter/index.d.ts +3 -3
- package/types/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/types/components/select-all/index.d.ts +10 -10
- package/types/components/select-all/src/selectAll.vue.d.ts +10 -10
- package/types/components/staffs-selector/index.d.ts +0 -1
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -1
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -1
- package/types/components/timeline/index.d.ts +1 -1
- package/types/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/es/components/flow-designer/src/flow-designer-test.d.ts +0 -20
- package/lib/components/flow-designer/src/flow-designer-test.d.ts +0 -20
- package/types/components/flow-designer/src/flow-designer-test.d.ts +0 -20
|
@@ -2078,6 +2078,9 @@ var table = {
|
|
|
2078
2078
|
api.validate();
|
|
2079
2079
|
});
|
|
2080
2080
|
},
|
|
2081
|
+
childRuleDelete({ api }, rule) {
|
|
2082
|
+
api.emit('tableChildRuleDelete', rule);
|
|
2083
|
+
},
|
|
2081
2084
|
},
|
|
2082
2085
|
},
|
|
2083
2086
|
{
|
|
@@ -2983,7 +2986,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2983
2986
|
const shopRules = computed(
|
|
2984
2987
|
() => props.widgetFormRules.reduce((pre, cur) => {
|
|
2985
2988
|
const name = cur.config.config.name;
|
|
2986
|
-
if (name === "row"
|
|
2989
|
+
if (name === "row") {
|
|
2987
2990
|
cur.config.childRules.forEach((rule) => {
|
|
2988
2991
|
getShop(rule, pre);
|
|
2989
2992
|
});
|
|
@@ -3521,6 +3524,10 @@ const formDesignerProps = {
|
|
|
3521
3524
|
return {};
|
|
3522
3525
|
},
|
|
3523
3526
|
},
|
|
3527
|
+
showDragTip: {
|
|
3528
|
+
type: Boolean,
|
|
3529
|
+
default: false,
|
|
3530
|
+
},
|
|
3524
3531
|
};
|
|
3525
3532
|
|
|
3526
3533
|
const _hoisted_1$3 = {
|
|
@@ -3648,7 +3655,7 @@ const _hoisted_2$1 = { class: "bm-table-column-btn-wrap" };
|
|
|
3648
3655
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
3649
3656
|
__name: "table-column",
|
|
3650
3657
|
props: ["formCreateInject"],
|
|
3651
|
-
emits: ["change"],
|
|
3658
|
+
emits: ["change", "childRuleDelete"],
|
|
3652
3659
|
setup(__props, { emit: emits }) {
|
|
3653
3660
|
const props = __props;
|
|
3654
3661
|
const handleClass = "bm-table-column__drag-icon";
|
|
@@ -3674,6 +3681,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3674
3681
|
function getPopupContainer() {
|
|
3675
3682
|
return document.body;
|
|
3676
3683
|
}
|
|
3684
|
+
function handleDelete(element, index) {
|
|
3685
|
+
childRules.value.splice(index, 1);
|
|
3686
|
+
emits("childRuleDelete", element);
|
|
3687
|
+
}
|
|
3677
3688
|
watch(
|
|
3678
3689
|
childRules,
|
|
3679
3690
|
(val) => {
|
|
@@ -3714,7 +3725,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3714
3725
|
}, null, 8, ["onClick"]),
|
|
3715
3726
|
createVNode(_component_Delete, {
|
|
3716
3727
|
class: "bm-table-column__icon is-del",
|
|
3717
|
-
onClick: ($event) =>
|
|
3728
|
+
onClick: ($event) => handleDelete(element, index)
|
|
3718
3729
|
}, null, 8, ["onClick"])
|
|
3719
3730
|
]),
|
|
3720
3731
|
_: 2
|
|
@@ -3814,7 +3825,8 @@ const __default__ = {
|
|
|
3814
3825
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3815
3826
|
...__default__,
|
|
3816
3827
|
props: formDesignerProps,
|
|
3817
|
-
|
|
3828
|
+
emits: ["update:showDragTip"],
|
|
3829
|
+
setup(__props, { expose, emit: emits }) {
|
|
3818
3830
|
const props = __props;
|
|
3819
3831
|
FC.component("TableHeadCount", TableHeadCount);
|
|
3820
3832
|
FC.component("TableColumn", TableColumn);
|
|
@@ -3845,7 +3857,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3845
3857
|
people: "\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u5185\u5BB9\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539",
|
|
3846
3858
|
department: "\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u5185\u5BB9\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539"
|
|
3847
3859
|
};
|
|
3848
|
-
const showDragTip = ref(true);
|
|
3849
3860
|
const tabData = createTab();
|
|
3850
3861
|
const activeKey = ref("controlLibrary");
|
|
3851
3862
|
const widgetFormRules = reactive([]);
|
|
@@ -3861,7 +3872,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3861
3872
|
() => activeParentRule.value?.config?.childRules || widgetFormRules
|
|
3862
3873
|
);
|
|
3863
3874
|
function hideShowDragTip() {
|
|
3864
|
-
showDragTip
|
|
3875
|
+
emits("update:showDragTip", false);
|
|
3865
3876
|
}
|
|
3866
3877
|
function handleTabChange(key) {
|
|
3867
3878
|
activeKey.value = key;
|
|
@@ -4011,6 +4022,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4011
4022
|
resetActiveRule();
|
|
4012
4023
|
}
|
|
4013
4024
|
}
|
|
4025
|
+
if (productLinkShop(targetRule)) {
|
|
4026
|
+
setShopLinkProductCount();
|
|
4027
|
+
}
|
|
4014
4028
|
}
|
|
4015
4029
|
function makePropRule(rule, parentRule) {
|
|
4016
4030
|
return rule.config.config.props(rule, parentRule, widgetFormRules);
|
|
@@ -4027,6 +4041,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4027
4041
|
function propChange(field, value) {
|
|
4028
4042
|
setRulePropValue(field, value, activeRule.value);
|
|
4029
4043
|
processShopProps(field, value);
|
|
4044
|
+
if (activeRule.value.config.config.name === "product" && field === "config.dataFiltering") {
|
|
4045
|
+
setShopLinkProductCount();
|
|
4046
|
+
}
|
|
4030
4047
|
}
|
|
4031
4048
|
function processShopProps(field, value) {
|
|
4032
4049
|
if (activeRule.value?.config?.config.name === "shop") {
|
|
@@ -4231,15 +4248,54 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4231
4248
|
(rule) => rule.field === "config.isMain"
|
|
4232
4249
|
);
|
|
4233
4250
|
const mainShopRule = getMainShop();
|
|
4234
|
-
if (
|
|
4235
|
-
mainShopPropRule.props
|
|
4251
|
+
if (mainShopPropRule) {
|
|
4252
|
+
if (!mainShopPropRule.props) {
|
|
4253
|
+
mainShopPropRule.props = {};
|
|
4254
|
+
}
|
|
4255
|
+
mainShopPropRule.props.disabled = !!mainShopRule && !mainShopPropRule.value;
|
|
4256
|
+
}
|
|
4257
|
+
}
|
|
4258
|
+
function setShopLinkProductCount() {
|
|
4259
|
+
widgetFormRules.forEach((rule) => filterShopRule(rule));
|
|
4260
|
+
}
|
|
4261
|
+
function filterShopRule(rule) {
|
|
4262
|
+
if (rule.config.config.name === "shop") {
|
|
4263
|
+
rule.config.linkProductCount = calculateLinkProductCount(rule.field);
|
|
4236
4264
|
}
|
|
4237
|
-
|
|
4265
|
+
if (rule.config.config.name === "row" && rule.config.childRules?.length) {
|
|
4266
|
+
rule.config.childRules.forEach((cRule) => filterShopRule(cRule));
|
|
4267
|
+
}
|
|
4268
|
+
}
|
|
4269
|
+
function calculateLinkProductCount(shopField) {
|
|
4270
|
+
return widgetFormRules.reduce((count, rule) => {
|
|
4271
|
+
return count += recursiveCalculateLinkProductCount(shopField, rule);
|
|
4272
|
+
}, 0);
|
|
4273
|
+
}
|
|
4274
|
+
function recursiveCalculateLinkProductCount(shopField, rule, count = 0) {
|
|
4275
|
+
if (rule.config.config.name === "product" && rule.config.dataFiltering === shopField) {
|
|
4276
|
+
count++;
|
|
4277
|
+
}
|
|
4278
|
+
if (rule.config.childRules?.length) {
|
|
4279
|
+
rule.config.childRules.forEach(
|
|
4280
|
+
(cRule) => recursiveCalculateLinkProductCount(shopField, cRule, count)
|
|
4281
|
+
);
|
|
4282
|
+
}
|
|
4283
|
+
return count;
|
|
4284
|
+
}
|
|
4285
|
+
function handleTableChildRuleDelete(rule) {
|
|
4286
|
+
if (productLinkShop(rule))
|
|
4287
|
+
setShopLinkProductCount();
|
|
4288
|
+
}
|
|
4289
|
+
function productLinkShop(rule) {
|
|
4290
|
+
return rule.config.config.name === "product" && rule.config.dataFiltering;
|
|
4238
4291
|
}
|
|
4239
4292
|
watch(
|
|
4240
4293
|
() => props.formRules,
|
|
4241
4294
|
(formRules) => {
|
|
4242
|
-
|
|
4295
|
+
if (formRules?.length) {
|
|
4296
|
+
edit(formRules);
|
|
4297
|
+
setShopLinkProductCount();
|
|
4298
|
+
}
|
|
4243
4299
|
},
|
|
4244
4300
|
{
|
|
4245
4301
|
immediate: true
|
|
@@ -4368,7 +4424,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4368
4424
|
]),
|
|
4369
4425
|
_: 1
|
|
4370
4426
|
}, 8, ["list"]),
|
|
4371
|
-
|
|
4427
|
+
_ctx.showDragTip ? (openBlock(), createBlock(NoDataTip, {
|
|
4372
4428
|
key: 0,
|
|
4373
4429
|
class: "bm-no-data-tip"
|
|
4374
4430
|
})) : createCommentVNode("v-if", true)
|
|
@@ -4422,7 +4478,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4422
4478
|
rule: unref(activeProps),
|
|
4423
4479
|
onChange: propChange,
|
|
4424
4480
|
onSetActive: handlePropsSetActive,
|
|
4425
|
-
onAddChildRule: handleAddChildRule
|
|
4481
|
+
onAddChildRule: handleAddChildRule,
|
|
4482
|
+
onTableChildRuleDelete: handleTableChildRuleDelete
|
|
4426
4483
|
}, null, 8, ["api", "option", "rule"])
|
|
4427
4484
|
])
|
|
4428
4485
|
]),
|
|
@@ -125,10 +125,10 @@ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWith
|
|
|
125
125
|
onAddClick?: ((...args: any[]) => any) | undefined;
|
|
126
126
|
}, {
|
|
127
127
|
disabled: boolean;
|
|
128
|
-
list: unknown[];
|
|
129
128
|
placement: string;
|
|
130
129
|
fieldNames: Record<string, any>;
|
|
131
130
|
placeholder: string;
|
|
131
|
+
list: unknown[];
|
|
132
132
|
showEmpty: boolean;
|
|
133
133
|
showEmptyBtn: boolean;
|
|
134
134
|
unitStr: string;
|
|
@@ -123,10 +123,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
123
123
|
onAddClick?: ((...args: any[]) => any) | undefined;
|
|
124
124
|
}, {
|
|
125
125
|
disabled: boolean;
|
|
126
|
-
list: unknown[];
|
|
127
126
|
placement: string;
|
|
128
127
|
fieldNames: Record<string, any>;
|
|
129
128
|
placeholder: string;
|
|
129
|
+
list: unknown[];
|
|
130
130
|
showEmpty: boolean;
|
|
131
131
|
showEmptyBtn: boolean;
|
|
132
132
|
unitStr: string;
|
|
@@ -110,9 +110,9 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
110
110
|
default(): never[];
|
|
111
111
|
};
|
|
112
112
|
}>> & {
|
|
113
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
114
113
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
115
114
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
116
116
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
117
117
|
}>>;
|
|
118
118
|
emits: (event: "submit" | "reset" | "update:value" | "expand", ...args: any[]) => void;
|
|
@@ -212,14 +212,14 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
212
212
|
default(): never[];
|
|
213
213
|
};
|
|
214
214
|
}>> & {
|
|
215
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
216
215
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
217
216
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
217
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
220
|
loading: boolean;
|
|
221
|
-
value: Record<string, any>;
|
|
222
221
|
labelCol: Record<string, any>;
|
|
222
|
+
value: Record<string, any>;
|
|
223
223
|
showExpandBtn: boolean;
|
|
224
224
|
showSearchIcon: boolean;
|
|
225
225
|
expandPlacement: "left" | "right";
|
|
@@ -110,9 +110,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
110
|
default(): never[];
|
|
111
111
|
};
|
|
112
112
|
}>> & {
|
|
113
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
114
113
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
115
114
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
116
116
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
117
117
|
}>>;
|
|
118
118
|
emits: (event: "submit" | "reset" | "update:value" | "expand", ...args: any[]) => void;
|
|
@@ -212,14 +212,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
212
212
|
default(): never[];
|
|
213
213
|
};
|
|
214
214
|
}>> & {
|
|
215
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
216
215
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
217
216
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
217
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
220
|
loading: boolean;
|
|
221
|
-
value: Record<string, any>;
|
|
222
221
|
labelCol: Record<string, any>;
|
|
222
|
+
value: Record<string, any>;
|
|
223
223
|
showExpandBtn: boolean;
|
|
224
224
|
showSearchIcon: boolean;
|
|
225
225
|
expandPlacement: "left" | "right";
|
|
@@ -30,7 +30,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
30
30
|
checkedReverse: boolean;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
emit: (event: "
|
|
33
|
+
emit: (event: "onChange" | "update:value" | "onSelectAll", ...args: any[]) => void;
|
|
34
34
|
selectValue: any;
|
|
35
35
|
selectAll: (e: any) => void;
|
|
36
36
|
reverseAll: (e: any) => false | undefined;
|
|
@@ -99,7 +99,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
99
99
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
100
100
|
prefixCls: StringConstructor;
|
|
101
101
|
direction: {
|
|
102
|
-
type: import("vue").PropType<"
|
|
102
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
103
103
|
};
|
|
104
104
|
open: {
|
|
105
105
|
type: BooleanConstructor;
|
|
@@ -124,7 +124,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
124
124
|
};
|
|
125
125
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
126
126
|
showAction: {
|
|
127
|
-
type: import("vue").PropType<("
|
|
127
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
128
128
|
};
|
|
129
129
|
id: StringConstructor;
|
|
130
130
|
placement: {
|
|
@@ -262,7 +262,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
262
262
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
263
263
|
prefixCls: StringConstructor;
|
|
264
264
|
direction: {
|
|
265
|
-
type: import("vue").PropType<"
|
|
265
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
266
266
|
};
|
|
267
267
|
open: {
|
|
268
268
|
type: BooleanConstructor;
|
|
@@ -287,7 +287,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
287
287
|
};
|
|
288
288
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
289
289
|
showAction: {
|
|
290
|
-
type: import("vue").PropType<("
|
|
290
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
291
291
|
};
|
|
292
292
|
id: StringConstructor;
|
|
293
293
|
placement: {
|
|
@@ -448,7 +448,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
448
448
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
449
449
|
prefixCls: StringConstructor;
|
|
450
450
|
direction: {
|
|
451
|
-
type: import("vue").PropType<"
|
|
451
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
452
452
|
};
|
|
453
453
|
open: {
|
|
454
454
|
type: BooleanConstructor;
|
|
@@ -473,7 +473,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
473
473
|
};
|
|
474
474
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
475
475
|
showAction: {
|
|
476
|
-
type: import("vue").PropType<("
|
|
476
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
477
477
|
};
|
|
478
478
|
id: StringConstructor;
|
|
479
479
|
placement: {
|
|
@@ -601,7 +601,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
601
601
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
602
602
|
prefixCls: StringConstructor;
|
|
603
603
|
direction: {
|
|
604
|
-
type: import("vue").PropType<"
|
|
604
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
605
605
|
};
|
|
606
606
|
open: {
|
|
607
607
|
type: BooleanConstructor;
|
|
@@ -626,7 +626,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
626
626
|
};
|
|
627
627
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
628
628
|
showAction: {
|
|
629
|
-
type: import("vue").PropType<("
|
|
629
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
630
630
|
};
|
|
631
631
|
id: StringConstructor;
|
|
632
632
|
placement: {
|
|
@@ -734,7 +734,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
734
734
|
readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
|
|
735
735
|
readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
736
736
|
};
|
|
737
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
737
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onChange" | "update:value" | "onSelectAll")[], "onChange" | "update:value" | "onSelectAll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
738
738
|
value: {
|
|
739
739
|
type: ArrayConstructor;
|
|
740
740
|
required: true;
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
checkedReverse: boolean;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
emit: (event: "
|
|
33
|
+
emit: (event: "onChange" | "update:value" | "onSelectAll", ...args: any[]) => void;
|
|
34
34
|
selectValue: any;
|
|
35
35
|
selectAll: (e: any) => void;
|
|
36
36
|
reverseAll: (e: any) => false | undefined;
|
|
@@ -99,7 +99,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
99
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
100
100
|
prefixCls: StringConstructor;
|
|
101
101
|
direction: {
|
|
102
|
-
type: import("vue").PropType<"
|
|
102
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
103
103
|
};
|
|
104
104
|
open: {
|
|
105
105
|
type: BooleanConstructor;
|
|
@@ -124,7 +124,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
124
|
};
|
|
125
125
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
126
126
|
showAction: {
|
|
127
|
-
type: import("vue").PropType<("
|
|
127
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
128
128
|
};
|
|
129
129
|
id: StringConstructor;
|
|
130
130
|
placement: {
|
|
@@ -262,7 +262,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
262
262
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
263
263
|
prefixCls: StringConstructor;
|
|
264
264
|
direction: {
|
|
265
|
-
type: import("vue").PropType<"
|
|
265
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
266
266
|
};
|
|
267
267
|
open: {
|
|
268
268
|
type: BooleanConstructor;
|
|
@@ -287,7 +287,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
287
287
|
};
|
|
288
288
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
289
289
|
showAction: {
|
|
290
|
-
type: import("vue").PropType<("
|
|
290
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
291
291
|
};
|
|
292
292
|
id: StringConstructor;
|
|
293
293
|
placement: {
|
|
@@ -448,7 +448,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
448
448
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
449
449
|
prefixCls: StringConstructor;
|
|
450
450
|
direction: {
|
|
451
|
-
type: import("vue").PropType<"
|
|
451
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
452
452
|
};
|
|
453
453
|
open: {
|
|
454
454
|
type: BooleanConstructor;
|
|
@@ -473,7 +473,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
473
473
|
};
|
|
474
474
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
475
475
|
showAction: {
|
|
476
|
-
type: import("vue").PropType<("
|
|
476
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
477
477
|
};
|
|
478
478
|
id: StringConstructor;
|
|
479
479
|
placement: {
|
|
@@ -601,7 +601,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
601
601
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
602
602
|
prefixCls: StringConstructor;
|
|
603
603
|
direction: {
|
|
604
|
-
type: import("vue").PropType<"
|
|
604
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
605
605
|
};
|
|
606
606
|
open: {
|
|
607
607
|
type: BooleanConstructor;
|
|
@@ -626,7 +626,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
626
626
|
};
|
|
627
627
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
628
628
|
showAction: {
|
|
629
|
-
type: import("vue").PropType<("
|
|
629
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
630
630
|
};
|
|
631
631
|
id: StringConstructor;
|
|
632
632
|
placement: {
|
|
@@ -734,7 +734,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
734
734
|
readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
|
|
735
735
|
readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
736
736
|
};
|
|
737
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
737
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onChange" | "update:value" | "onSelectAll")[], "onChange" | "update:value" | "onSelectAll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
738
738
|
value: {
|
|
739
739
|
type: ArrayConstructor;
|
|
740
740
|
required: true;
|
|
@@ -917,7 +917,6 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
917
917
|
}> | null | undefined)[]>;
|
|
918
918
|
isFulfill: import("vue").Ref<boolean>;
|
|
919
919
|
changeTreeCheck: (checkedKeys: any) => void;
|
|
920
|
-
departmentSelect: import("vue").Ref<never[]>;
|
|
921
920
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
922
921
|
limit: {
|
|
923
922
|
type: NumberConstructor;
|
|
@@ -156,16 +156,14 @@ const _sfc_main$3 = defineComponent({
|
|
|
156
156
|
},
|
|
157
157
|
{ deep: true }
|
|
158
158
|
);
|
|
159
|
-
const departmentSelect = ref([]);
|
|
160
159
|
function changeTreeCheck(checkedKeys) {
|
|
161
|
-
departmentSelect.value = checkedKeys;
|
|
162
160
|
let flatMap = selectState.dataMap;
|
|
163
161
|
let curlistKeys = selectState.curlistKeys;
|
|
164
162
|
let hadselected = new Set(selectState.multipDepartment);
|
|
165
163
|
let curselect = new Set(checkedKeys);
|
|
166
164
|
for (let key of hadselected) {
|
|
167
165
|
if (curlistKeys.has(String(key)) && (!curselect.has(String(key)) || curselect.has(String(key)) && curselect.has(flatMap.get(String(key))["parent"]))) {
|
|
168
|
-
hadselected.delete(key);
|
|
166
|
+
hadselected.delete(String(key));
|
|
169
167
|
}
|
|
170
168
|
}
|
|
171
169
|
for (let key of curselect) {
|
|
@@ -183,7 +181,6 @@ const _sfc_main$3 = defineComponent({
|
|
|
183
181
|
}
|
|
184
182
|
return {
|
|
185
183
|
changeTreeCheck,
|
|
186
|
-
departmentSelect,
|
|
187
184
|
...toRefs(state),
|
|
188
185
|
...toRefs(selectState),
|
|
189
186
|
list,
|
|
@@ -256,7 +253,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
256
253
|
disabled: _ctx.isFulfill
|
|
257
254
|
}, {
|
|
258
255
|
default: withCtx(() => [
|
|
259
|
-
createTextVNode(toDisplayString(item.title), 1)
|
|
256
|
+
createTextVNode(toDisplayString(item?.fullTitle || item.title), 1)
|
|
260
257
|
]),
|
|
261
258
|
_: 2
|
|
262
259
|
}, 1032, ["checked", "onUpdate:checked", "disabled"])
|
|
@@ -264,7 +261,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
264
261
|
}), 128))
|
|
265
262
|
], 64)) : _ctx.isTree ? (openBlock(), createBlock(_component_ATree, {
|
|
266
263
|
key: 1,
|
|
267
|
-
"checked-keys": _ctx.
|
|
264
|
+
"checked-keys": _ctx.multipDepartment,
|
|
268
265
|
checkable: "",
|
|
269
266
|
"tree-data": _ctx.list,
|
|
270
267
|
onCheck: _ctx.changeTreeCheck
|
|
@@ -368,7 +365,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
368
365
|
value: item.key
|
|
369
366
|
}, {
|
|
370
367
|
default: withCtx(() => [
|
|
371
|
-
createTextVNode(toDisplayString(item.title), 1)
|
|
368
|
+
createTextVNode(toDisplayString(item.fullTitle || item.title), 1)
|
|
372
369
|
]),
|
|
373
370
|
_: 2
|
|
374
371
|
}, 1032, ["value"]);
|
|
@@ -564,7 +561,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
564
561
|
class: "__selector-modal-option-check"
|
|
565
562
|
}, {
|
|
566
563
|
default: withCtx(() => [
|
|
567
|
-
createTextVNode(toDisplayString(item.title), 1)
|
|
564
|
+
createTextVNode(toDisplayString(item.fullTitle || item.title), 1)
|
|
568
565
|
]),
|
|
569
566
|
_: 2
|
|
570
567
|
}, 1032, ["checked", "onUpdate:checked"])
|
|
@@ -603,7 +600,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
603
600
|
class: "__selector-modal-option-check"
|
|
604
601
|
}, {
|
|
605
602
|
default: withCtx(() => [
|
|
606
|
-
createTextVNode(toDisplayString(item.title), 1)
|
|
603
|
+
createTextVNode(toDisplayString(item.fullTitle || item.title), 1)
|
|
607
604
|
]),
|
|
608
605
|
_: 2
|
|
609
606
|
}, 1032, ["checked", "onUpdate:checked"])
|
|
@@ -621,7 +618,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
621
618
|
class: "__selector-modal-option-check"
|
|
622
619
|
}, {
|
|
623
620
|
default: withCtx(() => [
|
|
624
|
-
createTextVNode(toDisplayString(item.title), 1)
|
|
621
|
+
createTextVNode(toDisplayString(item.fullTitle || item.title), 1)
|
|
625
622
|
]),
|
|
626
623
|
_: 2
|
|
627
624
|
}, 1032, ["checked", "onUpdate:checked"])
|
|
@@ -861,11 +858,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
861
858
|
let arr = props.select;
|
|
862
859
|
selected.value = arr.length ? arr.map((item) => String(item?.key)) : [];
|
|
863
860
|
if (props.mode === MODE.MULTIPLE) {
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
(item) =>
|
|
867
|
-
|
|
868
|
-
|
|
861
|
+
if (props.immediateFetch) {
|
|
862
|
+
const multipDepartment = [];
|
|
863
|
+
arr.forEach((item) => multipDepartment.push(String(item?.key)));
|
|
864
|
+
selectState.multipDepartment = multipDepartment;
|
|
865
|
+
} else {
|
|
866
|
+
let multipleChecked = {};
|
|
867
|
+
arr.forEach(
|
|
868
|
+
(item) => multipleChecked[String(item?.key)] = true
|
|
869
|
+
);
|
|
870
|
+
selectState.multipleChecked = multipleChecked;
|
|
871
|
+
}
|
|
869
872
|
} else if (props.mode === MODE.VARIED) {
|
|
870
873
|
let department = [];
|
|
871
874
|
let shop = {};
|
|
@@ -896,7 +899,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
896
899
|
selectState.groupChecked = {};
|
|
897
900
|
selectState.activeKey = 0;
|
|
898
901
|
}
|
|
899
|
-
if (val && props.immediateFetch) {
|
|
902
|
+
if (val && props.mode === MODE.MULTIPLE && props.immediateFetch) {
|
|
900
903
|
fetch({});
|
|
901
904
|
}
|
|
902
905
|
},
|
|
@@ -35,7 +35,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
}> | null | undefined)[]>;
|
|
36
36
|
isFulfill: import("vue").Ref<boolean>;
|
|
37
37
|
changeTreeCheck: (checkedKeys: any) => void;
|
|
38
|
-
departmentSelect: import("vue").Ref<never[]>;
|
|
39
38
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
39
|
limit: {
|
|
41
40
|
type: NumberConstructor;
|
|
@@ -917,7 +917,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
917
917
|
}> | null | undefined)[]>;
|
|
918
918
|
isFulfill: import("vue").Ref<boolean>;
|
|
919
919
|
changeTreeCheck: (checkedKeys: any) => void;
|
|
920
|
-
departmentSelect: import("vue").Ref<never[]>;
|
|
921
920
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
922
921
|
limit: {
|
|
923
922
|
type: NumberConstructor;
|
|
@@ -48,7 +48,7 @@ declare const BmEditForm: import("bm-admin-ui/es/utils/with-install").SFCWithIns
|
|
|
48
48
|
tmpForm: import("vue").Ref<Record<string, any>>;
|
|
49
49
|
formRef: import("vue").Ref<import("ant-design-vue").FormInstance | null>;
|
|
50
50
|
colCount: import("vue").ComputedRef<2 | 3 | 1>;
|
|
51
|
-
getValueOfOption: (key: string | undefined, defaultKey: "
|
|
51
|
+
getValueOfOption: (key: string | undefined, defaultKey: "label" | "value", option: any) => string;
|
|
52
52
|
getPopupContainer: (e: any) => any;
|
|
53
53
|
getColsConfig: (type: "labelCol" | "wrapperCol", item: import("./src/types").Control, index?: number | undefined) => {
|
|
54
54
|
flex?: string | undefined;
|
|
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
47
|
tmpForm: import("vue").Ref<Record<string, any>>;
|
|
48
48
|
formRef: import("vue").Ref<FormInstance | null>;
|
|
49
49
|
colCount: import("vue").ComputedRef<2 | 3 | 1>;
|
|
50
|
-
getValueOfOption: (key: string | undefined, defaultKey: "
|
|
50
|
+
getValueOfOption: (key: string | undefined, defaultKey: "label" | "value", option: any) => string;
|
|
51
51
|
getPopupContainer: (e: any) => any;
|
|
52
52
|
getColsConfig: (type: "labelCol" | "wrapperCol", item: import("./types").Control, index?: number | undefined) => {
|
|
53
53
|
flex?: string | undefined;
|