bm-admin-ui 1.0.51-alpha → 1.0.53-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/edit-form/index.d.ts +150 -0
- package/es/components/edit-form/index.js +1186 -0
- package/es/components/edit-form/src/composables/api.d.ts +13 -0
- package/es/components/edit-form/src/composables/config.d.ts +13 -0
- package/es/components/edit-form/src/composables/event.d.ts +10 -0
- package/es/components/edit-form/src/composables/utils.d.ts +12 -0
- package/es/components/edit-form/src/edit-form.vue.d.ts +148 -0
- package/es/components/edit-form/src/group.vue.d.ts +6 -0
- package/es/components/edit-form/src/props.d.ts +17 -0
- package/es/components/edit-form/src/types.d.ts +77 -0
- package/es/components/editor/index.d.ts +8 -8
- package/es/components/editor/src/editor.vue.d.ts +8 -8
- package/es/components/feedback/index.d.ts +7 -7
- package/es/components/feedback/src/bmAlert.vue.d.ts +4 -4
- package/es/components/feedback/src/bmModal.vue.d.ts +3 -3
- package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
- package/es/components/form-create/index.js +82 -13
- package/es/components/form-designer/index.js +10 -10
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -0
- package/es/components/input-tags-display/index.d.ts +3 -3
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +3 -3
- package/es/components/search-filter/index.d.ts +3 -3
- package/es/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/es/components/select-all/index.d.ts +12 -12
- package/es/components/select-all/src/selectAll.vue.d.ts +12 -12
- package/es/components/shops-filter/index.d.ts +1 -1
- package/es/components/shops-filter/src/shops-filter.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/staffs-selector.vue.d.ts +3 -3
- package/es/components/timeline/index.d.ts +1 -1
- package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/lib/components/edit-form/index.d.ts +150 -0
- package/lib/components/edit-form/index.js +1195 -0
- package/lib/components/edit-form/src/composables/api.d.ts +13 -0
- package/lib/components/edit-form/src/composables/config.d.ts +13 -0
- package/lib/components/edit-form/src/composables/event.d.ts +10 -0
- package/lib/components/edit-form/src/composables/utils.d.ts +12 -0
- package/lib/components/edit-form/src/edit-form.vue.d.ts +148 -0
- package/lib/components/edit-form/src/group.vue.d.ts +6 -0
- package/lib/components/edit-form/src/props.d.ts +17 -0
- package/lib/components/edit-form/src/types.d.ts +77 -0
- package/lib/components/editor/index.d.ts +8 -8
- package/lib/components/editor/src/editor.vue.d.ts +8 -8
- package/lib/components/feedback/index.d.ts +7 -7
- package/lib/components/feedback/src/bmAlert.vue.d.ts +4 -4
- package/lib/components/feedback/src/bmModal.vue.d.ts +3 -3
- package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
- package/lib/components/form-create/index.js +82 -13
- package/lib/components/form-designer/index.js +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +7 -0
- package/lib/components/input-tags-display/index.d.ts +3 -3
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +3 -3
- package/lib/components/search-filter/index.d.ts +3 -3
- package/lib/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/lib/components/select-all/index.d.ts +12 -12
- package/lib/components/select-all/src/selectAll.vue.d.ts +12 -12
- package/lib/components/shops-filter/index.d.ts +1 -1
- package/lib/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
- package/lib/components/staffs-selector/index.d.ts +3 -3
- package/lib/components/staffs-selector/index.js +1 -1
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +3 -3
- package/lib/components/timeline/index.d.ts +1 -1
- package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/package.json +1 -1
- package/theme-chalk/edit-form.css +1 -0
- package/theme-chalk/index.css +1 -1
- package/types/components/edit-form/index.d.ts +150 -0
- package/types/components/edit-form/src/composables/api.d.ts +13 -0
- package/types/components/edit-form/src/composables/config.d.ts +13 -0
- package/types/components/edit-form/src/composables/event.d.ts +10 -0
- package/types/components/edit-form/src/composables/utils.d.ts +12 -0
- package/types/components/edit-form/src/edit-form.vue.d.ts +148 -0
- package/types/components/edit-form/src/group.vue.d.ts +6 -0
- package/types/components/edit-form/src/props.d.ts +17 -0
- package/types/components/edit-form/src/types.d.ts +77 -0
- package/types/components/editor/index.d.ts +8 -8
- package/types/components/editor/src/editor.vue.d.ts +8 -8
- package/types/components/feedback/index.d.ts +7 -7
- package/types/components/feedback/src/bmAlert.vue.d.ts +4 -4
- package/types/components/feedback/src/bmModal.vue.d.ts +3 -3
- package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
- package/types/components/index.d.ts +1 -0
- package/types/components/input-tags-display/index.d.ts +3 -3
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +3 -3
- package/types/components/search-filter/index.d.ts +3 -3
- package/types/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/types/components/select-all/index.d.ts +12 -12
- package/types/components/select-all/src/selectAll.vue.d.ts +12 -12
- package/types/components/shops-filter/index.d.ts +1 -1
- package/types/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
- package/types/components/staffs-selector/index.d.ts +3 -3
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +3 -3
- package/types/components/timeline/index.d.ts +1 -1
- package/types/components/timeline/src/timeline-item.vue.d.ts +1 -1
|
@@ -1297,6 +1297,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1297
1297
|
\u5546\u54C1\u7BB1\u89C4: "carton",
|
|
1298
1298
|
\u5546\u54C1\u5355\u4F4D: "unit"
|
|
1299
1299
|
};
|
|
1300
|
+
let productIndex = 0;
|
|
1300
1301
|
const oper = "oper";
|
|
1301
1302
|
const bmFloatTableRef = vue.ref();
|
|
1302
1303
|
const importFeature = vue.computed(() => isShow("import"));
|
|
@@ -1339,6 +1340,12 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1339
1340
|
});
|
|
1340
1341
|
const xGrid = vue.computed(() => bmFloatTableRef.value.xGrid || {});
|
|
1341
1342
|
const inputRef = vue.ref();
|
|
1343
|
+
const childRulesMap = vue.computed(
|
|
1344
|
+
() => props.rule?.config?.childRules.reduce((result, item) => {
|
|
1345
|
+
result[item.field] = item;
|
|
1346
|
+
return result;
|
|
1347
|
+
}, {}) || {}
|
|
1348
|
+
);
|
|
1342
1349
|
function isShow(key) {
|
|
1343
1350
|
return props.rule.config.tableAdvancedFeatures.includes(key);
|
|
1344
1351
|
}
|
|
@@ -1395,12 +1402,13 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1395
1402
|
}, {});
|
|
1396
1403
|
}
|
|
1397
1404
|
function getProductColumn(rule) {
|
|
1405
|
+
const productName = `\u5546\u54C1${String(++productIndex).padStart(2, "0")}`;
|
|
1398
1406
|
const field = rule.field;
|
|
1399
1407
|
const associatedFields = rule.config.associatedFields;
|
|
1400
1408
|
const columns2 = [
|
|
1401
1409
|
{
|
|
1402
1410
|
field,
|
|
1403
|
-
title:
|
|
1411
|
+
title: `\u5546\u54C1\u7F16\u7801-${productName}`,
|
|
1404
1412
|
headerClassName: rule.effect.required ? "is-required" : "",
|
|
1405
1413
|
minWidth: "138px",
|
|
1406
1414
|
slots: {
|
|
@@ -1412,7 +1420,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1412
1420
|
"onUpdate:value": (value) => {
|
|
1413
1421
|
row[field] = value;
|
|
1414
1422
|
},
|
|
1415
|
-
|
|
1423
|
+
onPressEnter() {
|
|
1416
1424
|
queryProductInfo(rule, row);
|
|
1417
1425
|
}
|
|
1418
1426
|
});
|
|
@@ -1425,7 +1433,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1425
1433
|
const childField = field + item.value;
|
|
1426
1434
|
columns2.push({
|
|
1427
1435
|
field: childField,
|
|
1428
|
-
title: item.label
|
|
1436
|
+
title: `${item.label}-${productName}`,
|
|
1429
1437
|
minWidth: "138px",
|
|
1430
1438
|
slots: {
|
|
1431
1439
|
default({ row }) {
|
|
@@ -1503,13 +1511,15 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1503
1511
|
reader.onload = (fr) => {
|
|
1504
1512
|
const rows = parseCsv(fr?.target?.result);
|
|
1505
1513
|
const validColumns = columns.filter((c) => isValidColumn(c));
|
|
1514
|
+
const result = [];
|
|
1506
1515
|
rows.forEach((row) => {
|
|
1507
1516
|
const rowData = {};
|
|
1508
1517
|
row.forEach((item, index) => {
|
|
1509
1518
|
rowData[validColumns[index].field] = item;
|
|
1510
1519
|
});
|
|
1511
|
-
|
|
1520
|
+
result.push(rowData);
|
|
1512
1521
|
});
|
|
1522
|
+
validate(result);
|
|
1513
1523
|
e.target.value = "";
|
|
1514
1524
|
};
|
|
1515
1525
|
file && reader.readAsText(file, "GB2312");
|
|
@@ -1520,10 +1530,64 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1520
1530
|
function parseCsv(result) {
|
|
1521
1531
|
let data2 = [];
|
|
1522
1532
|
if (result) {
|
|
1523
|
-
data2 = result.split("\r\n").slice(1).filter((item) => item).map((item) => item.split(","));
|
|
1533
|
+
data2 = result.split("\r\n").slice(1).filter((item) => item).map((item) => item.replaceAll(" ", "").split(","));
|
|
1524
1534
|
}
|
|
1525
1535
|
return data2;
|
|
1526
1536
|
}
|
|
1537
|
+
function validate(rowData) {
|
|
1538
|
+
const validColumns = columns.filter((c) => isValidColumn(c));
|
|
1539
|
+
for (const row of rowData) {
|
|
1540
|
+
for (const { field } of validColumns) {
|
|
1541
|
+
const rule = childRulesMap.value[field];
|
|
1542
|
+
let value = row[field];
|
|
1543
|
+
const txtFormatFn = rule.config?.txtFormatFn;
|
|
1544
|
+
if (rule.effect.required && !value) {
|
|
1545
|
+
break;
|
|
1546
|
+
}
|
|
1547
|
+
if (txtFormatFn && !txtFormatFn(value)) {
|
|
1548
|
+
break;
|
|
1549
|
+
}
|
|
1550
|
+
if (rule.name === "input") {
|
|
1551
|
+
const maxlength = rule.props.maxlength || 200;
|
|
1552
|
+
if (value.length > maxlength) {
|
|
1553
|
+
break;
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
if (rule.name === "textarea") {
|
|
1557
|
+
if (value.length > 5e3) {
|
|
1558
|
+
break;
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
if (rule.name === "numInput") {
|
|
1562
|
+
if (rule.config.format === 1) {
|
|
1563
|
+
if (!value.includes("%")) {
|
|
1564
|
+
break;
|
|
1565
|
+
}
|
|
1566
|
+
} else {
|
|
1567
|
+
if (!isNaN(value)) {
|
|
1568
|
+
break;
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
if (rule.config.decimalPlaces !== void 0 && value.split(".")[1]?.length > rule.config.decimalPlaces) {
|
|
1572
|
+
break;
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
if (rule.name === "radio") {
|
|
1576
|
+
if (rule.options.every((item) => item.value !== value)) {
|
|
1577
|
+
break;
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
if (rule.name === "checkbox") {
|
|
1581
|
+
value = value.split("\u3001");
|
|
1582
|
+
if (value.some((item) => rule.options.every((r) => r.value !== item))) {
|
|
1583
|
+
break;
|
|
1584
|
+
}
|
|
1585
|
+
row[field] = value;
|
|
1586
|
+
}
|
|
1587
|
+
if (rule.name === "date") ;
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1527
1591
|
vue.watch(
|
|
1528
1592
|
() => props.rule,
|
|
1529
1593
|
() => {
|
|
@@ -1696,7 +1760,9 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1696
1760
|
return panes.find((pane) => pane.key === activeKey.value);
|
|
1697
1761
|
}
|
|
1698
1762
|
function getTempDetail(templateCode) {
|
|
1699
|
-
return props.extraConfig.fetchMaterialTempDetail({
|
|
1763
|
+
return props.extraConfig.materialTemp.fetchMaterialTempDetail({
|
|
1764
|
+
templateCode
|
|
1765
|
+
});
|
|
1700
1766
|
}
|
|
1701
1767
|
function handleUpload(list) {
|
|
1702
1768
|
getAcitvePane().uploadList = list;
|
|
@@ -1803,9 +1869,11 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1803
1869
|
}
|
|
1804
1870
|
if (coverage.fieldType === 2) {
|
|
1805
1871
|
const decimalPlaces = extraValues.decimalPlaces || 0;
|
|
1872
|
+
value.config.decimalPlaces = decimalPlaces;
|
|
1806
1873
|
value.props = {
|
|
1807
1874
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
1808
1875
|
};
|
|
1876
|
+
value.config.format = extraValues.format;
|
|
1809
1877
|
if (extraValues.format === 1) {
|
|
1810
1878
|
value.props.parser = (value2) => lodashEs.floor(value2.replace("%", ""), decimalPlaces);
|
|
1811
1879
|
value.props.formatter = (value2) => `${value2}%`;
|
|
@@ -1872,7 +1940,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1872
1940
|
}
|
|
1873
1941
|
}
|
|
1874
1942
|
props.value && initValue(props.value);
|
|
1875
|
-
props.extraConfig.getDict().then((data) => {
|
|
1943
|
+
props.extraConfig.materialTemp.getDict().then((data) => {
|
|
1876
1944
|
measrueDicts.value = data;
|
|
1877
1945
|
});
|
|
1878
1946
|
vue.watch(mainShopValue, () => {
|
|
@@ -2110,7 +2178,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2110
2178
|
"extra-props": {
|
|
2111
2179
|
maxCount: 9
|
|
2112
2180
|
},
|
|
2113
|
-
"upload-request": __props.extraConfig.uploadRequest,
|
|
2181
|
+
"upload-request": __props.extraConfig.materialTemp.uploadRequest,
|
|
2114
2182
|
"default-list": pane.uploadList,
|
|
2115
2183
|
onUpdate: handleUpload
|
|
2116
2184
|
}, null, 8, ["upload-props", "upload-request", "default-list"])
|
|
@@ -2130,8 +2198,9 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2130
2198
|
key: 0,
|
|
2131
2199
|
rule: pane.tableRule,
|
|
2132
2200
|
"disabled-table": __props.disabled?.includes?.("editTable"),
|
|
2201
|
+
"extra-config": __props.extraConfig,
|
|
2133
2202
|
onChange: handleTableDataChange
|
|
2134
|
-
}, null, 8, ["rule", "disabled-table"])) : vue.createCommentVNode("v-if", true)
|
|
2203
|
+
}, null, 8, ["rule", "disabled-table", "extra-config"])) : vue.createCommentVNode("v-if", true)
|
|
2135
2204
|
]),
|
|
2136
2205
|
_: 2
|
|
2137
2206
|
}, 1024)
|
|
@@ -2146,8 +2215,8 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2146
2215
|
visible: visible.value,
|
|
2147
2216
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
|
|
2148
2217
|
"main-shop-value": vue.unref(mainShopValue),
|
|
2149
|
-
"fetch-material-type": __props.extraConfig.fetchMaterialType,
|
|
2150
|
-
"fetch-material-temp": __props.extraConfig.fetchMaterialTemp,
|
|
2218
|
+
"fetch-material-type": __props.extraConfig.materialTemp.fetchMaterialType,
|
|
2219
|
+
"fetch-material-temp": __props.extraConfig.materialTemp.fetchMaterialTemp,
|
|
2151
2220
|
onSelect: handleSelect
|
|
2152
2221
|
}, null, 8, ["visible", "main-shop-value", "fetch-material-type", "fetch-material-temp"])
|
|
2153
2222
|
], 64);
|
|
@@ -2175,7 +2244,7 @@ var materialTemp = {
|
|
|
2175
2244
|
field: data.field,
|
|
2176
2245
|
props: {
|
|
2177
2246
|
uploadPictureRule: data.config.uploadPictureRule,
|
|
2178
|
-
extraConfig: extraConfig
|
|
2247
|
+
extraConfig: extraConfig,
|
|
2179
2248
|
value: data.value,
|
|
2180
2249
|
},
|
|
2181
2250
|
inject: true,
|
|
@@ -2266,7 +2335,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2266
2335
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
2267
2336
|
value: __props.defalutValue,
|
|
2268
2337
|
disabled: __props.disabled,
|
|
2269
|
-
|
|
2338
|
+
onPressEnter: handleBlur
|
|
2270
2339
|
}, null, 8, ["value", "disabled"])
|
|
2271
2340
|
]),
|
|
2272
2341
|
_: 1
|
package/lib/components/index.js
CHANGED
|
@@ -20,6 +20,7 @@ var breadcrumb = require('./breadcrumb');
|
|
|
20
20
|
var editor = require('./editor');
|
|
21
21
|
var videoView = require('./videoView');
|
|
22
22
|
var attachment = require('./attachment');
|
|
23
|
+
var editForm = require('./edit-form');
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
|
|
@@ -131,3 +132,9 @@ Object.keys(attachment).forEach(function (k) {
|
|
|
131
132
|
get: function () { return attachment[k]; }
|
|
132
133
|
});
|
|
133
134
|
});
|
|
135
|
+
Object.keys(editForm).forEach(function (k) {
|
|
136
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
get: function () { return editForm[k]; }
|
|
139
|
+
});
|
|
140
|
+
});
|
|
@@ -125,15 +125,15 @@ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWith
|
|
|
125
125
|
onAddClick?: ((...args: any[]) => any) | undefined;
|
|
126
126
|
}, {
|
|
127
127
|
disabled: boolean;
|
|
128
|
-
list: unknown[];
|
|
129
|
-
placeholder: string;
|
|
130
128
|
placement: string;
|
|
129
|
+
fieldNames: Record<string, any>;
|
|
130
|
+
placeholder: string;
|
|
131
|
+
list: unknown[];
|
|
131
132
|
showEmpty: boolean;
|
|
132
133
|
showEmptyBtn: boolean;
|
|
133
134
|
unitStr: string;
|
|
134
135
|
btnText: string;
|
|
135
136
|
toolTipProps: Record<string, any>;
|
|
136
|
-
fieldNames: Record<string, any>;
|
|
137
137
|
alwaysInvoke: boolean;
|
|
138
138
|
}>>;
|
|
139
139
|
export { BmTagsDisplay };
|
|
@@ -123,15 +123,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
123
123
|
onAddClick?: ((...args: any[]) => any) | undefined;
|
|
124
124
|
}, {
|
|
125
125
|
disabled: boolean;
|
|
126
|
-
list: unknown[];
|
|
127
|
-
placeholder: string;
|
|
128
126
|
placement: string;
|
|
127
|
+
fieldNames: Record<string, any>;
|
|
128
|
+
placeholder: string;
|
|
129
|
+
list: unknown[];
|
|
129
130
|
showEmpty: boolean;
|
|
130
131
|
showEmptyBtn: boolean;
|
|
131
132
|
unitStr: string;
|
|
132
133
|
btnText: string;
|
|
133
134
|
toolTipProps: Record<string, any>;
|
|
134
|
-
fieldNames: Record<string, any>;
|
|
135
135
|
alwaysInvoke: boolean;
|
|
136
136
|
}>;
|
|
137
137
|
export default _default;
|
|
@@ -110,9 +110,9 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
110
110
|
default(): never[];
|
|
111
111
|
};
|
|
112
112
|
}>> & {
|
|
113
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
114
113
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
115
114
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
116
116
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
117
117
|
}>>;
|
|
118
118
|
emits: (event: "submit" | "reset" | "update:value" | "expand", ...args: any[]) => void;
|
|
@@ -212,12 +212,13 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
212
212
|
default(): never[];
|
|
213
213
|
};
|
|
214
214
|
}>> & {
|
|
215
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
216
215
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
217
216
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
217
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
220
|
loading: boolean;
|
|
221
|
+
labelCol: Record<string, any>;
|
|
221
222
|
value: Record<string, any>;
|
|
222
223
|
showExpandBtn: boolean;
|
|
223
224
|
showSearchIcon: boolean;
|
|
@@ -226,7 +227,6 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
226
227
|
collapseText: string;
|
|
227
228
|
gutter: number[];
|
|
228
229
|
userRule: unknown[];
|
|
229
|
-
labelCol: Record<string, any>;
|
|
230
230
|
ruleSpan: Record<string, any>;
|
|
231
231
|
fixedCount: number;
|
|
232
232
|
fixedFields: string[];
|
|
@@ -110,9 +110,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
110
|
default(): never[];
|
|
111
111
|
};
|
|
112
112
|
}>> & {
|
|
113
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
114
113
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
115
114
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
116
116
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
117
117
|
}>>;
|
|
118
118
|
emits: (event: "submit" | "reset" | "update:value" | "expand", ...args: any[]) => void;
|
|
@@ -212,12 +212,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
212
212
|
default(): never[];
|
|
213
213
|
};
|
|
214
214
|
}>> & {
|
|
215
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
216
215
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
217
216
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
217
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
220
|
loading: boolean;
|
|
221
|
+
labelCol: Record<string, any>;
|
|
221
222
|
value: Record<string, any>;
|
|
222
223
|
showExpandBtn: boolean;
|
|
223
224
|
showSearchIcon: boolean;
|
|
@@ -226,7 +227,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
226
227
|
collapseText: string;
|
|
227
228
|
gutter: number[];
|
|
228
229
|
userRule: unknown[];
|
|
229
|
-
labelCol: Record<string, any>;
|
|
230
230
|
ruleSpan: Record<string, any>;
|
|
231
231
|
fixedCount: number;
|
|
232
232
|
fixedFields: string[];
|
|
@@ -20,8 +20,8 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
20
20
|
};
|
|
21
21
|
}>> & {
|
|
22
22
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
onOnSelectAll?: ((...args: any[]) => any) | undefined;
|
|
24
23
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onOnSelectAll?: ((...args: any[]) => any) | undefined;
|
|
25
25
|
}>>;
|
|
26
26
|
state: {
|
|
27
27
|
search: {
|
|
@@ -30,7 +30,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
30
30
|
checkedReverse: boolean;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
emit: (event: "
|
|
33
|
+
emit: (event: "onChange" | "update:value" | "onSelectAll", ...args: any[]) => void;
|
|
34
34
|
selectValue: any;
|
|
35
35
|
selectAll: (e: any) => void;
|
|
36
36
|
reverseAll: (e: any) => false | undefined;
|
|
@@ -99,7 +99,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
99
99
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
100
100
|
prefixCls: StringConstructor;
|
|
101
101
|
direction: {
|
|
102
|
-
type: import("vue").PropType<"
|
|
102
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
103
103
|
};
|
|
104
104
|
open: {
|
|
105
105
|
type: BooleanConstructor;
|
|
@@ -124,7 +124,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
124
124
|
};
|
|
125
125
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
126
126
|
showAction: {
|
|
127
|
-
type: import("vue").PropType<("
|
|
127
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
128
128
|
};
|
|
129
129
|
id: StringConstructor;
|
|
130
130
|
placement: {
|
|
@@ -262,7 +262,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
262
262
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
263
263
|
prefixCls: StringConstructor;
|
|
264
264
|
direction: {
|
|
265
|
-
type: import("vue").PropType<"
|
|
265
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
266
266
|
};
|
|
267
267
|
open: {
|
|
268
268
|
type: BooleanConstructor;
|
|
@@ -287,7 +287,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
287
287
|
};
|
|
288
288
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
289
289
|
showAction: {
|
|
290
|
-
type: import("vue").PropType<("
|
|
290
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
291
291
|
};
|
|
292
292
|
id: StringConstructor;
|
|
293
293
|
placement: {
|
|
@@ -448,7 +448,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
448
448
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
449
449
|
prefixCls: StringConstructor;
|
|
450
450
|
direction: {
|
|
451
|
-
type: import("vue").PropType<"
|
|
451
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
452
452
|
};
|
|
453
453
|
open: {
|
|
454
454
|
type: BooleanConstructor;
|
|
@@ -473,7 +473,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
473
473
|
};
|
|
474
474
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
475
475
|
showAction: {
|
|
476
|
-
type: import("vue").PropType<("
|
|
476
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
477
477
|
};
|
|
478
478
|
id: StringConstructor;
|
|
479
479
|
placement: {
|
|
@@ -601,7 +601,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
601
601
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
602
602
|
prefixCls: StringConstructor;
|
|
603
603
|
direction: {
|
|
604
|
-
type: import("vue").PropType<"
|
|
604
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
605
605
|
};
|
|
606
606
|
open: {
|
|
607
607
|
type: BooleanConstructor;
|
|
@@ -626,7 +626,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
626
626
|
};
|
|
627
627
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
628
628
|
showAction: {
|
|
629
|
-
type: import("vue").PropType<("
|
|
629
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
630
630
|
};
|
|
631
631
|
id: StringConstructor;
|
|
632
632
|
placement: {
|
|
@@ -734,7 +734,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
734
734
|
readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
|
|
735
735
|
readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
736
736
|
};
|
|
737
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
737
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onChange" | "update:value" | "onSelectAll")[], "onChange" | "update:value" | "onSelectAll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
738
738
|
value: {
|
|
739
739
|
type: ArrayConstructor;
|
|
740
740
|
required: true;
|
|
@@ -745,8 +745,8 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
745
745
|
};
|
|
746
746
|
}>> & {
|
|
747
747
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
748
|
-
onOnSelectAll?: ((...args: any[]) => any) | undefined;
|
|
749
748
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
749
|
+
onOnSelectAll?: ((...args: any[]) => any) | undefined;
|
|
750
750
|
}, {
|
|
751
751
|
showSelectAll: boolean;
|
|
752
752
|
}>>;
|
|
@@ -20,8 +20,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
};
|
|
21
21
|
}>> & {
|
|
22
22
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
onOnSelectAll?: ((...args: any[]) => any) | undefined;
|
|
24
23
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onOnSelectAll?: ((...args: any[]) => any) | undefined;
|
|
25
25
|
}>>;
|
|
26
26
|
state: {
|
|
27
27
|
search: {
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
checkedReverse: boolean;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
emit: (event: "
|
|
33
|
+
emit: (event: "onChange" | "update:value" | "onSelectAll", ...args: any[]) => void;
|
|
34
34
|
selectValue: any;
|
|
35
35
|
selectAll: (e: any) => void;
|
|
36
36
|
reverseAll: (e: any) => false | undefined;
|
|
@@ -99,7 +99,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
99
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
100
100
|
prefixCls: StringConstructor;
|
|
101
101
|
direction: {
|
|
102
|
-
type: import("vue").PropType<"
|
|
102
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
103
103
|
};
|
|
104
104
|
open: {
|
|
105
105
|
type: BooleanConstructor;
|
|
@@ -124,7 +124,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
124
|
};
|
|
125
125
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
126
126
|
showAction: {
|
|
127
|
-
type: import("vue").PropType<("
|
|
127
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
128
128
|
};
|
|
129
129
|
id: StringConstructor;
|
|
130
130
|
placement: {
|
|
@@ -262,7 +262,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
262
262
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
263
263
|
prefixCls: StringConstructor;
|
|
264
264
|
direction: {
|
|
265
|
-
type: import("vue").PropType<"
|
|
265
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
266
266
|
};
|
|
267
267
|
open: {
|
|
268
268
|
type: BooleanConstructor;
|
|
@@ -287,7 +287,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
287
287
|
};
|
|
288
288
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
289
289
|
showAction: {
|
|
290
|
-
type: import("vue").PropType<("
|
|
290
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
291
291
|
};
|
|
292
292
|
id: StringConstructor;
|
|
293
293
|
placement: {
|
|
@@ -448,7 +448,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
448
448
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
449
449
|
prefixCls: StringConstructor;
|
|
450
450
|
direction: {
|
|
451
|
-
type: import("vue").PropType<"
|
|
451
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
452
452
|
};
|
|
453
453
|
open: {
|
|
454
454
|
type: BooleanConstructor;
|
|
@@ -473,7 +473,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
473
473
|
};
|
|
474
474
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
475
475
|
showAction: {
|
|
476
|
-
type: import("vue").PropType<("
|
|
476
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
477
477
|
};
|
|
478
478
|
id: StringConstructor;
|
|
479
479
|
placement: {
|
|
@@ -601,7 +601,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
601
601
|
onSelect: import("vue").PropType<import("ant-design-vue/lib/vc-select/Select").SelectHandler<(string | number) | import("ant-design-vue/lib/select").LabeledValue, import("ant-design-vue/lib/select").DefaultOptionType>>;
|
|
602
602
|
prefixCls: StringConstructor;
|
|
603
603
|
direction: {
|
|
604
|
-
type: import("vue").PropType<"
|
|
604
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
605
605
|
};
|
|
606
606
|
open: {
|
|
607
607
|
type: BooleanConstructor;
|
|
@@ -626,7 +626,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
626
626
|
};
|
|
627
627
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
628
628
|
showAction: {
|
|
629
|
-
type: import("vue").PropType<("
|
|
629
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
630
630
|
};
|
|
631
631
|
id: StringConstructor;
|
|
632
632
|
placement: {
|
|
@@ -734,7 +734,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
734
734
|
readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
|
|
735
735
|
readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
736
736
|
};
|
|
737
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
737
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onChange" | "update:value" | "onSelectAll")[], "onChange" | "update:value" | "onSelectAll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
738
738
|
value: {
|
|
739
739
|
type: ArrayConstructor;
|
|
740
740
|
required: true;
|
|
@@ -745,8 +745,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
745
745
|
};
|
|
746
746
|
}>> & {
|
|
747
747
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
748
|
-
onOnSelectAll?: ((...args: any[]) => any) | undefined;
|
|
749
748
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
749
|
+
onOnSelectAll?: ((...args: any[]) => any) | undefined;
|
|
750
750
|
}, {
|
|
751
751
|
showSelectAll: boolean;
|
|
752
752
|
}>;
|
|
@@ -89,11 +89,11 @@ declare const BmShopsFilter: import("bm-admin-ui/es/utils/with-install").SFCWith
|
|
|
89
89
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
90
90
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
91
91
|
}, {
|
|
92
|
+
loadData: Function;
|
|
92
93
|
labelTitle: string;
|
|
93
94
|
showAlways: boolean;
|
|
94
95
|
displayParams: Record<string, any>;
|
|
95
96
|
loadFilter: Function;
|
|
96
|
-
loadData: Function;
|
|
97
97
|
}>>;
|
|
98
98
|
export { BmShopsFilter };
|
|
99
99
|
export default BmShopsFilter;
|
|
@@ -89,10 +89,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
89
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
90
90
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
91
91
|
}, {
|
|
92
|
+
loadData: Function;
|
|
92
93
|
labelTitle: string;
|
|
93
94
|
showAlways: boolean;
|
|
94
95
|
displayParams: Record<string, any>;
|
|
95
96
|
loadFilter: Function;
|
|
96
|
-
loadData: Function;
|
|
97
97
|
}>;
|
|
98
98
|
export default _default;
|
|
@@ -291,7 +291,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
291
291
|
modalRender: import("vue").PropType<(arg: {
|
|
292
292
|
originVNode: import("ant-design-vue/lib/_util/type").VueNode;
|
|
293
293
|
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
294
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "
|
|
294
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "keyboard" | "visible" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "focusTriggerAfterClose">;
|
|
295
295
|
$attrs: {
|
|
296
296
|
[x: string]: unknown;
|
|
297
297
|
};
|
|
@@ -1084,10 +1084,10 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
1084
1084
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
1085
1085
|
}, {
|
|
1086
1086
|
title: string;
|
|
1087
|
-
visible: boolean;
|
|
1088
1087
|
mode: string;
|
|
1089
|
-
unitStr: string;
|
|
1090
1088
|
showCount: boolean;
|
|
1089
|
+
visible: boolean;
|
|
1090
|
+
unitStr: string;
|
|
1091
1091
|
limit: number;
|
|
1092
1092
|
load: Function;
|
|
1093
1093
|
forceStatic: boolean;
|
|
@@ -86,7 +86,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
const _sfc_main$3 = vue.defineComponent({
|
|
89
|
-
components: { SearchOutlined: iconsVue.SearchOutlined, Checkbox: antDesignVue.Checkbox, Empty: antDesignVue.Empty },
|
|
89
|
+
components: { SearchOutlined: iconsVue.SearchOutlined, Checkbox: antDesignVue.Checkbox, Empty: antDesignVue.Empty, ATree: antDesignVue.Tree },
|
|
90
90
|
props: {
|
|
91
91
|
limit: {
|
|
92
92
|
type: Number,
|