bm-admin-ui 1.0.91-alpha → 1.0.92-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/cascader/__tests__/index.test.d.ts +1 -0
- package/es/components/cascader/_util/KeyCode.d.ts +110 -0
- package/es/components/cascader/index.d.ts +30 -0
- package/es/components/cascader/index.js +211 -0
- package/es/components/cascader/src/cascader.vue.d.ts +29 -0
- package/es/components/edit-form/index.js +1 -1
- package/es/components/feedback/index.d.ts +1 -1
- package/es/components/feedback/src/bmModal.vue.d.ts +1 -1
- package/es/components/float-table/index.js +62 -54
- package/es/components/flow-designer/index.js +1 -1
- package/es/components/form-create/index.js +98 -389
- package/es/components/form-designer/index.js +122 -180
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -0
- package/es/components/search-filter/index.d.ts +0 -28
- package/es/components/search-filter/index.js +17 -70
- package/es/components/search-filter/src/form-select-all.vue.d.ts +0 -15
- package/es/components/search-filter/src/search-filter.d.ts +0 -16
- package/es/components/search-filter/src/search-filter.vue.d.ts +0 -28
- package/es/components/search-filter/src/search-reset-btn.vue.d.ts +0 -26
- package/es/components/select-all/index.d.ts +0 -2
- package/es/components/select-all/index.js +15 -33
- package/es/components/select-all/src/selectAll.vue.d.ts +0 -2
- package/es/components/staffs-selector/index.d.ts +2 -2
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +2 -2
- package/es/utils/uniqueId.js +2 -2
- package/lib/components/cascader/__tests__/index.test.d.ts +1 -0
- package/lib/components/cascader/_util/KeyCode.d.ts +110 -0
- package/lib/components/cascader/index.d.ts +30 -0
- package/lib/components/cascader/index.js +216 -0
- package/lib/components/cascader/src/cascader.vue.d.ts +29 -0
- package/lib/components/edit-form/index.js +1 -1
- package/lib/components/feedback/index.d.ts +1 -1
- package/lib/components/feedback/src/bmModal.vue.d.ts +1 -1
- package/lib/components/float-table/index.js +62 -54
- package/lib/components/flow-designer/index.js +1 -1
- package/lib/components/form-create/index.js +98 -389
- package/lib/components/form-designer/index.js +116 -174
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +7 -0
- package/lib/components/search-filter/index.d.ts +0 -28
- package/lib/components/search-filter/index.js +17 -71
- package/lib/components/search-filter/src/form-select-all.vue.d.ts +0 -15
- package/lib/components/search-filter/src/search-filter.d.ts +0 -16
- package/lib/components/search-filter/src/search-filter.vue.d.ts +0 -28
- package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +0 -26
- package/lib/components/select-all/index.d.ts +0 -2
- package/lib/components/select-all/index.js +14 -32
- package/lib/components/select-all/src/selectAll.vue.d.ts +0 -2
- package/lib/components/staffs-selector/index.d.ts +2 -2
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +2 -2
- package/lib/utils/uniqueId.js +2 -2
- package/package.json +34 -34
- package/theme-chalk/cascader.css +1 -0
- package/theme-chalk/form-designer.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/select-all.css +1 -1
- package/types/components/cascader/__tests__/index.test.d.ts +1 -0
- package/types/components/cascader/_util/KeyCode.d.ts +110 -0
- package/types/components/cascader/index.d.ts +30 -0
- package/types/components/cascader/src/cascader.vue.d.ts +29 -0
- package/types/components/feedback/index.d.ts +1 -1
- package/types/components/feedback/src/bmModal.vue.d.ts +1 -1
- package/types/components/index.d.ts +1 -0
- package/types/components/search-filter/index.d.ts +0 -28
- package/types/components/search-filter/src/form-select-all.vue.d.ts +0 -15
- package/types/components/search-filter/src/search-filter.d.ts +0 -16
- package/types/components/search-filter/src/search-filter.vue.d.ts +0 -28
- package/types/components/search-filter/src/search-reset-btn.vue.d.ts +0 -26
- package/types/components/select-all/index.d.ts +0 -2
- package/types/components/select-all/src/selectAll.vue.d.ts +0 -2
- package/types/components/staffs-selector/index.d.ts +2 -2
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
|
-
import { defineComponent, openBlock, createElementBlock, normalizeStyle, toDisplayString, computed, resolveComponent, normalizeClass, unref, createBlock, createCommentVNode, withDirectives, createVNode, withCtx, createTextVNode, withModifiers, vShow, ref, watch, createElementVNode, nextTick
|
|
2
|
+
import { defineComponent, openBlock, createElementBlock, normalizeStyle, toDisplayString, computed, resolveComponent, normalizeClass, unref, createBlock, createCommentVNode, withDirectives, createVNode, withCtx, createTextVNode, withModifiers, vShow, ref, watch, createElementVNode, nextTick, Fragment, isRef, renderList, renderSlot, createStaticVNode, reactive, resolveDynamicComponent } from 'vue';
|
|
3
3
|
import uniqueId from 'bm-admin-ui/es/utils/uniqueId';
|
|
4
4
|
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';
|
|
@@ -68,7 +68,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
68
68
|
return target;
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
const _sfc_main$
|
|
71
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
72
72
|
__name: "widget-instruction",
|
|
73
73
|
props: ["rule"],
|
|
74
74
|
setup(__props) {
|
|
@@ -79,13 +79,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
-
var WidgetInstruction = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
82
|
+
var WidgetInstruction = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__file", "widget-instruction.vue"]]);
|
|
83
83
|
|
|
84
84
|
const _hoisted_1$f = {
|
|
85
85
|
key: 2,
|
|
86
86
|
class: "bm-drag-tool-mask"
|
|
87
87
|
};
|
|
88
|
-
const _sfc_main$
|
|
88
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
89
89
|
__name: "drag-tool",
|
|
90
90
|
props: ["rule", "activeRuleField", "parentRule"],
|
|
91
91
|
emits: [
|
|
@@ -226,16 +226,16 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
226
226
|
]),
|
|
227
227
|
_: 1
|
|
228
228
|
}, 512), [
|
|
229
|
-
[vShow,
|
|
229
|
+
[vShow, __props.rule.config.isHover || unref(isActive)]
|
|
230
230
|
])
|
|
231
231
|
], 34);
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
234
|
});
|
|
235
|
-
var DragTool = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
235
|
+
var DragTool = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "drag-tool.vue"]]);
|
|
236
236
|
|
|
237
237
|
const _hoisted_1$e = { class: "bm-drag-placeholder" };
|
|
238
|
-
const _sfc_main$
|
|
238
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
239
239
|
__name: "drag-placeholder",
|
|
240
240
|
props: {},
|
|
241
241
|
setup(__props) {
|
|
@@ -244,14 +244,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
|
-
var DragPlaceholder = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
247
|
+
var DragPlaceholder = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__file", "drag-placeholder.vue"]]);
|
|
248
248
|
|
|
249
249
|
const _hoisted_1$d = { class: "bm-widget-row-wrap" };
|
|
250
250
|
const _hoisted_2$a = {
|
|
251
251
|
key: 0,
|
|
252
252
|
class: "bm-widget-row-tip"
|
|
253
253
|
};
|
|
254
|
-
const _sfc_main$
|
|
254
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
255
255
|
__name: "widget-row",
|
|
256
256
|
props: ["activeRuleField", "formCreateInject"],
|
|
257
257
|
emits: [
|
|
@@ -356,7 +356,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
358
|
});
|
|
359
|
-
var WidgetRow = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
359
|
+
var WidgetRow = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__file", "widget-row.vue"]]);
|
|
360
360
|
|
|
361
361
|
const label$h = '分栏';
|
|
362
362
|
const fieldsMap$h = {
|
|
@@ -702,14 +702,10 @@ var numInput = {
|
|
|
702
702
|
placeholder: '请输入',
|
|
703
703
|
},
|
|
704
704
|
config: {
|
|
705
|
-
format: '',
|
|
706
705
|
propsFields: Object.values(fieldsMap$e),
|
|
707
706
|
},
|
|
708
707
|
style: {
|
|
709
708
|
width: '100%',
|
|
710
|
-
overflow: 'hidden',
|
|
711
|
-
textOverflow: 'ellipsis',
|
|
712
|
-
marginBottom: '0',
|
|
713
709
|
},
|
|
714
710
|
};
|
|
715
711
|
},
|
|
@@ -798,7 +794,7 @@ const _hoisted_2$9 = {
|
|
|
798
794
|
key: 0,
|
|
799
795
|
class: "bm-handle-options__error-tip"
|
|
800
796
|
};
|
|
801
|
-
const _sfc_main$
|
|
797
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
802
798
|
__name: "handle-options",
|
|
803
799
|
props: ["options", "disabled"],
|
|
804
800
|
emits: ["setValue"],
|
|
@@ -969,7 +965,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
969
965
|
};
|
|
970
966
|
}
|
|
971
967
|
});
|
|
972
|
-
var HandleOptionsCom = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
968
|
+
var HandleOptionsCom = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__file", "handle-options.vue"]]);
|
|
973
969
|
|
|
974
970
|
const label$d = '单选框';
|
|
975
971
|
const ruleType$1 = {
|
|
@@ -1250,7 +1246,7 @@ var checkbox = {
|
|
|
1250
1246
|
};
|
|
1251
1247
|
|
|
1252
1248
|
const _hoisted_1$b = { class: "bm-default-date" };
|
|
1253
|
-
const _sfc_main$
|
|
1249
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
1254
1250
|
__name: "default-date",
|
|
1255
1251
|
props: [
|
|
1256
1252
|
"defaultRadioValue",
|
|
@@ -1339,7 +1335,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1339
1335
|
};
|
|
1340
1336
|
}
|
|
1341
1337
|
});
|
|
1342
|
-
var DefaultDate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1338
|
+
var DefaultDate = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__file", "default-date.vue"]]);
|
|
1343
1339
|
|
|
1344
1340
|
const label$b = '日期';
|
|
1345
1341
|
const fieldsMap$b = {
|
|
@@ -1687,7 +1683,7 @@ var instruction = {
|
|
|
1687
1683
|
},
|
|
1688
1684
|
on: {
|
|
1689
1685
|
change({ api, self }, list) {
|
|
1690
|
-
nextTick
|
|
1686
|
+
nextTick(() => {
|
|
1691
1687
|
api.refresh();
|
|
1692
1688
|
});
|
|
1693
1689
|
},
|
|
@@ -1847,7 +1843,7 @@ const _hoisted_15 = { class: "bm-widget-table__operateColumn__content" };
|
|
|
1847
1843
|
const _hoisted_16 = /* @__PURE__ */ createElementVNode("a", null, "\u590D\u5236", -1);
|
|
1848
1844
|
const _hoisted_17 = /* @__PURE__ */ createElementVNode("span", null, null, -1);
|
|
1849
1845
|
const _hoisted_18 = /* @__PURE__ */ createElementVNode("a", null, "\u5220\u9664", -1);
|
|
1850
|
-
const _sfc_main$
|
|
1846
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
1851
1847
|
__name: "widget-table",
|
|
1852
1848
|
props: ["formCreateInject", "activeRuleField"],
|
|
1853
1849
|
emits: [
|
|
@@ -1864,7 +1860,6 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1864
1860
|
const childRules = computed(() => tableRule.value.config.childRules);
|
|
1865
1861
|
const showDelete = computed(() => showFeature("delete"));
|
|
1866
1862
|
const showImport = computed(() => showFeature("import"));
|
|
1867
|
-
const showExport = computed(() => showFeature("export"));
|
|
1868
1863
|
const showCopy = computed(() => showFeature("copy"));
|
|
1869
1864
|
function showFeature(featureId) {
|
|
1870
1865
|
return tableRule.value.config.tableAdvancedFeatures.includes(featureId);
|
|
@@ -1882,8 +1877,6 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1882
1877
|
emits("set-active-rule", rule, tableRule.value);
|
|
1883
1878
|
}
|
|
1884
1879
|
function handleClick(element) {
|
|
1885
|
-
if (element?.config.immutable)
|
|
1886
|
-
return;
|
|
1887
1880
|
emitSetActiveRuleEvt(element);
|
|
1888
1881
|
}
|
|
1889
1882
|
function handleUpdate({ newIndex }) {
|
|
@@ -1924,12 +1917,6 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1924
1917
|
createTextVNode(" \u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F ")
|
|
1925
1918
|
]),
|
|
1926
1919
|
_: 1
|
|
1927
|
-
})) : createCommentVNode("v-if", true),
|
|
1928
|
-
unref(showExport) ? (openBlock(), createBlock(unref(Button), { key: 3 }, {
|
|
1929
|
-
default: withCtx(() => [
|
|
1930
|
-
createTextVNode(" \u5BFC\u51FA ")
|
|
1931
|
-
]),
|
|
1932
|
-
_: 1
|
|
1933
1920
|
})) : createCommentVNode("v-if", true)
|
|
1934
1921
|
]),
|
|
1935
1922
|
createElementVNode("div", _hoisted_3$5, [
|
|
@@ -2018,7 +2005,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2018
2005
|
};
|
|
2019
2006
|
}
|
|
2020
2007
|
});
|
|
2021
|
-
var WidgetTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2008
|
+
var WidgetTable = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__file", "widget-table.vue"]]);
|
|
2022
2009
|
|
|
2023
2010
|
const label$7 = '表格';
|
|
2024
2011
|
const fieldsMap$7 = {
|
|
@@ -2094,7 +2081,7 @@ var table = {
|
|
|
2094
2081
|
value: rule.config.childRules,
|
|
2095
2082
|
on: {
|
|
2096
2083
|
change({ api, self }, list) {
|
|
2097
|
-
nextTick
|
|
2084
|
+
nextTick(() => {
|
|
2098
2085
|
setTimeout(() => {
|
|
2099
2086
|
api.validate();
|
|
2100
2087
|
});
|
|
@@ -2459,7 +2446,7 @@ const _hoisted_1$9 = { style: { "margin-top": "16px", "line-height": "32px" } };
|
|
|
2459
2446
|
const _hoisted_2$7 = { style: { "float": "right" } };
|
|
2460
2447
|
const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("div", { class: "bm-material-temp__table-tip" }, "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6\u8868\u683C\u5B57\u6BB5", -1);
|
|
2461
2448
|
const _hoisted_4$3 = { class: "bm-material-temp__add" };
|
|
2462
|
-
const _sfc_main$
|
|
2449
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
2463
2450
|
__name: "widget-material-temp",
|
|
2464
2451
|
props: ["formCreateInject"],
|
|
2465
2452
|
setup(__props) {
|
|
@@ -2642,11 +2629,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2642
2629
|
};
|
|
2643
2630
|
}
|
|
2644
2631
|
});
|
|
2645
|
-
var WidgetMaterialTemp = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2632
|
+
var WidgetMaterialTemp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__file", "widget-material-temp.vue"]]);
|
|
2646
2633
|
|
|
2647
2634
|
const _hoisted_1$8 = { class: "bm-use-instruction" };
|
|
2648
2635
|
const _hoisted_2$6 = { class: "bm-use-instruction__title" };
|
|
2649
|
-
const _sfc_main$
|
|
2636
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2650
2637
|
__name: "use-instruction",
|
|
2651
2638
|
setup(__props) {
|
|
2652
2639
|
return (_ctx, _cache) => {
|
|
@@ -2660,7 +2647,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2660
2647
|
};
|
|
2661
2648
|
}
|
|
2662
2649
|
});
|
|
2663
|
-
var UseInstruction = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2650
|
+
var UseInstruction = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__file", "use-instruction.vue"]]);
|
|
2664
2651
|
|
|
2665
2652
|
const label$3 = '素材模板';
|
|
2666
2653
|
const fieldsMap$3 = {
|
|
@@ -2782,7 +2769,7 @@ const _hoisted_1$7 = /* @__PURE__ */ createElementVNode("div", { class: "bm-prod
|
|
|
2782
2769
|
const _hoisted_2$5 = { class: "bm-product-info-item__content" };
|
|
2783
2770
|
const _hoisted_3$3 = { class: "bm-product-info-item__title" };
|
|
2784
2771
|
const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("div", { class: "bm-product-info-item__content" }, "\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA", -1);
|
|
2785
|
-
const _sfc_main$
|
|
2772
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
2786
2773
|
__name: "product-info",
|
|
2787
2774
|
props: ["formCreateInject"],
|
|
2788
2775
|
setup(__props) {
|
|
@@ -2827,70 +2814,90 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2827
2814
|
};
|
|
2828
2815
|
}
|
|
2829
2816
|
});
|
|
2830
|
-
var ProductInfo = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2817
|
+
var ProductInfo = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__file", "product-info.vue"]]);
|
|
2831
2818
|
|
|
2832
|
-
const _hoisted_1$6 = { class: "bm-associated-fields-
|
|
2819
|
+
const _hoisted_1$6 = /* @__PURE__ */ createElementVNode("div", { class: "bm-associated-fields-item" }, [
|
|
2820
|
+
/* @__PURE__ */ createElementVNode("span", { class: "bm-associated-fields-item__content" }, "\u5546\u54C1\u7F16\u53F7")
|
|
2821
|
+
], -1);
|
|
2833
2822
|
const _hoisted_2$4 = { class: "bm-associated-fields-item__content" };
|
|
2834
2823
|
const _hoisted_3$2 = { style: { "text-align": "right", "margin": "6px 0 4px", "padding-right": "8px" } };
|
|
2835
|
-
const _sfc_main$
|
|
2836
|
-
__name: "
|
|
2837
|
-
props: ["associatedFields"
|
|
2824
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2825
|
+
__name: "associated-fields",
|
|
2826
|
+
props: ["associatedFields"],
|
|
2838
2827
|
emits: ["change"],
|
|
2839
2828
|
setup(__props, { emit: emits }) {
|
|
2840
2829
|
const props = __props;
|
|
2841
2830
|
const visible = ref(false);
|
|
2842
2831
|
const checkList = ref([]);
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2832
|
+
const options = [
|
|
2833
|
+
{
|
|
2834
|
+
value: "\u5546\u54C1\u540D\u79F0",
|
|
2835
|
+
label: "\u5546\u54C1\u540D\u79F0"
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
value: "\u5546\u54C1\u7B80\u79F0",
|
|
2839
|
+
label: "\u5546\u54C1\u7B80\u79F0"
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
value: "\u5546\u54C1\u56FE\u7247",
|
|
2843
|
+
label: "\u5546\u54C1\u56FE\u7247"
|
|
2844
|
+
},
|
|
2845
|
+
{
|
|
2846
|
+
value: "\u5EFA\u8BAE\u96F6\u552E\u4EF7",
|
|
2847
|
+
label: "\u5EFA\u8BAE\u96F6\u552E\u4EF7"
|
|
2848
|
+
},
|
|
2849
|
+
{
|
|
2850
|
+
value: "\u5546\u54C1\u7BB1\u89C4",
|
|
2851
|
+
label: "\u5546\u54C1\u7BB1\u89C4"
|
|
2852
|
+
},
|
|
2853
|
+
{
|
|
2854
|
+
value: "\u5546\u54C1\u5355\u4F4D",
|
|
2855
|
+
label: "\u5546\u54C1\u5355\u4F4D"
|
|
2856
|
+
}
|
|
2857
|
+
];
|
|
2850
2858
|
function emitChangeEvt() {
|
|
2851
2859
|
emits(
|
|
2852
2860
|
"change",
|
|
2853
|
-
|
|
2861
|
+
options.filter((op) => checkList.value.includes(op.value))
|
|
2854
2862
|
);
|
|
2855
2863
|
}
|
|
2856
|
-
function
|
|
2857
|
-
|
|
2864
|
+
function handOk() {
|
|
2865
|
+
visible.value = false;
|
|
2858
2866
|
emitChangeEvt();
|
|
2859
2867
|
}
|
|
2860
|
-
init()
|
|
2868
|
+
function init() {
|
|
2869
|
+
checkList.value = props.associatedFields.map((item) => item.value);
|
|
2870
|
+
}
|
|
2861
2871
|
function visibleChange(visible2) {
|
|
2862
2872
|
if (visible2) {
|
|
2863
2873
|
init();
|
|
2864
2874
|
}
|
|
2865
2875
|
}
|
|
2876
|
+
function handleDel(value) {
|
|
2877
|
+
checkList.value = checkList.value.filter((cl) => cl !== value);
|
|
2878
|
+
emitChangeEvt();
|
|
2879
|
+
}
|
|
2880
|
+
init();
|
|
2866
2881
|
watch(visible, (val) => {
|
|
2867
2882
|
visibleChange(val);
|
|
2868
2883
|
});
|
|
2869
2884
|
return (_ctx, _cache) => {
|
|
2870
2885
|
const _component_Delete = resolveComponent("Delete");
|
|
2871
2886
|
return openBlock(), createElementBlock("div", null, [
|
|
2872
|
-
|
|
2873
|
-
return openBlock(), createElementBlock("div", {
|
|
2874
|
-
key: `defaultOption${option?.value}`,
|
|
2875
|
-
class: "bm-associated-fields-item"
|
|
2876
|
-
}, [
|
|
2877
|
-
createElementVNode("span", _hoisted_1$6, toDisplayString(option?.label), 1)
|
|
2878
|
-
]);
|
|
2879
|
-
}), 128)),
|
|
2887
|
+
_hoisted_1$6,
|
|
2880
2888
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.associatedFields, (item) => {
|
|
2881
2889
|
return openBlock(), createElementBlock("div", {
|
|
2882
2890
|
key: item.value,
|
|
2883
2891
|
class: "bm-associated-fields-item"
|
|
2884
2892
|
}, [
|
|
2885
|
-
createElementVNode("span", _hoisted_2$4, toDisplayString(item
|
|
2893
|
+
createElementVNode("span", _hoisted_2$4, toDisplayString(item.label), 1),
|
|
2886
2894
|
createVNode(_component_Delete, {
|
|
2887
2895
|
class: "bm-associated-fields-item__icon",
|
|
2888
2896
|
onClick: ($event) => handleDel(item.value)
|
|
2889
2897
|
}, null, 8, ["onClick"])
|
|
2890
2898
|
]);
|
|
2891
2899
|
}), 128)),
|
|
2892
|
-
|
|
2893
|
-
key: 0,
|
|
2900
|
+
createVNode(unref(Dropdown), {
|
|
2894
2901
|
visible: visible.value,
|
|
2895
2902
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
|
|
2896
2903
|
trigger: ["click"]
|
|
@@ -2906,8 +2913,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2906
2913
|
style: { "width": "100%" }
|
|
2907
2914
|
}, {
|
|
2908
2915
|
default: withCtx(() => [
|
|
2909
|
-
(openBlock(
|
|
2910
|
-
return
|
|
2916
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(options, (item) => {
|
|
2917
|
+
return createVNode(unref(MenuItem), {
|
|
2911
2918
|
key: item.value
|
|
2912
2919
|
}, {
|
|
2913
2920
|
default: withCtx(() => [
|
|
@@ -2923,7 +2930,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2923
2930
|
]),
|
|
2924
2931
|
_: 2
|
|
2925
2932
|
}, 1024);
|
|
2926
|
-
}),
|
|
2933
|
+
}), 64))
|
|
2927
2934
|
]),
|
|
2928
2935
|
_: 1
|
|
2929
2936
|
}, 8, ["value"])
|
|
@@ -2956,25 +2963,28 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2956
2963
|
})
|
|
2957
2964
|
]),
|
|
2958
2965
|
default: withCtx(() => [
|
|
2959
|
-
createVNode(unref(Button), {
|
|
2966
|
+
createVNode(unref(Button), {
|
|
2967
|
+
style: { "margin-top": "8px" },
|
|
2968
|
+
block: ""
|
|
2969
|
+
}, {
|
|
2960
2970
|
default: withCtx(() => [
|
|
2961
2971
|
createVNode(unref(PlusOutlined)),
|
|
2962
|
-
createTextVNode("\u6DFB\u52A0\u5B50\u5B57\u6BB5")
|
|
2972
|
+
createTextVNode(" \u6DFB\u52A0\u5B50\u5B57\u6BB5 ")
|
|
2963
2973
|
]),
|
|
2964
2974
|
_: 1
|
|
2965
2975
|
})
|
|
2966
2976
|
]),
|
|
2967
2977
|
_: 1
|
|
2968
|
-
}, 8, ["visible"])
|
|
2978
|
+
}, 8, ["visible"])
|
|
2969
2979
|
]);
|
|
2970
2980
|
};
|
|
2971
2981
|
}
|
|
2972
2982
|
});
|
|
2973
|
-
var
|
|
2983
|
+
var AssociatedFields = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "associated-fields.vue"]]);
|
|
2974
2984
|
|
|
2975
2985
|
const _hoisted_1$5 = /* @__PURE__ */ createElementVNode("div", { style: { "margin": "18px 0 6px" } }, "\u4EC5\u83B7\u53D6", -1);
|
|
2976
2986
|
const _hoisted_2$3 = /* @__PURE__ */ createElementVNode("div", { style: { "margin-top": "7px" } }, "\u4E2D\u53EF\u5206\u9500\u7684\u5546\u54C1\u6570\u636E", -1);
|
|
2977
|
-
const _sfc_main$
|
|
2987
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
2978
2988
|
__name: "shop-data-filter",
|
|
2979
2989
|
props: ["widgetFormRules", "defaultSelectValue"],
|
|
2980
2990
|
emits: ["change"],
|
|
@@ -3068,7 +3078,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3068
3078
|
};
|
|
3069
3079
|
}
|
|
3070
3080
|
});
|
|
3071
|
-
var ShopDataFilter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3081
|
+
var ShopDataFilter = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__file", "shop-data-filter.vue"]]);
|
|
3072
3082
|
|
|
3073
3083
|
const label$2 = '商品';
|
|
3074
3084
|
const fieldsMap$2 = {
|
|
@@ -3107,64 +3117,12 @@ var product = {
|
|
|
3107
3117
|
props(rule, parentRule, widgetFormRules) {
|
|
3108
3118
|
return [
|
|
3109
3119
|
{
|
|
3110
|
-
type: '
|
|
3111
|
-
component:
|
|
3120
|
+
type: 'AssociatedFields',
|
|
3121
|
+
component: AssociatedFields,
|
|
3112
3122
|
title: '关联字段',
|
|
3113
3123
|
field: fieldsMap$2['config.associatedFields'],
|
|
3114
3124
|
props: {
|
|
3115
3125
|
associatedFields: rule.config.associatedFields,
|
|
3116
|
-
defaultOptions: [
|
|
3117
|
-
{
|
|
3118
|
-
value: '商品编号',
|
|
3119
|
-
label: '商品编号',
|
|
3120
|
-
},
|
|
3121
|
-
],
|
|
3122
|
-
options: [
|
|
3123
|
-
{
|
|
3124
|
-
value: '商品名称',
|
|
3125
|
-
label: '商品名称',
|
|
3126
|
-
},
|
|
3127
|
-
{
|
|
3128
|
-
value: '商品简称',
|
|
3129
|
-
label: '商品简称',
|
|
3130
|
-
},
|
|
3131
|
-
{
|
|
3132
|
-
value: '商品图片',
|
|
3133
|
-
label: '商品图片',
|
|
3134
|
-
},
|
|
3135
|
-
{
|
|
3136
|
-
value: '建议零售价',
|
|
3137
|
-
label: '建议零售价',
|
|
3138
|
-
},
|
|
3139
|
-
{
|
|
3140
|
-
value: '商品箱规',
|
|
3141
|
-
label: '商品箱规',
|
|
3142
|
-
},
|
|
3143
|
-
{
|
|
3144
|
-
value: '商品单位',
|
|
3145
|
-
label: '商品单位',
|
|
3146
|
-
},
|
|
3147
|
-
{
|
|
3148
|
-
value: '一级分类',
|
|
3149
|
-
label: '一级分类',
|
|
3150
|
-
},
|
|
3151
|
-
{
|
|
3152
|
-
value: '二级分类',
|
|
3153
|
-
label: '二级分类',
|
|
3154
|
-
},
|
|
3155
|
-
{
|
|
3156
|
-
value: '三级分类',
|
|
3157
|
-
label: '三级分类',
|
|
3158
|
-
},
|
|
3159
|
-
{
|
|
3160
|
-
value: '商品类型',
|
|
3161
|
-
label: '商品类型',
|
|
3162
|
-
},
|
|
3163
|
-
{
|
|
3164
|
-
value: '商品标签',
|
|
3165
|
-
label: '商品标签',
|
|
3166
|
-
},
|
|
3167
|
-
],
|
|
3168
3126
|
},
|
|
3169
3127
|
effect: {
|
|
3170
3128
|
required: true,
|
|
@@ -3174,7 +3132,7 @@ var product = {
|
|
|
3174
3132
|
change({ api, self }, list) {
|
|
3175
3133
|
api.emit('change', self.field, list, self, api, true);
|
|
3176
3134
|
self.props.associatedFields = list;
|
|
3177
|
-
nextTick
|
|
3135
|
+
nextTick(() => {
|
|
3178
3136
|
api.refresh();
|
|
3179
3137
|
});
|
|
3180
3138
|
},
|
|
@@ -3197,7 +3155,7 @@ var product = {
|
|
|
3197
3155
|
change({ api, self }, value) {
|
|
3198
3156
|
api.emit('change', self.field, value, self, api, true);
|
|
3199
3157
|
self.props.defaultSelectValue = value;
|
|
3200
|
-
nextTick
|
|
3158
|
+
nextTick(() => {
|
|
3201
3159
|
api.refresh();
|
|
3202
3160
|
});
|
|
3203
3161
|
},
|
|
@@ -3226,6 +3184,33 @@ var product = {
|
|
|
3226
3184
|
},
|
|
3227
3185
|
};
|
|
3228
3186
|
|
|
3187
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
3188
|
+
__name: "shop-associated-fields",
|
|
3189
|
+
setup(__props) {
|
|
3190
|
+
const associatedFields = [
|
|
3191
|
+
{
|
|
3192
|
+
value: "\u5E97\u94FA\u7F16\u53F7",
|
|
3193
|
+
label: "\u5E97\u94FA\u7F16\u53F7"
|
|
3194
|
+
},
|
|
3195
|
+
{
|
|
3196
|
+
value: "\u5E97\u94FA\u540D\u79F0",
|
|
3197
|
+
label: "\u5E97\u94FA\u540D\u79F0"
|
|
3198
|
+
}
|
|
3199
|
+
];
|
|
3200
|
+
return (_ctx, _cache) => {
|
|
3201
|
+
return openBlock(), createElementBlock("div", null, [
|
|
3202
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(associatedFields, (item) => {
|
|
3203
|
+
return createElementVNode("span", {
|
|
3204
|
+
key: item.value,
|
|
3205
|
+
class: "bm-shop-associated-fields-item"
|
|
3206
|
+
}, toDisplayString(item.label), 1);
|
|
3207
|
+
}), 64))
|
|
3208
|
+
]);
|
|
3209
|
+
};
|
|
3210
|
+
}
|
|
3211
|
+
});
|
|
3212
|
+
var ShopAssociatedFields = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__file", "shop-associated-fields.vue"]]);
|
|
3213
|
+
|
|
3229
3214
|
let i = 0;
|
|
3230
3215
|
const label$1 = '店铺';
|
|
3231
3216
|
const fieldsMap$1 = {
|
|
@@ -3265,37 +3250,13 @@ var shop = {
|
|
|
3265
3250
|
props(rule, parentRule) {
|
|
3266
3251
|
return [
|
|
3267
3252
|
{
|
|
3268
|
-
type: '
|
|
3269
|
-
component:
|
|
3253
|
+
type: 'ShopAssociatedFields',
|
|
3254
|
+
component: ShopAssociatedFields,
|
|
3270
3255
|
title: '关联字段',
|
|
3271
3256
|
field: 'config.associatedFields',
|
|
3272
|
-
props: {
|
|
3273
|
-
associatedFields: rule.config.associatedFields,
|
|
3274
|
-
defaultOptions: [
|
|
3275
|
-
{
|
|
3276
|
-
value: '店铺编号',
|
|
3277
|
-
label: '店铺编号',
|
|
3278
|
-
},
|
|
3279
|
-
{
|
|
3280
|
-
value: '店铺名称',
|
|
3281
|
-
label: '店铺名称',
|
|
3282
|
-
},
|
|
3283
|
-
],
|
|
3284
|
-
options: [],
|
|
3285
|
-
},
|
|
3286
3257
|
effect: {
|
|
3287
3258
|
required: true,
|
|
3288
3259
|
},
|
|
3289
|
-
inject: true,
|
|
3290
|
-
on: {
|
|
3291
|
-
change({ api, self }, list) {
|
|
3292
|
-
api.emit('change', self.field, list, self, api, true);
|
|
3293
|
-
self.props.associatedFields = list;
|
|
3294
|
-
nextTick(() => {
|
|
3295
|
-
api.refresh();
|
|
3296
|
-
});
|
|
3297
|
-
},
|
|
3298
|
-
},
|
|
3299
3260
|
},
|
|
3300
3261
|
{
|
|
3301
3262
|
type: 'checkbox',
|
|
@@ -3344,8 +3305,8 @@ var shop = {
|
|
|
3344
3305
|
required: rule.effect.required,
|
|
3345
3306
|
},
|
|
3346
3307
|
config: {
|
|
3308
|
+
dataFiltering: rule.config.dataFiltering,
|
|
3347
3309
|
isMain: rule.config.isMain,
|
|
3348
|
-
associatedFields: rule.config.associatedFields,
|
|
3349
3310
|
},
|
|
3350
3311
|
};
|
|
3351
3312
|
},
|
|
@@ -3563,18 +3524,6 @@ const formDesignerProps = {
|
|
|
3563
3524
|
type: Boolean,
|
|
3564
3525
|
default: false,
|
|
3565
3526
|
},
|
|
3566
|
-
dragCheckFunc: {
|
|
3567
|
-
type: Function,
|
|
3568
|
-
default: (underlying_vm) => true,
|
|
3569
|
-
},
|
|
3570
|
-
formRulePipe: {
|
|
3571
|
-
type: Function,
|
|
3572
|
-
default: (obj) => obj,
|
|
3573
|
-
},
|
|
3574
|
-
addWidgetFunc: {
|
|
3575
|
-
type: Function,
|
|
3576
|
-
default: (pushRowWidget, pushTableWidgets) => null,
|
|
3577
|
-
},
|
|
3578
3527
|
};
|
|
3579
3528
|
|
|
3580
3529
|
const _hoisted_1$3 = {
|
|
@@ -3676,12 +3625,6 @@ const widgetNamesRowAccept = [
|
|
|
3676
3625
|
shop.name,
|
|
3677
3626
|
materialType.name,
|
|
3678
3627
|
];
|
|
3679
|
-
function pushTableWidgets(key, config) {
|
|
3680
|
-
widgetsTableAccept[key] = config;
|
|
3681
|
-
}
|
|
3682
|
-
function pushRowWidgets(key) {
|
|
3683
|
-
widgetNamesRowAccept.push(key);
|
|
3684
|
-
}
|
|
3685
3628
|
var ruleList = {
|
|
3686
3629
|
[row.name]: row,
|
|
3687
3630
|
[input.name]: input,
|
|
@@ -3896,7 +3839,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3896
3839
|
if (rule?.props?.type === "textarea" && parentType === WidgetType.TableWidget) {
|
|
3897
3840
|
rule.props.autoSize = true;
|
|
3898
3841
|
}
|
|
3899
|
-
if (rule.config
|
|
3842
|
+
if (rule.config.config.name === "product" && parentType === WidgetType.TableWidget) {
|
|
3900
3843
|
rule.title.title = "\u5546\u54C1\u7F16\u53F7";
|
|
3901
3844
|
}
|
|
3902
3845
|
}
|
|
@@ -3910,8 +3853,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3910
3853
|
people: "\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u5185\u5BB9\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539",
|
|
3911
3854
|
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"
|
|
3912
3855
|
};
|
|
3913
|
-
const tabData =
|
|
3914
|
-
typeof props.addWidgetFunc === "function" && props.addWidgetFunc(pushRowWidgets, pushTableWidgets);
|
|
3856
|
+
const tabData = createTab();
|
|
3915
3857
|
const activeKey = ref("controlLibrary");
|
|
3916
3858
|
const widgetFormRules = reactive([]);
|
|
3917
3859
|
const activeRule = ref({});
|
|
@@ -3919,7 +3861,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3919
3861
|
const fApi = ref();
|
|
3920
3862
|
const activeParentRule = ref();
|
|
3921
3863
|
const menuList = computed(
|
|
3922
|
-
() => tabData.find((tab) => tab.key === activeKey.value)
|
|
3864
|
+
() => tabData.find((tab) => tab.key === activeKey.value).menuList
|
|
3923
3865
|
);
|
|
3924
3866
|
const activeProps = computed(() => cacheProps[activeRule.value.field]);
|
|
3925
3867
|
const activeRuleInList = computed(
|
|
@@ -3950,10 +3892,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3950
3892
|
}
|
|
3951
3893
|
}
|
|
3952
3894
|
function moveMenuItem(evt) {
|
|
3953
|
-
return
|
|
3895
|
+
return checkDragMove(evt);
|
|
3954
3896
|
}
|
|
3955
3897
|
function moveFormItem(evt) {
|
|
3956
|
-
return
|
|
3898
|
+
return checkDragMove(evt);
|
|
3957
3899
|
}
|
|
3958
3900
|
function handleMenuItemDragStart(evt) {
|
|
3959
3901
|
const item = evt.item.children[0];
|
|
@@ -4221,7 +4163,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4221
4163
|
}
|
|
4222
4164
|
}
|
|
4223
4165
|
if (!pass) {
|
|
4224
|
-
nextTick
|
|
4166
|
+
nextTick(() => {
|
|
4225
4167
|
fApi.value.validate();
|
|
4226
4168
|
});
|
|
4227
4169
|
break;
|
package/es/components/index.d.ts
CHANGED
package/es/components/index.js
CHANGED