bm-admin-ui 1.2.40-alpha → 1.2.42-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/index.js +77 -77
- package/es/components/edit-form/index.js +1 -1
- package/es/components/flow-designer/index.js +1 -1
- package/es/components/form-create/index.js +7798 -4
- package/es/components/form-designer/index.js +4 -0
- package/lib/components/cascader/index.js +77 -77
- package/lib/components/edit-form/index.js +1 -1
- package/lib/components/flow-designer/index.js +1 -1
- package/lib/components/form-create/index.js +7798 -4
- package/lib/components/form-designer/index.js +4 -0
- package/package.json +34 -34
|
@@ -3980,6 +3980,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3980
3980
|
const defaultCallbackfun = {
|
|
3981
3981
|
movingCallback: (config) => true,
|
|
3982
3982
|
deleteCallback: (targetRule, parentRule) => true,
|
|
3983
|
+
copyingCallback: (rule, parentRule) => true,
|
|
3983
3984
|
afterAdded: (targetRule, parentRule) => null,
|
|
3984
3985
|
rearrangeCallback: (config) => true
|
|
3985
3986
|
};
|
|
@@ -4126,6 +4127,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4126
4127
|
return newRule;
|
|
4127
4128
|
}
|
|
4128
4129
|
function handleFormItemCopy(rule, parentRule) {
|
|
4130
|
+
if (!executeCallback("copyingCallback")(rule, parentRule)) {
|
|
4131
|
+
return;
|
|
4132
|
+
}
|
|
4129
4133
|
if (!executeCallback("movingCallback")(rule.config.config)) {
|
|
4130
4134
|
return;
|
|
4131
4135
|
}
|
|
@@ -14,71 +14,71 @@ var _export_sfc = (sfc, props) => {
|
|
|
14
14
|
return target;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
const _sfc_main = vue.defineComponent({
|
|
18
|
-
name: 'BmCascader',
|
|
19
|
-
components: { DownOutlined: iconsVue.DownOutlined },
|
|
20
|
-
props: {
|
|
21
|
-
tipType: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: () => {
|
|
24
|
-
return 'none'
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
width: {
|
|
28
|
-
type: Number,
|
|
29
|
-
default: () => {
|
|
30
|
-
return 200
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
setup(props, { emit, attrs }) {
|
|
35
|
-
const nameArr = (arr) => {
|
|
36
|
-
return arr.reduce(
|
|
37
|
-
(acc, cur) => acc.concat(Array.isArray(cur) ? nameArr(cur) : cur),
|
|
38
|
-
[]
|
|
39
|
-
)
|
|
40
|
-
};
|
|
41
|
-
const state = vue.reactive({
|
|
42
|
-
labelNameList: '',
|
|
43
|
-
visible: false,
|
|
44
|
-
});
|
|
45
|
-
const methods = {
|
|
46
|
-
onmouseover() {
|
|
47
|
-
state.labelNameList.length && (state.visible = true);
|
|
48
|
-
},
|
|
49
|
-
onmouseout() {
|
|
50
|
-
state.labelNameList.length && (state.visible = false);
|
|
51
|
-
},
|
|
52
|
-
onchange(value, selectedOptions) {
|
|
53
|
-
if (attrs.multiple === '' || attrs.multiple) {
|
|
54
|
-
let res = selectedOptions.map((v, k) => {
|
|
55
|
-
return v.map((e, i) => {
|
|
56
|
-
return e.label
|
|
57
|
-
})
|
|
58
|
-
});
|
|
59
|
-
state.labelNameList = nameArr(res).join(',');
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
vue.watch(
|
|
64
|
-
() => state.labelNameList.length,
|
|
65
|
-
(val) => {
|
|
66
|
-
if (!val) {
|
|
67
|
-
state.visible = false;
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
{ deep: true }
|
|
71
|
-
);
|
|
72
|
-
vue.onMounted(() => {
|
|
73
|
-
attrs.value?.length &&
|
|
74
|
-
(state.labelNameList = nameArr(attrs.value).join(','));
|
|
75
|
-
});
|
|
76
|
-
return {
|
|
77
|
-
...vue.toRefs(state),
|
|
78
|
-
...methods,
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
});
|
|
17
|
+
const _sfc_main = vue.defineComponent({
|
|
18
|
+
name: 'BmCascader',
|
|
19
|
+
components: { DownOutlined: iconsVue.DownOutlined },
|
|
20
|
+
props: {
|
|
21
|
+
tipType: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: () => {
|
|
24
|
+
return 'none'
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
width: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: () => {
|
|
30
|
+
return 200
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
setup(props, { emit, attrs }) {
|
|
35
|
+
const nameArr = (arr) => {
|
|
36
|
+
return arr.reduce(
|
|
37
|
+
(acc, cur) => acc.concat(Array.isArray(cur) ? nameArr(cur) : cur),
|
|
38
|
+
[]
|
|
39
|
+
)
|
|
40
|
+
};
|
|
41
|
+
const state = vue.reactive({
|
|
42
|
+
labelNameList: '',
|
|
43
|
+
visible: false,
|
|
44
|
+
});
|
|
45
|
+
const methods = {
|
|
46
|
+
onmouseover() {
|
|
47
|
+
state.labelNameList.length && (state.visible = true);
|
|
48
|
+
},
|
|
49
|
+
onmouseout() {
|
|
50
|
+
state.labelNameList.length && (state.visible = false);
|
|
51
|
+
},
|
|
52
|
+
onchange(value, selectedOptions) {
|
|
53
|
+
if (attrs.multiple === '' || attrs.multiple) {
|
|
54
|
+
let res = selectedOptions.map((v, k) => {
|
|
55
|
+
return v.map((e, i) => {
|
|
56
|
+
return e.label
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
state.labelNameList = nameArr(res).join(',');
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
vue.watch(
|
|
64
|
+
() => state.labelNameList.length,
|
|
65
|
+
(val) => {
|
|
66
|
+
if (!val) {
|
|
67
|
+
state.visible = false;
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{ deep: true }
|
|
71
|
+
);
|
|
72
|
+
vue.onMounted(() => {
|
|
73
|
+
attrs.value?.length &&
|
|
74
|
+
(state.labelNameList = nameArr(attrs.value).join(','));
|
|
75
|
+
});
|
|
76
|
+
return {
|
|
77
|
+
...vue.toRefs(state),
|
|
78
|
+
...methods,
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
82
|
|
|
83
83
|
const _hoisted_1 = {
|
|
84
84
|
ref: "BmCascader",
|
|
@@ -99,18 +99,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
99
99
|
? (vue.openBlock(), vue.createBlock(_component_a_popover, {
|
|
100
100
|
key: 0,
|
|
101
101
|
visible: _ctx.visible,
|
|
102
|
-
"get-popup-container":
|
|
103
|
-
(triggerNode) => {
|
|
104
|
-
return triggerNode.parentNode
|
|
105
|
-
}
|
|
102
|
+
"get-popup-container":
|
|
103
|
+
(triggerNode) => {
|
|
104
|
+
return triggerNode.parentNode
|
|
105
|
+
}
|
|
106
106
|
|
|
107
107
|
}, vue.createSlots({
|
|
108
108
|
default: vue.withCtx(() => [
|
|
109
109
|
vue.createVNode(_component_a_cascader, vue.mergeProps(_ctx.$attrs, {
|
|
110
|
-
style: {
|
|
111
|
-
width:
|
|
112
|
-
_ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
|
|
113
|
-
minWidth: _ctx.width + 'px',
|
|
110
|
+
style: {
|
|
111
|
+
width:
|
|
112
|
+
_ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
|
|
113
|
+
minWidth: _ctx.width + 'px',
|
|
114
114
|
},
|
|
115
115
|
"show-arrow": true,
|
|
116
116
|
onMouseover: _ctx.onmouseover,
|
|
@@ -163,10 +163,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
163
163
|
}, vue.createSlots({
|
|
164
164
|
default: vue.withCtx(() => [
|
|
165
165
|
vue.createVNode(_component_a_cascader, vue.mergeProps(_ctx.$attrs, {
|
|
166
|
-
style: {
|
|
167
|
-
width:
|
|
168
|
-
_ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
|
|
169
|
-
minWidth: _ctx.width + 'px',
|
|
166
|
+
style: {
|
|
167
|
+
width:
|
|
168
|
+
_ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
|
|
169
|
+
minWidth: _ctx.width + 'px',
|
|
170
170
|
},
|
|
171
171
|
"show-arrow": true,
|
|
172
172
|
onMouseover: _ctx.onmouseover,
|
|
@@ -1078,7 +1078,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1078
1078
|
vue.createVNode(vue.unref(BmOverTooltips__default["default"]), {
|
|
1079
1079
|
title: vue.unref(getShowValue)(item) || tmpForm.value[item.prop]
|
|
1080
1080
|
}, null, 8, ["title"]),
|
|
1081
|
-
vue.createCommentVNode(' <AutoTooltip\
|
|
1081
|
+
vue.createCommentVNode(' <AutoTooltip\n :tooltip="getShowValue(item) || tmpForm[item.prop]"\n /> ')
|
|
1082
1082
|
], 6)) : vue.createCommentVNode("v-if", true),
|
|
1083
1083
|
item.type === "multiText" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
1084
1084
|
key: 15,
|
|
@@ -287,7 +287,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
287
287
|
vue.createElementVNode("span", {
|
|
288
288
|
class: vue.normalizeClass(["opeator", { active: __props.isCustom }])
|
|
289
289
|
}, [
|
|
290
|
-
vue.createCommentVNode(' <CopyOutlined\
|
|
290
|
+
vue.createCommentVNode(' <CopyOutlined\n @click.stop="\n () => {\n copyCallback()\n }\n " /> \u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
|
|
291
291
|
vue.createVNode(vue.unref(iconsVue.CloseOutlined), {
|
|
292
292
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(
|
|
293
293
|
() => {
|