bm-admin-ui 1.2.44-alpha → 1.2.46-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 +7894 -26
- 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 +7894 -27
- package/package.json +34 -34
- package/theme-chalk/form-create.css +1 -1
- package/theme-chalk/index.css +1 -1
|
@@ -10,71 +10,71 @@ var _export_sfc = (sfc, props) => {
|
|
|
10
10
|
return target;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
const _sfc_main = defineComponent({
|
|
14
|
-
name: 'BmCascader',
|
|
15
|
-
components: { DownOutlined },
|
|
16
|
-
props: {
|
|
17
|
-
tipType: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: () => {
|
|
20
|
-
return 'none'
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
width: {
|
|
24
|
-
type: Number,
|
|
25
|
-
default: () => {
|
|
26
|
-
return 200
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
setup(props, { emit, attrs }) {
|
|
31
|
-
const nameArr = (arr) => {
|
|
32
|
-
return arr.reduce(
|
|
33
|
-
(acc, cur) => acc.concat(Array.isArray(cur) ? nameArr(cur) : cur),
|
|
34
|
-
[]
|
|
35
|
-
)
|
|
36
|
-
};
|
|
37
|
-
const state = reactive({
|
|
38
|
-
labelNameList: '',
|
|
39
|
-
visible: false,
|
|
40
|
-
});
|
|
41
|
-
const methods = {
|
|
42
|
-
onmouseover() {
|
|
43
|
-
state.labelNameList.length && (state.visible = true);
|
|
44
|
-
},
|
|
45
|
-
onmouseout() {
|
|
46
|
-
state.labelNameList.length && (state.visible = false);
|
|
47
|
-
},
|
|
48
|
-
onchange(value, selectedOptions) {
|
|
49
|
-
if (attrs.multiple === '' || attrs.multiple) {
|
|
50
|
-
let res = selectedOptions.map((v, k) => {
|
|
51
|
-
return v.map((e, i) => {
|
|
52
|
-
return e.label
|
|
53
|
-
})
|
|
54
|
-
});
|
|
55
|
-
state.labelNameList = nameArr(res).join(',');
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
watch(
|
|
60
|
-
() => state.labelNameList.length,
|
|
61
|
-
(val) => {
|
|
62
|
-
if (!val) {
|
|
63
|
-
state.visible = false;
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
{ deep: true }
|
|
67
|
-
);
|
|
68
|
-
onMounted(() => {
|
|
69
|
-
attrs.value?.length &&
|
|
70
|
-
(state.labelNameList = nameArr(attrs.value).join(','));
|
|
71
|
-
});
|
|
72
|
-
return {
|
|
73
|
-
...toRefs(state),
|
|
74
|
-
...methods,
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
});
|
|
13
|
+
const _sfc_main = defineComponent({
|
|
14
|
+
name: 'BmCascader',
|
|
15
|
+
components: { DownOutlined },
|
|
16
|
+
props: {
|
|
17
|
+
tipType: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: () => {
|
|
20
|
+
return 'none'
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
width: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: () => {
|
|
26
|
+
return 200
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
setup(props, { emit, attrs }) {
|
|
31
|
+
const nameArr = (arr) => {
|
|
32
|
+
return arr.reduce(
|
|
33
|
+
(acc, cur) => acc.concat(Array.isArray(cur) ? nameArr(cur) : cur),
|
|
34
|
+
[]
|
|
35
|
+
)
|
|
36
|
+
};
|
|
37
|
+
const state = reactive({
|
|
38
|
+
labelNameList: '',
|
|
39
|
+
visible: false,
|
|
40
|
+
});
|
|
41
|
+
const methods = {
|
|
42
|
+
onmouseover() {
|
|
43
|
+
state.labelNameList.length && (state.visible = true);
|
|
44
|
+
},
|
|
45
|
+
onmouseout() {
|
|
46
|
+
state.labelNameList.length && (state.visible = false);
|
|
47
|
+
},
|
|
48
|
+
onchange(value, selectedOptions) {
|
|
49
|
+
if (attrs.multiple === '' || attrs.multiple) {
|
|
50
|
+
let res = selectedOptions.map((v, k) => {
|
|
51
|
+
return v.map((e, i) => {
|
|
52
|
+
return e.label
|
|
53
|
+
})
|
|
54
|
+
});
|
|
55
|
+
state.labelNameList = nameArr(res).join(',');
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
watch(
|
|
60
|
+
() => state.labelNameList.length,
|
|
61
|
+
(val) => {
|
|
62
|
+
if (!val) {
|
|
63
|
+
state.visible = false;
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{ deep: true }
|
|
67
|
+
);
|
|
68
|
+
onMounted(() => {
|
|
69
|
+
attrs.value?.length &&
|
|
70
|
+
(state.labelNameList = nameArr(attrs.value).join(','));
|
|
71
|
+
});
|
|
72
|
+
return {
|
|
73
|
+
...toRefs(state),
|
|
74
|
+
...methods,
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
78
|
|
|
79
79
|
const _hoisted_1 = {
|
|
80
80
|
ref: "BmCascader",
|
|
@@ -95,18 +95,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
95
95
|
? (openBlock(), createBlock(_component_a_popover, {
|
|
96
96
|
key: 0,
|
|
97
97
|
visible: _ctx.visible,
|
|
98
|
-
"get-popup-container":
|
|
99
|
-
(triggerNode) => {
|
|
100
|
-
return triggerNode.parentNode
|
|
101
|
-
}
|
|
98
|
+
"get-popup-container":
|
|
99
|
+
(triggerNode) => {
|
|
100
|
+
return triggerNode.parentNode
|
|
101
|
+
}
|
|
102
102
|
|
|
103
103
|
}, createSlots({
|
|
104
104
|
default: withCtx(() => [
|
|
105
105
|
createVNode(_component_a_cascader, mergeProps(_ctx.$attrs, {
|
|
106
|
-
style: {
|
|
107
|
-
width:
|
|
108
|
-
_ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
|
|
109
|
-
minWidth: _ctx.width + 'px',
|
|
106
|
+
style: {
|
|
107
|
+
width:
|
|
108
|
+
_ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
|
|
109
|
+
minWidth: _ctx.width + 'px',
|
|
110
110
|
},
|
|
111
111
|
"show-arrow": true,
|
|
112
112
|
onMouseover: _ctx.onmouseover,
|
|
@@ -159,10 +159,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
159
159
|
}, createSlots({
|
|
160
160
|
default: withCtx(() => [
|
|
161
161
|
createVNode(_component_a_cascader, mergeProps(_ctx.$attrs, {
|
|
162
|
-
style: {
|
|
163
|
-
width:
|
|
164
|
-
_ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
|
|
165
|
-
minWidth: _ctx.width + 'px',
|
|
162
|
+
style: {
|
|
163
|
+
width:
|
|
164
|
+
_ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
|
|
165
|
+
minWidth: _ctx.width + 'px',
|
|
166
166
|
},
|
|
167
167
|
"show-arrow": true,
|
|
168
168
|
onMouseover: _ctx.onmouseover,
|
|
@@ -1070,7 +1070,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1070
1070
|
createVNode(unref(BmOverTooltips), {
|
|
1071
1071
|
title: unref(getShowValue)(item) || tmpForm.value[item.prop]
|
|
1072
1072
|
}, null, 8, ["title"]),
|
|
1073
|
-
createCommentVNode(' <AutoTooltip\
|
|
1073
|
+
createCommentVNode(' <AutoTooltip\n :tooltip="getShowValue(item) || tmpForm[item.prop]"\n /> ')
|
|
1074
1074
|
], 6)) : createCommentVNode("v-if", true),
|
|
1075
1075
|
item.type === "multiText" ? (openBlock(), createElementBlock("div", {
|
|
1076
1076
|
key: 15,
|
|
@@ -276,7 +276,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
276
276
|
createElementVNode("span", {
|
|
277
277
|
class: normalizeClass(["opeator", { active: __props.isCustom }])
|
|
278
278
|
}, [
|
|
279
|
-
createCommentVNode(' <CopyOutlined\
|
|
279
|
+
createCommentVNode(' <CopyOutlined\n @click.stop="\n () => {\n copyCallback()\n }\n " /> \u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
|
|
280
280
|
createVNode(unref(CloseOutlined), {
|
|
281
281
|
onClick: _cache[0] || (_cache[0] = withModifiers(
|
|
282
282
|
() => {
|