bm-admin-ui 1.0.38-alpha → 1.0.40-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/__tests__/util/domHook.d.ts +6 -0
- package/es/components/feedback/index.js +2 -2
- package/es/components/float-table/index.js +36 -27
- package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
- package/es/components/form-create/index.js +215 -107
- package/es/components/form-designer/index.js +86 -47
- package/es/components/input-tags-display/index.js +30 -13
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +9 -0
- package/es/components/over-tooltips/index.js +27 -20
- package/es/components/search-filter/index.js +18 -10
- package/es/components/select-all/index.js +17 -9
- package/es/components/shops-filter/index.js +19 -13
- package/es/components/staffs-selector/index.js +116 -82
- package/es/components/timeline/__tests__/index.test.d.ts +1 -0
- package/es/components/timeline/index.js +8 -7
- package/es/components/upload/__tests__/mock.d.ts +2 -0
- package/es/components/upload/__tests__/requests.d.ts +7 -0
- package/es/components/upload/__tests__/upload.test.d.ts +1 -0
- package/es/components/upload/index.js +115 -78
- package/index.esm.js +41000 -4676
- package/index.js +40999 -4675
- package/lib/components/__tests__/util/domHook.d.ts +6 -0
- package/lib/components/feedback/index.js +1 -1
- package/lib/components/float-table/index.js +36 -27
- package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
- package/lib/components/form-create/index.js +214 -106
- package/lib/components/form-designer/index.js +86 -47
- package/lib/components/input-tags-display/index.js +30 -13
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +9 -0
- package/lib/components/over-tooltips/index.js +27 -20
- package/lib/components/search-filter/index.js +18 -10
- package/lib/components/select-all/index.js +17 -9
- package/lib/components/shops-filter/index.js +19 -13
- package/lib/components/staffs-selector/index.js +116 -82
- package/lib/components/timeline/__tests__/index.test.d.ts +1 -0
- package/lib/components/timeline/index.js +8 -7
- package/lib/components/upload/__tests__/mock.d.ts +2 -0
- package/lib/components/upload/__tests__/requests.d.ts +7 -0
- package/lib/components/upload/__tests__/upload.test.d.ts +1 -0
- package/lib/components/upload/index.js +115 -78
- package/package.json +1 -1
- package/theme-chalk/button.css +1 -1
- package/theme-chalk/feedback.css +1 -1
- package/theme-chalk/float-table.css +1 -1
- package/theme-chalk/floating-vue.css +1 -1
- package/theme-chalk/flow-designer.css +1 -1
- package/theme-chalk/form-create.css +1 -1
- package/theme-chalk/form-designer.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/input-tags-display.css +1 -1
- package/theme-chalk/modal.css +1 -1
- package/theme-chalk/over-tooltips.css +1 -1
- package/theme-chalk/search-filter.css +1 -1
- package/theme-chalk/select-all.css +1 -1
- package/theme-chalk/staffs-selector.css +1 -1
- package/theme-chalk/timeline.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/__tests__/util/domHook.d.ts +6 -0
- package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +4 -4
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +9 -0
- package/types/components/timeline/__tests__/index.test.d.ts +1 -0
- package/types/components/upload/__tests__/mock.d.ts +2 -0
- package/types/components/upload/__tests__/requests.d.ts +7 -0
- package/types/components/upload/__tests__/upload.test.d.ts +1 -0
|
@@ -16,7 +16,7 @@ var AAlert__default = /*#__PURE__*/_interopDefaultLegacy(AAlert);
|
|
|
16
16
|
var AModal__default = /*#__PURE__*/_interopDefaultLegacy(AModal$1);
|
|
17
17
|
var message__default = /*#__PURE__*/_interopDefaultLegacy(message);
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
/******************************************************************************
|
|
20
20
|
Copyright (c) Microsoft Corporation.
|
|
21
21
|
|
|
22
22
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -238,7 +238,9 @@ const _sfc_main = {
|
|
|
238
238
|
if (state.floatHandleDomCol)
|
|
239
239
|
return;
|
|
240
240
|
let id = column.id;
|
|
241
|
-
state.floatHandleDomCol = floatTable.value.querySelector(
|
|
241
|
+
state.floatHandleDomCol = floatTable.value.querySelector(
|
|
242
|
+
`.vxe-table--header-wrapper .vxe-header--row .${id}`
|
|
243
|
+
);
|
|
242
244
|
},
|
|
243
245
|
leaveFloatTable() {
|
|
244
246
|
let timer = setTimeout(() => {
|
|
@@ -299,36 +301,43 @@ const _sfc_main = {
|
|
|
299
301
|
let closeSetRow;
|
|
300
302
|
let headerWrapper;
|
|
301
303
|
if (props.isNeedFloatHandle) {
|
|
302
|
-
inObserverDom = new IntersectionObserver(
|
|
303
|
-
entries
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
304
|
+
inObserverDom = new IntersectionObserver(
|
|
305
|
+
(entries) => {
|
|
306
|
+
entries.forEach((item) => {
|
|
307
|
+
if (item.intersectionRatio > 0.1) {
|
|
308
|
+
closeSetRow = closeSetRow || item.target.closest(".vxe-header--row");
|
|
309
|
+
headerWrapper = headerWrapper || item.target.closest(".vxe-table--header-wrapper");
|
|
310
|
+
if (closeSetRow.clientWidth <= headerWrapper.clientWidth && !isHasOver) {
|
|
311
|
+
inObserverDom.disconnect();
|
|
312
|
+
} else {
|
|
313
|
+
isHasOver = true;
|
|
314
|
+
}
|
|
315
|
+
state.isShowFloatHandle = false;
|
|
316
|
+
state.atVisible = true;
|
|
309
317
|
} else {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
if (gridOptions.value.data && gridOptions.value.data.length > 0) {
|
|
316
|
-
state.goAnimationEnd = false;
|
|
317
|
-
state.isShowFloatHandle = true;
|
|
318
|
-
state.atVisible = false;
|
|
318
|
+
if (gridOptions.value.data && gridOptions.value.data.length > 0) {
|
|
319
|
+
state.goAnimationEnd = false;
|
|
320
|
+
state.isShowFloatHandle = true;
|
|
321
|
+
state.atVisible = false;
|
|
322
|
+
}
|
|
319
323
|
}
|
|
324
|
+
});
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
threshold: 0.1
|
|
328
|
+
}
|
|
329
|
+
);
|
|
330
|
+
vue.watch(
|
|
331
|
+
() => state.floatHandleDomCol,
|
|
332
|
+
function(col) {
|
|
333
|
+
if (col) {
|
|
334
|
+
inObserverDom.observe(col);
|
|
320
335
|
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
});
|
|
325
|
-
vue.watch(() => state.floatHandleDomCol, function(col) {
|
|
326
|
-
if (col) {
|
|
327
|
-
inObserverDom.observe(col);
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
immediate: true
|
|
328
339
|
}
|
|
329
|
-
|
|
330
|
-
immediate: true
|
|
331
|
-
});
|
|
340
|
+
);
|
|
332
341
|
}
|
|
333
342
|
return {
|
|
334
343
|
floatTable,
|
|
@@ -63,7 +63,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
63
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
64
64
|
prefixCls: StringConstructor;
|
|
65
65
|
color: {
|
|
66
|
-
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"
|
|
66
|
+
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
|
|
67
67
|
};
|
|
68
68
|
closable: {
|
|
69
69
|
type: BooleanConstructor;
|
|
@@ -96,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
96
96
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
97
97
|
prefixCls: StringConstructor;
|
|
98
98
|
color: {
|
|
99
|
-
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"
|
|
99
|
+
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
|
|
100
100
|
};
|
|
101
101
|
closable: {
|
|
102
102
|
type: BooleanConstructor;
|
|
@@ -138,7 +138,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
138
138
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
139
139
|
prefixCls: StringConstructor;
|
|
140
140
|
color: {
|
|
141
|
-
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"
|
|
141
|
+
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
|
|
142
142
|
};
|
|
143
143
|
closable: {
|
|
144
144
|
type: BooleanConstructor;
|
|
@@ -161,7 +161,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
161
161
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
162
162
|
prefixCls: StringConstructor;
|
|
163
163
|
color: {
|
|
164
|
-
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"
|
|
164
|
+
type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
|
|
165
165
|
};
|
|
166
166
|
closable: {
|
|
167
167
|
type: BooleanConstructor;
|