bm-admin-ui 1.0.11-alpha → 1.0.12-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 (56) hide show
  1. package/es/components/feedback/index.js +19 -6
  2. package/es/components/float-table/index.d.ts +2 -2
  3. package/es/components/float-table/src/float-table.vue.d.ts +2 -2
  4. package/es/components/multi-cascader-compose/index.js +17 -4
  5. package/es/components/over-tooltips/index.d.ts +2 -2
  6. package/es/components/over-tooltips/index.js +14 -5
  7. package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +2 -2
  8. package/es/components/search-filter/index.d.ts +3 -1
  9. package/es/components/search-filter/index.js +18 -6
  10. package/es/components/search-filter/src/search-filter.vue.d.ts +3 -1
  11. package/es/components/shops-filter/index.js +17 -4
  12. package/es/components/staffs-selector/index.js +18 -5
  13. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
  14. package/es/components/upload/index.d.ts +2 -2
  15. package/es/components/upload/index.js +33 -11
  16. package/es/components/upload/src/upload.vue.d.ts +2 -2
  17. package/index.esm.js +970 -37182
  18. package/index.js +970 -37182
  19. package/lib/components/feedback/index.js +18 -5
  20. package/lib/components/float-table/index.d.ts +2 -2
  21. package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
  22. package/lib/components/multi-cascader-compose/index.js +17 -4
  23. package/lib/components/over-tooltips/index.d.ts +2 -2
  24. package/lib/components/over-tooltips/index.js +13 -4
  25. package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +2 -2
  26. package/lib/components/search-filter/index.d.ts +3 -1
  27. package/lib/components/search-filter/index.js +18 -6
  28. package/lib/components/search-filter/src/search-filter.vue.d.ts +3 -1
  29. package/lib/components/shops-filter/index.js +17 -4
  30. package/lib/components/staffs-selector/index.js +18 -5
  31. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
  32. package/lib/components/upload/index.d.ts +2 -2
  33. package/lib/components/upload/index.js +32 -10
  34. package/lib/components/upload/src/upload.vue.d.ts +2 -2
  35. package/package.json +29 -29
  36. package/theme-chalk/button.css +1 -1
  37. package/theme-chalk/feedback.css +1 -1
  38. package/theme-chalk/float-table.css +1 -1
  39. package/theme-chalk/floating-vue.css +1 -1
  40. package/theme-chalk/flow-designer.css +1 -1
  41. package/theme-chalk/index.css +1 -1
  42. package/theme-chalk/modal.css +1 -1
  43. package/theme-chalk/multi-cascader-compose.css +1 -1
  44. package/theme-chalk/over-tooltips.css +1 -1
  45. package/theme-chalk/search-filter.css +1 -1
  46. package/theme-chalk/timeline.css +1 -1
  47. package/theme-chalk/upload.css +1 -1
  48. package/types/components/float-table/index.d.ts +2 -2
  49. package/types/components/float-table/src/float-table.vue.d.ts +2 -2
  50. package/types/components/over-tooltips/index.d.ts +2 -2
  51. package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +2 -2
  52. package/types/components/search-filter/index.d.ts +3 -1
  53. package/types/components/search-filter/src/search-filter.vue.d.ts +3 -1
  54. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
  55. package/types/components/upload/index.d.ts +2 -2
  56. package/types/components/upload/src/upload.vue.d.ts +2 -2
@@ -1,11 +1,11 @@
1
- import { notification, Modal, Button } from 'ant-design-vue';
1
+ import { Button, notification, Modal } from 'ant-design-vue';
2
2
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
3
3
  import { h, nextTick, createVNode, defineComponent, computed, openBlock, createBlock, unref, withCtx, resolveDynamicComponent, renderSlot, useSlots, resolveComponent, createSlots, createElementVNode, createTextVNode } from 'vue';
4
4
  import AAlert from 'ant-design-vue/lib/alert';
5
5
  import AModal$1 from 'ant-design-vue/lib/modal';
6
6
  import message from 'ant-design-vue/lib/message';
7
7
 
