bm-admin-ui 1.1.10-alpha → 1.1.12-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 +2 -2
- package/es/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/es/components/editor/index.d.ts +4 -4
- package/es/components/editor/src/editor.vue.d.ts +4 -4
- package/es/components/feedback/index.d.ts +4 -4
- package/es/components/feedback/src/bmAlert.vue.d.ts +4 -4
- package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
- package/es/components/form-create/index.js +83 -27
- package/es/components/form-designer/index.js +3 -0
- package/es/components/input-tags-display/index.d.ts +2 -2
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +2 -2
- package/es/components/search-filter/index.d.ts +1 -1
- package/es/components/search-filter/src/form-select-all.vue.d.ts +8 -8
- package/es/components/search-filter/src/search-filter.vue.d.ts +1 -1
- package/es/components/select-all/index.d.ts +10 -10
- package/es/components/select-all/src/selectAll.vue.d.ts +10 -10
- package/es/components/staffs-selector/index.d.ts +1 -1
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +1 -1
- package/es/components/timeline/index.d.ts +1 -1
- package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/lib/components/edit-form/index.d.ts +2 -2
- package/lib/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/lib/components/editor/index.d.ts +4 -4
- package/lib/components/editor/src/editor.vue.d.ts +4 -4
- package/lib/components/feedback/index.d.ts +4 -4
- package/lib/components/feedback/src/bmAlert.vue.d.ts +4 -4
- package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
- package/lib/components/form-create/index.js +83 -27
- package/lib/components/form-designer/index.js +3 -0
- package/lib/components/input-tags-display/index.d.ts +2 -2
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +2 -2
- package/lib/components/search-filter/index.d.ts +1 -1
- package/lib/components/search-filter/src/form-select-all.vue.d.ts +8 -8
- package/lib/components/search-filter/src/search-filter.vue.d.ts +1 -1
- package/lib/components/select-all/index.d.ts +10 -10
- package/lib/components/select-all/src/selectAll.vue.d.ts +10 -10
- package/lib/components/staffs-selector/index.d.ts +1 -1
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +1 -1
- package/lib/components/timeline/index.d.ts +1 -1
- package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/package.json +1 -1
- package/types/components/edit-form/index.d.ts +2 -2
- package/types/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/types/components/editor/index.d.ts +4 -4
- package/types/components/editor/src/editor.vue.d.ts +4 -4
- package/types/components/feedback/index.d.ts +4 -4
- package/types/components/feedback/src/bmAlert.vue.d.ts +4 -4
- package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
- package/types/components/input-tags-display/index.d.ts +2 -2
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +2 -2
- package/types/components/search-filter/index.d.ts +1 -1
- package/types/components/search-filter/src/form-select-all.vue.d.ts +8 -8
- package/types/components/search-filter/src/search-filter.vue.d.ts +1 -1
- package/types/components/select-all/index.d.ts +10 -10
- package/types/components/select-all/src/selectAll.vue.d.ts +10 -10
- package/types/components/staffs-selector/index.d.ts +1 -1
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +1 -1
- package/types/components/timeline/index.d.ts +1 -1
- package/types/components/timeline/src/timeline-item.vue.d.ts +1 -1
|
@@ -18587,7 +18587,12 @@ var lodash = {exports: {}};
|
|
|
18587
18587
|
|
|
18588
18588
|
const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
18589
18589
|
__name: "product-input-in-table",
|
|
18590
|
-
props: [
|
|
18590
|
+
props: [
|
|
18591
|
+
"value",
|
|
18592
|
+
"disabled",
|
|
18593
|
+
"shopValue",
|
|
18594
|
+
"doNotClearAfterFilterChange"
|
|
18595
|
+
],
|
|
18591
18596
|
emits: ["change"],
|
|
18592
18597
|
setup(__props, { emit: emits }) {
|
|
18593
18598
|
const props = __props;
|
|
@@ -18608,7 +18613,9 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
18608
18613
|
vue.watch(
|
|
18609
18614
|
() => props.shopValue,
|
|
18610
18615
|
() => {
|
|
18611
|
-
|
|
18616
|
+
if (!props.doNotClearAfterFilterChange) {
|
|
18617
|
+
emitChange("");
|
|
18618
|
+
}
|
|
18612
18619
|
}
|
|
18613
18620
|
);
|
|
18614
18621
|
return (_ctx, _cache) => {
|
|
@@ -18852,6 +18859,18 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
18852
18859
|
);
|
|
18853
18860
|
const tableConfig = vue.computed(() => props.rule?.config?.tableConfig || {});
|
|
18854
18861
|
const validColumns = vue.computed(() => columns.filter((c) => isValidColumn(c)));
|
|
18862
|
+
const isProductCenter = vue.computed(
|
|
18863
|
+
() => tableConfig.value?.system === "productCenter"
|
|
18864
|
+
);
|
|
18865
|
+
const isProductCenterSuit = vue.computed(
|
|
18866
|
+
() => isProductCenter.value && [
|
|
18867
|
+
"F2CTemplate",
|
|
18868
|
+
"B2CTemplate",
|
|
18869
|
+
"DistributeTemp",
|
|
18870
|
+
"FreshTemplate",
|
|
18871
|
+
"activityApply"
|
|
18872
|
+
].includes(tableConfig.value.template)
|
|
18873
|
+
);
|
|
18855
18874
|
function isShow(key) {
|
|
18856
18875
|
return props.rule.config.tableAdvancedFeatures.includes(key);
|
|
18857
18876
|
}
|
|
@@ -18869,6 +18888,14 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
18869
18888
|
width: "54px"
|
|
18870
18889
|
});
|
|
18871
18890
|
}
|
|
18891
|
+
if (isProductCenterSuit.value) {
|
|
18892
|
+
columns.push({
|
|
18893
|
+
type: "seq",
|
|
18894
|
+
title: "\u5E8F\u53F7",
|
|
18895
|
+
width: "62px",
|
|
18896
|
+
align: "center"
|
|
18897
|
+
});
|
|
18898
|
+
}
|
|
18872
18899
|
childRules?.length && columns.push(
|
|
18873
18900
|
...childRules.reduce((pre, cur) => {
|
|
18874
18901
|
if (cur.hidden) {
|
|
@@ -18935,13 +18962,7 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
18935
18962
|
}
|
|
18936
18963
|
}
|
|
18937
18964
|
];
|
|
18938
|
-
if (
|
|
18939
|
-
"F2CTemplate",
|
|
18940
|
-
"B2CTemplate",
|
|
18941
|
-
"DistributeTemp",
|
|
18942
|
-
"FreshTemplate",
|
|
18943
|
-
"activityApply"
|
|
18944
|
-
].includes(tableConfig.value.template) && rule.name === "product") {
|
|
18965
|
+
if (isProductCenterSuit.value && rule.name === "product") {
|
|
18945
18966
|
columns2[0].title = "\u5546\u54C1\u7F16\u53F7";
|
|
18946
18967
|
}
|
|
18947
18968
|
if (associatedFields.length) {
|
|
@@ -18987,15 +19008,30 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
18987
19008
|
delete newData._X_ROW_KEY;
|
|
18988
19009
|
data.push(newData);
|
|
18989
19010
|
}
|
|
18990
|
-
function handleDelete(index) {
|
|
18991
|
-
|
|
19011
|
+
async function handleDelete(index, needConfirm = true) {
|
|
19012
|
+
if (isProductCenter.value && needConfirm) {
|
|
19013
|
+
if (await utils__default["default"].confirmModal("\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u9879\uFF1F")) {
|
|
19014
|
+
data.splice(index, 1);
|
|
19015
|
+
}
|
|
19016
|
+
} else {
|
|
19017
|
+
data.splice(index, 1);
|
|
19018
|
+
}
|
|
18992
19019
|
}
|
|
18993
|
-
function handleBatchDelete() {
|
|
19020
|
+
async function handleBatchDelete() {
|
|
18994
19021
|
const selected = xGrid.value.getCheckboxRecords();
|
|
18995
|
-
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
19022
|
+
if (isProductCenter.value) {
|
|
19023
|
+
if (await utils__default["default"].confirmModal(`\u786E\u5B9A\u8981\u5220\u9664\u6240\u9009\u7684${selected?.length}\u6761\u6570\u636E\u4E48\uFF1F`)) {
|
|
19024
|
+
selected.forEach((item) => {
|
|
19025
|
+
const index = data.indexOf(item);
|
|
19026
|
+
handleDelete(index, false);
|
|
19027
|
+
});
|
|
19028
|
+
}
|
|
19029
|
+
} else {
|
|
19030
|
+
selected.forEach((item) => {
|
|
19031
|
+
const index = data.indexOf(item);
|
|
19032
|
+
handleDelete(index, false);
|
|
19033
|
+
});
|
|
19034
|
+
}
|
|
18999
19035
|
}
|
|
19000
19036
|
function handleDownload() {
|
|
19001
19037
|
xGrid.value.exportData({
|
|
@@ -19006,9 +19042,18 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
19006
19042
|
}
|
|
19007
19043
|
});
|
|
19008
19044
|
}
|
|
19009
|
-
function handleImport() {
|
|
19045
|
+
async function handleImport() {
|
|
19010
19046
|
if (importDisabled()) {
|
|
19011
19047
|
antDesignVue.message.error("\u8BF7\u5148\u9009\u62E9\u5E97\u94FA\uFF01");
|
|
19048
|
+
} else if (isProductCenterSuit.value) {
|
|
19049
|
+
if (data.length > 0) {
|
|
19050
|
+
if (await utils__default["default"].confirmModal("\u518D\u6B21\u6279\u5BFC\u4F1A\u8986\u76D6\u5DF2\u6709\u6570\u636E")) {
|
|
19051
|
+
data.splice(0, data.length);
|
|
19052
|
+
inputRef.value.click();
|
|
19053
|
+
}
|
|
19054
|
+
} else {
|
|
19055
|
+
inputRef.value.click();
|
|
19056
|
+
}
|
|
19012
19057
|
} else {
|
|
19013
19058
|
inputRef.value.click();
|
|
19014
19059
|
}
|
|
@@ -19056,13 +19101,7 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
19056
19101
|
});
|
|
19057
19102
|
}
|
|
19058
19103
|
function processOtherAssociatedFields(field, fields, row, result) {
|
|
19059
|
-
if (
|
|
19060
|
-
"F2CTemplate",
|
|
19061
|
-
"B2CTemplate",
|
|
19062
|
-
"DistributeTemp",
|
|
19063
|
-
"FreshTemplate",
|
|
19064
|
-
"activityApply"
|
|
19065
|
-
].includes(tableConfig.value.template)) {
|
|
19104
|
+
if (isProductCenterSuit.value) {
|
|
19066
19105
|
fields?.forEach?.((item) => {
|
|
19067
19106
|
row[item] = result ? result[item] : void 0;
|
|
19068
19107
|
});
|
|
@@ -19095,7 +19134,7 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
19095
19134
|
file && reader.readAsText(file, "GB2312");
|
|
19096
19135
|
}
|
|
19097
19136
|
function isValidColumn(c) {
|
|
19098
|
-
return c.type !== "checkbox" && c.field !== oper;
|
|
19137
|
+
return c.type !== "checkbox" && c.type !== "seq" && c.field !== oper;
|
|
19099
19138
|
}
|
|
19100
19139
|
function parseCsv(result) {
|
|
19101
19140
|
let data2 = [];
|
|
@@ -19297,6 +19336,13 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
19297
19336
|
}
|
|
19298
19337
|
function handlePressEnter(value, rule, row) {
|
|
19299
19338
|
row[rule.field] = value;
|
|
19339
|
+
if (isProductCenterSuit.value && rule.field === "productCode") {
|
|
19340
|
+
Object.keys(row).forEach((key) => {
|
|
19341
|
+
if (!["productCode", "_X_ROW_KEY"].includes(key)) {
|
|
19342
|
+
row[key] = void 0;
|
|
19343
|
+
}
|
|
19344
|
+
});
|
|
19345
|
+
}
|
|
19300
19346
|
queryProductInfo(rule, row);
|
|
19301
19347
|
}
|
|
19302
19348
|
function handleShopOption(value, rule, row) {
|
|
@@ -19441,6 +19487,12 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
19441
19487
|
e.target.value = "";
|
|
19442
19488
|
}
|
|
19443
19489
|
}
|
|
19490
|
+
function getProductClearSetting(field) {
|
|
19491
|
+
let setting = props.rule.config.childRules?.find((rule) => {
|
|
19492
|
+
return rule.field === field;
|
|
19493
|
+
});
|
|
19494
|
+
return !!setting?.config?.doNotClearAfterFilterChange;
|
|
19495
|
+
}
|
|
19444
19496
|
return (_ctx, _cache) => {
|
|
19445
19497
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
|
|
19446
19498
|
vue.createElementVNode("div", _hoisted_2$4, [
|
|
@@ -19626,8 +19678,9 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
19626
19678
|
value: row[item.field],
|
|
19627
19679
|
disabled: item.disabled || pruductInputDisabled(item.config?.dataFiltering),
|
|
19628
19680
|
"shop-value": vue.unref(formData)[item.config.dataFiltering],
|
|
19681
|
+
"do-not-clear-after-filter-change": getProductClearSetting(item.field),
|
|
19629
19682
|
onChange: ($event) => handlePressEnter($event, item, row)
|
|
19630
|
-
}, null, 8, ["value", "disabled", "shop-value", "onChange"])
|
|
19683
|
+
}, null, 8, ["value", "disabled", "shop-value", "do-not-clear-after-filter-change", "onChange"])
|
|
19631
19684
|
])
|
|
19632
19685
|
};
|
|
19633
19686
|
}),
|
|
@@ -20304,6 +20357,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20304
20357
|
props: [
|
|
20305
20358
|
"associatedFields",
|
|
20306
20359
|
"dataFiltering",
|
|
20360
|
+
"doNotClearAfterFilterChange",
|
|
20307
20361
|
"required",
|
|
20308
20362
|
"extraConfig",
|
|
20309
20363
|
"defalutValue",
|
|
@@ -20377,7 +20431,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20377
20431
|
vue.watch(
|
|
20378
20432
|
() => formData.value[props.dataFiltering],
|
|
20379
20433
|
() => {
|
|
20380
|
-
if (inputValue.value) {
|
|
20434
|
+
if (inputValue.value && !props.doNotClearAfterFilterChange) {
|
|
20381
20435
|
reset();
|
|
20382
20436
|
}
|
|
20383
20437
|
}
|
|
@@ -20483,6 +20537,7 @@ var product = {
|
|
|
20483
20537
|
required: data.effect.required,
|
|
20484
20538
|
associatedFields: data.config.associatedFields,
|
|
20485
20539
|
dataFiltering: data.config.dataFiltering,
|
|
20540
|
+
doNotClearAfterFilterChange: data.config.doNotClearAfterFilterChange,
|
|
20486
20541
|
extraConfig: extraConfig,
|
|
20487
20542
|
defalutValue: data.value,
|
|
20488
20543
|
},
|
|
@@ -20512,6 +20567,7 @@ var product = {
|
|
|
20512
20567
|
required: data.effect.required,
|
|
20513
20568
|
associatedFields: data.config.associatedFields,
|
|
20514
20569
|
dataFiltering: data.config.dataFiltering,
|
|
20570
|
+
doNotClearAfterFilterChange: data.config.doNotClearAfterFilterChange,
|
|
20515
20571
|
defalutValue: data.value,
|
|
20516
20572
|
extraConfig: extraConfig,
|
|
20517
20573
|
},
|
|
@@ -4103,6 +4103,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4103
4103
|
return newRule;
|
|
4104
4104
|
}
|
|
4105
4105
|
function handleFormItemCopy(rule, parentRule) {
|
|
4106
|
+
if (!props?.dragCheckFunc(rule.config.config)) {
|
|
4107
|
+
return;
|
|
4108
|
+
}
|
|
4106
4109
|
const newRule = copyRule(
|
|
4107
4110
|
rule,
|
|
4108
4111
|
rule.config.config,
|
|
@@ -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
|
+
placement: string;
|
|
129
|
+
fieldNames: Record<string, any>;
|
|
128
130
|
placeholder: string;
|
|
129
131
|
list: unknown[];
|
|
130
|
-
placement: string;
|
|
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
|
+
placement: string;
|
|
127
|
+
fieldNames: Record<string, any>;
|
|
126
128
|
placeholder: string;
|
|
127
129
|
list: unknown[];
|
|
128
|
-
placement: string;
|
|
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;
|
|
@@ -287,6 +287,7 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
287
287
|
onSetDefault?: ((...args: any[]) => any) | undefined;
|
|
288
288
|
}, {
|
|
289
289
|
loading: boolean;
|
|
290
|
+
labelCol: Record<string, any>;
|
|
290
291
|
value: Record<string, any>;
|
|
291
292
|
showExpandBtn: boolean;
|
|
292
293
|
showSearchIcon: boolean;
|
|
@@ -300,7 +301,6 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
300
301
|
setDefaultConfirmConfig: Record<string, any>;
|
|
301
302
|
gutter: number[];
|
|
302
303
|
userRule: unknown[];
|
|
303
|
-
labelCol: Record<string, any>;
|
|
304
304
|
ruleSpan: Record<string, any>;
|
|
305
305
|
fixedCount: number;
|
|
306
306
|
fixedFields: string[];
|
|
@@ -104,7 +104,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
104
104
|
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>>;
|
|
105
105
|
prefixCls: StringConstructor;
|
|
106
106
|
direction: {
|
|
107
|
-
type: import("vue").PropType<"
|
|
107
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
108
108
|
};
|
|
109
109
|
open: {
|
|
110
110
|
type: BooleanConstructor;
|
|
@@ -129,7 +129,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
129
129
|
};
|
|
130
130
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
131
131
|
showAction: {
|
|
132
|
-
type: import("vue").PropType<("
|
|
132
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
133
133
|
};
|
|
134
134
|
id: StringConstructor;
|
|
135
135
|
placement: {
|
|
@@ -267,7 +267,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
267
267
|
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>>;
|
|
268
268
|
prefixCls: StringConstructor;
|
|
269
269
|
direction: {
|
|
270
|
-
type: import("vue").PropType<"
|
|
270
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
271
271
|
};
|
|
272
272
|
open: {
|
|
273
273
|
type: BooleanConstructor;
|
|
@@ -292,7 +292,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
292
292
|
};
|
|
293
293
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
294
294
|
showAction: {
|
|
295
|
-
type: import("vue").PropType<("
|
|
295
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
296
296
|
};
|
|
297
297
|
id: StringConstructor;
|
|
298
298
|
placement: {
|
|
@@ -453,7 +453,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
453
453
|
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>>;
|
|
454
454
|
prefixCls: StringConstructor;
|
|
455
455
|
direction: {
|
|
456
|
-
type: import("vue").PropType<"
|
|
456
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
457
457
|
};
|
|
458
458
|
open: {
|
|
459
459
|
type: BooleanConstructor;
|
|
@@ -478,7 +478,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
478
478
|
};
|
|
479
479
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
480
480
|
showAction: {
|
|
481
|
-
type: import("vue").PropType<("
|
|
481
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
482
482
|
};
|
|
483
483
|
id: StringConstructor;
|
|
484
484
|
placement: {
|
|
@@ -606,7 +606,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
606
606
|
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>>;
|
|
607
607
|
prefixCls: StringConstructor;
|
|
608
608
|
direction: {
|
|
609
|
-
type: import("vue").PropType<"
|
|
609
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
610
610
|
};
|
|
611
611
|
open: {
|
|
612
612
|
type: BooleanConstructor;
|
|
@@ -631,7 +631,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
631
631
|
};
|
|
632
632
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
633
633
|
showAction: {
|
|
634
|
-
type: import("vue").PropType<("
|
|
634
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
635
635
|
};
|
|
636
636
|
id: StringConstructor;
|
|
637
637
|
placement: {
|
|
@@ -287,6 +287,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
287
287
|
onSetDefault?: ((...args: any[]) => any) | undefined;
|
|
288
288
|
}, {
|
|
289
289
|
loading: boolean;
|
|
290
|
+
labelCol: Record<string, any>;
|
|
290
291
|
value: Record<string, any>;
|
|
291
292
|
showExpandBtn: boolean;
|
|
292
293
|
showSearchIcon: boolean;
|
|
@@ -300,7 +301,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
300
301
|
setDefaultConfirmConfig: Record<string, any>;
|
|
301
302
|
gutter: number[];
|
|
302
303
|
userRule: unknown[];
|
|
303
|
-
labelCol: Record<string, any>;
|
|
304
304
|
ruleSpan: Record<string, any>;
|
|
305
305
|
fixedCount: number;
|
|
306
306
|
fixedFields: string[];
|
|
@@ -31,7 +31,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
31
31
|
searchList: never[];
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
emit: (event: "
|
|
34
|
+
emit: (event: "onChange" | "update:value" | "onSelectAll", ...args: any[]) => void;
|
|
35
35
|
selectValue: any;
|
|
36
36
|
selectAll: (e: any) => void;
|
|
37
37
|
checkAll: (select: any, key: any) => never[];
|
|
@@ -103,7 +103,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
103
103
|
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>>;
|
|
104
104
|
prefixCls: StringConstructor;
|
|
105
105
|
direction: {
|
|
106
|
-
type: import("vue").PropType<"
|
|
106
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
107
107
|
};
|
|
108
108
|
open: {
|
|
109
109
|
type: BooleanConstructor;
|
|
@@ -128,7 +128,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
128
128
|
};
|
|
129
129
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
130
130
|
showAction: {
|
|
131
|
-
type: import("vue").PropType<("
|
|
131
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
132
132
|
};
|
|
133
133
|
id: StringConstructor;
|
|
134
134
|
placement: {
|
|
@@ -266,7 +266,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
266
266
|
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>>;
|
|
267
267
|
prefixCls: StringConstructor;
|
|
268
268
|
direction: {
|
|
269
|
-
type: import("vue").PropType<"
|
|
269
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
270
270
|
};
|
|
271
271
|
open: {
|
|
272
272
|
type: BooleanConstructor;
|
|
@@ -291,7 +291,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
291
291
|
};
|
|
292
292
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
293
293
|
showAction: {
|
|
294
|
-
type: import("vue").PropType<("
|
|
294
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
295
295
|
};
|
|
296
296
|
id: StringConstructor;
|
|
297
297
|
placement: {
|
|
@@ -452,7 +452,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
452
452
|
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>>;
|
|
453
453
|
prefixCls: StringConstructor;
|
|
454
454
|
direction: {
|
|
455
|
-
type: import("vue").PropType<"
|
|
455
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
456
456
|
};
|
|
457
457
|
open: {
|
|
458
458
|
type: BooleanConstructor;
|
|
@@ -477,7 +477,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
477
477
|
};
|
|
478
478
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
479
479
|
showAction: {
|
|
480
|
-
type: import("vue").PropType<("
|
|
480
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
481
481
|
};
|
|
482
482
|
id: StringConstructor;
|
|
483
483
|
placement: {
|
|
@@ -605,7 +605,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
605
605
|
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>>;
|
|
606
606
|
prefixCls: StringConstructor;
|
|
607
607
|
direction: {
|
|
608
|
-
type: import("vue").PropType<"
|
|
608
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
609
609
|
};
|
|
610
610
|
open: {
|
|
611
611
|
type: BooleanConstructor;
|
|
@@ -630,7 +630,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
630
630
|
};
|
|
631
631
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
632
632
|
showAction: {
|
|
633
|
-
type: import("vue").PropType<("
|
|
633
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
634
634
|
};
|
|
635
635
|
id: StringConstructor;
|
|
636
636
|
placement: {
|
|
@@ -738,7 +738,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
738
738
|
readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
|
|
739
739
|
readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
740
740
|
};
|
|
741
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
741
|
+
}, 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<{
|
|
742
742
|
value: {
|
|
743
743
|
type: ArrayConstructor;
|
|
744
744
|
required: true;
|
|
@@ -31,7 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
searchList: never[];
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
emit: (event: "
|
|
34
|
+
emit: (event: "onChange" | "update:value" | "onSelectAll", ...args: any[]) => void;
|
|
35
35
|
selectValue: any;
|
|
36
36
|
selectAll: (e: any) => void;
|
|
37
37
|
checkAll: (select: any, key: any) => never[];
|
|
@@ -103,7 +103,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
103
103
|
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>>;
|
|
104
104
|
prefixCls: StringConstructor;
|
|
105
105
|
direction: {
|
|
106
|
-
type: import("vue").PropType<"
|
|
106
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
107
107
|
};
|
|
108
108
|
open: {
|
|
109
109
|
type: BooleanConstructor;
|
|
@@ -128,7 +128,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
128
128
|
};
|
|
129
129
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
130
130
|
showAction: {
|
|
131
|
-
type: import("vue").PropType<("
|
|
131
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
132
132
|
};
|
|
133
133
|
id: StringConstructor;
|
|
134
134
|
placement: {
|
|
@@ -266,7 +266,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
266
266
|
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>>;
|
|
267
267
|
prefixCls: StringConstructor;
|
|
268
268
|
direction: {
|
|
269
|
-
type: import("vue").PropType<"
|
|
269
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
270
270
|
};
|
|
271
271
|
open: {
|
|
272
272
|
type: BooleanConstructor;
|
|
@@ -291,7 +291,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
291
291
|
};
|
|
292
292
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
293
293
|
showAction: {
|
|
294
|
-
type: import("vue").PropType<("
|
|
294
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
295
295
|
};
|
|
296
296
|
id: StringConstructor;
|
|
297
297
|
placement: {
|
|
@@ -452,7 +452,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
452
452
|
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>>;
|
|
453
453
|
prefixCls: StringConstructor;
|
|
454
454
|
direction: {
|
|
455
|
-
type: import("vue").PropType<"
|
|
455
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
456
456
|
};
|
|
457
457
|
open: {
|
|
458
458
|
type: BooleanConstructor;
|
|
@@ -477,7 +477,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
477
477
|
};
|
|
478
478
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
479
479
|
showAction: {
|
|
480
|
-
type: import("vue").PropType<("
|
|
480
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
481
481
|
};
|
|
482
482
|
id: StringConstructor;
|
|
483
483
|
placement: {
|
|
@@ -605,7 +605,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
605
605
|
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>>;
|
|
606
606
|
prefixCls: StringConstructor;
|
|
607
607
|
direction: {
|
|
608
|
-
type: import("vue").PropType<"
|
|
608
|
+
type: import("vue").PropType<"ltr" | "rtl">;
|
|
609
609
|
};
|
|
610
610
|
open: {
|
|
611
611
|
type: BooleanConstructor;
|
|
@@ -630,7 +630,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
630
630
|
};
|
|
631
631
|
children: import("vue").PropType<import("ant-design-vue/lib/_util/type").VueNode[]>;
|
|
632
632
|
showAction: {
|
|
633
|
-
type: import("vue").PropType<("
|
|
633
|
+
type: import("vue").PropType<("click" | "focus")[]>;
|
|
634
634
|
};
|
|
635
635
|
id: StringConstructor;
|
|
636
636
|
placement: {
|
|
@@ -738,7 +738,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
738
738
|
readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
|
|
739
739
|
readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
740
740
|
};
|
|
741
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
741
|
+
}, 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<{
|
|
742
742
|
value: {
|
|
743
743
|
type: ArrayConstructor;
|
|
744
744
|
required: true;
|
|
@@ -1050,8 +1050,8 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
1050
1050
|
visible: boolean;
|
|
1051
1051
|
title: string;
|
|
1052
1052
|
mode: string;
|
|
1053
|
-
unitStr: string;
|
|
1054
1053
|
showCount: boolean;
|
|
1054
|
+
unitStr: string;
|
|
1055
1055
|
limit: number;
|
|
1056
1056
|
load: Function;
|
|
1057
1057
|
forceStatic: boolean;
|
|
@@ -1050,8 +1050,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1050
1050
|
visible: boolean;
|
|
1051
1051
|
title: string;
|
|
1052
1052
|
mode: string;
|
|
1053
|
-
unitStr: string;
|
|
1054
1053
|
showCount: boolean;
|
|
1054
|
+
unitStr: string;
|
|
1055
1055
|
limit: number;
|
|
1056
1056
|
load: Function;
|
|
1057
1057
|
forceStatic: boolean;
|
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@ declare const BmEditForm: import("bm-admin-ui/es/utils/with-install").SFCWithIns
|
|
|
48
48
|
tmpForm: import("vue").Ref<Record<string, any>>;
|
|
49
49
|
formRef: import("vue").Ref<import("ant-design-vue").FormInstance | null>;
|
|
50
50
|
colCount: import("vue").ComputedRef<2 | 1 | 3>;
|
|
51
|
-
getValueOfOption: (key: string | undefined, defaultKey: "
|
|
51
|
+
getValueOfOption: (key: string | undefined, defaultKey: "label" | "value", option: any) => string;
|
|
52
52
|
getPopupContainer: (e: any) => any;
|
|
53
53
|
getColsConfig: (type: "labelCol" | "wrapperCol", item: import("./src/types").Control, index?: number | undefined) => {
|
|
54
54
|
flex?: string | undefined;
|
|
@@ -142,8 +142,8 @@ declare const BmEditForm: import("bm-admin-ui/es/utils/with-install").SFCWithIns
|
|
|
142
142
|
"onKeyup:formItem"?: ((...args: any[]) => any) | undefined;
|
|
143
143
|
"onFocus:formItem"?: ((...args: any[]) => any) | undefined;
|
|
144
144
|
}, {
|
|
145
|
-
form: Record<string, any> | null;
|
|
146
145
|
config: import("./src/types").FormConfig;
|
|
146
|
+
form: Record<string, any> | null;
|
|
147
147
|
groupRules: Record<string, import("ant-design-vue/lib/form").RuleObject | import("ant-design-vue/lib/form").RuleObject[] | undefined>;
|
|
148
148
|
}>>;
|
|
149
149
|
export { BmEditForm };
|
|
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
47
|
tmpForm: import("vue").Ref<Record<string, any>>;
|
|
48
48
|
formRef: import("vue").Ref<FormInstance | null>;
|
|
49
49
|
colCount: import("vue").ComputedRef<2 | 1 | 3>;
|
|
50
|
-
getValueOfOption: (key: string | undefined, defaultKey: "
|
|
50
|
+
getValueOfOption: (key: string | undefined, defaultKey: "label" | "value", option: any) => string;
|
|
51
51
|
getPopupContainer: (e: any) => any;
|
|
52
52
|
getColsConfig: (type: "labelCol" | "wrapperCol", item: import("./types").Control, index?: number | undefined) => {
|
|
53
53
|
flex?: string | undefined;
|
|
@@ -141,8 +141,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
141
|
"onKeyup:formItem"?: ((...args: any[]) => any) | undefined;
|
|
142
142
|
"onFocus:formItem"?: ((...args: any[]) => any) | undefined;
|
|
143
143
|
}, {
|
|
144
|
-
form: Record<string, any> | null;
|
|
145
144
|
config: import("./types").FormConfig;
|
|
145
|
+
form: Record<string, any> | null;
|
|
146
146
|
groupRules: Record<string, import("ant-design-vue/lib/form").RuleObject | import("ant-design-vue/lib/form").RuleObject[] | undefined>;
|
|
147
147
|
}>;
|
|
148
148
|
export default _default;
|