bm-admin-ui 1.0.43-alpha → 1.0.44-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/float-table/index.d.ts +2 -2
- package/es/components/float-table/src/float-table.vue.d.ts +2 -2
- package/es/components/form-create/index.js +31 -8
- package/es/components/form-designer/index.js +19 -5
- package/es/components/input-tags-display/index.js +11 -9
- package/es/components/staffs-selector/index.d.ts +2 -2
- package/es/components/staffs-selector/index.js +3 -8
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +2 -2
- package/index.esm.js +57525 -57921
- package/index.js +57525 -57921
- package/lib/components/float-table/index.d.ts +2 -2
- package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
- package/lib/components/form-create/index.js +30 -7
- package/lib/components/form-designer/index.js +19 -5
- package/lib/components/input-tags-display/index.js +11 -9
- package/lib/components/staffs-selector/index.d.ts +2 -2
- package/lib/components/staffs-selector/index.js +8 -22
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +2 -2
- package/package.json +1 -1
- package/types/components/float-table/index.d.ts +2 -2
- package/types/components/float-table/src/float-table.vue.d.ts +2 -2
- package/types/components/staffs-selector/index.d.ts +2 -2
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +2 -2
|
@@ -42,9 +42,9 @@ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithI
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<
|
|
45
|
+
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -42,9 +42,9 @@ declare const _default: {
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<
|
|
45
|
+
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
|
-
import { h, nextTick, defineComponent, ref, watch, openBlock, createElementBlock, createVNode, unref,
|
|
2
|
+
import { h, nextTick, defineComponent, ref, watch, openBlock, createElementBlock, createVNode, unref, computed, normalizeStyle, Fragment, renderList, normalizeClass, reactive, createBlock, withCtx, createTextVNode, createElementVNode, toDisplayString, createCommentVNode, inject, createStaticVNode, provide, resolveComponent } from 'vue';
|
|
3
3
|
import { Input, InputNumber, Select, DatePicker, RangePicker, message, Modal, Layout, LayoutSider, Tree, LayoutContent, Button, Row, Col, Pagination, FormItemRest, Divider, Tabs, TabPane, Cascader } from 'ant-design-vue';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
import Picture from 'bm-admin-ui/es/components/upload';
|
|
@@ -768,7 +768,14 @@ var _export_sfc = (sfc, props) => {
|
|
|
768
768
|
|
|
769
769
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
770
770
|
__name: "staff-selector",
|
|
771
|
-
props: [
|
|
771
|
+
props: [
|
|
772
|
+
"title",
|
|
773
|
+
"mode",
|
|
774
|
+
"placeholder",
|
|
775
|
+
"defaultSelected",
|
|
776
|
+
"load",
|
|
777
|
+
"disabled"
|
|
778
|
+
],
|
|
772
779
|
emits: ["change"],
|
|
773
780
|
setup(__props, { emit: emits }) {
|
|
774
781
|
const props = __props;
|
|
@@ -802,12 +809,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
802
809
|
"show-empty": "",
|
|
803
810
|
onAddClick: handleAdd
|
|
804
811
|
}, null, 8, ["list", "disabled"]),
|
|
805
|
-
createVNode(unref(BmStaffsSelector),
|
|
812
|
+
createVNode(unref(BmStaffsSelector), {
|
|
806
813
|
select: selected.value,
|
|
807
814
|
"onUpdate:select": _cache[1] || (_cache[1] = ($event) => selected.value = $event),
|
|
808
815
|
visible: visible.value,
|
|
809
|
-
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visible.value = $event)
|
|
810
|
-
|
|
816
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
|
|
817
|
+
title: __props.title,
|
|
818
|
+
mode: __props.mode,
|
|
819
|
+
load: __props.load
|
|
820
|
+
}, null, 8, ["select", "visible", "title", "mode", "load"])
|
|
811
821
|
]);
|
|
812
822
|
};
|
|
813
823
|
}
|
|
@@ -1563,9 +1573,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1563
1573
|
emits: ["change"],
|
|
1564
1574
|
setup(__props, { emit: emits }) {
|
|
1565
1575
|
const props = __props;
|
|
1576
|
+
const mainShopValue = inject("mainShopValue");
|
|
1566
1577
|
const activeKey = ref("\u7D20\u67501");
|
|
1567
1578
|
const visible = ref(false);
|
|
1568
|
-
computed(() => props.formCreateInject.rule.value || {});
|
|
1569
1579
|
const panes = reactive([
|
|
1570
1580
|
{
|
|
1571
1581
|
key: "\u7D20\u67501",
|
|
@@ -1704,6 +1714,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1704
1714
|
props.extraConfig.getDict().then((data) => {
|
|
1705
1715
|
measrueDicts.value = data;
|
|
1706
1716
|
});
|
|
1717
|
+
watch(mainShopValue, (val) => {
|
|
1718
|
+
panes.splice(0);
|
|
1719
|
+
activeKey.value = "\u7D20\u67501";
|
|
1720
|
+
panes.push({
|
|
1721
|
+
key: "\u7D20\u67501",
|
|
1722
|
+
title: "\u7D20\u67501",
|
|
1723
|
+
tempSelected: {}
|
|
1724
|
+
});
|
|
1725
|
+
});
|
|
1707
1726
|
watch(
|
|
1708
1727
|
() => panes,
|
|
1709
1728
|
() => {
|
|
@@ -1771,7 +1790,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1771
1790
|
}, 8, ["disabled"])
|
|
1772
1791
|
])) : (openBlock(), createBlock(unref(Button), {
|
|
1773
1792
|
key: 1,
|
|
1774
|
-
disabled: __props.disabled?.includes?.("selectBtn"),
|
|
1793
|
+
disabled: __props.disabled?.includes?.("selectBtn") || !unref(mainShopValue)?.value,
|
|
1775
1794
|
onClick: selectTemp
|
|
1776
1795
|
}, {
|
|
1777
1796
|
default: withCtx(() => [
|
|
@@ -2202,7 +2221,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2202
2221
|
emits: ["change"],
|
|
2203
2222
|
setup(__props, { emit: emits }) {
|
|
2204
2223
|
const props = __props;
|
|
2205
|
-
const value = ref(props.value);
|
|
2224
|
+
const value = ref(props.value.value);
|
|
2206
2225
|
const options = ref([]);
|
|
2207
2226
|
const keyword = ref("");
|
|
2208
2227
|
const debounceFetch = debounce((value2) => {
|
|
@@ -2916,6 +2935,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2916
2935
|
return result;
|
|
2917
2936
|
}, {}) : {}
|
|
2918
2937
|
);
|
|
2938
|
+
const mainShopValue = computed(
|
|
2939
|
+
() => props.value[props.fdRule.find((rule2) => rule2.name === "shop" && rule2.config.isMain)?.field]
|
|
2940
|
+
);
|
|
2941
|
+
provide("mainShopValue", mainShopValue);
|
|
2919
2942
|
function setRule(fdRule) {
|
|
2920
2943
|
fdRule = getRuleData(fdRule);
|
|
2921
2944
|
rule.value = fdRule.map((data) => {
|
|
@@ -3239,7 +3239,15 @@ var shop = {
|
|
|
3239
3239
|
on: {
|
|
3240
3240
|
change({ api, self }, value) {
|
|
3241
3241
|
if (value) {
|
|
3242
|
-
api.mergeRule(fieldsMap$1['effect.required'], {
|
|
3242
|
+
api.mergeRule(fieldsMap$1['effect.required'], {
|
|
3243
|
+
value: true,
|
|
3244
|
+
props: { disabled: true },
|
|
3245
|
+
});
|
|
3246
|
+
}
|
|
3247
|
+
else {
|
|
3248
|
+
api.mergeRule(fieldsMap$1['effect.required'], {
|
|
3249
|
+
props: { disabled: false },
|
|
3250
|
+
});
|
|
3243
3251
|
}
|
|
3244
3252
|
},
|
|
3245
3253
|
},
|
|
@@ -3517,11 +3525,16 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3517
3525
|
__name: "checkbox-switch",
|
|
3518
3526
|
props: ["rule"],
|
|
3519
3527
|
setup(__props) {
|
|
3528
|
+
const props = __props;
|
|
3529
|
+
function handleChange() {
|
|
3530
|
+
props.rule.config.uploadPictureRule.required = false;
|
|
3531
|
+
}
|
|
3520
3532
|
return (_ctx, _cache) => {
|
|
3521
3533
|
return openBlock(), createElementBlock("span", _hoisted_1$2, [
|
|
3522
3534
|
createVNode(unref(FormItemRest), null, {
|
|
3523
3535
|
default: withCtx(() => [
|
|
3524
|
-
|
|
3536
|
+
!__props.rule.config.uploadPictureRule.hidden ? (openBlock(), createBlock(unref(Checkbox), {
|
|
3537
|
+
key: 0,
|
|
3525
3538
|
checked: __props.rule.config.uploadPictureRule.required,
|
|
3526
3539
|
"onUpdate:checked": _cache[0] || (_cache[0] = ($event) => __props.rule.config.uploadPictureRule.required = $event)
|
|
3527
3540
|
}, {
|
|
@@ -3529,7 +3542,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3529
3542
|
createTextVNode("\u5FC5\u586B")
|
|
3530
3543
|
]),
|
|
3531
3544
|
_: 1
|
|
3532
|
-
}, 8, ["checked"]),
|
|
3545
|
+
}, 8, ["checked"])) : createCommentVNode("v-if", true),
|
|
3533
3546
|
createVNode(unref(Switch), {
|
|
3534
3547
|
checked: __props.rule.config.uploadPictureRule.hidden,
|
|
3535
3548
|
"onUpdate:checked": _cache[1] || (_cache[1] = ($event) => __props.rule.config.uploadPictureRule.hidden = $event),
|
|
@@ -3537,7 +3550,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3537
3550
|
"checked-children": "\u5F00",
|
|
3538
3551
|
"un-checked-children": "\u5173",
|
|
3539
3552
|
"checked-value": false,
|
|
3540
|
-
"un-checked-value": true
|
|
3553
|
+
"un-checked-value": true,
|
|
3554
|
+
onChange: handleChange
|
|
3541
3555
|
}, null, 8, ["checked"])
|
|
3542
3556
|
]),
|
|
3543
3557
|
_: 1
|
|
@@ -4128,7 +4142,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4128
4142
|
() => props.presetRules,
|
|
4129
4143
|
(presetRules) => {
|
|
4130
4144
|
widgetFormRules.push(...presetRules);
|
|
4131
|
-
emits("initPresetRule",
|
|
4145
|
+
emits("initPresetRule", getFormRule());
|
|
4132
4146
|
}
|
|
4133
4147
|
);
|
|
4134
4148
|
watch(
|
|
@@ -128,10 +128,9 @@ const _hoisted_1 = { class: "bm-tags-display" };
|
|
|
128
128
|
const _hoisted_2 = ["id"];
|
|
129
129
|
const _hoisted_3 = { class: "pop-seleted" };
|
|
130
130
|
const _hoisted_4 = { class: "pop-seleted-title" };
|
|
131
|
-
const _hoisted_5 = {
|
|
132
|
-
const _hoisted_6 = { key:
|
|
133
|
-
const _hoisted_7 =
|
|
134
|
-
const _hoisted_8 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
|
|
131
|
+
const _hoisted_5 = { key: 1 };
|
|
132
|
+
const _hoisted_6 = { key: 2 };
|
|
133
|
+
const _hoisted_7 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
|
|
135
134
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
136
135
|
const _component_Tag = resolveComponent("Tag");
|
|
137
136
|
const _component_CloseCircleFilled = resolveComponent("CloseCircleFilled");
|
|
@@ -171,7 +170,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
171
170
|
], 32)
|
|
172
171
|
]),
|
|
173
172
|
default: withCtx(() => [
|
|
174
|
-
createElementVNode("div",
|
|
173
|
+
createElementVNode("div", {
|
|
174
|
+
class: "select-input-wrapper",
|
|
175
|
+
onClick: _cache[4] || (_cache[4] = withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
|
|
176
|
+
}, [
|
|
175
177
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item) => {
|
|
176
178
|
return openBlock(), createBlock(_component_Tag, {
|
|
177
179
|
key: item[_ctx.fieldNames.key]
|
|
@@ -198,7 +200,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
198
200
|
_: 1
|
|
199
201
|
}, 16)
|
|
200
202
|
], 8, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
201
|
-
_ctx.showEmptyBtn && !_ctx.list.length ? (openBlock(), createElementBlock("div",
|
|
203
|
+
_ctx.showEmptyBtn && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
202
204
|
createVNode(_component_Button, {
|
|
203
205
|
onClick: withModifiers(_ctx.toAddTags, ["stop"])
|
|
204
206
|
}, {
|
|
@@ -208,13 +210,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
208
210
|
_: 1
|
|
209
211
|
}, 8, ["onClick"])
|
|
210
212
|
])) : createCommentVNode("v-if", true),
|
|
211
|
-
_ctx.showEmpty && !_ctx.list.length ? (openBlock(), createElementBlock("div",
|
|
213
|
+
_ctx.showEmpty && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
212
214
|
createElementVNode("div", {
|
|
213
215
|
class: "selector-empty-input",
|
|
214
|
-
onClick: _cache[
|
|
216
|
+
onClick: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
|
|
215
217
|
}, " \xA0\xA0" + toDisplayString(_ctx.placeholder), 1)
|
|
216
218
|
])) : createCommentVNode("v-if", true),
|
|
217
|
-
|
|
219
|
+
_hoisted_7
|
|
218
220
|
]);
|
|
219
221
|
}
|
|
220
222
|
var InputTagsDisplay = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "input-tags-display.vue"]]);
|
|
@@ -910,9 +910,9 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
910
910
|
searchVal: import("vue").Ref<string>;
|
|
911
911
|
selectAll: import("vue").Ref<boolean>;
|
|
912
912
|
indeterminate: import("vue").Ref<boolean>;
|
|
913
|
-
emptyPic: import("vue").Ref<
|
|
913
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
914
914
|
[key: string]: any;
|
|
915
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
915
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
916
916
|
[key: string]: any;
|
|
917
917
|
}> | null | undefined)[]>;
|
|
918
918
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
2
|
import { readonly, ref, reactive, defineComponent, watch, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, Fragment, withDirectives, createTextVNode, vShow, renderList, toDisplayString, createBlock, createCommentVNode, h, computed, normalizeClass, withModifiers, unref } from 'vue';
|
|
3
|
-
import
|
|
3
|
+
import { Checkbox, Empty, message, Radio, Input, RadioGroup, Modal } from 'ant-design-vue';
|
|
4
4
|
import { SearchOutlined, LoadingOutlined, CloseCircleFilled } from '@ant-design/icons-vue';
|
|
5
|
-
import Empty from 'ant-design-vue/lib/empty';
|
|
6
|
-
import Checkbox from 'ant-design-vue/lib/checkbox';
|
|
7
|
-
import message from 'ant-design-vue/lib/message';
|
|
8
|
-
import AInput from 'ant-design-vue/lib/input';
|
|
9
|
-
import ARadio, { Group } from 'ant-design-vue/lib/radio';
|
|
10
5
|
|
|
11
6
|
const MODE = {
|
|
12
7
|
RADIO: 'radio',
|
|
@@ -296,7 +291,7 @@ var multipleCmp = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_rend
|
|
|
296
291
|
|
|
297
292
|
const _sfc_main$2 = defineComponent({
|
|
298
293
|
name: "RadioCmp",
|
|
299
|
-
components: { ARadio, AInput, ARadioGroup:
|
|
294
|
+
components: { ARadio: Radio, AInput: Input, ARadioGroup: RadioGroup, Empty, SearchOutlined },
|
|
300
295
|
props: {
|
|
301
296
|
list: {
|
|
302
297
|
type: Array,
|
|
@@ -905,7 +900,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
905
900
|
{ immediate: true, deep: true }
|
|
906
901
|
);
|
|
907
902
|
return (_ctx, _cache) => {
|
|
908
|
-
return openBlock(), createBlock(unref(
|
|
903
|
+
return openBlock(), createBlock(unref(Modal), {
|
|
909
904
|
class: "staffs-selector-modal",
|
|
910
905
|
title: _ctx.title,
|
|
911
906
|
visible: _ctx.visible,
|
|
@@ -28,9 +28,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
searchVal: import("vue").Ref<string>;
|
|
29
29
|
selectAll: import("vue").Ref<boolean>;
|
|
30
30
|
indeterminate: import("vue").Ref<boolean>;
|
|
31
|
-
emptyPic: import("vue").Ref<
|
|
31
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
32
32
|
[key: string]: any;
|
|
33
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
33
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
34
34
|
[key: string]: any;
|
|
35
35
|
}> | null | undefined)[]>;
|
|
36
36
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -910,9 +910,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
910
910
|
searchVal: import("vue").Ref<string>;
|
|
911
911
|
selectAll: import("vue").Ref<boolean>;
|
|
912
912
|
indeterminate: import("vue").Ref<boolean>;
|
|
913
|
-
emptyPic: import("vue").Ref<
|
|
913
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
914
914
|
[key: string]: any;
|
|
915
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
915
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
916
916
|
[key: string]: any;
|
|
917
917
|
}> | null | undefined)[]>;
|
|
918
918
|
isFulfill: import("vue").Ref<boolean>;
|