8
- /******************************************************************************
8
+ /*! *****************************************************************************
9
9
  Copyright (c) Microsoft Corporation.
10
10
 
11
11
  Permission to use, copy, modify, and/or distribute this software for any
@@ -94,7 +94,7 @@ function boundAlpha(a) {
94
94
  */
95
95
  function convertToPercentage(n) {
96
96
  if (n <= 1) {
97
- return "".concat(Number(n) * 100, "%");
97
+ return Number(n) * 100 + "%";
98
98
  }
99
99
  return n;
100
100
  }
@@ -476,12 +476,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
476
476
  // <http://www.w3.org/TR/css3-values/#number-value>
477
477
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
478
478
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
479
- var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
479
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
480
480
  // Actual matching.
481
481
  // Parentheses and commas are optional, but not required.
482
482
  // Whitespace can take the place of commas or opening paren
483
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
484
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
483
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
484
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
485
485
  var matchers = {
486
486
  CSS_UNIT: new RegExp(CSS_UNIT),
487
487
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -806,6 +806,19 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
806
806
  });
807
807
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
808
808
  });
809
+ presetPalettes.red;
810
+ presetPalettes.volcano;
811
+ presetPalettes.gold;
812
+ presetPalettes.orange;
813
+ presetPalettes.yellow;
814
+ presetPalettes.lime;
815
+ presetPalettes.green;
816
+ presetPalettes.cyan;
817
+ presetPalettes.blue;
818
+ presetPalettes.geekblue;
819
+ presetPalettes.purple;
820
+ presetPalettes.magenta;
821
+ presetPalettes.grey;
809
822
 
810
823
  // https://github.com/substack/insert-css
811
824
  var containers = []; // will store container HTMLElement references
@@ -42,9 +42,9 @@ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithI
42
42
  gridOptions: import("vue").ComputedRef<any>;
43
43
  gridEvents: import("vue").ComputedRef<any>;
44
44
  pager: import("vue").ComputedRef<any>;
45
- simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
- }> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
48
  [key: string]: any;
49
49
  }> | null | undefined)[]>;
50
50
  floatRefsId: import("vue").Ref<{}>;
@@ -42,9 +42,9 @@ declare const _default: {
42
42
  gridOptions: import("vue").ComputedRef<any>;
43
43
  gridEvents: import("vue").ComputedRef<any>;
44
44
  pager: import("vue").ComputedRef<any>;
45
- simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
- }> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
48
  [key: string]: any;
49
49
  }> | null | undefined)[]>;
50
50
  floatRefsId: import("vue").Ref<{}>;
@@ -65,7 +65,7 @@ function boundAlpha(a) {
65
65
  */
66
66
  function convertToPercentage(n) {
67
67
  if (n <= 1) {
68
- return "".concat(Number(n) * 100, "%");
68
+ return Number(n) * 100 + "%";
69
69
  }
70
70
  return n;
71
71
  }
@@ -447,12 +447,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
447
447
  // <http://www.w3.org/TR/css3-values/#number-value>
448
448
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
449
449
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
450
- var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
450
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
451
451
  // Actual matching.
452
452
  // Parentheses and commas are optional, but not required.
453
453
  // Whitespace can take the place of commas or opening paren
454
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
455
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
454
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
455
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
456
456
  var matchers = {
457
457
  CSS_UNIT: new RegExp(CSS_UNIT),
458
458
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -777,6 +777,19 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
777
777
  });
778
778
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
779
779
  });
780
+ presetPalettes.red;
781
+ presetPalettes.volcano;
782
+ presetPalettes.gold;
783
+ presetPalettes.orange;
784
+ presetPalettes.yellow;
785
+ presetPalettes.lime;
786
+ presetPalettes.green;
787
+ presetPalettes.cyan;
788
+ presetPalettes.blue;
789
+ presetPalettes.geekblue;
790
+ presetPalettes.purple;
791
+ presetPalettes.magenta;
792
+ presetPalettes.grey;
780
793
 
781
794
  // https://github.com/substack/insert-css
