bm-admin-ui 1.0.10-alpha → 1.0.13-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.
Files changed (66) hide show
  1. package/es/components/feedback/index.js +19 -2
  2. package/es/components/float-table/index.js +36 -27
  3. package/es/components/index.d.ts +1 -0
  4. package/es/components/index.js +1 -0
  5. package/es/components/input-tags-display/index.d.ts +75 -0
  6. package/es/components/input-tags-display/index.js +1286 -0
  7. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +72 -0
  8. package/es/components/multi-cascader-compose/index.js +24 -8
  9. package/es/components/over-tooltips/index.d.ts +2 -2
  10. package/es/components/over-tooltips/index.js +41 -25
  11. package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +2 -2
  12. package/es/components/search-filter/index.js +42 -18
  13. package/es/components/shops-filter/index.js +19 -13
  14. package/es/components/staffs-selector/index.d.ts +27 -0
  15. package/es/components/staffs-selector/index.js +145 -85
  16. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +19 -1
  17. package/es/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
  18. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
  19. package/es/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
  20. package/es/components/timeline/index.js +6 -6
  21. package/es/components/upload/index.d.ts +2 -2
  22. package/es/components/upload/index.js +94 -62
  23. package/es/components/upload/src/upload.vue.d.ts +2 -2
  24. package/index.esm.js +793 -466
  25. package/index.js +793 -465
  26. package/lib/components/feedback/index.js +19 -2
  27. package/lib/components/float-table/index.js +36 -27
  28. package/lib/components/index.d.ts +1 -0
  29. package/lib/components/index.js +7 -0
  30. package/lib/components/input-tags-display/index.d.ts +75 -0
  31. package/lib/components/input-tags-display/index.js +1296 -0
  32. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +72 -0
  33. package/lib/components/multi-cascader-compose/index.js +24 -8
  34. package/lib/components/over-tooltips/index.d.ts +2 -2
  35. package/lib/components/over-tooltips/index.js +40 -24
  36. package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +2 -2
  37. package/lib/components/search-filter/index.js +42 -18
  38. package/lib/components/shops-filter/index.js +19 -13
  39. package/lib/components/staffs-selector/index.d.ts +27 -0
  40. package/lib/components/staffs-selector/index.js +145 -85
  41. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +19 -1
  42. package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
  43. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
  44. package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
  45. package/lib/components/timeline/index.js +6 -6
  46. package/lib/components/upload/index.d.ts +2 -2
  47. package/lib/components/upload/index.js +93 -61
  48. package/lib/components/upload/src/upload.vue.d.ts +2 -2
  49. package/package.json +1 -1
  50. package/theme-chalk/feedback.css +1 -1
  51. package/theme-chalk/index.css +1 -1
  52. package/theme-chalk/input-tags-display.css +1 -0
  53. package/theme-chalk/over-tooltips.css +1 -1
  54. package/theme-chalk/staffs-selector.css +1 -1
  55. package/types/components/index.d.ts +1 -0
  56. package/types/components/input-tags-display/index.d.ts +75 -0
  57. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +72 -0
  58. package/types/components/over-tooltips/index.d.ts +2 -2
  59. package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +2 -2
  60. package/types/components/staffs-selector/index.d.ts +27 -0
  61. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +19 -1
  62. package/types/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
  63. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
  64. package/types/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
  65. package/types/components/upload/index.d.ts +2 -2
  66. package/types/components/upload/src/upload.vue.d.ts +2 -2
@@ -1479,6 +1479,23 @@ var feedbackType;
1479
1479
  feedbackType["CONFIRM"] = "confirm";
1480
1480
  feedbackType["WARN"] = "warn";
1481
1481
  })(feedbackType || (feedbackType = {}));
