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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
declare const KeyCode: {
|
|
2
|
+
MAC_ENTER: number;
|
|
3
|
+
BACKSPACE: number;
|
|
4
|
+
TAB: number;
|
|
5
|
+
NUM_CENTER: number;
|
|
6
|
+
ENTER: number;
|
|
7
|
+
SHIFT: number;
|
|
8
|
+
CTRL: number;
|
|
9
|
+
ALT: number;
|
|
10
|
+
PAUSE: number;
|
|
11
|
+
CAPS_LOCK: number;
|
|
12
|
+
ESC: number;
|
|
13
|
+
SPACE: number;
|
|
14
|
+
PAGE_UP: number;
|
|
15
|
+
PAGE_DOWN: number;
|
|
16
|
+
END: number;
|
|
17
|
+
HOME: number;
|
|
18
|
+
LEFT: number;
|
|
19
|
+
UP: number;
|
|
20
|
+
RIGHT: number;
|
|
21
|
+
DOWN: number;
|
|
22
|
+
PRINT_SCREEN: number;
|
|
23
|
+
INSERT: number;
|
|
24
|
+
DELETE: number;
|
|
25
|
+
ZERO: number;
|
|
26
|
+
ONE: number;
|
|
27
|
+
TWO: number;
|
|
28
|
+
THREE: number;
|
|
29
|
+
FOUR: number;
|
|
30
|
+
FIVE: number;
|
|
31
|
+
SIX: number;
|
|
32
|
+
SEVEN: number;
|
|
33
|
+
EIGHT: number;
|
|
34
|
+
NINE: number;
|
|
35
|
+
QUESTION_MARK: number;
|
|
36
|
+
A: number;
|
|
37
|
+
B: number;
|
|
38
|
+
C: number;
|
|
39
|
+
D: number;
|
|
40
|
+
E: number;
|
|
41
|
+
F: number;
|
|
42
|
+
G: number;
|
|
43
|
+
H: number;
|
|
44
|
+
I: number;
|
|
45
|
+
J: number;
|
|
46
|
+
K: number;
|
|
47
|
+
L: number;
|
|
48
|
+
M: number;
|
|
49
|
+
N: number;
|
|
50
|
+
O: number;
|
|
51
|
+
P: number;
|
|
52
|
+
Q: number;
|
|
53
|
+
R: number;
|
|
54
|
+
S: number;
|
|
55
|
+
T: number;
|
|
56
|
+
U: number;
|
|
57
|
+
V: number;
|
|
58
|
+
W: number;
|
|
59
|
+
X: number;
|
|
60
|
+
Y: number;
|
|
61
|
+
Z: number;
|
|
62
|
+
META: number;
|
|
63
|
+
WIN_KEY_RIGHT: number;
|
|
64
|
+
CONTEXT_MENU: number;
|
|
65
|
+
NUM_ZERO: number;
|
|
66
|
+
NUM_ONE: number;
|
|
67
|
+
NUM_TWO: number;
|
|
68
|
+
NUM_THREE: number;
|
|
69
|
+
NUM_FOUR: number;
|
|
70
|
+
NUM_FIVE: number;
|
|
71
|
+
NUM_SIX: number;
|
|
72
|
+
NUM_SEVEN: number;
|
|
73
|
+
NUM_EIGHT: number;
|
|
74
|
+
NUM_NINE: number;
|
|
75
|
+
NUM_MULTIPLY: number;
|
|
76
|
+
NUM_PLUS: number;
|
|
77
|
+
NUM_MINUS: number;
|
|
78
|
+
NUM_PERIOD: number;
|
|
79
|
+
NUM_DIVISION: number;
|
|
80
|
+
F1: number;
|
|
81
|
+
F2: number;
|
|
82
|
+
F3: number;
|
|
83
|
+
F4: number;
|
|
84
|
+
F5: number;
|
|
85
|
+
F6: number;
|
|
86
|
+
F7: number;
|
|
87
|
+
F8: number;
|
|
88
|
+
F9: number;
|
|
89
|
+
F10: number;
|
|
90
|
+
F11: number;
|
|
91
|
+
F12: number;
|
|
92
|
+
NUMLOCK: number;
|
|
93
|
+
SEMICOLON: number;
|
|
94
|
+
DASH: number;
|
|
95
|
+
EQUALS: number;
|
|
96
|
+
COMMA: number;
|
|
97
|
+
PERIOD: number;
|
|
98
|
+
SLASH: number;
|
|
99
|
+
APOSTROPHE: number;
|
|
100
|
+
SINGLE_QUOTE: number;
|
|
101
|
+
OPEN_SQUARE_BRACKET: number;
|
|
102
|
+
BACKSLASH: number;
|
|
103
|
+
CLOSE_SQUARE_BRACKET: number;
|
|
104
|
+
WIN_KEY: number;
|
|
105
|
+
MAC_FF_META: number;
|
|
106
|
+
WIN_IME: number;
|
|
107
|
+
isTextModifyingKeyEvent: (e: KeyboardEvent) => boolean;
|
|
108
|
+
isCharacterKey: (keyCode: number) => boolean;
|
|
109
|
+
};
|
|
110
|
+
export default KeyCode;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const BmCascader: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
tipType: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: () => string;
|
|
5
|
+
};
|
|
6
|
+
width: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: () => number;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
onmouseover(): void;
|
|
12
|
+
onmouseout(): void;
|
|
13
|
+
onchange(value: any, selectedOptions: any): void;
|
|
14
|
+
labelNameList: import("vue").Ref<string>;
|
|
15
|
+
visible: import("vue").Ref<boolean>;
|
|
16
|
+
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
tipType: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: () => string;
|
|
20
|
+
};
|
|
21
|
+
width: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: () => number;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
tipType: string;
|
|
27
|
+
width: number;
|
|
28
|
+
}>>;
|
|
29
|
+
export { BmCascader };
|
|
30
|
+
export default BmCascader;
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
|
+
import { defineComponent, reactive, watch, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, createBlock, createSlots, withCtx, createVNode, mergeProps, createElementVNode, createTextVNode, toDisplayString, Fragment, renderList } from 'vue';
|
|
3
|
+
import { DownOutlined } from '@ant-design/icons-vue';
|
|
4
|
+
|
|
5
|
+
var _export_sfc = (sfc, props) => {
|
|
6
|
+
const target = sfc.__vccOpts || sfc;
|
|
7
|
+
for (const [key, val] of props) {
|
|
8
|
+
target[key] = val;
|
|
9
|
+
}
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const _sfc_main = defineComponent({
|
|
14
|
+
name: 'BmLabelSelect',
|
|
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
|
+
|
|
79
|
+
const _hoisted_1 = {
|
|
80
|
+
ref: "BmLabelSelect",
|
|
81
|
+
class: "bm-label-select"
|
|
82
|
+
};
|
|
83
|
+
const _hoisted_2 = { style: {"margin":"8px 0 0 0"} };
|
|
84
|
+
const _hoisted_3 = { style: {"color":"#2243ec"} };
|
|
85
|
+
const _hoisted_4 = { class: "bm-label-select-labelList" };
|
|
86
|
+
|
|
87
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
88
|
+
const _component_DownOutlined = resolveComponent("DownOutlined");
|
|
89
|
+
const _component_a_cascader = resolveComponent("a-cascader");
|
|
90
|
+
const _component_a_popover = resolveComponent("a-popover");
|
|
91
|
+
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
92
|
+
|
|
93
|
+
return (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
94
|
+
(_ctx.tipType === 'popover')
|
|
95
|
+
? (openBlock(), createBlock(_component_a_popover, {
|
|
96
|
+
key: 0,
|
|
97
|
+
visible: _ctx.visible,
|
|
98
|
+
"get-popup-container":
|
|
99
|
+
(triggerNode) => {
|
|
100
|
+
return triggerNode.parentNode
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
}, createSlots({
|
|
104
|
+
default: withCtx(() => [
|
|
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',
|
|
110
|
+
},
|
|
111
|
+
"show-arrow": true,
|
|
112
|
+
onMouseover: _ctx.onmouseover,
|
|
113
|
+
onMouseout: _ctx.onmouseout,
|
|
114
|
+
onChange: _ctx.onchange
|
|
115
|
+
}), {
|
|
116
|
+
suffixIcon: withCtx(() => [
|
|
117
|
+
createVNode(_component_DownOutlined)
|
|
118
|
+
]),
|
|
119
|
+
_: 1 /* STABLE */
|
|
120
|
+
}, 16 /* FULL_PROPS */, ["style", "onMouseover", "onMouseout", "onChange"])
|
|
121
|
+
]),
|
|
122
|
+
_: 2 /* DYNAMIC */
|
|
123
|
+
}, [
|
|
124
|
+
(_ctx.labelNameList)
|
|
125
|
+
? {
|
|
126
|
+
name: "title",
|
|
127
|
+
fn: withCtx(() => [
|
|
128
|
+
createElementVNode("div", _hoisted_2, [
|
|
129
|
+
createTextVNode(" 已选择 "),
|
|
130
|
+
createElementVNode("span", _hoisted_3, toDisplayString(_ctx.labelNameList ? _ctx.labelNameList.split(',')?.length : 0), 1 /* TEXT */),
|
|
131
|
+
createTextVNode(" 项 ")
|
|
132
|
+
])
|
|
133
|
+
]),
|
|
134
|
+
key: "0"
|
|
135
|
+
}
|
|
136
|
+
: undefined,
|
|
137
|
+
(_ctx.labelNameList)
|
|
138
|
+
? {
|
|
139
|
+
name: "content",
|
|
140
|
+
fn: withCtx(() => [
|
|
141
|
+
createElementVNode("div", _hoisted_4, [
|
|
142
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labelNameList.split(','), (item) => {
|
|
143
|
+
return (openBlock(), createElementBlock("div", {
|
|
144
|
+
key: item,
|
|
145
|
+
class: "bm-label-select-labelList-tip"
|
|
146
|
+
}, toDisplayString(item), 1 /* TEXT */))
|
|
147
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
148
|
+
])
|
|
149
|
+
]),
|
|
150
|
+
key: "1"
|
|
151
|
+
}
|
|
152
|
+
: undefined
|
|
153
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["visible", "get-popup-container"]))
|
|
154
|
+
: (_ctx.tipType === 'tooltip')
|
|
155
|
+
? (openBlock(), createBlock(_component_a_tooltip, {
|
|
156
|
+
key: 1,
|
|
157
|
+
placement: "top",
|
|
158
|
+
visible: _ctx.visible
|
|
159
|
+
}, createSlots({
|
|
160
|
+
default: withCtx(() => [
|
|
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',
|
|
166
|
+
},
|
|
167
|
+
"show-arrow": true,
|
|
168
|
+
onMouseover: _ctx.onmouseover,
|
|
169
|
+
onMouseout: _ctx.onmouseout,
|
|
170
|
+
onChange: _ctx.onchange
|
|
171
|
+
}), {
|
|
172
|
+
suffixIcon: withCtx(() => [
|
|
173
|
+
createVNode(_component_DownOutlined)
|
|
174
|
+
]),
|
|
175
|
+
_: 1 /* STABLE */
|
|
176
|
+
}, 16 /* FULL_PROPS */, ["style", "onMouseover", "onMouseout", "onChange"])
|
|
177
|
+
]),
|
|
178
|
+
_: 2 /* DYNAMIC */
|
|
179
|
+
}, [
|
|
180
|
+
(_ctx.labelNameList)
|
|
181
|
+
? {
|
|
182
|
+
name: "title",
|
|
183
|
+
fn: withCtx(() => [
|
|
184
|
+
createTextVNode(toDisplayString(_ctx.labelNameList), 1 /* TEXT */)
|
|
185
|
+
]),
|
|
186
|
+
key: "0"
|
|
187
|
+
}
|
|
188
|
+
: undefined
|
|
189
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["visible"]))
|
|
190
|
+
: (openBlock(), createBlock(_component_a_cascader, mergeProps({
|
|
191
|
+
key: 2,
|
|
192
|
+
visible: _ctx.visible
|
|
193
|
+
}, _ctx.$attrs, {
|
|
194
|
+
style: { width: 'auto', minWidth: _ctx.width + 'px' },
|
|
195
|
+
"show-arrow": true,
|
|
196
|
+
onMouseover: _ctx.onmouseover,
|
|
197
|
+
onMouseout: _ctx.onmouseout,
|
|
198
|
+
onChange: _ctx.onchange
|
|
199
|
+
}), {
|
|
200
|
+
suffixIcon: withCtx(() => [
|
|
201
|
+
createVNode(_component_DownOutlined)
|
|
202
|
+
]),
|
|
203
|
+
_: 1 /* STABLE */
|
|
204
|
+
}, 16 /* FULL_PROPS */, ["visible", "style", "onMouseover", "onMouseout", "onChange"]))
|
|
205
|
+
], 512 /* NEED_PATCH */))
|
|
206
|
+
}
|
|
207
|
+
var cascader = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render],['__file',"cascader.vue"]]);
|
|
208
|
+
|
|
209
|
+
const BmCascader = withInstall(cascader);
|
|
210
|
+
|
|
211
|
+
export { BmCascader, BmCascader as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare var _default: import("vue").DefineComponent<{
|
|
2
|
+
tipType: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: () => string;
|
|
5
|
+
};
|
|
6
|
+
width: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: () => number;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
onmouseover(): void;
|
|
12
|
+
onmouseout(): void;
|
|
13
|
+
onchange(value: any, selectedOptions: any): void;
|
|
14
|
+
labelNameList: import("vue").Ref<string>;
|
|
15
|
+
visible: import("vue").Ref<boolean>;
|
|
16
|
+
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
tipType: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: () => string;
|
|
20
|
+
};
|
|
21
|
+
width: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: () => number;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
tipType: string;
|
|
27
|
+
width: number;
|
|
28
|
+
}>;
|
|
29
|
+
export default _default;
|
|
@@ -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\n :tooltip="getShowValue(item) || tmpForm[item.prop]"\n /> ')
|
|
1073
|
+
createCommentVNode(' <AutoTooltip\r\n :tooltip="getShowValue(item) || tmpForm[item.prop]"\r\n /> ')
|
|
1074
1074
|
], 6)) : createCommentVNode("v-if", true),
|
|
1075
1075
|
item.type === "multiText" ? (openBlock(), createElementBlock("div", {
|
|
1076
1076
|
key: 15,
|
|
@@ -232,7 +232,7 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
232
232
|
modalRender: import("vue").PropType<(arg: {
|
|
233
233
|
originVNode: import("ant-design-vue/lib/_util/type").VueNode;
|
|
234
234
|
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
235
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
235
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "keyboard" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "focusTriggerAfterClose">;
|
|
236
236
|
$attrs: {
|
|
237
237
|
[x: string]: unknown;
|
|
238
238
|
};
|
|
@@ -226,7 +226,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
226
226
|
modalRender: import("vue").PropType<(arg: {
|
|
227
227
|
originVNode: import("ant-design-vue/lib/_util/type").VueNode;
|
|
228
228
|
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
229
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
229
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "keyboard" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "focusTriggerAfterClose">;
|
|
230
230
|
$attrs: {
|
|
231
231
|
[x: string]: unknown;
|
|
232
232
|
};
|
|
@@ -4,7 +4,7 @@ import { Empty } from 'ant-design-vue';
|
|
|
4
4
|
import { VXETable } from 'vxe-table';
|
|
5
5
|
|
|
6
6
|
/**!
|
|
7
|
-
* Sortable 1.
|
|
7
|
+
* Sortable 1.15.0
|
|
8
8
|
* @author RubaXa <trash@rubaxa.org>
|
|
9
9
|
* @author owenm <owen23355@gmail.com>
|
|
10
10
|
* @license MIT
|
|
@@ -132,7 +132,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
132
132
|
return target;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
var version = "1.
|
|
135
|
+
var version = "1.15.0";
|
|
136
136
|
|
|
137
137
|
function userAgent(pattern) {
|
|
138
138
|
if (typeof window !== 'undefined' && window.navigator) {
|
|
@@ -1053,11 +1053,11 @@ supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in
|
|
|
1053
1053
|
return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
|
|
1054
1054
|
},
|
|
1055
1055
|
|
|
1056
|
-
/**
|
|
1057
|
-
* Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
|
|
1058
|
-
* @param {Number} x X position
|
|
1059
|
-
* @param {Number} y Y position
|
|
1060
|
-
* @return {HTMLElement} Element of the first found nearest Sortable
|
|
1056
|
+
/**
|
|
1057
|
+
* Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
|
|
1058
|
+
* @param {Number} x X position
|
|
1059
|
+
* @param {Number} y Y position
|
|
1060
|
+
* @return {HTMLElement} Element of the first found nearest Sortable
|
|
1061
1061
|
*/
|
|
1062
1062
|
_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
|
|
1063
1063
|
var ret;
|
|
@@ -1123,7 +1123,7 @@ _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
|
|
|
1123
1123
|
}; // #1184 fix - Prevent click event on fallback if dragged but item not changed position
|
|
1124
1124
|
|
|
1125
1125
|
|
|
1126
|
-
if (documentExists) {
|
|
1126
|
+
if (documentExists && !ChromeForAndroid) {
|
|
1127
1127
|
document.addEventListener('click', function (evt) {
|
|
1128
1128
|
if (ignoreNextClick) {
|
|
1129
1129
|
evt.preventDefault();
|
|
@@ -1165,10 +1165,10 @@ var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
|
|
|
1165
1165
|
dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
|
|
1166
1166
|
}
|
|
1167
1167
|
};
|
|
1168
|
-
/**
|
|
1169
|
-
* @class Sortable
|
|
1170
|
-
* @param {HTMLElement} el
|
|
1171
|
-
* @param {Object} [options]
|
|
1168
|
+
/**
|
|
1169
|
+
* @class Sortable
|
|
1170
|
+
* @param {HTMLElement} el
|
|
1171
|
+
* @param {Object} [options]
|
|
1172
1172
|
*/
|
|
1173
1173
|
|
|
1174
1174
|
|
|
@@ -1742,6 +1742,7 @@ Sortable.prototype =
|
|
|
1742
1742
|
|
|
1743
1743
|
if (!Sortable.eventCanceled) {
|
|
1744
1744
|
cloneEl = clone(dragEl);
|
|
1745
|
+
cloneEl.removeAttribute("id");
|
|
1745
1746
|
cloneEl.draggable = false;
|
|
1746
1747
|
cloneEl.style['will-change'] = '';
|
|
1747
1748
|
|
|
@@ -1983,7 +1984,14 @@ Sortable.prototype =
|
|
|
1983
1984
|
|
|
1984
1985
|
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
|
|
1985
1986
|
capture();
|
|
1986
|
-
|
|
1987
|
+
|
|
1988
|
+
if (elLastChild && elLastChild.nextSibling) {
|
|
1989
|
+
// the last draggable element is not the last node
|
|
1990
|
+
el.insertBefore(dragEl, elLastChild.nextSibling);
|
|
1991
|
+
} else {
|
|
1992
|
+
el.appendChild(dragEl);
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1987
1995
|
parentEl = el; // actualization
|
|
1988
1996
|
|
|
1989
1997
|
changed();
|
|
@@ -2306,9 +2314,9 @@ Sortable.prototype =
|
|
|
2306
2314
|
}
|
|
2307
2315
|
},
|
|
2308
2316
|
|
|
2309
|
-
/**
|
|
2310
|
-
* Serializes the item into an array of string.
|
|
2311
|
-
* @returns {String[]}
|
|
2317
|
+
/**
|
|
2318
|
+
* Serializes the item into an array of string.
|
|
2319
|
+
* @returns {String[]}
|
|
2312
2320
|
*/
|
|
2313
2321
|
toArray: function toArray() {
|
|
2314
2322
|
var order = [],
|
|
@@ -2329,9 +2337,9 @@ Sortable.prototype =
|
|
|
2329
2337
|
return order;
|
|
2330
2338
|
},
|
|
2331
2339
|
|
|
2332
|
-
/**
|
|
2333
|
-
* Sorts the elements according to the array.
|
|
2334
|
-
* @param {String[]} order order of the items
|
|
2340
|
+
/**
|
|
2341
|
+
* Sorts the elements according to the array.
|
|
2342
|
+
* @param {String[]} order order of the items
|
|
2335
2343
|
*/
|
|
2336
2344
|
sort: function sort(order, useAnimation) {
|
|
2337
2345
|
var items = {},
|
|
@@ -2353,29 +2361,29 @@ Sortable.prototype =
|
|
|
2353
2361
|
useAnimation && this.animateAll();
|
|
2354
2362
|
},
|
|
2355
2363
|
|
|
2356
|
-
/**
|
|
2357
|
-
* Save the current sorting
|
|
2364
|
+
/**
|
|
2365
|
+
* Save the current sorting
|
|
2358
2366
|
*/
|
|
2359
2367
|
save: function save() {
|
|
2360
2368
|
var store = this.options.store;
|
|
2361
2369
|
store && store.set && store.set(this);
|
|
2362
2370
|
},
|
|
2363
2371
|
|
|
2364
|
-
/**
|
|
2365
|
-
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
|
|
2366
|
-
* @param {HTMLElement} el
|
|
2367
|
-
* @param {String} [selector] default: `options.draggable`
|
|
2368
|
-
* @returns {HTMLElement|null}
|
|
2372
|
+
/**
|
|
2373
|
+
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
|
|
2374
|
+
* @param {HTMLElement} el
|
|
2375
|
+
* @param {String} [selector] default: `options.draggable`
|
|
2376
|
+
* @returns {HTMLElement|null}
|
|
2369
2377
|
*/
|
|
2370
2378
|
closest: function closest$1(el, selector) {
|
|
2371
2379
|
return closest(el, selector || this.options.draggable, this.el, false);
|
|
2372
2380
|
},
|
|
2373
2381
|
|
|
2374
|
-
/**
|
|
2375
|
-
* Set/get option
|
|
2376
|
-
* @param {string} name
|
|
2377
|
-
* @param {*} [value]
|
|
2378
|
-
* @returns {*}
|
|
2382
|
+
/**
|
|
2383
|
+
* Set/get option
|
|
2384
|
+
* @param {string} name
|
|
2385
|
+
* @param {*} [value]
|
|
2386
|
+
* @returns {*}
|
|
2379
2387
|
*/
|
|
2380
2388
|
option: function option(name, value) {
|
|
2381
2389
|
var options = this.options;
|
|
@@ -2397,8 +2405,8 @@ Sortable.prototype =
|
|
|
2397
2405
|
}
|
|
2398
2406
|
},
|
|
2399
2407
|
|
|
2400
|
-
/**
|
|
2401
|
-
* Destroy
|
|
2408
|
+
/**
|
|
2409
|
+
* Destroy
|
|
2402
2410
|
*/
|
|
2403
2411
|
destroy: function destroy() {
|
|
2404
2412
|
pluginEvent('destroy', this);
|
|
@@ -2575,11 +2583,11 @@ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, inv
|
|
|
2575
2583
|
|
|
2576
2584
|
return 0;
|
|
2577
2585
|
}
|
|
2578
|
-
/**
|
|
2579
|
-
* Gets the direction dragEl must be swapped relative to target in order to make it
|
|
2580
|
-
* seem that dragEl has been "inserted" into that element's position
|
|
2581
|
-
* @param {HTMLElement} target The target whose position dragEl is being inserted at
|
|
2582
|
-
* @return {Number} Direction dragEl must be swapped
|
|
2586
|
+
/**
|
|
2587
|
+
* Gets the direction dragEl must be swapped relative to target in order to make it
|
|
2588
|
+
* seem that dragEl has been "inserted" into that element's position
|
|
2589
|
+
* @param {HTMLElement} target The target whose position dragEl is being inserted at
|
|
2590
|
+
* @return {Number} Direction dragEl must be swapped
|
|
2583
2591
|
*/
|
|
2584
2592
|
|
|
2585
2593
|
|
|
@@ -2590,11 +2598,11 @@ function _getInsertDirection(target) {
|
|
|
2590
2598
|
return -1;
|
|
2591
2599
|
}
|
|
2592
2600
|
}
|
|
2593
|
-
/**
|
|
2594
|
-
* Generate id
|
|
2595
|
-
* @param {HTMLElement} el
|
|
2596
|
-
* @returns {String}
|
|
2597
|
-
* @private
|
|
2601
|
+
/**
|
|
2602
|
+
* Generate id
|
|
2603
|
+
* @param {HTMLElement} el
|
|
2604
|
+
* @returns {String}
|
|
2605
|
+
* @private
|
|
2598
2606
|
*/
|
|
2599
2607
|
|
|
2600
2608
|
|
|
@@ -2658,18 +2666,18 @@ Sortable.utils = {
|
|
|
2658
2666
|
detectDirection: _detectDirection,
|
|
2659
2667
|
getChild: getChild
|
|
2660
2668
|
};
|
|
2661
|
-
/**
|
|
2662
|
-
* Get the Sortable instance of an element
|
|
2663
|
-
* @param {HTMLElement} element The element
|
|
2664
|
-
* @return {Sortable|undefined} The instance of Sortable
|
|
2669
|
+
/**
|
|
2670
|
+
* Get the Sortable instance of an element
|
|
2671
|
+
* @param {HTMLElement} element The element
|
|
2672
|
+
* @return {Sortable|undefined} The instance of Sortable
|
|
2665
2673
|
*/
|
|
2666
2674
|
|
|
2667
2675
|
Sortable.get = function (element) {
|
|
2668
2676
|
return element[expando];
|
|
2669
2677
|
};
|
|
2670
|
-
/**
|
|
2671
|
-
* Mount a plugin to Sortable
|
|
2672
|
-
* @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
|
|
2678
|
+
/**
|
|
2679
|
+
* Mount a plugin to Sortable
|
|
2680
|
+
* @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
|
|
2673
2681
|
*/
|
|
2674
2682
|
|
|
2675
2683
|
|
|
@@ -2688,10 +2696,10 @@ Sortable.mount = function () {
|
|
|
2688
2696
|
PluginManager.mount(plugin);
|
|
2689
2697
|
});
|
|
2690
2698
|
};
|
|
2691
|
-
/**
|
|
2692
|
-
* Create sortable instance
|
|
2693
|
-
* @param {HTMLElement} el
|
|
2694
|
-
* @param {Object} [options]
|
|
2699
|
+
/**
|
|
2700
|
+
* Create sortable instance
|
|
2701
|
+
* @param {HTMLElement} el
|
|
2702
|
+
* @param {Object} [options]
|
|
2695
2703
|
*/
|
|
2696
2704
|
|
|
2697
2705
|
|
|
@@ -257,7 +257,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
257
257
|
createElementVNode("span", {
|
|
258
258
|
class: normalizeClass(["opeator", { active: __props.isCustom }])
|
|
259
259
|
}, [
|
|
260
|
-
createCommentVNode(' <CopyOutlined\n @click.stop="\n () => {\n copyCallback()\n }\n " /> \u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
|
|
260
|
+
createCommentVNode(' <CopyOutlined\r\n @click.stop="\r\n () => {\r\n copyCallback()\r\n }\r\n " /> \u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
|
|
261
261
|
createVNode(unref(CloseOutlined), {
|
|
262
262
|
onClick: _cache[0] || (_cache[0] = () => {
|
|
263
263
|
__props.deleteCallback();
|