782
795
  var containers = []; // will store container HTMLElement references
@@ -3,11 +3,11 @@ declare const BmOverTooltips: import("bm-admin-ui/es/utils/with-install").SFCWit
3
3
  props: {
4
4
  title: {
5
5
  type: StringConstructor;
6
- default: string;
6
+ default: undefined;
7
7
  };
8
8
  labelTitle: {
9
9
  type: StringConstructor;
10
- default: string;
10
+ default: undefined;
11
11
  };
12
12
  line: {
13
13
  type: NumberConstructor;
@@ -1,5 +1,5 @@
1
1
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
- import { reactive, onBeforeUnmount, ref, watch, nextTick, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, normalizeClass, toDisplayString } from 'vue';
2
+ import { reactive, onBeforeUnmount, ref, watch, nextTick, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementVNode, normalizeStyle, normalizeClass, createTextVNode, toDisplayString } from 'vue';
3
3
 
4
4
  var _export_sfc = (sfc, props) => {
5
5
  const target = sfc.__vccOpts || sfc;
@@ -14,11 +14,11 @@ const _sfc_main = {
14
14
  props: {
15
15
  title: {
16
16
  type: String,
17
- default: ""
17
+ default: void 0
18
18
  },
19
19
  labelTitle: {
20
20
  type: String,
21
- default: ""
21
+ default: void 0
22
22
  },
23
23
  line: {
24
24
  type: Number,
@@ -97,6 +97,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
97
97
  "get-popup-container": $setup.getPopupContainer,
98
98
  onVisibleChange: $setup.handleVisibleChange
99
99
  }, {
100
+ title: withCtx(() => [
101
+ renderSlot(_ctx.$slots, "title")
102
+ ]),
100
103
  default: withCtx(() => [
101
104
  createElementVNode("div", {
102
105
  ref: "mySelf",
@@ -105,9 +108,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
105
108
  WebkitLineClamp: $props.line
106
109
  }),
107
110
  class: normalizeClass($props.line === 1 ? `bm-over-tooltip` : `bm-over-tooltip-multi`)
108
- }, toDisplayString($props.title), 7)
111
+ }, [
112
+ renderSlot(_ctx.$slots, "default", {}, () => [
113
+ renderSlot(_ctx.$slots, "title", {}, () => [
114
+ createTextVNode(toDisplayString($props.title), 1)
115
+ ])
116
+ ])
117
+ ], 6)
109
118
  ]),
110
- _: 1
119
+ _: 3
111
120
  }, 8, ["visible", "title", "get-popup-container", "onVisibleChange"]);
112
121
  }
113
122
  var OverTooltips = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "over-tooltips.vue"]]);