1482
+ var feedbackColor;
1483
+ (function (feedbackColor) {
1484
+ feedbackColor["SUCCESS"] = "#29CC7A";
1485
+ feedbackColor["ERROR"] = "#E64C2E";
1486
+ feedbackColor["INFO"] = "#2F4EED";
1487
+ feedbackColor["WARNING"] = "#FF9019";
1488
+ feedbackColor["CONFIRM"] = "#2F4EED";
1489
+ feedbackColor["WARN"] = "#FF9019";
1490
+ })(feedbackColor || (feedbackColor = {}));
1491
+ const feedbackIcon = {
1492
+ success: () => h(CheckCircleFilled$1, { style: `color: ${feedbackColor.SUCCESS}` }),
1493
+ error: () => h(CloseCircleFilled$1, { style: `color: ${feedbackColor.ERROR}` }),
1494
+ warning: () => h(ExclamationCircleFilled$1, { style: `color: ${feedbackColor.WARNING}` }),
1495
+ info: () => h(InfoCircleFilled$1, { style: `color: ${feedbackColor.INFO}` }),
1496
+ confirm: () => h(InfoCircleFilled$1, { style: `color: ${feedbackColor.INFO}` }),
1497
+ warn: () => h(ExclamationCircleFilled$1, { style: `color: ${feedbackColor.WARNING}` })
1498
+ };
1482
1499
  function __createBtn(btnText = '确定', onClick = (() => '点击'), style = '', type = 'primary', size = 'small') {
1483
1500
  return h(Button, {
1484
1501
  type,
@@ -1511,14 +1528,14 @@ const BmNotification = (config) => {
1511
1528
  if (btn)
1512
1529
  config['btn'] = btn;
1513
1530
  if ([feedbackType.WARNING, feedbackType.WARN].indexOf(type) !== -1) {
1514
- notification.warning(Object.assign({ key, icon: () => h(InfoCircleFilled$1, { style: 'color: #FF9019' }) }, config));
1531
+ notification.warning(Object.assign({ key, icon: feedbackIcon['warning'] }, config));
1515
1532
  return;
1516
1533
  }
1517
1534
  notification[type](Object.assign({ key }, config));
1518
1535
  };
1519
1536
  const StaticBmModal = (config) => {
1520
1537
  const type = config['type'] || feedbackType.INFO;
1521
- return Modal[type](Object.assign({ cancelButtonProps: { type: 'second' }, okType: 'primary', cancelText: '取消', okText: '确认', autoFocusButton: null }, config));
1538
+ return Modal[type](Object.assign({ cancelButtonProps: { type: 'second' }, okType: 'primary', cancelText: '取消', okText: '确认', autoFocusButton: null, icon: feedbackIcon[type] }, config));
1522
1539
  };
1523
1540
  const BmMessage = (config) => {
1524
1541
  const type = config.type;
@@ -234,7 +234,9 @@ const _sfc_main = {
234
234
  if (state.floatHandleDomCol)
235
235
  return;
236
236
  let id = column.id;
237
- state.floatHandleDomCol = floatTable.value.querySelector(`.vxe-table--header-wrapper .vxe-header--row .${id}`);
237
+ state.floatHandleDomCol = floatTable.value.querySelector(
238
+ `.vxe-table--header-wrapper .vxe-header--row .${id}`
239
+ );
238
240
  },
239
241
  leaveFloatTable() {
240
242
  let timer = setTimeout(() => {
@@ -295,36 +297,43 @@ const _sfc_main = {
295
297
  let closeSetRow;
296
298
  let headerWrapper;
297
299
  if (props.isNeedFloatHandle) {
298
- inObserverDom = new IntersectionObserver((entries) => {
299
- entries.forEach((item) => {
300
- if (item.intersectionRatio > 0.1) {
301
- closeSetRow = closeSetRow || item.target.closest(".vxe-header--row");
302
- headerWrapper = headerWrapper || item.target.closest(".vxe-table--header-wrapper");
303
- if (closeSetRow.clientWidth <= headerWrapper.clientWidth && !isHasOver) {
304
- inObserverDom.disconnect();
300
+ inObserverDom = new IntersectionObserver(
301
+ (entries) => {
302
+ entries.forEach((item) => {
303
+ if (item.intersectionRatio > 0.1) {
304
+ closeSetRow = closeSetRow || item.target.closest(".vxe-header--row");
305
+ headerWrapper = headerWrapper || item.target.closest(".vxe-table--header-wrapper");
306
+ if (closeSetRow.clientWidth <= headerWrapper.clientWidth && !isHasOver) {
307
+ inObserverDom.disconnect();
308
+ } else {
309
+ isHasOver = true;
310
+ }
311
+ state.isShowFloatHandle = false;
312
+ state.atVisible = true;
305
313
  } else {
306
- isHasOver = true;
307
- }
308
- state.isShowFloatHandle = false;
309
- state.atVisible = true;
310
- } else {
311
- if (gridOptions.value.data && gridOptions.value.data.length > 0) {
312
- state.goAnimationEnd = false;
313
- state.isShowFloatHandle = true;
314
- state.atVisible = false;
314
+ if (gridOptions.value.data && gridOptions.value.data.length > 0) {
315
+ state.goAnimationEnd = false;
316
+ state.isShowFloatHandle = true;
317
+ state.atVisible = false;
318
+ }
315
319
  }
320
+ });
321
+ },
322
+ {
323
+ threshold: 0.1
324
+ }
325
+ );
326
+ watch(
327
+ () => state.floatHandleDomCol,
328
+ function(col) {
329
+ if (col) {
330
+ inObserverDom.observe(col);
316
331
  }
317
- });
318
- }, {
319
- threshold: 0.1
320
- });
321
- watch(() => state.floatHandleDomCol, function(col) {
322
- if (col) {
323
- inObserverDom.observe(col);
332
+ },
333
+ {
334
+ immediate: true
324
335
  }
325
- }, {
326
- immediate: true
327
- });
336
+ );
328
337
  }
329
338
  return {
330
339
  floatTable,
@@ -10,3 +10,4 @@ export * from './float-table';
10
10
  export * from './over-tooltips';
11
11
  export * from './upload';
12
12
  export * from './timeline';
13
+ export * from './input-tags-display';
@@ -10,3 +10,4 @@ export * from './float-table';
10
10
  export * from './over-tooltips';
11
11
  export * from './upload';
12
12
  export * from './timeline';
13
+ export * from './input-tags-display';
@@ -0,0 +1,75 @@
1
+ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
2
+ list: {
3
+ type: ArrayConstructor;
4
+ default: () => {
5
+ key: any;
6
+ title: string;
7
+ }[];
8
+ };
9
+ showEmpty: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ showEmptyBtn: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ btnText: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ placement: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ width: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ }, {
30
+ containId: string;
31
+ clear: () => void;
32
+ toAddTags: () => void;
33
+ getPopupContainer: () => HTMLElement;
34
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:list" | "addClick")[], "clear" | "update:list" | "addClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
+ list: {
36
+ type: ArrayConstructor;
37
+ default: () => {
38
+ key: any;
39
+ title: string;
40
+ }[];
41
+ };
42
+ showEmpty: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ showEmptyBtn: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ btnText: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ placement: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ width: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ };
62
+ }>> & {
63
+ onClear?: ((...args: any[]) => any) | undefined;
64
+ "onUpdate:list"?: ((...args: any[]) => any) | undefined;
65
+ onAddClick?: ((...args: any[]) => any) | undefined;
66
+ }, {
67
+ width: string;
68
+ placement: string;
69
+ list: unknown[];
70
+ showEmpty: boolean;
71
+ showEmptyBtn: boolean;
72
+ btnText: string;
73
+ }>>;
74
+ export { BmTagsDisplay };
75
+ export default BmTagsDisplay;