bm-admin-ui 1.0.56-alpha → 1.0.58-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/form-create/index.js +111 -61
- 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 +1 -1
- package/es/components/staffs-selector/index.js +2 -2
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +1 -1
- 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/form-create/index.js +111 -61
- 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 +1 -1
- package/lib/components/staffs-selector/index.js +2 -2
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +1 -1
- 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/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 +1 -1
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +1 -1
|
@@ -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
|
};
|
|
@@ -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
|
}
|
|
@@ -1411,6 +1411,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1411
1411
|
return pre;
|
|
1412
1412
|
}, {});
|
|
1413
1413
|
}
|
|
1414
|
+
function productPicName(value, field) {
|
|
1415
|
+
return `${value}-${field}`;
|
|
1416
|
+
}
|
|
1414
1417
|
function getProductColumn(rule) {
|
|
1415
1418
|
const productName = `\u5546\u54C1${String(++productIndex).padStart(2, "0")}`;
|
|
1416
1419
|
const field = rule.field;
|
|
@@ -1429,7 +1432,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1429
1432
|
];
|
|
1430
1433
|
if (associatedFields.length) {
|
|
1431
1434
|
associatedFields.forEach((item) => {
|
|
1432
|
-
const childField =
|
|
1435
|
+
const childField = productPicName(item.value, field);
|
|
1433
1436
|
columns2.push({
|
|
1434
1437
|
field: childField,
|
|
1435
1438
|
title: `${item.label}-${productName}`,
|
|
@@ -1490,7 +1493,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1490
1493
|
});
|
|
1491
1494
|
}
|
|
1492
1495
|
function handleImport() {
|
|
1493
|
-
|
|
1496
|
+
if (importDisabled()) {
|
|
1497
|
+
message.error("\u8BF7\u5148\u9009\u62E9\u5E97\u94FA\uFF01");
|
|
1498
|
+
} else {
|
|
1499
|
+
inputRef.value.click();
|
|
1500
|
+
}
|
|
1494
1501
|
}
|
|
1495
1502
|
function emitChange() {
|
|
1496
1503
|
emits("change", data);
|
|
@@ -1498,13 +1505,15 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1498
1505
|
async function queryProductInfo(rule, row) {
|
|
1499
1506
|
const field = rule.field;
|
|
1500
1507
|
const associatedFields = rule?.config?.associatedFields;
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
+
let result = void 0;
|
|
1509
|
+
if (row[field]) {
|
|
1510
|
+
result = await props.extraConfig.product.fetch({ productCode: row[field] });
|
|
1511
|
+
}
|
|
1512
|
+
if (associatedFields.length)
|
|
1513
|
+
associatedFields.forEach((item) => {
|
|
1514
|
+
row[productPicName(item.value, field)] = result ? result[productInfoKeyMap[item.value]] : void 0;
|
|
1515
|
+
});
|
|
1516
|
+
return result;
|
|
1508
1517
|
}
|
|
1509
1518
|
function handleChange(e) {
|
|
1510
1519
|
const file = e.target.files[0];
|
|
@@ -1630,11 +1639,33 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1630
1639
|
}
|
|
1631
1640
|
if (rule.name === "people" || rule.name === "department") {
|
|
1632
1641
|
const limit = rule.props.limit;
|
|
1633
|
-
value = value.split("\u3001")
|
|
1642
|
+
value = value.split("\u3001");
|
|
1634
1643
|
if (limit === 1 && value.length > limit) {
|
|
1635
1644
|
error = `${title}\u6700\u591A\u53EA\u80FD\u9009\u4E00\u4E2A`;
|
|
1636
1645
|
break;
|
|
1637
1646
|
}
|
|
1647
|
+
let infoExist = true;
|
|
1648
|
+
const result = [];
|
|
1649
|
+
const fieldNames = props.extraConfig[rule.name].fieldNames;
|
|
1650
|
+
for (const id of value) {
|
|
1651
|
+
const info = await props.extraConfig[rule.name].getInfo(id);
|
|
1652
|
+
if (info) {
|
|
1653
|
+
result.push({
|
|
1654
|
+
key: id,
|
|
1655
|
+
title: info.name,
|
|
1656
|
+
[fieldNames.value]: id,
|
|
1657
|
+
[fieldNames.label]: info.name
|
|
1658
|
+
});
|
|
1659
|
+
} else {
|
|
1660
|
+
infoExist = false;
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
if (!infoExist) {
|
|
1664
|
+
error = `${title}\u67E5\u8BE2\u7684\u4FE1\u606F\u4E0D\u5B58\u5728`;
|
|
1665
|
+
break;
|
|
1666
|
+
} else {
|
|
1667
|
+
value = result;
|
|
1668
|
+
}
|
|
1638
1669
|
}
|
|
1639
1670
|
if (rule.name === "product") {
|
|
1640
1671
|
const productInfo = await queryProductInfo(rule, row);
|
|
@@ -1674,6 +1705,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1674
1705
|
function handleProductInputChange(rule, row) {
|
|
1675
1706
|
queryProductInfoDebounce(rule, row);
|
|
1676
1707
|
}
|
|
1708
|
+
function importDisabled() {
|
|
1709
|
+
return productInputSlots.filter((item) => item.config?.dataFiltering).some((item) => !formData.value[item.config.dataFiltering]);
|
|
1710
|
+
}
|
|
1677
1711
|
watch(
|
|
1678
1712
|
() => props.rule,
|
|
1679
1713
|
() => {
|
|
@@ -1836,13 +1870,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1836
1870
|
const mainShopValue = inject("mainShopValue");
|
|
1837
1871
|
const activeKey = ref("\u7D20\u67501");
|
|
1838
1872
|
const visible = ref(false);
|
|
1839
|
-
const panes = reactive([
|
|
1840
|
-
{
|
|
1841
|
-
key: "\u7D20\u67501",
|
|
1842
|
-
title: "\u7D20\u67501",
|
|
1843
|
-
tempSelected: {}
|
|
1844
|
-
}
|
|
1845
|
-
]);
|
|
1873
|
+
const panes = reactive([initPane("\u7D20\u67501")]);
|
|
1846
1874
|
computed(
|
|
1847
1875
|
() => panes.find((pane) => pane.key === activeKey.value)
|
|
1848
1876
|
);
|
|
@@ -1858,6 +1886,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1858
1886
|
activePane2.tableRule = getTableRule(result);
|
|
1859
1887
|
});
|
|
1860
1888
|
}
|
|
1889
|
+
function handleSelectFromModel(tempId) {
|
|
1890
|
+
const activePane2 = getAcitvePane();
|
|
1891
|
+
const index2 = panes.findIndex((pane) => pane.key === activeKey.value);
|
|
1892
|
+
panes.splice(index2, 1, initPane(activePane2.key));
|
|
1893
|
+
handleSelect(tempId);
|
|
1894
|
+
}
|
|
1861
1895
|
function getAcitvePane() {
|
|
1862
1896
|
return panes.find((pane) => pane.key === activeKey.value);
|
|
1863
1897
|
}
|
|
@@ -1918,36 +1952,42 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1918
1952
|
4: (txt) => /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(txt)
|
|
1919
1953
|
};
|
|
1920
1954
|
const activePane2 = getAcitvePane();
|
|
1921
|
-
const childRules =
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1955
|
+
const childRules = [];
|
|
1956
|
+
if (preSetItems) {
|
|
1957
|
+
childRules.push(
|
|
1958
|
+
...preSetItems.split(",").map((preSetItem) => ({
|
|
1959
|
+
name: "product",
|
|
1960
|
+
title: {
|
|
1961
|
+
title: preSetItem
|
|
1962
|
+
},
|
|
1963
|
+
field: preSetItem,
|
|
1964
|
+
effect: {
|
|
1965
|
+
required: true
|
|
1966
|
+
},
|
|
1967
|
+
props: {
|
|
1968
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
1969
|
+
},
|
|
1970
|
+
config: {
|
|
1971
|
+
associatedFields: coverageArr.filter((coverage) => {
|
|
1972
|
+
if (coverage.fieldType === 4) {
|
|
1973
|
+
const extraValues = JSON.parse(coverage.extraValues);
|
|
1974
|
+
return extraValues.fieldName === preSetItem;
|
|
1975
|
+
} else {
|
|
1976
|
+
return false;
|
|
1977
|
+
}
|
|
1978
|
+
}).map((coverage) => {
|
|
1979
|
+
const extraValues = JSON.parse(coverage.extraValues);
|
|
1980
|
+
return {
|
|
1981
|
+
value: extraValues.presetFieldName,
|
|
1982
|
+
label: extraValues.presetFieldName
|
|
1983
|
+
};
|
|
1984
|
+
})
|
|
1940
1985
|
}
|
|
1941
|
-
})
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
};
|
|
1947
|
-
})
|
|
1948
|
-
}
|
|
1949
|
-
})).concat(
|
|
1950
|
-
coverageArr.filter((coverage) => coverage.isEdit).map((coverage) => {
|
|
1986
|
+
}))
|
|
1987
|
+
);
|
|
1988
|
+
}
|
|
1989
|
+
childRules.push(
|
|
1990
|
+
...coverageArr.filter((coverage) => coverage.isEdit).map((coverage) => {
|
|
1951
1991
|
const extraValues = JSON.parse(coverage.extraValues);
|
|
1952
1992
|
const value = {
|
|
1953
1993
|
name: fieldTypeMap[coverage.fieldType],
|
|
@@ -2043,6 +2083,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2043
2083
|
delete activePane2.tempIdSelected;
|
|
2044
2084
|
}
|
|
2045
2085
|
}
|
|
2086
|
+
function initPane(value) {
|
|
2087
|
+
return {
|
|
2088
|
+
key: value,
|
|
2089
|
+
title: value,
|
|
2090
|
+
tempSelected: {}
|
|
2091
|
+
};
|
|
2092
|
+
}
|
|
2046
2093
|
props.value && initValue(props.value);
|
|
2047
2094
|
props.extraConfig.materialTemp.getDict().then((data) => {
|
|
2048
2095
|
measrueDicts.value = data;
|
|
@@ -2050,11 +2097,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2050
2097
|
watch(mainShopValue, () => {
|
|
2051
2098
|
panes.splice(0);
|
|
2052
2099
|
activeKey.value = "\u7D20\u67501";
|
|
2053
|
-
panes.push(
|
|
2054
|
-
key: "\u7D20\u67501",
|
|
2055
|
-
title: "\u7D20\u67501",
|
|
2056
|
-
tempSelected: {}
|
|
2057
|
-
});
|
|
2100
|
+
panes.push(initPane("\u7D20\u67501"));
|
|
2058
2101
|
});
|
|
2059
2102
|
watch(
|
|
2060
2103
|
() => panes,
|
|
@@ -2321,7 +2364,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2321
2364
|
"main-shop-value": unref(mainShopValue),
|
|
2322
2365
|
"fetch-material-type": __props.extraConfig.materialTemp.fetchMaterialType,
|
|
2323
2366
|
"fetch-material-temp": __props.extraConfig.materialTemp.fetchMaterialTemp,
|
|
2324
|
-
onSelect:
|
|
2367
|
+
onSelect: handleSelectFromModel
|
|
2325
2368
|
}, null, 8, ["visible", "main-shop-value", "fetch-material-type", "fetch-material-temp"])
|
|
2326
2369
|
], 64);
|
|
2327
2370
|
};
|
|
@@ -2415,7 +2458,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2415
2458
|
};
|
|
2416
2459
|
const unitMap = ["\u652F", "\u74F6", "\u5957", "\u7EC4", "\u7BB1", "\u4E2A", "\u5F20"];
|
|
2417
2460
|
const formData = computed(() => props.formCreateInject.api.bind());
|
|
2418
|
-
const debounceFn = debounce(handleBlur,
|
|
2461
|
+
const debounceFn = debounce(handleBlur, 500);
|
|
2419
2462
|
const inputValue = ref(props.defalutValue);
|
|
2420
2463
|
async function fetch(value) {
|
|
2421
2464
|
return productInfo.value = await props.extraConfig.product.fetch({
|
|
@@ -2425,14 +2468,21 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2425
2468
|
}
|
|
2426
2469
|
function handleBlur(evt) {
|
|
2427
2470
|
const value = evt.target.value;
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2471
|
+
if (value) {
|
|
2472
|
+
fetch(value).then((result) => {
|
|
2473
|
+
if (Object.keys(result).length) {
|
|
2474
|
+
emitChange(value);
|
|
2475
|
+
} else {
|
|
2476
|
+
emitChange("");
|
|
2477
|
+
inputValue.value = "";
|
|
2478
|
+
}
|
|
2479
|
+
}).catch(() => {
|
|
2480
|
+
emitChange("");
|
|
2433
2481
|
inputValue.value = "";
|
|
2434
|
-
}
|
|
2435
|
-
}
|
|
2482
|
+
});
|
|
2483
|
+
} else {
|
|
2484
|
+
emitChange("");
|
|
2485
|
+
}
|
|
2436
2486
|
}
|
|
2437
2487
|
function handleChange(evt) {
|
|
2438
2488
|
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
|
};
|
|
@@ -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);
|
|
@@ -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
|
};
|
|
@@ -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
|
}
|
|
@@ -1422,6 +1422,9 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1422
1422
|
return pre;
|
|
1423
1423
|
}, {});
|
|
1424
1424
|
}
|
|
1425
|
+
function productPicName(value, field) {
|
|
1426
|
+
return `${value}-${field}`;
|
|
1427
|
+
}
|
|
1425
1428
|
function getProductColumn(rule) {
|
|
1426
1429
|
const productName = `\u5546\u54C1${String(++productIndex).padStart(2, "0")}`;
|
|
1427
1430
|
const field = rule.field;
|
|
@@ -1440,7 +1443,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1440
1443
|
];
|
|
1441
1444
|
if (associatedFields.length) {
|
|
1442
1445
|
associatedFields.forEach((item) => {
|
|
1443
|
-
const childField =
|
|
1446
|
+
const childField = productPicName(item.value, field);
|
|
1444
1447
|
columns2.push({
|
|
1445
1448
|
field: childField,
|
|
1446
1449
|
title: `${item.label}-${productName}`,
|
|
@@ -1501,7 +1504,11 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1501
1504
|
});
|
|
1502
1505
|
}
|
|
1503
1506
|
function handleImport() {
|
|
1504
|
-
|
|
1507
|
+
if (importDisabled()) {
|
|
1508
|
+
antDesignVue.message.error("\u8BF7\u5148\u9009\u62E9\u5E97\u94FA\uFF01");
|
|
1509
|
+
} else {
|
|
1510
|
+
inputRef.value.click();
|
|
1511
|
+
}
|
|
1505
1512
|
}
|
|
1506
1513
|
function emitChange() {
|
|
1507
1514
|
emits("change", data);
|
|
@@ -1509,13 +1516,15 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1509
1516
|
async function queryProductInfo(rule, row) {
|
|
1510
1517
|
const field = rule.field;
|
|
1511
1518
|
const associatedFields = rule?.config?.associatedFields;
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
+
let result = void 0;
|
|
1520
|
+
if (row[field]) {
|
|
1521
|
+
result = await props.extraConfig.product.fetch({ productCode: row[field] });
|
|
1522
|
+
}
|
|
1523
|
+
if (associatedFields.length)
|
|
1524
|
+
associatedFields.forEach((item) => {
|
|
1525
|
+
row[productPicName(item.value, field)] = result ? result[productInfoKeyMap[item.value]] : void 0;
|
|
1526
|
+
});
|
|
1527
|
+
return result;
|
|
1519
1528
|
}
|
|
1520
1529
|
function handleChange(e) {
|
|
1521
1530
|
const file = e.target.files[0];
|
|
@@ -1641,11 +1650,33 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1641
1650
|
}
|
|
1642
1651
|
if (rule.name === "people" || rule.name === "department") {
|
|
1643
1652
|
const limit = rule.props.limit;
|
|
1644
|
-
value = value.split("\u3001")
|
|
1653
|
+
value = value.split("\u3001");
|
|
1645
1654
|
if (limit === 1 && value.length > limit) {
|
|
1646
1655
|
error = `${title}\u6700\u591A\u53EA\u80FD\u9009\u4E00\u4E2A`;
|
|
1647
1656
|
break;
|
|
1648
1657
|
}
|
|
1658
|
+
let infoExist = true;
|
|
1659
|
+
const result = [];
|
|
1660
|
+
const fieldNames = props.extraConfig[rule.name].fieldNames;
|
|
1661
|
+
for (const id of value) {
|
|
1662
|
+
const info = await props.extraConfig[rule.name].getInfo(id);
|
|
1663
|
+
if (info) {
|
|
1664
|
+
result.push({
|
|
1665
|
+
key: id,
|
|
1666
|
+
title: info.name,
|
|
1667
|
+
[fieldNames.value]: id,
|
|
1668
|
+
[fieldNames.label]: info.name
|
|
1669
|
+
});
|
|
1670
|
+
} else {
|
|
1671
|
+
infoExist = false;
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
if (!infoExist) {
|
|
1675
|
+
error = `${title}\u67E5\u8BE2\u7684\u4FE1\u606F\u4E0D\u5B58\u5728`;
|
|
1676
|
+
break;
|
|
1677
|
+
} else {
|
|
1678
|
+
value = result;
|
|
1679
|
+
}
|
|
1649
1680
|
}
|
|
1650
1681
|
if (rule.name === "product") {
|
|
1651
1682
|
const productInfo = await queryProductInfo(rule, row);
|
|
@@ -1685,6 +1716,9 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1685
1716
|
function handleProductInputChange(rule, row) {
|
|
1686
1717
|
queryProductInfoDebounce(rule, row);
|
|
1687
1718
|
}
|
|
1719
|
+
function importDisabled() {
|
|
1720
|
+
return productInputSlots.filter((item) => item.config?.dataFiltering).some((item) => !formData.value[item.config.dataFiltering]);
|
|
1721
|
+
}
|
|
1688
1722
|
vue.watch(
|
|
1689
1723
|
() => props.rule,
|
|
1690
1724
|
() => {
|
|
@@ -1847,13 +1881,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1847
1881
|
const mainShopValue = vue.inject("mainShopValue");
|
|
1848
1882
|
const activeKey = vue.ref("\u7D20\u67501");
|
|
1849
1883
|
const visible = vue.ref(false);
|
|
1850
|
-
const panes = vue.reactive([
|
|
1851
|
-
{
|
|
1852
|
-
key: "\u7D20\u67501",
|
|
1853
|
-
title: "\u7D20\u67501",
|
|
1854
|
-
tempSelected: {}
|
|
1855
|
-
}
|
|
1856
|
-
]);
|
|
1884
|
+
const panes = vue.reactive([initPane("\u7D20\u67501")]);
|
|
1857
1885
|
vue.computed(
|
|
1858
1886
|
() => panes.find((pane) => pane.key === activeKey.value)
|
|
1859
1887
|
);
|
|
@@ -1869,6 +1897,12 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1869
1897
|
activePane2.tableRule = getTableRule(result);
|
|
1870
1898
|
});
|
|
1871
1899
|
}
|
|
1900
|
+
function handleSelectFromModel(tempId) {
|
|
1901
|
+
const activePane2 = getAcitvePane();
|
|
1902
|
+
const index2 = panes.findIndex((pane) => pane.key === activeKey.value);
|
|
1903
|
+
panes.splice(index2, 1, initPane(activePane2.key));
|
|
1904
|
+
handleSelect(tempId);
|
|
1905
|
+
}
|
|
1872
1906
|
function getAcitvePane() {
|
|
1873
1907
|
return panes.find((pane) => pane.key === activeKey.value);
|
|
1874
1908
|
}
|
|
@@ -1929,36 +1963,42 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1929
1963
|
4: (txt) => /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(txt)
|
|
1930
1964
|
};
|
|
1931
1965
|
const activePane2 = getAcitvePane();
|
|
1932
|
-
const childRules =
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1966
|
+
const childRules = [];
|
|
1967
|
+
if (preSetItems) {
|
|
1968
|
+
childRules.push(
|
|
1969
|
+
...preSetItems.split(",").map((preSetItem) => ({
|
|
1970
|
+
name: "product",
|
|
1971
|
+
title: {
|
|
1972
|
+
title: preSetItem
|
|
1973
|
+
},
|
|
1974
|
+
field: preSetItem,
|
|
1975
|
+
effect: {
|
|
1976
|
+
required: true
|
|
1977
|
+
},
|
|
1978
|
+
props: {
|
|
1979
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
1980
|
+
},
|
|
1981
|
+
config: {
|
|
1982
|
+
associatedFields: coverageArr.filter((coverage) => {
|
|
1983
|
+
if (coverage.fieldType === 4) {
|
|
1984
|
+
const extraValues = JSON.parse(coverage.extraValues);
|
|
1985
|
+
return extraValues.fieldName === preSetItem;
|
|
1986
|
+
} else {
|
|
1987
|
+
return false;
|
|
1988
|
+
}
|
|
1989
|
+
}).map((coverage) => {
|
|
1990
|
+
const extraValues = JSON.parse(coverage.extraValues);
|
|
1991
|
+
return {
|
|
1992
|
+
value: extraValues.presetFieldName,
|
|
1993
|
+
label: extraValues.presetFieldName
|
|
1994
|
+
};
|
|
1995
|
+
})
|
|
1951
1996
|
}
|
|
1952
|
-
})
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
};
|
|
1958
|
-
})
|
|
1959
|
-
}
|
|
1960
|
-
})).concat(
|
|
1961
|
-
coverageArr.filter((coverage) => coverage.isEdit).map((coverage) => {
|
|
1997
|
+
}))
|
|
1998
|
+
);
|
|
1999
|
+
}
|
|
2000
|
+
childRules.push(
|
|
2001
|
+
...coverageArr.filter((coverage) => coverage.isEdit).map((coverage) => {
|
|
1962
2002
|
const extraValues = JSON.parse(coverage.extraValues);
|
|
1963
2003
|
const value = {
|
|
1964
2004
|
name: fieldTypeMap[coverage.fieldType],
|
|
@@ -2054,6 +2094,13 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2054
2094
|
delete activePane2.tempIdSelected;
|
|
2055
2095
|
}
|
|
2056
2096
|
}
|
|
2097
|
+
function initPane(value) {
|
|
2098
|
+
return {
|
|
2099
|
+
key: value,
|
|
2100
|
+
title: value,
|
|
2101
|
+
tempSelected: {}
|
|
2102
|
+
};
|
|
2103
|
+
}
|
|
2057
2104
|
props.value && initValue(props.value);
|
|
2058
2105
|
props.extraConfig.materialTemp.getDict().then((data) => {
|
|
2059
2106
|
measrueDicts.value = data;
|
|
@@ -2061,11 +2108,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2061
2108
|
vue.watch(mainShopValue, () => {
|
|
2062
2109
|
panes.splice(0);
|
|
2063
2110
|
activeKey.value = "\u7D20\u67501";
|
|
2064
|
-
panes.push(
|
|
2065
|
-
key: "\u7D20\u67501",
|
|
2066
|
-
title: "\u7D20\u67501",
|
|
2067
|
-
tempSelected: {}
|
|
2068
|
-
});
|
|
2111
|
+
panes.push(initPane("\u7D20\u67501"));
|
|
2069
2112
|
});
|
|
2070
2113
|
vue.watch(
|
|
2071
2114
|
() => panes,
|
|
@@ -2332,7 +2375,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2332
2375
|
"main-shop-value": vue.unref(mainShopValue),
|
|
2333
2376
|
"fetch-material-type": __props.extraConfig.materialTemp.fetchMaterialType,
|
|
2334
2377
|
"fetch-material-temp": __props.extraConfig.materialTemp.fetchMaterialTemp,
|
|
2335
|
-
onSelect:
|
|
2378
|
+
onSelect: handleSelectFromModel
|
|
2336
2379
|
}, null, 8, ["visible", "main-shop-value", "fetch-material-type", "fetch-material-temp"])
|
|
2337
2380
|
], 64);
|
|
2338
2381
|
};
|
|
@@ -2426,7 +2469,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2426
2469
|
};
|
|
2427
2470
|
const unitMap = ["\u652F", "\u74F6", "\u5957", "\u7EC4", "\u7BB1", "\u4E2A", "\u5F20"];
|
|
2428
2471
|
const formData = vue.computed(() => props.formCreateInject.api.bind());
|
|
2429
|
-
const debounceFn = lodashEs.debounce(handleBlur,
|
|
2472
|
+
const debounceFn = lodashEs.debounce(handleBlur, 500);
|
|
2430
2473
|
const inputValue = vue.ref(props.defalutValue);
|
|
2431
2474
|
async function fetch(value) {
|
|
2432
2475
|
return productInfo.value = await props.extraConfig.product.fetch({
|
|
@@ -2436,14 +2479,21 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2436
2479
|
}
|
|
2437
2480
|
function handleBlur(evt) {
|
|
2438
2481
|
const value = evt.target.value;
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2482
|
+
if (value) {
|
|
2483
|
+
fetch(value).then((result) => {
|
|
2484
|
+
if (Object.keys(result).length) {
|
|
2485
|
+
emitChange(value);
|
|
2486
|
+
} else {
|
|
2487
|
+
emitChange("");
|
|
2488
|
+
inputValue.value = "";
|
|
2489
|
+
}
|
|
2490
|
+
}).catch(() => {
|
|
2491
|
+
emitChange("");
|
|
2444
2492
|
inputValue.value = "";
|
|
2445
|
-
}
|
|
2446
|
-
}
|
|
2493
|
+
});
|
|
2494
|
+
} else {
|
|
2495
|
+
emitChange("");
|
|
2496
|
+
}
|
|
2447
2497
|
}
|
|
2448
2498
|
function handleChange(evt) {
|
|
2449
2499
|
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
|
};
|
|
@@ -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);
|
|
@@ -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
|
};
|
|
@@ -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
|
};
|
|
@@ -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;
|
|
@@ -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;
|