@@ -3,11 +3,11 @@ declare const _default: {
3
3
  props: {
4
4
  title: {
5
5
  type: StringConstructor;
6
- default: string;
6
+ default: undefined;
7
7
  };
8
8
  labelTitle: {
9
9
  type: StringConstructor;
10
- default: string;
10
+ default: undefined;
11
11
  };
12
12
  line: {
13
13
  type: NumberConstructor;
@@ -114,7 +114,9 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
114
114
  gutter: unknown[];
115
115
  };
116
116
  form: {
117
- labelCol: Record<string, any>;
117
+ labelCol: {
118
+ [x: string]: any;
119
+ };
118
120
  labelAlign: string;
119
121
  wrapperCol: {
120
122
  span: number;
@@ -66,7 +66,7 @@ function boundAlpha(a) {
66
66
  */
67
67
  function convertToPercentage(n) {
68
68
  if (n <= 1) {
69
- return "".concat(Number(n) * 100, "%");
69
+ return Number(n) * 100 + "%";
70
70
  }
71
71
  return n;
72
72
  }
@@ -448,12 +448,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
448
448
  // <http://www.w3.org/TR/css3-values/#number-value>
449
449
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
450
450
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
451
- var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
451
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
452
452
  // Actual matching.
453
453
  // Parentheses and commas are optional, but not required.
454
454
  // Whitespace can take the place of commas or opening paren
455
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
456
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
455
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
456
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
457
457
  var matchers = {
458
458
  CSS_UNIT: new RegExp(CSS_UNIT),
459
459
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -778,6 +778,19 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
778
778
  });
779
779
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
780
780
  });
781
+ presetPalettes.red;
782
+ presetPalettes.volcano;
783
+ presetPalettes.gold;
784
+ presetPalettes.orange;
785
+ presetPalettes.yellow;
786
+ presetPalettes.lime;
787
+ presetPalettes.green;
788
+ presetPalettes.cyan;
789
+ presetPalettes.blue;
790
+ presetPalettes.geekblue;
791
+ presetPalettes.purple;
792
+ presetPalettes.magenta;
793
+ presetPalettes.grey;
781
794
 
782
795
  // https://github.com/substack/insert-css
783
796
  var containers = []; // will store container HTMLElement references
@@ -1277,7 +1290,6 @@ const _hoisted_2$1 = { class: "bm-search-filter-actions" };
1277
1290
  const _hoisted_3$1 = /* @__PURE__ */ createTextVNode("\u91CD\u7F6E");
1278
1291
  const _hoisted_4$1 = /* @__PURE__ */ createTextVNode("\u67E5\u8BE2");
1279
1292
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1280
- __name: "search-reset-btn",
1281
1293
  props: searchResetBtnProps,
1282
1294
  emits: ["submit", "reset", "expand"],
1283
1295
  setup(__props, { emit: emits }) {
@@ -1966,7 +1978,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1966
1978
  "onUpdate:api": _cache[0] || (_cache[0] = ($event) => fApi.value = $event),
1967
1979
  "model-value": props.value,
1968
1980
  rule: unref(rule),
1969
- option,
1981
+ option: unref(option),
1970
1982
  onChange: handleChange
1971
1983
  }, null, 8, ["api", "model-value", "rule", "option"])
1972
1984
  ], 2);
@@ -114,7 +114,9 @@ declare const _default: import("vue").DefineComponent<{
114
114
  gutter: unknown[];
115
115
  };
116
116
  form: {
117
- labelCol: Record<string, any>;
117
+ labelCol: {
118
+ [x: string]: any;
119
+ };
118
120
  labelAlign: string;
119
121
  wrapperCol: {
120
122
  span: number;
@@ -70,7 +70,7 @@ function boundAlpha(a) {
70
70
  */
71
71
  function convertToPercentage(n) {
72
72
  if (n <= 1) {
73
- return "".concat(Number(n) * 100, "%");
73
+ return Number(n) * 100 + "%";
74
74
  }
75
75
  return n;
76
76
  }
@@ -452,12 +452,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
452
452
  // <http://www.w3.org/TR/css3-values/#number-value>
453
453
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
454
454
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
455
- var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
455
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
456
456
  // Actual matching.
457
457
  // Parentheses and commas are optional, but not required.
458
458
  // Whitespace can take the place of commas or opening paren
459
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
460
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
459
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
460
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
461
461
  var matchers = {
462
462
  CSS_UNIT: new RegExp(CSS_UNIT),
463
463
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -782,6 +782,19 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
782
782
  });
783
783
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
784
784
  });
785
+ presetPalettes.red;
786
+ presetPalettes.volcano;
787
+ presetPalettes.gold;
788
+ presetPalettes.orange;
789
+ presetPalettes.yellow;
790
+ presetPalettes.lime;
791
+ presetPalettes.green;
792
+ presetPalettes.cyan;
793
+ presetPalettes.blue;
794
+ presetPalettes.geekblue;
795
+ presetPalettes.purple;
796
+ presetPalettes.magenta;
797
+ presetPalettes.grey;
785
798
 
786
799
  // https://github.com/substack/insert-css
787
800
  var containers = []; // will store container HTMLElement references
