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,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,216 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var withInstall = require('bm-admin-ui/lib/utils/with-install');
|
|
6
|
+
var vue = require('vue');
|
|
7
|
+
var iconsVue = require('@ant-design/icons-vue');
|
|
8
|
+
|
|
9
|
+
var _export_sfc = (sfc, props) => {
|
|
10
|
+
const target = sfc.__vccOpts || sfc;
|
|
11
|
+
for (const [key, val] of props) {
|
|
12
|
+
target[key] = val;
|
|
13
|
+
}
|
|
14
|
+
return target;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const _sfc_main = vue.defineComponent({
|
|
18
|
+
name: 'BmLabelSelect',
|
|
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
|
+
|
|
83
|
+
const _hoisted_1 = {
|
|
84
|
+
ref: "BmLabelSelect",
|
|
85
|
+
class: "bm-label-select"
|
|
86
|
+
};
|
|
87
|
+
const _hoisted_2 = { style: {"margin":"8px 0 0 0"} };
|
|
88
|
+
const _hoisted_3 = { style: {"color":"#2243ec"} };
|
|
89
|
+
const _hoisted_4 = { class: "bm-label-select-labelList" };
|
|
90
|
+
|
|
91
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
92
|
+
const _component_DownOutlined = vue.resolveComponent("DownOutlined");
|
|
93
|
+
const _component_a_cascader = vue.resolveComponent("a-cascader");
|
|
94
|
+
const _component_a_popover = vue.resolveComponent("a-popover");
|
|
95
|
+
const _component_a_tooltip = vue.resolveComponent("a-tooltip");
|
|
96
|
+
|
|
97
|
+
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
98
|
+
(_ctx.tipType === 'popover')
|
|
99
|
+
? (vue.openBlock(), vue.createBlock(_component_a_popover, {
|
|
100
|
+
key: 0,
|
|
101
|
+
visible: _ctx.visible,
|
|
102
|
+
"get-popup-container":
|
|
103
|
+
(triggerNode) => {
|
|
104
|
+
return triggerNode.parentNode
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
}, vue.createSlots({
|
|
108
|
+
default: vue.withCtx(() => [
|
|
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',
|
|
114
|
+
},
|
|
115
|
+
"show-arrow": true,
|
|
116
|
+
onMouseover: _ctx.onmouseover,
|
|
117
|
+
onMouseout: _ctx.onmouseout,
|
|
118
|
+
onChange: _ctx.onchange
|
|
119
|
+
}), {
|
|
120
|
+
suffixIcon: vue.withCtx(() => [
|
|
121
|
+
vue.createVNode(_component_DownOutlined)
|
|
122
|
+
]),
|
|
123
|
+
_: 1 /* STABLE */
|
|
124
|
+
}, 16 /* FULL_PROPS */, ["style", "onMouseover", "onMouseout", "onChange"])
|
|
125
|
+
]),
|
|
126
|
+
_: 2 /* DYNAMIC */
|
|
127
|
+
}, [
|
|
128
|
+
(_ctx.labelNameList)
|
|
129
|
+
? {
|
|
130
|
+
name: "title",
|
|
131
|
+
fn: vue.withCtx(() => [
|
|
132
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
133
|
+
vue.createTextVNode(" 已选择 "),
|
|
134
|
+
vue.createElementVNode("span", _hoisted_3, vue.toDisplayString(_ctx.labelNameList ? _ctx.labelNameList.split(',')?.length : 0), 1 /* TEXT */),
|
|
135
|
+
vue.createTextVNode(" 项 ")
|
|
136
|
+
])
|
|
137
|
+
]),
|
|
138
|
+
key: "0"
|
|
139
|
+
}
|
|
140
|
+
: undefined,
|
|
141
|
+
(_ctx.labelNameList)
|
|
142
|
+
? {
|
|
143
|
+
name: "content",
|
|
144
|
+
fn: vue.withCtx(() => [
|
|
145
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
146
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.labelNameList.split(','), (item) => {
|
|
147
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
148
|
+
key: item,
|
|
149
|
+
class: "bm-label-select-labelList-tip"
|
|
150
|
+
}, vue.toDisplayString(item), 1 /* TEXT */))
|
|
151
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
152
|
+
])
|
|
153
|
+
]),
|
|
154
|
+
key: "1"
|
|
155
|
+
}
|
|
156
|
+
: undefined
|
|
157
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["visible", "get-popup-container"]))
|
|
158
|
+
: (_ctx.tipType === 'tooltip')
|
|
159
|
+
? (vue.openBlock(), vue.createBlock(_component_a_tooltip, {
|
|
160
|
+
key: 1,
|
|
161
|
+
placement: "top",
|
|
162
|
+
visible: _ctx.visible
|
|
163
|
+
}, vue.createSlots({
|
|
164
|
+
default: vue.withCtx(() => [
|
|
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',
|
|
170
|
+
},
|
|
171
|
+
"show-arrow": true,
|
|
172
|
+
onMouseover: _ctx.onmouseover,
|
|
173
|
+
onMouseout: _ctx.onmouseout,
|
|
174
|
+
onChange: _ctx.onchange
|
|
175
|
+
}), {
|
|
176
|
+
suffixIcon: vue.withCtx(() => [
|
|
177
|
+
vue.createVNode(_component_DownOutlined)
|
|
178
|
+
]),
|
|
179
|
+
_: 1 /* STABLE */
|
|
180
|
+
}, 16 /* FULL_PROPS */, ["style", "onMouseover", "onMouseout", "onChange"])
|
|
181
|
+
]),
|
|
182
|
+
_: 2 /* DYNAMIC */
|
|
183
|
+
}, [
|
|
184
|
+
(_ctx.labelNameList)
|
|
185
|
+
? {
|
|
186
|
+
name: "title",
|
|
187
|
+
fn: vue.withCtx(() => [
|
|
188
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.labelNameList), 1 /* TEXT */)
|
|
189
|
+
]),
|
|
190
|
+
key: "0"
|
|
191
|
+
}
|
|
192
|
+
: undefined
|
|
193
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["visible"]))
|
|
194
|
+
: (vue.openBlock(), vue.createBlock(_component_a_cascader, vue.mergeProps({
|
|
195
|
+
key: 2,
|
|
196
|
+
visible: _ctx.visible
|
|
197
|
+
}, _ctx.$attrs, {
|
|
198
|
+
style: { width: 'auto', minWidth: _ctx.width + 'px' },
|
|
199
|
+
"show-arrow": true,
|
|
200
|
+
onMouseover: _ctx.onmouseover,
|
|
201
|
+
onMouseout: _ctx.onmouseout,
|
|
202
|
+
onChange: _ctx.onchange
|
|
203
|
+
}), {
|
|
204
|
+
suffixIcon: vue.withCtx(() => [
|
|
205
|
+
vue.createVNode(_component_DownOutlined)
|
|
206
|
+
]),
|
|
207
|
+
_: 1 /* STABLE */
|
|
208
|
+
}, 16 /* FULL_PROPS */, ["visible", "style", "onMouseover", "onMouseout", "onChange"]))
|
|
209
|
+
], 512 /* NEED_PATCH */))
|
|
210
|
+
}
|
|
211
|
+
var cascader = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render],['__file',"cascader.vue"]]);
|
|
212
|
+
|
|
213
|
+
const BmCascader = withInstall.withInstall(cascader);
|
|
214
|
+
|
|
215
|
+
exports.BmCascader = BmCascader;
|
|
216
|
+
exports["default"] = BmCascader;
|
|
@@ -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;
|
|
@@ -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\n :tooltip="getShowValue(item) || tmpForm[item.prop]"\n /> ')
|
|
1081
|
+
vue.createCommentVNode(' <AutoTooltip\r\n :tooltip="getShowValue(item) || tmpForm[item.prop]"\r\n /> ')
|
|
1082
1082
|
], 6)) : vue.createCommentVNode("v-if", true),
|
|
1083
1083
|
item.type === "multiText" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
1084
1084
|
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
|
};
|
|
@@ -8,7 +8,7 @@ var antDesignVue = require('ant-design-vue');
|
|
|
8
8
|
var vxeTable = require('vxe-table');
|
|
9
9
|
|
|
10
10
|
/**!
|
|
11
|
-
* Sortable 1.
|
|
11
|
+
* Sortable 1.15.0
|
|
12
12
|
* @author RubaXa <trash@rubaxa.org>
|
|
13
13
|
* @author owenm <owen23355@gmail.com>
|
|
14
14
|
* @license MIT
|
|
@@ -136,7 +136,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
136
136
|
return target;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
var version = "1.
|
|
139
|
+
var version = "1.15.0";
|
|
140
140
|
|
|
141
141
|
function userAgent(pattern) {
|
|
142
142
|
if (typeof window !== 'undefined' && window.navigator) {
|
|
@@ -1057,11 +1057,11 @@ supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in
|
|
|
1057
1057
|
return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
|
|
1058
1058
|
},
|
|
1059
1059
|
|
|
1060
|
-
/**
|
|
1061
|
-
* Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
|
|
1062
|
-
* @param {Number} x X position
|
|
1063
|
-
* @param {Number} y Y position
|
|
1064
|
-
* @return {HTMLElement} Element of the first found nearest Sortable
|
|
1060
|
+
/**
|
|
1061
|
+
* Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
|
|
1062
|
+
* @param {Number} x X position
|
|
1063
|
+
* @param {Number} y Y position
|
|
1064
|
+
* @return {HTMLElement} Element of the first found nearest Sortable
|
|
1065
1065
|
*/
|
|
1066
1066
|
_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
|
|
1067
1067
|
var ret;
|
|
@@ -1127,7 +1127,7 @@ _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
|
|
|
1127
1127
|
}; // #1184 fix - Prevent click event on fallback if dragged but item not changed position
|
|
1128
1128
|
|
|
1129
1129
|
|
|
1130
|
-
if (documentExists) {
|
|
1130
|
+
if (documentExists && !ChromeForAndroid) {
|
|
1131
1131
|
document.addEventListener('click', function (evt) {
|
|
1132
1132
|
if (ignoreNextClick) {
|
|
1133
1133
|
evt.preventDefault();
|
|
@@ -1169,10 +1169,10 @@ var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
|
|
|
1169
1169
|
dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
|
|
1170
1170
|
}
|
|
1171
1171
|
};
|
|
1172
|
-
/**
|
|
1173
|
-
* @class Sortable
|
|
1174
|
-
* @param {HTMLElement} el
|
|
1175
|
-
* @param {Object} [options]
|
|
1172
|
+
/**
|
|
1173
|
+
* @class Sortable
|
|
1174
|
+
* @param {HTMLElement} el
|
|
1175
|
+
* @param {Object} [options]
|
|
1176
1176
|
*/
|
|
1177
1177
|
|
|
1178
1178
|
|
|
@@ -1746,6 +1746,7 @@ Sortable.prototype =
|
|
|
1746
1746
|
|
|
1747
1747
|
if (!Sortable.eventCanceled) {
|
|
1748
1748
|
cloneEl = clone(dragEl);
|
|
1749
|
+
cloneEl.removeAttribute("id");
|
|
1749
1750
|
cloneEl.draggable = false;
|
|
1750
1751
|
cloneEl.style['will-change'] = '';
|
|
1751
1752
|
|
|
@@ -1987,7 +1988,14 @@ Sortable.prototype =
|
|
|
1987
1988
|
|
|
1988
1989
|
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
|
|
1989
1990
|
capture();
|
|
1990
|
-
|
|
1991
|
+
|
|
1992
|
+
if (elLastChild && elLastChild.nextSibling) {
|
|
1993
|
+
// the last draggable element is not the last node
|
|
1994
|
+
el.insertBefore(dragEl, elLastChild.nextSibling);
|
|
1995
|
+
} else {
|
|
1996
|
+
el.appendChild(dragEl);
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1991
1999
|
parentEl = el; // actualization
|
|
1992
2000
|
|
|
1993
2001
|
changed();
|
|
@@ -2310,9 +2318,9 @@ Sortable.prototype =
|
|
|
2310
2318
|
}
|
|
2311
2319
|
},
|
|
2312
2320
|
|
|
2313
|
-
/**
|
|
2314
|
-
* Serializes the item into an array of string.
|
|
2315
|
-
* @returns {String[]}
|
|
2321
|
+
/**
|
|
2322
|
+
* Serializes the item into an array of string.
|
|
2323
|
+
* @returns {String[]}
|
|
2316
2324
|
*/
|
|
2317
2325
|
toArray: function toArray() {
|
|
2318
2326
|
var order = [],
|
|
@@ -2333,9 +2341,9 @@ Sortable.prototype =
|
|
|
2333
2341
|
return order;
|
|
2334
2342
|
},
|
|
2335
2343
|
|
|
2336
|
-
/**
|
|
2337
|
-
* Sorts the elements according to the array.
|
|
2338
|
-
* @param {String[]} order order of the items
|
|
2344
|
+
/**
|
|
2345
|
+
* Sorts the elements according to the array.
|
|
2346
|
+
* @param {String[]} order order of the items
|
|
2339
2347
|
*/
|
|
2340
2348
|
sort: function sort(order, useAnimation) {
|
|
2341
2349
|
var items = {},
|
|
@@ -2357,29 +2365,29 @@ Sortable.prototype =
|
|
|
2357
2365
|
useAnimation && this.animateAll();
|
|
2358
2366
|
},
|
|
2359
2367
|
|
|
2360
|
-
/**
|
|
2361
|
-
* Save the current sorting
|
|
2368
|
+
/**
|
|
2369
|
+
* Save the current sorting
|
|
2362
2370
|
*/
|
|
2363
2371
|
save: function save() {
|
|
2364
2372
|
var store = this.options.store;
|
|
2365
2373
|
store && store.set && store.set(this);
|
|
2366
2374
|
},
|
|
2367
2375
|
|
|
2368
|
-
/**
|
|
2369
|
-
* 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.
|
|
2370
|
-
* @param {HTMLElement} el
|
|
2371
|
-
* @param {String} [selector] default: `options.draggable`
|
|
2372
|
-
* @returns {HTMLElement|null}
|
|
2376
|
+
/**
|
|
2377
|
+
* 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.
|
|
2378
|
+
* @param {HTMLElement} el
|
|
2379
|
+
* @param {String} [selector] default: `options.draggable`
|
|
2380
|
+
* @returns {HTMLElement|null}
|
|
2373
2381
|
*/
|
|
2374
2382
|
closest: function closest$1(el, selector) {
|
|
2375
2383
|
return closest(el, selector || this.options.draggable, this.el, false);
|
|
2376
2384
|
},
|
|
2377
2385
|
|
|
2378
|
-
/**
|
|
2379
|
-
* Set/get option
|
|
2380
|
-
* @param {string} name
|
|
2381
|
-
* @param {*} [value]
|
|
2382
|
-
* @returns {*}
|
|
2386
|
+
/**
|
|
2387
|
+
* Set/get option
|
|
2388
|
+
* @param {string} name
|
|
2389
|
+
* @param {*} [value]
|
|
2390
|
+
* @returns {*}
|
|
2383
2391
|
*/
|
|
2384
2392
|
option: function option(name, value) {
|
|
2385
2393
|
var options = this.options;
|
|
@@ -2401,8 +2409,8 @@ Sortable.prototype =
|
|
|
2401
2409
|
}
|
|
2402
2410
|
},
|
|
2403
2411
|
|
|
2404
|
-
/**
|
|
2405
|
-
* Destroy
|
|
2412
|
+
/**
|
|
2413
|
+
* Destroy
|
|
2406
2414
|
*/
|
|
2407
2415
|
destroy: function destroy() {
|
|
2408
2416
|
pluginEvent('destroy', this);
|
|
@@ -2579,11 +2587,11 @@ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, inv
|
|
|
2579
2587
|
|
|
2580
2588
|
return 0;
|
|
2581
2589
|
}
|
|
2582
|
-
/**
|
|
2583
|
-
* Gets the direction dragEl must be swapped relative to target in order to make it
|
|
2584
|
-
* seem that dragEl has been "inserted" into that element's position
|
|
2585
|
-
* @param {HTMLElement} target The target whose position dragEl is being inserted at
|
|
2586
|
-
* @return {Number} Direction dragEl must be swapped
|
|
2590
|
+
/**
|
|
2591
|
+
* Gets the direction dragEl must be swapped relative to target in order to make it
|
|
2592
|
+
* seem that dragEl has been "inserted" into that element's position
|
|
2593
|
+
* @param {HTMLElement} target The target whose position dragEl is being inserted at
|
|
2594
|
+
* @return {Number} Direction dragEl must be swapped
|
|
2587
2595
|
*/
|
|
2588
2596
|
|
|
2589
2597
|
|
|
@@ -2594,11 +2602,11 @@ function _getInsertDirection(target) {
|
|
|
2594
2602
|
return -1;
|
|
2595
2603
|
}
|
|
2596
2604
|
}
|
|
2597
|
-
/**
|
|
2598
|
-
* Generate id
|
|
2599
|
-
* @param {HTMLElement} el
|
|
2600
|
-
* @returns {String}
|
|
2601
|
-
* @private
|
|
2605
|
+
/**
|
|
2606
|
+
* Generate id
|
|
2607
|
+
* @param {HTMLElement} el
|
|
2608
|
+
* @returns {String}
|
|
2609
|
+
* @private
|
|
2602
2610
|
*/
|
|
2603
2611
|
|
|
2604
2612
|
|
|
@@ -2662,18 +2670,18 @@ Sortable.utils = {
|
|
|
2662
2670
|
detectDirection: _detectDirection,
|
|
2663
2671
|
getChild: getChild
|
|
2664
2672
|
};
|
|
2665
|
-
/**
|
|
2666
|
-
* Get the Sortable instance of an element
|
|
2667
|
-
* @param {HTMLElement} element The element
|
|
2668
|
-
* @return {Sortable|undefined} The instance of Sortable
|
|
2673
|
+
/**
|
|
2674
|
+
* Get the Sortable instance of an element
|
|
2675
|
+
* @param {HTMLElement} element The element
|
|
2676
|
+
* @return {Sortable|undefined} The instance of Sortable
|
|
2669
2677
|
*/
|
|
2670
2678
|
|
|
2671
2679
|
Sortable.get = function (element) {
|
|
2672
2680
|
return element[expando];
|
|
2673
2681
|
};
|
|
2674
|
-
/**
|
|
2675
|
-
* Mount a plugin to Sortable
|
|
2676
|
-
* @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
|
|
2682
|
+
/**
|
|
2683
|
+
* Mount a plugin to Sortable
|
|
2684
|
+
* @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
|
|
2677
2685
|
*/
|
|
2678
2686
|
|
|
2679
2687
|
|
|
@@ -2692,10 +2700,10 @@ Sortable.mount = function () {
|
|
|
2692
2700
|
PluginManager.mount(plugin);
|
|
2693
2701
|
});
|
|
2694
2702
|
};
|
|
2695
|
-
/**
|
|
2696
|
-
* Create sortable instance
|
|
2697
|
-
* @param {HTMLElement} el
|
|
2698
|
-
* @param {Object} [options]
|
|
2703
|
+
/**
|
|
2704
|
+
* Create sortable instance
|
|
2705
|
+
* @param {HTMLElement} el
|
|
2706
|
+
* @param {Object} [options]
|
|
2699
2707
|
*/
|
|
2700
2708
|
|
|
2701
2709
|
|
|
@@ -268,7 +268,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
268
268
|
vue.createElementVNode("span", {
|
|
269
269
|
class: vue.normalizeClass(["opeator", { active: __props.isCustom }])
|
|
270
270
|
}, [
|
|
271
|
-
vue.createCommentVNode(' <CopyOutlined\n @click.stop="\n () => {\n copyCallback()\n }\n " /> \u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
|
|
271
|
+
vue.createCommentVNode(' <CopyOutlined\r\n @click.stop="\r\n () => {\r\n copyCallback()\r\n }\r\n " /> \u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
|
|
272
272
|
vue.createVNode(vue.unref(iconsVue.CloseOutlined), {
|
|
273
273
|
onClick: _cache[0] || (_cache[0] = () => {
|
|
274
274
|
__props.deleteCallback();
|