bm-admin-ui 1.2.27-alpha → 1.2.29-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/attachment/index.d.ts +1 -1
- package/es/components/attachment/src/attachment.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +1 -1
- package/es/components/button/src/button.vue.d.ts +1 -1
- package/es/components/cascader/index.d.ts +1 -1
- package/es/components/cascader/src/cascader.vue.d.ts +1 -1
- 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 +3 -3
- package/es/components/editor/src/editor.vue.d.ts +3 -3
- package/es/components/feedback/index.d.ts +12 -12
- package/es/components/feedback/src/bmAlert.vue.d.ts +5 -5
- package/es/components/feedback/src/bmModal.vue.d.ts +7 -7
- package/es/components/flow-designer/index.js +10 -32
- package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +0 -14
- package/es/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +0 -1
- package/es/components/form-create/index.js +195 -729
- package/es/components/form-designer/index.js +21 -116
- package/es/components/over-tooltips/index.d.ts +1 -1
- package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +1 -1
- package/es/components/staffs-selector/index.d.ts +8 -8
- package/es/components/staffs-selector/index.js +2 -2
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
- package/es/components/upload/index.d.ts +1 -1
- package/es/components/upload/src/upload.vue.d.ts +1 -1
- package/es/utils/isNull.js +1 -1
- package/lib/components/attachment/index.d.ts +1 -1
- package/lib/components/attachment/src/attachment.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/cascader/index.d.ts +1 -1
- package/lib/components/cascader/src/cascader.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 +3 -3
- package/lib/components/editor/src/editor.vue.d.ts +3 -3
- package/lib/components/feedback/index.d.ts +12 -12
- package/lib/components/feedback/src/bmAlert.vue.d.ts +5 -5
- package/lib/components/feedback/src/bmModal.vue.d.ts +7 -7
- package/lib/components/flow-designer/index.js +10 -32
- package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +0 -14
- package/lib/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +0 -1
- package/lib/components/form-create/index.js +195 -732
- package/lib/components/form-designer/index.js +20 -115
- package/lib/components/over-tooltips/index.d.ts +1 -1
- package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +1 -1
- package/lib/components/staffs-selector/index.d.ts +8 -8
- package/lib/components/staffs-selector/index.js +2 -2
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
- package/lib/components/upload/index.d.ts +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +1 -1
- package/lib/utils/isNull.js +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/types/components/attachment/index.d.ts +1 -1
- package/types/components/attachment/src/attachment.vue.d.ts +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/cascader/index.d.ts +1 -1
- package/types/components/cascader/src/cascader.vue.d.ts +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 +3 -3
- package/types/components/editor/src/editor.vue.d.ts +3 -3
- package/types/components/feedback/index.d.ts +12 -12
- package/types/components/feedback/src/bmAlert.vue.d.ts +5 -5
- package/types/components/feedback/src/bmModal.vue.d.ts +7 -7
- package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +0 -14
- package/types/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +0 -1
- package/types/components/over-tooltips/index.d.ts +1 -1
- package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +1 -1
- package/types/components/staffs-selector/index.d.ts +8 -8
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
- package/types/components/upload/index.d.ts +1 -1
- package/types/components/upload/src/upload.vue.d.ts +1 -1
- package/es/utils/index.d.ts +0 -7
- package/es/utils/index.js +0 -62
- package/lib/utils/index.d.ts +0 -7
- package/lib/utils/index.js +0 -64
- package/types/utils/index.d.ts +0 -7
|
@@ -5,7 +5,7 @@ import Draggable from 'vuedraggable';
|
|
|
5
5
|
import { Tooltip, FormItemRest, Input, Button, RadioGroup, Radio, DatePicker, Checkbox, Tabs, TabPane, Row, Col, Dropdown, Menu, CheckboxGroup, MenuItem, Divider, Switch, Select, Layout, LayoutSider, LayoutContent, message } from 'ant-design-vue';
|
|
6
6
|
import { HolderOutlined, EditOutlined, PlusOutlined, QuestionCircleOutlined, InfoCircleFilled, ExclamationCircleFilled } from '@ant-design/icons-vue';
|
|
7
7
|
import { BmUpload } from 'bm-admin-ui/es/components';
|
|
8
|
-
import {
|
|
8
|
+
import { cloneDeep } from 'lodash-es';
|
|
9
9
|
import FC from '@form-create/ant-design-vue';
|
|
10
10
|
|
|
11
11
|
var WidgetType;
|
|
@@ -672,9 +672,6 @@ const label$e = '数字输入框';
|
|
|
672
672
|
const fieldsMap$e = {
|
|
673
673
|
'title.title': 'title.title',
|
|
674
674
|
'props.placeholder': 'props.placeholder',
|
|
675
|
-
'props.precision': 'props.precision',
|
|
676
|
-
'props.min': 'props.min',
|
|
677
|
-
'props.addonAfter': 'props.addonAfter',
|
|
678
675
|
value: 'value',
|
|
679
676
|
'config.fieldRatio': 'config.fieldRatio',
|
|
680
677
|
'config.count': 'config.count',
|
|
@@ -783,9 +780,6 @@ var numInput = {
|
|
|
783
780
|
},
|
|
784
781
|
props: {
|
|
785
782
|
placeholder: rule.props.placeholder,
|
|
786
|
-
precision: rule.props.precision,
|
|
787
|
-
min: rule.props.min,
|
|
788
|
-
addonAfter: rule.props.addonAfter,
|
|
789
783
|
},
|
|
790
784
|
value: rule.value,
|
|
791
785
|
config: {
|
|
@@ -1885,11 +1879,11 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1885
1879
|
emits("mouseleave");
|
|
1886
1880
|
}
|
|
1887
1881
|
function emitSetActiveRuleEvt(rule) {
|
|
1888
|
-
if (rule?.config.immutable)
|
|
1889
|
-
return;
|
|
1890
1882
|
emits("set-active-rule", rule, tableRule.value);
|
|
1891
1883
|
}
|
|
1892
1884
|
function handleClick(element) {
|
|
1885
|
+
if (element?.config.immutable)
|
|
1886
|
+
return;
|
|
1893
1887
|
emitSetActiveRuleEvt(element);
|
|
1894
1888
|
}
|
|
1895
1889
|
function handleUpdate({ newIndex }) {
|
|
@@ -2791,7 +2785,7 @@ var materialTemp = {
|
|
|
2791
2785
|
const _hoisted_1$7 = /* @__PURE__ */ createElementVNode("div", { class: "bm-product-info-item__title" }, "\u5546\u54C1\u7F16\u53F7", -1);
|
|
2792
2786
|
const _hoisted_2$5 = { class: "bm-product-info-item__content" };
|
|
2793
2787
|
const _hoisted_3$4 = { class: "bm-product-info-item__title" };
|
|
2794
|
-
const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("div", { class: "bm-product-info-item__content" }, "\u7CFB\u7EDF\u81EA\u52A8\
|
|
2788
|
+
const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("div", { class: "bm-product-info-item__content" }, "\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA", -1);
|
|
2795
2789
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2796
2790
|
__name: "product-info",
|
|
2797
2791
|
props: ["formCreateInject"],
|
|
@@ -3554,6 +3548,10 @@ const formDesignerProps = {
|
|
|
3554
3548
|
type: Boolean,
|
|
3555
3549
|
default: false,
|
|
3556
3550
|
},
|
|
3551
|
+
dragCheckFunc: {
|
|
3552
|
+
type: Function,
|
|
3553
|
+
default: (underlying_vm) => true,
|
|
3554
|
+
},
|
|
3557
3555
|
formRulePipe: {
|
|
3558
3556
|
type: Function,
|
|
3559
3557
|
default: (obj) => obj,
|
|
@@ -3562,13 +3560,9 @@ const formDesignerProps = {
|
|
|
3562
3560
|
type: Function,
|
|
3563
3561
|
default: (pushRuleWidget, pushRowWidget, pushTableWidget) => null,
|
|
3564
3562
|
},
|
|
3565
|
-
|
|
3563
|
+
deleteFormItemCheck: {
|
|
3566
3564
|
type: Function,
|
|
3567
|
-
default: (
|
|
3568
|
-
},
|
|
3569
|
-
dragingCallback: {
|
|
3570
|
-
type: Object,
|
|
3571
|
-
default: () => ({}),
|
|
3565
|
+
default: (targetRule, parentRule) => true,
|
|
3572
3566
|
},
|
|
3573
3567
|
};
|
|
3574
3568
|
|
|
@@ -3640,18 +3634,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3640
3634
|
});
|
|
3641
3635
|
var CheckboxSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__file", "checkbox-switch.vue"]]);
|
|
3642
3636
|
|
|
3643
|
-
function checkRuleConfigObj(obj) {
|
|
3644
|
-
if (!isObject(obj))
|
|
3645
|
-
return false;
|
|
3646
|
-
const parses = ['icon', 'label', 'name', 'parse', 'props', 'rule'];
|
|
3647
|
-
for (const parse of parses) {
|
|
3648
|
-
if (!obj[parse]) {
|
|
3649
|
-
console.error(`控件配置对象缺少【${parse}】字段,请补充完整`);
|
|
3650
|
-
return false;
|
|
3651
|
-
}
|
|
3652
|
-
}
|
|
3653
|
-
return true;
|
|
3654
|
-
}
|
|
3655
3637
|
const widgetsTableAccept = {
|
|
3656
3638
|
[input.name]: input,
|
|
3657
3639
|
[textarea.name]: textarea,
|
|
@@ -3683,20 +3665,8 @@ const widgetNamesRowAccept = [
|
|
|
3683
3665
|
shop.name,
|
|
3684
3666
|
materialType.name,
|
|
3685
3667
|
];
|
|
3686
|
-
const tableWidgetsProxy = new Proxy(widgetsTableAccept, {
|
|
3687
|
-
get(target, prop) {
|
|
3688
|
-
return target[String(prop)];
|
|
3689
|
-
},
|
|
3690
|
-
set(target, prop, value) {
|
|
3691
|
-
if (!checkRuleConfigObj(value)) {
|
|
3692
|
-
return false;
|
|
3693
|
-
}
|
|
3694
|
-
target[String(prop)] = value;
|
|
3695
|
-
return true;
|
|
3696
|
-
},
|
|
3697
|
-
});
|
|
3698
3668
|
function pushTableWidgets(key, config) {
|
|
3699
|
-
|
|
3669
|
+
widgetsTableAccept[key] = config;
|
|
3700
3670
|
}
|
|
3701
3671
|
function pushRowWidgets(key) {
|
|
3702
3672
|
widgetNamesRowAccept.push(key);
|
|
@@ -3721,20 +3691,8 @@ const rules = {
|
|
|
3721
3691
|
[shop.name]: shop,
|
|
3722
3692
|
[materialType.name]: materialType,
|
|
3723
3693
|
};
|
|
3724
|
-
const rulesProxy = new Proxy(rules, {
|
|
3725
|
-
get(target, prop) {
|
|
3726
|
-
return target[String(prop)];
|
|
3727
|
-
},
|
|
3728
|
-
set(target, prop, value) {
|
|
3729
|
-
if (!checkRuleConfigObj(value)) {
|
|
3730
|
-
return false;
|
|
3731
|
-
}
|
|
3732
|
-
target[String(prop)] = value;
|
|
3733
|
-
return true;
|
|
3734
|
-
},
|
|
3735
|
-
});
|
|
3736
3694
|
function pushRuleWidgets(key, config) {
|
|
3737
|
-
|
|
3695
|
+
rules[key] = config;
|
|
3738
3696
|
}
|
|
3739
3697
|
|
|
3740
3698
|
const _hoisted_1$1 = {
|
|
@@ -3956,19 +3914,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3956
3914
|
department: "\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u5185\u5BB9\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539"
|
|
3957
3915
|
};
|
|
3958
3916
|
const tabData = typeof props.formRulePipe === "function" ? props.formRulePipe(createTab()) : [];
|
|
3959
|
-
(() => {
|
|
3960
|
-
if (!(tabData instanceof Array)) {
|
|
3961
|
-
console.error("formRulePipe\u5C5E\u6027\u8FD4\u56DE\u53C2\u6570\u7C7B\u578B\u5E94\u4E3AArray");
|
|
3962
|
-
}
|
|
3963
|
-
tabData.some((tab) => {
|
|
3964
|
-
if (!tab["key"] || !tab["tab"] || !tab["menuList"] || !(tab["menuList"] instanceof Array)) {
|
|
3965
|
-
console.error(
|
|
3966
|
-
"\u8BF7\u6B63\u786E\u914D\u7F6EformRulePipe\u8FD4\u56DE\u6570\u7EC4\u7C7B\u578B:{key:string, tab:string, menuList: {name:string, title: string, list: any[]}[]}[]"
|
|
3967
|
-
);
|
|
3968
|
-
return true;
|
|
3969
|
-
}
|
|
3970
|
-
});
|
|
3971
|
-
})();
|
|
3972
3917
|
typeof props.addWidgetFunc === "function" && props.addWidgetFunc(pushRuleWidgets, pushRowWidgets, pushTableWidgets);
|
|
3973
3918
|
const activeKey = ref("controlLibrary");
|
|
3974
3919
|
const widgetFormRules = reactive([]);
|
|
@@ -3976,18 +3921,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3976
3921
|
const cacheProps = reactive({});
|
|
3977
3922
|
const fApi = ref();
|
|
3978
3923
|
const activeParentRule = ref();
|
|
3979
|
-
const defaultCallbackfun = {
|
|
3980
|
-
movingCallback: (config) => true,
|
|
3981
|
-
deleteCallback: (targetRule, parentRule) => true,
|
|
3982
|
-
afterAdded: (targetRule, parentRule) => null,
|
|
3983
|
-
rearrangeCallback: (config) => true
|
|
3984
|
-
};
|
|
3985
|
-
function executeCallback(func) {
|
|
3986
|
-
if (!props.dragingCallback[func] || typeof props.dragingCallback[func] !== "function") {
|
|
3987
|
-
return defaultCallbackfun[func];
|
|
3988
|
-
}
|
|
3989
|
-
return props.dragingCallback[func];
|
|
3990
|
-
}
|
|
3991
3924
|
const menuList = computed(
|
|
3992
3925
|
() => tabData.find((tab) => tab.key === activeKey.value)?.menuList
|
|
3993
3926
|
);
|
|
@@ -4020,14 +3953,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4020
3953
|
}
|
|
4021
3954
|
}
|
|
4022
3955
|
function moveMenuItem(evt) {
|
|
4023
|
-
return
|
|
4024
|
-
evt?.dragged?._underlying_vm_?.config?.config
|
|
4025
|
-
) && checkDragMove(evt);
|
|
3956
|
+
return props?.dragCheckFunc(evt?.dragged?._underlying_vm_) && checkDragMove(evt);
|
|
4026
3957
|
}
|
|
4027
3958
|
function moveFormItem(evt) {
|
|
4028
|
-
return
|
|
4029
|
-
evt?.dragged?._underlying_vm_?.config?.config
|
|
4030
|
-
) && checkDragMove(evt);
|
|
3959
|
+
return props?.dragCheckFunc(evt?.dragged?._underlying_vm_) && checkDragMove(evt);
|
|
4031
3960
|
}
|
|
4032
3961
|
function handleMenuItemDragStart(evt) {
|
|
4033
3962
|
const item = evt.item.children[0];
|
|
@@ -4051,9 +3980,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4051
3980
|
const rule = makeRule(config);
|
|
4052
3981
|
const activeParentRuleName = activeParentRule.value?.config?.config?.name;
|
|
4053
3982
|
if (!widgetNamesRowAccept.includes(config.name) && activeParentRuleName === "row" || !Object.keys(widgetsTableAccept).includes(config.name) && activeParentRuleName === "table") {
|
|
4054
|
-
disabledTip(activeParentRule.value
|
|
4055
|
-
} else if (!executeCallback("movingCallback")(config)) {
|
|
4056
|
-
return;
|
|
3983
|
+
disabledTip(activeParentRule.value.config.config.name);
|
|
4057
3984
|
} else {
|
|
4058
3985
|
const index = activeRuleInList.value.findIndex(
|
|
4059
3986
|
(item) => item.field === activeRule.value.field
|
|
@@ -4089,7 +4016,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4089
4016
|
}
|
|
4090
4017
|
function handleFormItemAdd({ newIndex }) {
|
|
4091
4018
|
const rule = widgetFormRules[newIndex];
|
|
4092
|
-
executeCallback("afterAdded")(rule, void 0);
|
|
4093
4019
|
dragAdd(rule);
|
|
4094
4020
|
hideShowDragTip();
|
|
4095
4021
|
}
|
|
@@ -4125,9 +4051,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4125
4051
|
return newRule;
|
|
4126
4052
|
}
|
|
4127
4053
|
function handleFormItemCopy(rule, parentRule) {
|
|
4128
|
-
if (!executeCallback("movingCallback")(rule.config.config)) {
|
|
4129
|
-
return;
|
|
4130
|
-
}
|
|
4131
4054
|
const newRule = copyRule(
|
|
4132
4055
|
rule,
|
|
4133
4056
|
rule.config.config,
|
|
@@ -4136,10 +4059,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4136
4059
|
setActiveRule(newRule, parentRule);
|
|
4137
4060
|
}
|
|
4138
4061
|
function handleFormItemDelete(targetRule, parentRule) {
|
|
4139
|
-
const customerCheck =
|
|
4140
|
-
targetRule,
|
|
4141
|
-
parentRule
|
|
4142
|
-
);
|
|
4062
|
+
const customerCheck = props.deleteFormItemCheck(targetRule, parentRule);
|
|
4143
4063
|
if (!customerCheck) {
|
|
4144
4064
|
return;
|
|
4145
4065
|
}
|
|
@@ -4159,9 +4079,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4159
4079
|
delete cacheProps[targetRule.field];
|
|
4160
4080
|
if (targetRule.field === activeRule.value.field) {
|
|
4161
4081
|
const newIndex = Math.min(parentList.length - 1, index);
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
setActiveRule(next);
|
|
4082
|
+
if (newIndex >= 0) {
|
|
4083
|
+
setActiveRule(parentList[newIndex]);
|
|
4165
4084
|
} else if (parentRule) {
|
|
4166
4085
|
setActiveRule(parentRule);
|
|
4167
4086
|
} else {
|
|
@@ -4236,7 +4155,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4236
4155
|
});
|
|
4237
4156
|
}
|
|
4238
4157
|
function handleWidgetAdd(rule, parentRule) {
|
|
4239
|
-
executeCallback("afterAdded")(rule, parentRule);
|
|
4240
4158
|
dragAdd(rule, parentRule);
|
|
4241
4159
|
}
|
|
4242
4160
|
function handlePropsSetActive(rule) {
|
|
@@ -4255,23 +4173,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4255
4173
|
if (!parentRuleType) {
|
|
4256
4174
|
rule.config.fieldRatio = "100%";
|
|
4257
4175
|
} else if (parentRuleType === WidgetType.RowWidget) {
|
|
4258
|
-
const
|
|
4259
|
-
|
|
4260
|
-
parentRuleType
|
|
4261
|
-
);
|
|
4262
|
-
if (customRadio) {
|
|
4263
|
-
rule.config.fieldRatio = customRadio;
|
|
4264
|
-
return;
|
|
4265
|
-
}
|
|
4266
|
-
rule.config.fieldRatio = ["table", "product"].includes(
|
|
4267
|
-
rule.config.config.name
|
|
4268
|
-
) ? 24 : 12;
|
|
4176
|
+
const ruleName = rule.config.config.name;
|
|
4177
|
+
rule.config.fieldRatio = ruleName === "table" || ruleName === "product" ? 24 : 12;
|
|
4269
4178
|
} else if (parentRuleType === WidgetType.TableWidget) {
|
|
4270
|
-
|
|
4271
|
-
rule.config.config.name,
|
|
4272
|
-
parentRuleType
|
|
4273
|
-
);
|
|
4274
|
-
rule.config.fieldRatio = customRadio || "140px";
|
|
4179
|
+
rule.config.fieldRatio = "140px";
|
|
4275
4180
|
}
|
|
4276
4181
|
}
|
|
4277
4182
|
function getFormRule() {
|
|
@@ -14,7 +14,7 @@ declare const BmOverTooltips: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
14
14
|
default: number;
|
|
15
15
|
};
|
|
16
16
|
width: {
|
|
17
|
-
type: (
|
|
17
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
18
18
|
default: number;
|
|
19
19
|
};
|
|
20
20
|
showAlways: {
|
|
@@ -82,8 +82,8 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
82
82
|
default: string;
|
|
83
83
|
};
|
|
84
84
|
}>> & {
|
|
85
|
-
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
86
85
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
87
87
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
88
88
|
}>>;
|
|
89
89
|
emit: (event: "change" | "update:visible" | "update:select", ...args: any[]) => void;
|
|
@@ -144,7 +144,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
144
144
|
type: BooleanConstructor;
|
|
145
145
|
default: any;
|
|
146
146
|
};
|
|
147
|
-
width: (
|
|
147
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
148
148
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
149
149
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
150
150
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -290,7 +290,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
290
290
|
modalRender: import("vue").PropType<(arg: {
|
|
291
291
|
originVNode: import("ant-design-vue/lib/_util/type").VueNode;
|
|
292
292
|
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
293
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "
|
|
293
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "keyboard" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "focusTriggerAfterClose">;
|
|
294
294
|
$attrs: {
|
|
295
295
|
[x: string]: unknown;
|
|
296
296
|
};
|
|
@@ -329,7 +329,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
329
329
|
type: BooleanConstructor;
|
|
330
330
|
default: any;
|
|
331
331
|
};
|
|
332
|
-
width: (
|
|
332
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
333
333
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
334
334
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
335
335
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -534,7 +534,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
534
534
|
type: BooleanConstructor;
|
|
535
535
|
default: any;
|
|
536
536
|
};
|
|
537
|
-
width: (
|
|
537
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
538
538
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
539
539
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
540
540
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -709,7 +709,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
709
709
|
type: BooleanConstructor;
|
|
710
710
|
default: any;
|
|
711
711
|
};
|
|
712
|
-
width: (
|
|
712
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
713
713
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
714
714
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
715
715
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -1043,12 +1043,12 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
1043
1043
|
default: string;
|
|
1044
1044
|
};
|
|
1045
1045
|
}>> & {
|
|
1046
|
-
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1047
1046
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1047
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1048
1048
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
1049
1049
|
}, {
|
|
1050
|
-
visible: boolean;
|
|
1051
1050
|
title: string;
|
|
1051
|
+
visible: boolean;
|
|
1052
1052
|
mode: string;
|
|
1053
1053
|
showCount: boolean;
|
|
1054
1054
|
unitStr: string;
|
|
@@ -191,13 +191,13 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
191
191
|
value: _ctx.searchVal,
|
|
192
192
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.searchVal = $event),
|
|
193
193
|
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D",
|
|
194
|
-
|
|
194
|
+
onBlur: _ctx.search
|
|
195
195
|
}, {
|
|
196
196
|
suffix: withCtx(() => [
|
|
197
197
|
createVNode(_component_search_outlined, { style: { color: "#9393A3" } })
|
|
198
198
|
]),
|
|
199
199
|
_: 1
|
|
200
|
-
}, 8, ["value", "
|
|
200
|
+
}, 8, ["value", "onBlur"]),
|
|
201
201
|
createElementVNode("div", _hoisted_4$3, [
|
|
202
202
|
createElementVNode("div", _hoisted_5$3, [
|
|
203
203
|
withDirectives(createVNode(_component_Checkbox, {
|
|
@@ -82,8 +82,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
82
|
default: string;
|
|
83
83
|
};
|
|
84
84
|
}>> & {
|
|
85
|
-
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
86
85
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
87
87
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
88
88
|
}>>;
|
|
89
89
|
emit: (event: "change" | "update:visible" | "update:select", ...args: any[]) => void;
|
|
@@ -144,7 +144,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
144
144
|
type: BooleanConstructor;
|
|
145
145
|
default: any;
|
|
146
146
|
};
|
|
147
|
-
width: (
|
|
147
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
148
148
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
149
149
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
150
150
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -290,7 +290,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
290
290
|
modalRender: import("vue").PropType<(arg: {
|
|
291
291
|
originVNode: import("ant-design-vue/lib/_util/type").VueNode;
|
|
292
292
|
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
293
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "
|
|
293
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "keyboard" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "focusTriggerAfterClose">;
|
|
294
294
|
$attrs: {
|
|
295
295
|
[x: string]: unknown;
|
|
296
296
|
};
|
|
@@ -329,7 +329,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
329
329
|
type: BooleanConstructor;
|
|
330
330
|
default: any;
|
|
331
331
|
};
|
|
332
|
-
width: (
|
|
332
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
333
333
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
334
334
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
335
335
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -534,7 +534,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
534
534
|
type: BooleanConstructor;
|
|
535
535
|
default: any;
|
|
536
536
|
};
|
|
537
|
-
width: (
|
|
537
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
538
538
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
539
539
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
540
540
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -709,7 +709,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
709
709
|
type: BooleanConstructor;
|
|
710
710
|
default: any;
|
|
711
711
|
};
|
|
712
|
-
width: (
|
|
712
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
713
713
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
714
714
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
715
715
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -1043,12 +1043,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1043
1043
|
default: string;
|
|
1044
1044
|
};
|
|
1045
1045
|
}>> & {
|
|
1046
|
-
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1047
1046
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1047
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1048
1048
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
1049
1049
|
}, {
|
|
1050
|
-
visible: boolean;
|
|
1051
1050
|
title: string;
|
|
1051
|
+
visible: boolean;
|
|
1052
1052
|
mode: string;
|
|
1053
1053
|
showCount: boolean;
|
|
1054
1054
|
unitStr: string;
|
|
@@ -19,7 +19,7 @@ declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
19
19
|
default: number;
|
|
20
20
|
};
|
|
21
21
|
width: {
|
|
22
|
-
type: (
|
|
22
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
23
23
|
default: number;
|
|
24
24
|
};
|
|
25
25
|
showAlways: {
|
package/es/utils/isNull.js
CHANGED
|
@@ -36,7 +36,7 @@ declare const BmAttachment: import("bm-admin-ui/es/utils/with-install").SFCWithI
|
|
|
36
36
|
default: number;
|
|
37
37
|
};
|
|
38
38
|
width: {
|
|
39
|
-
type: (
|
|
39
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
40
40
|
default: number;
|
|
41
41
|
};
|
|
42
42
|
showAlways: {
|
|
@@ -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
|
};
|
|
@@ -47,7 +47,7 @@ declare const BmEditForm: import("bm-admin-ui/es/utils/with-install").SFCWithIns
|
|
|
47
47
|
};
|
|
48
48
|
tmpForm: import("vue").Ref<Record<string, any>>;
|
|
49
49
|
formRef: import("vue").Ref<import("ant-design-vue").FormInstance | null>;
|
|
50
|
-
colCount: import("vue").ComputedRef<2 |
|
|
50
|
+
colCount: import("vue").ComputedRef<2 | 3 | 1>;
|
|
51
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) => {
|
|
@@ -103,7 +103,7 @@ declare const BmEditForm: import("bm-admin-ui/es/utils/with-install").SFCWithIns
|
|
|
103
103
|
default: number;
|
|
104
104
|
};
|
|
105
105
|
width: {
|
|
106
|
-
type: (
|
|
106
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
107
107
|
default: number;
|
|
108
108
|
};
|
|
109
109
|
showAlways: {
|
|
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
46
|
};
|
|
47
47
|
tmpForm: import("vue").Ref<Record<string, any>>;
|
|
48
48
|
formRef: import("vue").Ref<FormInstance | null>;
|
|
49
|
-
colCount: import("vue").ComputedRef<2 |
|
|
49
|
+
colCount: import("vue").ComputedRef<2 | 3 | 1>;
|
|
50
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) => {
|
|
@@ -102,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
102
|
default: number;
|
|
103
103
|
};
|
|
104
104
|
width: {
|
|
105
|
-
type: (
|
|
105
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
106
106
|
default: number;
|
|
107
107
|
};
|
|
108
108
|
showAlways: {
|
|
@@ -60,9 +60,9 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
60
60
|
default: (...args: any[]) => any;
|
|
61
61
|
};
|
|
62
62
|
}>> & {
|
|
63
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
64
63
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
65
64
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
66
66
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
67
67
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
68
68
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
@@ -139,7 +139,7 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
139
139
|
default: number;
|
|
140
140
|
};
|
|
141
141
|
width: {
|
|
142
|
-
type: (
|
|
142
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
143
143
|
default: number;
|
|
144
144
|
};
|
|
145
145
|
showAlways: {
|
|
@@ -287,9 +287,9 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
287
287
|
default: (...args: any[]) => any;
|
|
288
288
|
};
|
|
289
289
|
}>> & {
|
|
290
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
291
290
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
292
291
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
292
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
293
293
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
294
294
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
@@ -60,9 +60,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
60
|
default: (...args: any[]) => any;
|
|
61
61
|
};
|
|
62
62
|
}>> & {
|
|
63
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
64
63
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
65
64
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
66
66
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
67
67
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
68
68
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
@@ -139,7 +139,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
139
139
|
default: number;
|
|
140
140
|
};
|
|
141
141
|
width: {
|
|
142
|
-
type: (
|
|
142
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
143
143
|
default: number;
|
|
144
144
|
};
|
|
145
145
|
showAlways: {
|
|
@@ -287,9 +287,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
287
287
|
default: (...args: any[]) => any;
|
|
288
288
|
};
|
|
289
289
|
}>> & {
|
|
290
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
291
290
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
292
291
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
292
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
293
293
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
294
294
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|