@@ -71,7 +71,7 @@ function boundAlpha(a) {
71
71
  */
72
72
  function convertToPercentage(n) {
73
73
  if (n <= 1) {
74
- return "".concat(Number(n) * 100, "%");
74
+ return Number(n) * 100 + "%";
75
75
  }
76
76
  return n;
77
77
  }
@@ -453,12 +453,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
453
453
  // <http://www.w3.org/TR/css3-values/#number-value>
454
454
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
455
455
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
456
- var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
456
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
457
457
  // Actual matching.
458
458
  // Parentheses and commas are optional, but not required.
459
459
  // Whitespace can take the place of commas or opening paren
460
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
461
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
460
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
461
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
462
462
  var matchers = {
463
463
  CSS_UNIT: new RegExp(CSS_UNIT),
464
464
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -783,6 +783,19 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
783
783
  });
784
784
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
785
785
  });
786
+ presetPalettes.red;
787
+ presetPalettes.volcano;
788
+ presetPalettes.gold;
789
+ presetPalettes.orange;
790
+ presetPalettes.yellow;
791
+ presetPalettes.lime;
792
+ presetPalettes.green;
793
+ presetPalettes.cyan;
794
+ presetPalettes.blue;
795
+ presetPalettes.geekblue;
796
+ presetPalettes.purple;
797
+ presetPalettes.magenta;
798
+ presetPalettes.grey;
786
799
 
787
800
  // https://github.com/substack/insert-css
788
801
  var containers = []; // will store container HTMLElement references
@@ -1822,7 +1835,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
1822
1835
  ]);
1823
1836
  }), 128))
1824
1837
  ])) : createCommentVNode("v-if", true)
1825
- ], 64))
1838
+ ], 2112))
1826
1839
  ])
1827
1840
  ]),
1828
1841
  createElementVNode("div", _hoisted_14, [
@@ -32,9 +32,9 @@ declare const _default: import("vue").DefineComponent<{
32
32
  searchVal: import("vue").Ref<string>;
33
33
  selectAll: import("vue").Ref<boolean>;
34
34
  indeterminate: import("vue").Ref<boolean>;
35
- emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
35
+ emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
36
36
  [key: string]: any;
37
- }> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
37
+ }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
38
38
  [key: string]: any;
39
39
  }> | null | undefined)[]>;
40
40
  listChecked: import("vue").Ref<{}>;
@@ -7,11 +7,11 @@ declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
7
7
  props: {
8
8
  title: {
9
9
  type: StringConstructor;
10
- default: string;
10
+ default: undefined;
11
11
  };
12
12
  labelTitle: {
13
13
  type: StringConstructor;
14
- default: string;
14
+ default: undefined;
15
15
  };
16
16
  line: {
17
17
  type: NumberConstructor;
@@ -1,5 +1,5 @@
1
1
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
- import { h, nextTick, createVNode, reactive, onBeforeUnmount, ref, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, normalizeClass, toDisplayString, computed, watchEffect, createElementBlock, Fragment, renderList, createCommentVNode, renderSlot, mergeProps, createTextVNode } from 'vue';
2
+ import { h, nextTick, createVNode, reactive, onBeforeUnmount, ref, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementVNode, normalizeStyle, normalizeClass, createTextVNode, toDisplayString, computed, watchEffect, createElementBlock, Fragment, renderList, createCommentVNode, mergeProps } from 'vue';
3
3
 
4
4
  /**
5
5
  * Take input from [0, n] and return it as [0, 1]
@@ -65,7 +65,7 @@ function boundAlpha(a) {
65
65
  */
66
66
  function convertToPercentage(n) {
67
67
  if (n <= 1) {
68
- return "".concat(Number(n) * 100, "%");
68
+ return Number(n) * 100 + "%";
69
69
  }
70
70
  return n;
71
71
  }
@@ -447,12 +447,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
447
447
  // <http://www.w3.org/TR/css3-values/#number-value>
448
448
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
449
449
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
450
- var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
450
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
451
451
  // Actual matching.
452
452
  // Parentheses and commas are optional, but not required.
453
453
  // Whitespace can take the place of commas or opening paren
454
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
455
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
454
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
455
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
456
456
  var matchers = {
457
457
  CSS_UNIT: new RegExp(CSS_UNIT),
458
458
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -777,6 +777,19 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
777
777
  });
778
778
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
779
779
  });
