bm-admin-ui 1.0.56-alpha → 1.0.57-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/button/index.d.ts +1 -1
- package/es/components/button/src/button.vue.d.ts +1 -1
- package/es/components/editor/index.d.ts +1 -1
- package/es/components/editor/src/editor.vue.d.ts +1 -1
- package/es/components/float-table/index.d.ts +2 -2
- package/es/components/float-table/src/float-table.vue.d.ts +2 -2
- package/es/components/form-create/index.js +97 -48
- package/es/components/form-designer/index.js +7 -3
- package/es/components/search-filter/index.d.ts +1 -1
- package/es/components/search-filter/src/search-filter.vue.d.ts +1 -1
- package/es/components/select-all/index.d.ts +1 -1
- package/es/components/select-all/src/selectAll.vue.d.ts +1 -1
- package/es/components/staffs-selector/index.d.ts +3 -3
- package/es/components/staffs-selector/index.js +2 -2
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +3 -3
- package/lib/components/button/index.d.ts +1 -1
- package/lib/components/button/src/button.vue.d.ts +1 -1
- package/lib/components/editor/index.d.ts +1 -1
- package/lib/components/editor/src/editor.vue.d.ts +1 -1
- package/lib/components/float-table/index.d.ts +2 -2
- package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
- package/lib/components/form-create/index.js +97 -48
- package/lib/components/form-designer/index.js +7 -3
- package/lib/components/search-filter/index.d.ts +1 -1
- package/lib/components/search-filter/src/search-filter.vue.d.ts +1 -1
- package/lib/components/select-all/index.d.ts +1 -1
- package/lib/components/select-all/src/selectAll.vue.d.ts +1 -1
- package/lib/components/staffs-selector/index.d.ts +3 -3
- package/lib/components/staffs-selector/index.js +2 -2
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +3 -3
- package/package.json +1 -1
- package/types/components/button/index.d.ts +1 -1
- package/types/components/button/src/button.vue.d.ts +1 -1
- package/types/components/editor/index.d.ts +1 -1
- package/types/components/editor/src/editor.vue.d.ts +1 -1
- package/types/components/float-table/index.d.ts +2 -2
- package/types/components/float-table/src/float-table.vue.d.ts +2 -2
- package/types/components/search-filter/index.d.ts +1 -1
- package/types/components/search-filter/src/search-filter.vue.d.ts +1 -1
- package/types/components/select-all/index.d.ts +1 -1
- package/types/components/select-all/src/selectAll.vue.d.ts +1 -1
- package/types/components/staffs-selector/index.d.ts +3 -3
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +3 -3
|
@@ -78,7 +78,7 @@ declare const BmButton: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
78
78
|
onMousedown: {
|
|
79
79
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
80
80
|
};
|
|
81
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
81
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "htmlType" | "loading" | "disabled" | "ghost" | "block" | "danger">;
|
|
82
82
|
$attrs: {
|
|
83
83
|
[x: string]: unknown;
|
|
84
84
|
};
|
|
@@ -80,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
onMousedown: {
|
|
81
81
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
82
82
|
};
|
|
83
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
83
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "htmlType" | "loading" | "disabled" | "ghost" | "block" | "danger">;
|
|
84
84
|
$attrs: {
|
|
85
85
|
[x: string]: unknown;
|
|
86
86
|
};
|
|
@@ -294,8 +294,8 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
294
294
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
value: string;
|
|
298
297
|
disabled: boolean;
|
|
298
|
+
value: string;
|
|
299
299
|
options: {
|
|
300
300
|
[key: string]: any;
|
|
301
301
|
};
|
|
@@ -294,8 +294,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
294
294
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
value: string;
|
|
298
297
|
disabled: boolean;
|
|
298
|
+
value: string;
|
|
299
299
|
options: {
|
|
300
300
|
[key: string]: any;
|
|
301
301
|
};
|
|
@@ -42,9 +42,9 @@ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithI
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) |
|
|
47
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -42,9 +42,9 @@ declare const _default: {
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) |
|
|
47
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -1354,7 +1354,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1354
1354
|
);
|
|
1355
1355
|
const productInputSlots = reactive([]);
|
|
1356
1356
|
const formData = computed(() => props.formCreateInject.api.bind());
|
|
1357
|
-
const queryProductInfoDebounce = debounce(handlePressEnter,
|
|
1357
|
+
const queryProductInfoDebounce = debounce(handlePressEnter, 500);
|
|
1358
1358
|
function isShow(key) {
|
|
1359
1359
|
return props.rule.config.tableAdvancedFeatures.includes(key);
|
|
1360
1360
|
}
|
|
@@ -1490,7 +1490,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1490
1490
|
});
|
|
1491
1491
|
}
|
|
1492
1492
|
function handleImport() {
|
|
1493
|
-
|
|
1493
|
+
if (importDisabled()) {
|
|
1494
|
+
message.error("\u8BF7\u5148\u9009\u62E9\u5E97\u94FA\uFF01");
|
|
1495
|
+
} else {
|
|
1496
|
+
inputRef.value.click();
|
|
1497
|
+
}
|
|
1494
1498
|
}
|
|
1495
1499
|
function emitChange() {
|
|
1496
1500
|
emits("change", data);
|
|
@@ -1498,13 +1502,15 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1498
1502
|
async function queryProductInfo(rule, row) {
|
|
1499
1503
|
const field = rule.field;
|
|
1500
1504
|
const associatedFields = rule?.config?.associatedFields;
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1505
|
+
let result = void 0;
|
|
1506
|
+
if (row[field]) {
|
|
1507
|
+
result = await props.extraConfig.product.fetch({ productCode: row[field] });
|
|
1508
|
+
}
|
|
1509
|
+
if (associatedFields.length)
|
|
1510
|
+
associatedFields.forEach((item) => {
|
|
1511
|
+
row[field + item.value] = result ? result[productInfoKeyMap[item.value]] : void 0;
|
|
1512
|
+
});
|
|
1513
|
+
return result;
|
|
1508
1514
|
}
|
|
1509
1515
|
function handleChange(e) {
|
|
1510
1516
|
const file = e.target.files[0];
|
|
@@ -1630,11 +1636,33 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1630
1636
|
}
|
|
1631
1637
|
if (rule.name === "people" || rule.name === "department") {
|
|
1632
1638
|
const limit = rule.props.limit;
|
|
1633
|
-
value = value.split("\u3001")
|
|
1639
|
+
value = value.split("\u3001");
|
|
1634
1640
|
if (limit === 1 && value.length > limit) {
|
|
1635
1641
|
error = `${title}\u6700\u591A\u53EA\u80FD\u9009\u4E00\u4E2A`;
|
|
1636
1642
|
break;
|
|
1637
1643
|
}
|
|
1644
|
+
let infoExist = true;
|
|
1645
|
+
const result = [];
|
|
1646
|
+
const fieldNames = props.extraConfig[rule.name].fieldNames;
|
|
1647
|
+
for (const id of value) {
|
|
1648
|
+
const info = await props.extraConfig[rule.name].getInfo(id);
|
|
1649
|
+
if (info) {
|
|
1650
|
+
result.push({
|
|
1651
|
+
key: id,
|
|
1652
|
+
title: info.name,
|
|
1653
|
+
[fieldNames.value]: id,
|
|
1654
|
+
[fieldNames.label]: info.name
|
|
1655
|
+
});
|
|
1656
|
+
} else {
|
|
1657
|
+
infoExist = false;
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
if (!infoExist) {
|
|
1661
|
+
error = `${title}\u67E5\u8BE2\u7684\u4FE1\u606F\u4E0D\u5B58\u5728`;
|
|
1662
|
+
break;
|
|
1663
|
+
} else {
|
|
1664
|
+
value = result;
|
|
1665
|
+
}
|
|
1638
1666
|
}
|
|
1639
1667
|
if (rule.name === "product") {
|
|
1640
1668
|
const productInfo = await queryProductInfo(rule, row);
|
|
@@ -1674,6 +1702,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1674
1702
|
function handleProductInputChange(rule, row) {
|
|
1675
1703
|
queryProductInfoDebounce(rule, row);
|
|
1676
1704
|
}
|
|
1705
|
+
function importDisabled() {
|
|
1706
|
+
return productInputSlots.filter((item) => item.config?.dataFiltering).some((item) => !formData.value[item.config.dataFiltering]);
|
|
1707
|
+
}
|
|
1677
1708
|
watch(
|
|
1678
1709
|
() => props.rule,
|
|
1679
1710
|
() => {
|
|
@@ -1858,6 +1889,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1858
1889
|
activePane2.tableRule = getTableRule(result);
|
|
1859
1890
|
});
|
|
1860
1891
|
}
|
|
1892
|
+
function handleSelectFromModel(tempId) {
|
|
1893
|
+
const activePane2 = getAcitvePane();
|
|
1894
|
+
delete activePane2.tableData;
|
|
1895
|
+
handleSelect(tempId);
|
|
1896
|
+
}
|
|
1861
1897
|
function getAcitvePane() {
|
|
1862
1898
|
return panes.find((pane) => pane.key === activeKey.value);
|
|
1863
1899
|
}
|
|
@@ -1918,36 +1954,42 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1918
1954
|
4: (txt) => /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(txt)
|
|
1919
1955
|
};
|
|
1920
1956
|
const activePane2 = getAcitvePane();
|
|
1921
|
-
const childRules =
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1957
|
+
const childRules = [];
|
|
1958
|
+
if (preSetItems) {
|
|
1959
|
+
childRules.push(
|
|
1960
|
+
...preSetItems.split(",").map((preSetItem) => ({
|
|
1961
|
+
name: "product",
|
|
1962
|
+
title: {
|
|
1963
|
+
title: preSetItem
|
|
1964
|
+
},
|
|
1965
|
+
field: preSetItem,
|
|
1966
|
+
effect: {
|
|
1967
|
+
required: true
|
|
1968
|
+
},
|
|
1969
|
+
props: {
|
|
1970
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
1971
|
+
},
|
|
1972
|
+
config: {
|
|
1973
|
+
associatedFields: coverageArr.filter((coverage) => {
|
|
1974
|
+
if (coverage.fieldType === 4) {
|
|
1975
|
+
const extraValues = JSON.parse(coverage.extraValues);
|
|
1976
|
+
return extraValues.fieldName === preSetItem;
|
|
1977
|
+
} else {
|
|
1978
|
+
return false;
|
|
1979
|
+
}
|
|
1980
|
+
}).map((coverage) => {
|
|
1981
|
+
const extraValues = JSON.parse(coverage.extraValues);
|
|
1982
|
+
return {
|
|
1983
|
+
value: extraValues.presetFieldName,
|
|
1984
|
+
label: extraValues.presetFieldName
|
|
1985
|
+
};
|
|
1986
|
+
})
|
|
1940
1987
|
}
|
|
1941
|
-
})
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
};
|
|
1947
|
-
})
|
|
1948
|
-
}
|
|
1949
|
-
})).concat(
|
|
1950
|
-
coverageArr.filter((coverage) => coverage.isEdit).map((coverage) => {
|
|
1988
|
+
}))
|
|
1989
|
+
);
|
|
1990
|
+
}
|
|
1991
|
+
childRules.push(
|
|
1992
|
+
...coverageArr.filter((coverage) => coverage.isEdit).map((coverage) => {
|
|
1951
1993
|
const extraValues = JSON.parse(coverage.extraValues);
|
|
1952
1994
|
const value = {
|
|
1953
1995
|
name: fieldTypeMap[coverage.fieldType],
|
|
@@ -2321,7 +2363,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2321
2363
|
"main-shop-value": unref(mainShopValue),
|
|
2322
2364
|
"fetch-material-type": __props.extraConfig.materialTemp.fetchMaterialType,
|
|
2323
2365
|
"fetch-material-temp": __props.extraConfig.materialTemp.fetchMaterialTemp,
|
|
2324
|
-
onSelect:
|
|
2366
|
+
onSelect: handleSelectFromModel
|
|
2325
2367
|
}, null, 8, ["visible", "main-shop-value", "fetch-material-type", "fetch-material-temp"])
|
|
2326
2368
|
], 64);
|
|
2327
2369
|
};
|
|
@@ -2415,7 +2457,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2415
2457
|
};
|
|
2416
2458
|
const unitMap = ["\u652F", "\u74F6", "\u5957", "\u7EC4", "\u7BB1", "\u4E2A", "\u5F20"];
|
|
2417
2459
|
const formData = computed(() => props.formCreateInject.api.bind());
|
|
2418
|
-
const debounceFn = debounce(handleBlur,
|
|
2460
|
+
const debounceFn = debounce(handleBlur, 500);
|
|
2419
2461
|
const inputValue = ref(props.defalutValue);
|
|
2420
2462
|
async function fetch(value) {
|
|
2421
2463
|
return productInfo.value = await props.extraConfig.product.fetch({
|
|
@@ -2425,14 +2467,21 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2425
2467
|
}
|
|
2426
2468
|
function handleBlur(evt) {
|
|
2427
2469
|
const value = evt.target.value;
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2470
|
+
if (value) {
|
|
2471
|
+
fetch(value).then((result) => {
|
|
2472
|
+
if (Object.keys(result).length) {
|
|
2473
|
+
emitChange(value);
|
|
2474
|
+
} else {
|
|
2475
|
+
emitChange("");
|
|
2476
|
+
inputValue.value = "";
|
|
2477
|
+
}
|
|
2478
|
+
}).catch(() => {
|
|
2479
|
+
emitChange("");
|
|
2433
2480
|
inputValue.value = "";
|
|
2434
|
-
}
|
|
2435
|
-
}
|
|
2481
|
+
});
|
|
2482
|
+
} else {
|
|
2483
|
+
emitChange("");
|
|
2484
|
+
}
|
|
2436
2485
|
}
|
|
2437
2486
|
function handleChange(evt) {
|
|
2438
2487
|
debounceFn(evt);
|
|
@@ -4006,8 +4006,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4006
4006
|
if (newIndex >= 0) {
|
|
4007
4007
|
setActiveRule(parentList[newIndex]);
|
|
4008
4008
|
} else {
|
|
4009
|
-
|
|
4010
|
-
activeParentRule.value = widgetFormRules;
|
|
4009
|
+
resetActiveRule();
|
|
4011
4010
|
}
|
|
4012
4011
|
}
|
|
4013
4012
|
}
|
|
@@ -4156,6 +4155,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4156
4155
|
requiredRule.props.disabled = !!flowCondition[activeRule.value.field];
|
|
4157
4156
|
}
|
|
4158
4157
|
}
|
|
4158
|
+
function resetActiveRule() {
|
|
4159
|
+
activeRule.value = {};
|
|
4160
|
+
activeParentRule.value = widgetFormRules;
|
|
4161
|
+
}
|
|
4159
4162
|
watch(
|
|
4160
4163
|
() => props.formRules,
|
|
4161
4164
|
(formRules) => {
|
|
@@ -4183,7 +4186,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4183
4186
|
expose({
|
|
4184
4187
|
getFormRule,
|
|
4185
4188
|
getRule,
|
|
4186
|
-
validate
|
|
4189
|
+
validate,
|
|
4190
|
+
resetActiveRule
|
|
4187
4191
|
});
|
|
4188
4192
|
return (_ctx, _cache) => {
|
|
4189
4193
|
const _component_ACol = resolveComponent("ACol");
|
|
@@ -217,9 +217,9 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
217
217
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
|
+
loading: boolean;
|
|
220
221
|
labelCol: Record<string, any>;
|
|
221
222
|
value: Record<string, any>;
|
|
222
|
-
loading: boolean;
|
|
223
223
|
showExpandBtn: boolean;
|
|
224
224
|
showSearchIcon: boolean;
|
|
225
225
|
expandPlacement: "left" | "right";
|
|
@@ -217,9 +217,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
217
217
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
|
+
loading: boolean;
|
|
220
221
|
labelCol: Record<string, any>;
|
|
221
222
|
value: Record<string, any>;
|
|
222
|
-
loading: boolean;
|
|
223
223
|
showExpandBtn: boolean;
|
|
224
224
|
showSearchIcon: boolean;
|
|
225
225
|
expandPlacement: "left" | "right";
|
|
@@ -210,7 +210,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
210
210
|
type: BooleanConstructor;
|
|
211
211
|
default: any;
|
|
212
212
|
};
|
|
213
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
213
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "loading" | "disabled" | "bordered" | "choiceTransitionName" | "open" | "virtual" | "dropdownMatchSelectWidth" | "autofocus" | "showSearch" | "defaultOpen" | "allowClear" | "showArrow" | "autoClearSearchValue" | "filterOption" | "defaultActiveFirstOption" | "labelInValue">;
|
|
214
214
|
$attrs: {
|
|
215
215
|
[x: string]: unknown;
|
|
216
216
|
};
|
|
@@ -210,7 +210,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
210
210
|
type: BooleanConstructor;
|
|
211
211
|
default: any;
|
|
212
212
|
};
|
|
213
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
213
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "loading" | "disabled" | "bordered" | "choiceTransitionName" | "open" | "virtual" | "dropdownMatchSelectWidth" | "autofocus" | "showSearch" | "defaultOpen" | "allowClear" | "showArrow" | "autoClearSearchValue" | "filterOption" | "defaultActiveFirstOption" | "labelInValue">;
|
|
214
214
|
$attrs: {
|
|
215
215
|
[x: string]: unknown;
|
|
216
216
|
};
|
|
@@ -910,9 +910,9 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
910
910
|
searchVal: import("vue").Ref<string>;
|
|
911
911
|
selectAll: import("vue").Ref<boolean>;
|
|
912
912
|
indeterminate: import("vue").Ref<boolean>;
|
|
913
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
913
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
914
914
|
[key: string]: any;
|
|
915
|
-
}> | null | undefined) |
|
|
915
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
916
916
|
[key: string]: any;
|
|
917
917
|
}> | null | undefined)[]>;
|
|
918
918
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -1084,9 +1084,9 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
1084
1084
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1085
1085
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
1086
1086
|
}, {
|
|
1087
|
+
title: string;
|
|
1087
1088
|
mode: string;
|
|
1088
1089
|
showCount: boolean;
|
|
1089
|
-
title: string;
|
|
1090
1090
|
visible: boolean;
|
|
1091
1091
|
unitStr: string;
|
|
1092
1092
|
limit: number;
|
|
@@ -782,8 +782,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
782
782
|
function summitSelect() {
|
|
783
783
|
if (typeof selected.value === "string") {
|
|
784
784
|
let data = selectState.dataMap.get(String(selected.value));
|
|
785
|
-
emit("update:select", data);
|
|
786
|
-
emit("change", data);
|
|
785
|
+
emit("update:select", [data]);
|
|
786
|
+
emit("change", [data]);
|
|
787
787
|
} else if (props.mode === MODE.MULTIPLE) {
|
|
788
788
|
let arr = computeSelected.value.map((key) => findDataByKey(key));
|
|
789
789
|
emit("update:select", arr);
|
|
@@ -28,9 +28,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
searchVal: import("vue").Ref<string>;
|
|
29
29
|
selectAll: import("vue").Ref<boolean>;
|
|
30
30
|
indeterminate: import("vue").Ref<boolean>;
|
|
31
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
32
32
|
[key: string]: any;
|
|
33
|
-
}> | null | undefined) |
|
|
33
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
34
34
|
[key: string]: any;
|
|
35
35
|
}> | null | undefined)[]>;
|
|
36
36
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -910,9 +910,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
910
910
|
searchVal: import("vue").Ref<string>;
|
|
911
911
|
selectAll: import("vue").Ref<boolean>;
|
|
912
912
|
indeterminate: import("vue").Ref<boolean>;
|
|
913
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
913
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
914
914
|
[key: string]: any;
|
|
915
|
-
}> | null | undefined) |
|
|
915
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
916
916
|
[key: string]: any;
|
|
917
917
|
}> | null | undefined)[]>;
|
|
918
918
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -1084,9 +1084,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1084
1084
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1085
1085
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
1086
1086
|
}, {
|
|
1087
|
+
title: string;
|
|
1087
1088
|
mode: string;
|
|
1088
1089
|
showCount: boolean;
|
|
1089
|
-
title: string;
|
|
1090
1090
|
visible: boolean;
|
|
1091
1091
|
unitStr: string;
|
|
1092
1092
|
limit: number;
|
|
@@ -78,7 +78,7 @@ declare const BmButton: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
78
78
|
onMousedown: {
|
|
79
79
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
80
80
|
};
|
|
81
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
81
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "htmlType" | "loading" | "disabled" | "ghost" | "block" | "danger">;
|
|
82
82
|
$attrs: {
|
|
83
83
|
[x: string]: unknown;
|
|
84
84
|
};
|
|
@@ -80,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
onMousedown: {
|
|
81
81
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
82
82
|
};
|
|
83
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
83
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "htmlType" | "loading" | "disabled" | "ghost" | "block" | "danger">;
|
|
84
84
|
$attrs: {
|
|
85
85
|
[x: string]: unknown;
|
|
86
86
|
};
|
|
@@ -294,8 +294,8 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
294
294
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
value: string;
|
|
298
297
|
disabled: boolean;
|
|
298
|
+
value: string;
|
|
299
299
|
options: {
|
|
300
300
|
[key: string]: any;
|
|
301
301
|
};
|
|
@@ -294,8 +294,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
294
294
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
value: string;
|
|
298
297
|
disabled: boolean;
|
|
298
|
+
value: string;
|
|
299
299
|
options: {
|
|
300
300
|
[key: string]: any;
|
|
301
301
|
};
|
|
@@ -42,9 +42,9 @@ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithI
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) |
|
|
47
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -42,9 +42,9 @@ declare const _default: {
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) |
|
|
47
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -1365,7 +1365,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1365
1365
|
);
|
|
1366
1366
|
const productInputSlots = vue.reactive([]);
|
|
1367
1367
|
const formData = vue.computed(() => props.formCreateInject.api.bind());
|
|
1368
|
-
const queryProductInfoDebounce = lodashEs.debounce(handlePressEnter,
|
|
1368
|
+
const queryProductInfoDebounce = lodashEs.debounce(handlePressEnter, 500);
|
|
1369
1369
|
function isShow(key) {
|
|
1370
1370
|
return props.rule.config.tableAdvancedFeatures.includes(key);
|
|
1371
1371
|
}
|
|
@@ -1501,7 +1501,11 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1501
1501
|
});
|
|
1502
1502
|
}
|
|
1503
1503
|
function handleImport() {
|
|
1504
|
-
|
|
1504
|
+
if (importDisabled()) {
|
|
1505
|
+
antDesignVue.message.error("\u8BF7\u5148\u9009\u62E9\u5E97\u94FA\uFF01");
|
|
1506
|
+
} else {
|
|
1507
|
+
inputRef.value.click();
|
|
1508
|
+
}
|
|
1505
1509
|
}
|
|
1506
1510
|
function emitChange() {
|
|
1507
1511
|
emits("change", data);
|
|
@@ -1509,13 +1513,15 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1509
1513
|
async function queryProductInfo(rule, row) {
|
|
1510
1514
|
const field = rule.field;
|
|
1511
1515
|
const associatedFields = rule?.config?.associatedFields;
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1516
|
+
let result = void 0;
|
|
1517
|
+
if (row[field]) {
|
|
1518
|
+
result = await props.extraConfig.product.fetch({ productCode: row[field] });
|
|
1519
|
+
}
|
|
1520
|
+
if (associatedFields.length)
|
|
1521
|
+
associatedFields.forEach((item) => {
|
|
1522
|
+
row[field + item.value] = result ? result[productInfoKeyMap[item.value]] : void 0;
|
|
1523
|
+
});
|
|
1524
|
+
return result;
|
|
1519
1525
|
}
|
|
1520
1526
|
function handleChange(e) {
|
|
1521
1527
|
const file = e.target.files[0];
|
|
@@ -1641,11 +1647,33 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1641
1647
|
}
|
|
1642
1648
|
if (rule.name === "people" || rule.name === "department") {
|
|
1643
1649
|
const limit = rule.props.limit;
|
|
1644
|
-
value = value.split("\u3001")
|
|
1650
|
+
value = value.split("\u3001");
|
|
1645
1651
|
if (limit === 1 && value.length > limit) {
|
|
1646
1652
|
error = `${title}\u6700\u591A\u53EA\u80FD\u9009\u4E00\u4E2A`;
|
|
1647
1653
|
break;
|
|
1648
1654
|
}
|
|
1655
|
+
let infoExist = true;
|
|
1656
|
+
const result = [];
|
|
1657
|
+
const fieldNames = props.extraConfig[rule.name].fieldNames;
|
|
1658
|
+
for (const id of value) {
|
|
1659
|
+
const info = await props.extraConfig[rule.name].getInfo(id);
|
|
1660
|
+
if (info) {
|
|
1661
|
+
result.push({
|
|
1662
|
+
key: id,
|
|
1663
|
+
title: info.name,
|
|
1664
|
+
[fieldNames.value]: id,
|
|
1665
|
+
[fieldNames.label]: info.name
|
|
1666
|
+
});
|
|
1667
|
+
} else {
|
|
1668
|
+
infoExist = false;
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
if (!infoExist) {
|
|
1672
|
+
error = `${title}\u67E5\u8BE2\u7684\u4FE1\u606F\u4E0D\u5B58\u5728`;
|
|
1673
|
+
break;
|
|
1674
|
+
} else {
|
|
1675
|
+
value = result;
|
|
1676
|
+
}
|
|
1649
1677
|
}
|
|
1650
1678
|
if (rule.name === "product") {
|
|
1651
1679
|
const productInfo = await queryProductInfo(rule, row);
|
|
@@ -1685,6 +1713,9 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1685
1713
|
function handleProductInputChange(rule, row) {
|
|
1686
1714
|
queryProductInfoDebounce(rule, row);
|
|
1687
1715
|
}
|
|
1716
|
+
function importDisabled() {
|
|
1717
|
+
return productInputSlots.filter((item) => item.config?.dataFiltering).some((item) => !formData.value[item.config.dataFiltering]);
|
|
1718
|
+
}
|
|
1688
1719
|
vue.watch(
|
|
1689
1720
|
() => props.rule,
|
|
1690
1721
|
() => {
|
|
@@ -1869,6 +1900,11 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1869
1900
|
activePane2.tableRule = getTableRule(result);
|
|
1870
1901
|
});
|
|
1871
1902
|
}
|
|
1903
|
+
function handleSelectFromModel(tempId) {
|
|
1904
|
+
const activePane2 = getAcitvePane();
|
|
1905
|
+
delete activePane2.tableData;
|
|
1906
|
+
handleSelect(tempId);
|
|
1907
|
+
}
|
|
1872
1908
|
function getAcitvePane() {
|
|
1873
1909
|
return panes.find((pane) => pane.key === activeKey.value);
|
|
1874
1910
|
}
|
|
@@ -1929,36 +1965,42 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1929
1965
|
4: (txt) => /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(txt)
|
|
1930
1966
|
};
|
|
1931
1967
|
const activePane2 = getAcitvePane();
|
|
1932
|
-
const childRules =
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1968
|
+
const childRules = [];
|
|
1969
|
+
if (preSetItems) {
|
|
1970
|
+
childRules.push(
|
|
1971
|
+
...preSetItems.split(",").map((preSetItem) => ({
|
|
1972
|
+
name: "product",
|
|
1973
|
+
title: {
|
|
1974
|
+
title: preSetItem
|
|
1975
|
+
},
|
|
1976
|
+
field: preSetItem,
|
|
1977
|
+
effect: {
|
|
1978
|
+
required: true
|
|
1979
|
+
},
|
|
1980
|
+
props: {
|
|
1981
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
1982
|
+
},
|
|
1983
|
+
config: {
|
|
1984
|
+
associatedFields: coverageArr.filter((coverage) => {
|
|
1985
|
+
if (coverage.fieldType === 4) {
|
|
1986
|
+
const extraValues = JSON.parse(coverage.extraValues);
|
|
1987
|
+
return extraValues.fieldName === preSetItem;
|
|
1988
|
+
} else {
|
|
1989
|
+
return false;
|
|
1990
|
+
}
|
|
1991
|
+
}).map((coverage) => {
|
|
1992
|
+
const extraValues = JSON.parse(coverage.extraValues);
|
|
1993
|
+
return {
|
|
1994
|
+
value: extraValues.presetFieldName,
|
|
1995
|
+
label: extraValues.presetFieldName
|
|
1996
|
+
};
|
|
1997
|
+
})
|
|
1951
1998
|
}
|
|
1952
|
-
})
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
};
|
|
1958
|
-
})
|
|
1959
|
-
}
|
|
1960
|
-
})).concat(
|
|
1961
|
-
coverageArr.filter((coverage) => coverage.isEdit).map((coverage) => {
|
|
1999
|
+
}))
|
|
2000
|
+
);
|
|
2001
|
+
}
|
|
2002
|
+
childRules.push(
|
|
2003
|
+
...coverageArr.filter((coverage) => coverage.isEdit).map((coverage) => {
|
|
1962
2004
|
const extraValues = JSON.parse(coverage.extraValues);
|
|
1963
2005
|
const value = {
|
|
1964
2006
|
name: fieldTypeMap[coverage.fieldType],
|
|
@@ -2332,7 +2374,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2332
2374
|
"main-shop-value": vue.unref(mainShopValue),
|
|
2333
2375
|
"fetch-material-type": __props.extraConfig.materialTemp.fetchMaterialType,
|
|
2334
2376
|
"fetch-material-temp": __props.extraConfig.materialTemp.fetchMaterialTemp,
|
|
2335
|
-
onSelect:
|
|
2377
|
+
onSelect: handleSelectFromModel
|
|
2336
2378
|
}, null, 8, ["visible", "main-shop-value", "fetch-material-type", "fetch-material-temp"])
|
|
2337
2379
|
], 64);
|
|
2338
2380
|
};
|
|
@@ -2426,7 +2468,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2426
2468
|
};
|
|
2427
2469
|
const unitMap = ["\u652F", "\u74F6", "\u5957", "\u7EC4", "\u7BB1", "\u4E2A", "\u5F20"];
|
|
2428
2470
|
const formData = vue.computed(() => props.formCreateInject.api.bind());
|
|
2429
|
-
const debounceFn = lodashEs.debounce(handleBlur,
|
|
2471
|
+
const debounceFn = lodashEs.debounce(handleBlur, 500);
|
|
2430
2472
|
const inputValue = vue.ref(props.defalutValue);
|
|
2431
2473
|
async function fetch(value) {
|
|
2432
2474
|
return productInfo.value = await props.extraConfig.product.fetch({
|
|
@@ -2436,14 +2478,21 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2436
2478
|
}
|
|
2437
2479
|
function handleBlur(evt) {
|
|
2438
2480
|
const value = evt.target.value;
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2481
|
+
if (value) {
|
|
2482
|
+
fetch(value).then((result) => {
|
|
2483
|
+
if (Object.keys(result).length) {
|
|
2484
|
+
emitChange(value);
|
|
2485
|
+
} else {
|
|
2486
|
+
emitChange("");
|
|
2487
|
+
inputValue.value = "";
|
|
2488
|
+
}
|
|
2489
|
+
}).catch(() => {
|
|
2490
|
+
emitChange("");
|
|
2444
2491
|
inputValue.value = "";
|
|
2445
|
-
}
|
|
2446
|
-
}
|
|
2492
|
+
});
|
|
2493
|
+
} else {
|
|
2494
|
+
emitChange("");
|
|
2495
|
+
}
|
|
2447
2496
|
}
|
|
2448
2497
|
function handleChange(evt) {
|
|
2449
2498
|
debounceFn(evt);
|
|
@@ -4016,8 +4016,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4016
4016
|
if (newIndex >= 0) {
|
|
4017
4017
|
setActiveRule(parentList[newIndex]);
|
|
4018
4018
|
} else {
|
|
4019
|
-
|
|
4020
|
-
activeParentRule.value = widgetFormRules;
|
|
4019
|
+
resetActiveRule();
|
|
4021
4020
|
}
|
|
4022
4021
|
}
|
|
4023
4022
|
}
|
|
@@ -4166,6 +4165,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4166
4165
|
requiredRule.props.disabled = !!flowCondition[activeRule.value.field];
|
|
4167
4166
|
}
|
|
4168
4167
|
}
|
|
4168
|
+
function resetActiveRule() {
|
|
4169
|
+
activeRule.value = {};
|
|
4170
|
+
activeParentRule.value = widgetFormRules;
|
|
4171
|
+
}
|
|
4169
4172
|
vue.watch(
|
|
4170
4173
|
() => props.formRules,
|
|
4171
4174
|
(formRules) => {
|
|
@@ -4193,7 +4196,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4193
4196
|
expose({
|
|
4194
4197
|
getFormRule,
|
|
4195
4198
|
getRule,
|
|
4196
|
-
validate
|
|
4199
|
+
validate,
|
|
4200
|
+
resetActiveRule
|
|
4197
4201
|
});
|
|
4198
4202
|
return (_ctx, _cache) => {
|
|
4199
4203
|
const _component_ACol = vue.resolveComponent("ACol");
|
|
@@ -217,9 +217,9 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
217
217
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
|
+
loading: boolean;
|
|
220
221
|
labelCol: Record<string, any>;
|
|
221
222
|
value: Record<string, any>;
|
|
222
|
-
loading: boolean;
|
|
223
223
|
showExpandBtn: boolean;
|
|
224
224
|
showSearchIcon: boolean;
|
|
225
225
|
expandPlacement: "left" | "right";
|
|
@@ -217,9 +217,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
217
217
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
|
+
loading: boolean;
|
|
220
221
|
labelCol: Record<string, any>;
|
|
221
222
|
value: Record<string, any>;
|
|
222
|
-
loading: boolean;
|
|
223
223
|
showExpandBtn: boolean;
|
|
224
224
|
showSearchIcon: boolean;
|
|
225
225
|
expandPlacement: "left" | "right";
|
|
@@ -210,7 +210,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
210
210
|
type: BooleanConstructor;
|
|
211
211
|
default: any;
|
|
212
212
|
};
|
|
213
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
213
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "loading" | "disabled" | "bordered" | "choiceTransitionName" | "open" | "virtual" | "dropdownMatchSelectWidth" | "autofocus" | "showSearch" | "defaultOpen" | "allowClear" | "showArrow" | "autoClearSearchValue" | "filterOption" | "defaultActiveFirstOption" | "labelInValue">;
|
|
214
214
|
$attrs: {
|
|
215
215
|
[x: string]: unknown;
|
|
216
216
|
};
|
|
@@ -210,7 +210,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
210
210
|
type: BooleanConstructor;
|
|
211
211
|
default: any;
|
|
212
212
|
};
|
|
213
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
213
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "loading" | "disabled" | "bordered" | "choiceTransitionName" | "open" | "virtual" | "dropdownMatchSelectWidth" | "autofocus" | "showSearch" | "defaultOpen" | "allowClear" | "showArrow" | "autoClearSearchValue" | "filterOption" | "defaultActiveFirstOption" | "labelInValue">;
|
|
214
214
|
$attrs: {
|
|
215
215
|
[x: string]: unknown;
|
|
216
216
|
};
|
|
@@ -910,9 +910,9 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
910
910
|
searchVal: import("vue").Ref<string>;
|
|
911
911
|
selectAll: import("vue").Ref<boolean>;
|
|
912
912
|
indeterminate: import("vue").Ref<boolean>;
|
|
913
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
913
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
914
914
|
[key: string]: any;
|
|
915
|
-
}> | null | undefined) |
|
|
915
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
916
916
|
[key: string]: any;
|
|
917
917
|
}> | null | undefined)[]>;
|
|
918
918
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -1084,9 +1084,9 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
1084
1084
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1085
1085
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
1086
1086
|
}, {
|
|
1087
|
+
title: string;
|
|
1087
1088
|
mode: string;
|
|
1088
1089
|
showCount: boolean;
|
|
1089
|
-
title: string;
|
|
1090
1090
|
visible: boolean;
|
|
1091
1091
|
unitStr: string;
|
|
1092
1092
|
limit: number;
|
|
@@ -786,8 +786,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
786
786
|
function summitSelect() {
|
|
787
787
|
if (typeof selected.value === "string") {
|
|
788
788
|
let data = selectState.dataMap.get(String(selected.value));
|
|
789
|
-
emit("update:select", data);
|
|
790
|
-
emit("change", data);
|
|
789
|
+
emit("update:select", [data]);
|
|
790
|
+
emit("change", [data]);
|
|
791
791
|
} else if (props.mode === MODE.MULTIPLE) {
|
|
792
792
|
let arr = computeSelected.value.map((key) => findDataByKey(key));
|
|
793
793
|
emit("update:select", arr);
|
|
@@ -28,9 +28,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
searchVal: import("vue").Ref<string>;
|
|
29
29
|
selectAll: import("vue").Ref<boolean>;
|
|
30
30
|
indeterminate: import("vue").Ref<boolean>;
|
|
31
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
32
32
|
[key: string]: any;
|
|
33
|
-
}> | null | undefined) |
|
|
33
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
34
34
|
[key: string]: any;
|
|
35
35
|
}> | null | undefined)[]>;
|
|
36
36
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -910,9 +910,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
910
910
|
searchVal: import("vue").Ref<string>;
|
|
911
911
|
selectAll: import("vue").Ref<boolean>;
|
|
912
912
|
indeterminate: import("vue").Ref<boolean>;
|
|
913
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
913
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
914
914
|
[key: string]: any;
|
|
915
|
-
}> | null | undefined) |
|
|
915
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
916
916
|
[key: string]: any;
|
|
917
917
|
}> | null | undefined)[]>;
|
|
918
918
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -1084,9 +1084,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1084
1084
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1085
1085
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
1086
1086
|
}, {
|
|
1087
|
+
title: string;
|
|
1087
1088
|
mode: string;
|
|
1088
1089
|
showCount: boolean;
|
|
1089
|
-
title: string;
|
|
1090
1090
|
visible: boolean;
|
|
1091
1091
|
unitStr: string;
|
|
1092
1092
|
limit: number;
|
package/package.json
CHANGED
|
@@ -78,7 +78,7 @@ declare const BmButton: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
78
78
|
onMousedown: {
|
|
79
79
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
80
80
|
};
|
|
81
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
81
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "htmlType" | "loading" | "disabled" | "ghost" | "block" | "danger">;
|
|
82
82
|
$attrs: {
|
|
83
83
|
[x: string]: unknown;
|
|
84
84
|
};
|
|
@@ -80,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
onMousedown: {
|
|
81
81
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
82
82
|
};
|
|
83
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
83
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "htmlType" | "loading" | "disabled" | "ghost" | "block" | "danger">;
|
|
84
84
|
$attrs: {
|
|
85
85
|
[x: string]: unknown;
|
|
86
86
|
};
|
|
@@ -294,8 +294,8 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
294
294
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
value: string;
|
|
298
297
|
disabled: boolean;
|
|
298
|
+
value: string;
|
|
299
299
|
options: {
|
|
300
300
|
[key: string]: any;
|
|
301
301
|
};
|
|
@@ -294,8 +294,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
294
294
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
value: string;
|
|
298
297
|
disabled: boolean;
|
|
298
|
+
value: string;
|
|
299
299
|
options: {
|
|
300
300
|
[key: string]: any;
|
|
301
301
|
};
|
|
@@ -42,9 +42,9 @@ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithI
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) |
|
|
47
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -42,9 +42,9 @@ declare const _default: {
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) |
|
|
47
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -217,9 +217,9 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
217
217
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
|
+
loading: boolean;
|
|
220
221
|
labelCol: Record<string, any>;
|
|
221
222
|
value: Record<string, any>;
|
|
222
|
-
loading: boolean;
|
|
223
223
|
showExpandBtn: boolean;
|
|
224
224
|
showSearchIcon: boolean;
|
|
225
225
|
expandPlacement: "left" | "right";
|
|
@@ -217,9 +217,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
217
217
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
|
+
loading: boolean;
|
|
220
221
|
labelCol: Record<string, any>;
|
|
221
222
|
value: Record<string, any>;
|
|
222
|
-
loading: boolean;
|
|
223
223
|
showExpandBtn: boolean;
|
|
224
224
|
showSearchIcon: boolean;
|
|
225
225
|
expandPlacement: "left" | "right";
|
|
@@ -210,7 +210,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
210
210
|
type: BooleanConstructor;
|
|
211
211
|
default: any;
|
|
212
212
|
};
|
|
213
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
213
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "loading" | "disabled" | "bordered" | "choiceTransitionName" | "open" | "virtual" | "dropdownMatchSelectWidth" | "autofocus" | "showSearch" | "defaultOpen" | "allowClear" | "showArrow" | "autoClearSearchValue" | "filterOption" | "defaultActiveFirstOption" | "labelInValue">;
|
|
214
214
|
$attrs: {
|
|
215
215
|
[x: string]: unknown;
|
|
216
216
|
};
|
|
@@ -210,7 +210,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
210
210
|
type: BooleanConstructor;
|
|
211
211
|
default: any;
|
|
212
212
|
};
|
|
213
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
213
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "loading" | "disabled" | "bordered" | "choiceTransitionName" | "open" | "virtual" | "dropdownMatchSelectWidth" | "autofocus" | "showSearch" | "defaultOpen" | "allowClear" | "showArrow" | "autoClearSearchValue" | "filterOption" | "defaultActiveFirstOption" | "labelInValue">;
|
|
214
214
|
$attrs: {
|
|
215
215
|
[x: string]: unknown;
|
|
216
216
|
};
|
|
@@ -910,9 +910,9 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
910
910
|
searchVal: import("vue").Ref<string>;
|
|
911
911
|
selectAll: import("vue").Ref<boolean>;
|
|
912
912
|
indeterminate: import("vue").Ref<boolean>;
|
|
913
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
913
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
914
914
|
[key: string]: any;
|
|
915
|
-
}> | null | undefined) |
|
|
915
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
916
916
|
[key: string]: any;
|
|
917
917
|
}> | null | undefined)[]>;
|
|
918
918
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -1084,9 +1084,9 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
1084
1084
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1085
1085
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
1086
1086
|
}, {
|
|
1087
|
+
title: string;
|
|
1087
1088
|
mode: string;
|
|
1088
1089
|
showCount: boolean;
|
|
1089
|
-
title: string;
|
|
1090
1090
|
visible: boolean;
|
|
1091
1091
|
unitStr: string;
|
|
1092
1092
|
limit: number;
|
|
@@ -28,9 +28,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
searchVal: import("vue").Ref<string>;
|
|
29
29
|
selectAll: import("vue").Ref<boolean>;
|
|
30
30
|
indeterminate: import("vue").Ref<boolean>;
|
|
31
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
32
32
|
[key: string]: any;
|
|
33
|
-
}> | null | undefined) |
|
|
33
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
34
34
|
[key: string]: any;
|
|
35
35
|
}> | null | undefined)[]>;
|
|
36
36
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -910,9 +910,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
910
910
|
searchVal: import("vue").Ref<string>;
|
|
911
911
|
selectAll: import("vue").Ref<boolean>;
|
|
912
912
|
indeterminate: import("vue").Ref<boolean>;
|
|
913
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
913
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
914
914
|
[key: string]: any;
|
|
915
|
-
}> | null | undefined) |
|
|
915
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
916
916
|
[key: string]: any;
|
|
917
917
|
}> | null | undefined)[]>;
|
|
918
918
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -1084,9 +1084,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1084
1084
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1085
1085
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
1086
1086
|
}, {
|
|
1087
|
+
title: string;
|
|
1087
1088
|
mode: string;
|
|
1088
1089
|
showCount: boolean;
|
|
1089
|
-
title: string;
|
|
1090
1090
|
visible: boolean;
|
|
1091
1091
|
unitStr: string;
|
|
1092
1092
|
limit: number;
|