780
+ presetPalettes.red;
781
+ presetPalettes.volcano;
782
+ presetPalettes.gold;
783
+ presetPalettes.orange;
784
+ presetPalettes.yellow;
785
+ presetPalettes.lime;
786
+ presetPalettes.green;
787
+ presetPalettes.cyan;
788
+ presetPalettes.blue;
789
+ presetPalettes.geekblue;
790
+ presetPalettes.purple;
791
+ presetPalettes.magenta;
792
+ presetPalettes.grey;
780
793
 
781
794
  // https://github.com/substack/insert-css
782
795
  var containers = []; // will store container HTMLElement references
@@ -1146,11 +1159,11 @@ const _sfc_main$1 = {
1146
1159
  props: {
1147
1160
  title: {
1148
1161
  type: String,
1149
- default: ""
1162
+ default: void 0
1150
1163
  },
1151
1164
  labelTitle: {
1152
1165
  type: String,
1153
- default: ""
1166
+ default: void 0
1154
1167
  },
1155
1168
  line: {
1156
1169
  type: Number,
@@ -1229,6 +1242,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
1229
1242
  "get-popup-container": $setup.getPopupContainer,
1230
1243
  onVisibleChange: $setup.handleVisibleChange
1231
1244
  }, {
1245
+ title: withCtx(() => [
1246
+ renderSlot(_ctx.$slots, "title")
1247
+ ]),
1232
1248
  default: withCtx(() => [
1233
1249
  createElementVNode("div", {
1234
1250
  ref: "mySelf",
@@ -1237,9 +1253,15 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
1237
1253
  WebkitLineClamp: $props.line
1238
1254
  }),
1239
1255
  class: normalizeClass($props.line === 1 ? `bm-over-tooltip` : `bm-over-tooltip-multi`)
1240
- }, toDisplayString($props.title), 7)
1256
+ }, [
1257
+ renderSlot(_ctx.$slots, "default", {}, () => [
1258
+ renderSlot(_ctx.$slots, "title", {}, () => [
1259
+ createTextVNode(toDisplayString($props.title), 1)
1260
+ ])
1261
+ ])
1262
+ ], 6)
1241
1263
  ]),
1242
- _: 1
1264
+ _: 3
1243
1265
  }, 8, ["visible", "title", "get-popup-container", "onVisibleChange"]);
1244
1266
  }
1245
1267
  var OverTooltips$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "over-tooltips.vue"]]);
@@ -1702,7 +1724,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1702
1724
  key: 1,
1703
1725
  file: item
1704
1726
  })
1705
- ], 64)) : createCommentVNode("v-if", true),
1727
+ ], 2112)) : createCommentVNode("v-if", true),
1706
1728
  createCommentVNode(" \u56FE\u7247\u9519\u8BEF\u5C55\u793A "),
1707
1729
  item.status === "error" ? (openBlock(), createElementBlock("div", {
1708
1730
  key: 2,
@@ -1748,7 +1770,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1748
1770
  }, 8, ["class", "disabled"]),
1749
1771
  _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (openBlock(), createElementBlock("div", _hoisted_23, toDisplayString(_ctx.extraConfigs.tips), 1)) : createCommentVNode("v-if", true)
1750
1772
  ])) : createCommentVNode("v-if", true)
1751
- ], 64))
1773
+ ], 2112))
1752
1774
  ]),
1753
1775
  _: 3
1754
1776
  }, 16, ["class"])) : createCommentVNode("v-if", true),
@@ -7,11 +7,11 @@ declare const _default: {
7
7
  props: {
8
8
  title: {
9
9
  type: StringConstructor;
10
- default: string;
10
+ default: undefined;
11
11
  };
12
12
  labelTitle: {
13
13
  type: StringConstructor;
14
- default: string;
14
+ default: undefined;
15
15
  };
16
16
  line: {
17
17
  type: NumberConstructor;