bm-admin-ui 1.0.19-alpha → 1.0.20-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 (152) hide show
  1. package/es/components/feedback/index.js +4 -4
  2. package/es/components/input-tags-display/index.js +61 -26
  3. package/es/components/multi-cascader-compose/index.js +4 -4
  4. package/es/components/search-filter/index.js +7 -5
  5. package/es/components/shops-filter/index.js +4 -4
  6. package/es/components/staffs-selector/index.js +4 -4
  7. package/es/components/upload/index.js +51 -23
  8. package/index.esm.js +431 -753
  9. package/index.js +351 -673
  10. package/lib/components/feedback/index.js +4 -4
  11. package/lib/components/input-tags-display/index.js +60 -25
  12. package/lib/components/multi-cascader-compose/index.js +4 -4
  13. package/lib/components/search-filter/index.js +7 -5
  14. package/lib/components/shops-filter/index.js +4 -4
  15. package/lib/components/staffs-selector/index.js +4 -4
  16. package/lib/components/upload/index.js +51 -23
  17. package/package.json +1 -1
  18. package/es/components/button/index.d.ts +0 -307
  19. package/es/components/button/src/button.d.ts +0 -12
  20. package/es/components/button/src/button.vue.d.ts +0 -308
  21. package/es/components/feedback/index.d.ts +0 -1037
  22. package/es/components/feedback/src/bmAlert.vue.d.ts +0 -193
  23. package/es/components/feedback/src/bmModal.vue.d.ts +0 -839
  24. package/es/components/float-table/index.d.ts +0 -70
  25. package/es/components/float-table/src/float-table.vue.d.ts +0 -69
  26. package/es/components/flow-designer/index.d.ts +0 -7
  27. package/es/components/flow-designer/src/flow-designer.vue.d.ts +0 -6
  28. package/es/components/form-designer/index.d.ts +0 -9
  29. package/es/components/form-designer/src/form-designer.vue.d.ts +0 -8
  30. package/es/components/index.d.ts +0 -13
  31. package/es/components/input-tags-display/index.d.ts +0 -72
  32. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +0 -69
  33. package/es/components/multi-cascader-compose/index.d.ts +0 -164
  34. package/es/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
  35. package/es/components/multi-cascader-compose/src/props.d.ts +0 -40
  36. package/es/components/multi-cascader-compose/types.d.ts +0 -10
  37. package/es/components/over-tooltips/index.d.ts +0 -35
  38. package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +0 -34
  39. package/es/components/search-filter/index.d.ts +0 -194
  40. package/es/components/search-filter/src/search-filter.d.ts +0 -57
  41. package/es/components/search-filter/src/search-filter.vue.d.ts +0 -193
  42. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +0 -50
  43. package/es/components/shops-filter/index.d.ts +0 -99
  44. package/es/components/shops-filter/src/shops-filter.d.ts +0 -25
  45. package/es/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
  46. package/es/components/staffs-selector/index.d.ts +0 -109
  47. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -97
  48. package/es/components/staffs-selector/src/radioCmp.vue.d.ts +0 -31
  49. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -108
  50. package/es/components/staffs-selector/src/variedCmp.vue.d.ts +0 -62
  51. package/es/components/timeline/index.d.ts +0 -107
  52. package/es/components/timeline/src/props.d.ts +0 -24
  53. package/es/components/timeline/src/timeline-item.vue.d.ts +0 -65
  54. package/es/components/timeline/src/timeline.vue.d.ts +0 -42
  55. package/es/components/upload/index.d.ts +0 -135
  56. package/es/components/upload/src/icons.d.ts +0 -13
  57. package/es/components/upload/src/upload.vue.d.ts +0 -134
  58. package/es/components/upload/utils/index.d.ts +0 -7
  59. package/es/index.d.ts +0 -6
  60. package/es/utils/bm-admin-ui-resolver.d.ts +0 -9
  61. package/es/utils/vxe-table.d.ts +0 -6
  62. package/es/utils/with-install.d.ts +0 -3
  63. package/lib/components/button/index.d.ts +0 -307
  64. package/lib/components/button/src/button.d.ts +0 -12
  65. package/lib/components/button/src/button.vue.d.ts +0 -308
  66. package/lib/components/feedback/index.d.ts +0 -1037
  67. package/lib/components/feedback/src/bmAlert.vue.d.ts +0 -193
  68. package/lib/components/feedback/src/bmModal.vue.d.ts +0 -839
  69. package/lib/components/float-table/index.d.ts +0 -70
  70. package/lib/components/float-table/src/float-table.vue.d.ts +0 -69
  71. package/lib/components/flow-designer/index.d.ts +0 -7
  72. package/lib/components/flow-designer/src/flow-designer.vue.d.ts +0 -6
  73. package/lib/components/form-designer/index.d.ts +0 -9
  74. package/lib/components/form-designer/src/form-designer.vue.d.ts +0 -8
  75. package/lib/components/index.d.ts +0 -13
  76. package/lib/components/input-tags-display/index.d.ts +0 -72
  77. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +0 -69
  78. package/lib/components/multi-cascader-compose/index.d.ts +0 -164
  79. package/lib/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
  80. package/lib/components/multi-cascader-compose/src/props.d.ts +0 -40
  81. package/lib/components/multi-cascader-compose/types.d.ts +0 -10
  82. package/lib/components/over-tooltips/index.d.ts +0 -35
  83. package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +0 -34
  84. package/lib/components/search-filter/index.d.ts +0 -194
  85. package/lib/components/search-filter/src/search-filter.d.ts +0 -57
  86. package/lib/components/search-filter/src/search-filter.vue.d.ts +0 -193
  87. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +0 -50
  88. package/lib/components/shops-filter/index.d.ts +0 -99
  89. package/lib/components/shops-filter/src/shops-filter.d.ts +0 -25
  90. package/lib/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
  91. package/lib/components/staffs-selector/index.d.ts +0 -109
  92. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -97
  93. package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +0 -31
  94. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -108
  95. package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +0 -62
  96. package/lib/components/timeline/index.d.ts +0 -107
  97. package/lib/components/timeline/src/props.d.ts +0 -24
  98. package/lib/components/timeline/src/timeline-item.vue.d.ts +0 -65
  99. package/lib/components/timeline/src/timeline.vue.d.ts +0 -42
  100. package/lib/components/upload/index.d.ts +0 -135
  101. package/lib/components/upload/src/icons.d.ts +0 -13
  102. package/lib/components/upload/src/upload.vue.d.ts +0 -134
  103. package/lib/components/upload/utils/index.d.ts +0 -7
  104. package/lib/index.d.ts +0 -6
  105. package/lib/utils/bm-admin-ui-resolver.d.ts +0 -9
  106. package/lib/utils/vxe-table.d.ts +0 -6
  107. package/lib/utils/with-install.d.ts +0 -3
  108. package/types/components/button/index.d.ts +0 -307
  109. package/types/components/button/src/button.d.ts +0 -12
  110. package/types/components/button/src/button.vue.d.ts +0 -308
  111. package/types/components/feedback/index.d.ts +0 -1037
  112. package/types/components/feedback/src/bmAlert.vue.d.ts +0 -193
  113. package/types/components/feedback/src/bmModal.vue.d.ts +0 -839
  114. package/types/components/float-table/index.d.ts +0 -70
  115. package/types/components/float-table/src/float-table.vue.d.ts +0 -69
  116. package/types/components/flow-designer/index.d.ts +0 -7
  117. package/types/components/flow-designer/src/flow-designer.vue.d.ts +0 -6
  118. package/types/components/form-designer/index.d.ts +0 -9
  119. package/types/components/form-designer/src/form-designer.vue.d.ts +0 -8
  120. package/types/components/index.d.ts +0 -13
  121. package/types/components/input-tags-display/index.d.ts +0 -72
  122. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +0 -69
  123. package/types/components/multi-cascader-compose/index.d.ts +0 -164
  124. package/types/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
  125. package/types/components/multi-cascader-compose/src/props.d.ts +0 -40
  126. package/types/components/multi-cascader-compose/types.d.ts +0 -10
  127. package/types/components/over-tooltips/index.d.ts +0 -35
  128. package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +0 -34
  129. package/types/components/search-filter/index.d.ts +0 -194
  130. package/types/components/search-filter/src/search-filter.d.ts +0 -57
  131. package/types/components/search-filter/src/search-filter.vue.d.ts +0 -193
  132. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +0 -50
  133. package/types/components/shops-filter/index.d.ts +0 -99
  134. package/types/components/shops-filter/src/shops-filter.d.ts +0 -25
  135. package/types/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
  136. package/types/components/staffs-selector/index.d.ts +0 -109
  137. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -97
  138. package/types/components/staffs-selector/src/radioCmp.vue.d.ts +0 -31
  139. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -108
  140. package/types/components/staffs-selector/src/variedCmp.vue.d.ts +0 -62
  141. package/types/components/timeline/index.d.ts +0 -107
  142. package/types/components/timeline/src/props.d.ts +0 -24
  143. package/types/components/timeline/src/timeline-item.vue.d.ts +0 -65
  144. package/types/components/timeline/src/timeline.vue.d.ts +0 -42
  145. package/types/components/upload/index.d.ts +0 -135
  146. package/types/components/upload/src/icons.d.ts +0 -13
  147. package/types/components/upload/src/upload.vue.d.ts +0 -134
  148. package/types/components/upload/utils/index.d.ts +0 -7
  149. package/types/index.d.ts +0 -6
  150. package/types/utils/bm-admin-ui-resolver.d.ts +0 -9
  151. package/types/utils/vxe-table.d.ts +0 -6
  152. package/types/utils/with-install.d.ts +0 -3
@@ -94,7 +94,7 @@ function boundAlpha(a) {
94
94
  */
95
95
  function convertToPercentage(n) {
96
96
  if (n <= 1) {
97
- return Number(n) * 100 + "%";
97
+ return "".concat(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 = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
479
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(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|\\(]+(" + 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*\\)?";
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*\\)?");
485
485
  var matchers = {
486
486
  CSS_UNIT: new RegExp(CSS_UNIT),
487
487
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -1,7 +1,7 @@
1
1
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
2
  import ToolTip from 'ant-design-vue/lib/tooltip';
3
3
  import Button from 'ant-design-vue/lib/button';
4
- import { h, nextTick, createVNode, defineComponent, resolveComponent, openBlock, createElementBlock, withCtx, createElementVNode, toDisplayString, withModifiers, Fragment, renderList, createBlock, createTextVNode, createCommentVNode } from 'vue';
4
+ import { h, nextTick, createVNode, defineComponent, resolveComponent, openBlock, createElementBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode, toDisplayString, createTextVNode, withModifiers, Fragment, renderList, createBlock, createCommentVNode } from 'vue';
5
5
 
6
6
  /**
7
7
  * Take input from [0, n] and return it as [0, 1]
@@ -67,7 +67,7 @@ function boundAlpha(a) {
67
67
  */
68
68
  function convertToPercentage(n) {
69
69
  if (n <= 1) {
70
- return Number(n) * 100 + "%";
70
+ return "".concat(Number(n) * 100, "%");
71
71
  }
72
72
  return n;
73
73
  }
@@ -449,12 +449,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
449
449
  // <http://www.w3.org/TR/css3-values/#number-value>
450
450
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
451
451
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
452
- var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
452
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
453
453
  // Actual matching.
454
454
  // Parentheses and commas are optional, but not required.
455
455
  // Whitespace can take the place of commas or opening paren
456
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
457
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
456
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
457
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
458
458
  var matchers = {
459
459
  CSS_UNIT: new RegExp(CSS_UNIT),
460
460
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -1154,6 +1154,10 @@ const _sfc_main = defineComponent({
1154
1154
  type: Boolean,
1155
1155
  default: true
1156
1156
  },
1157
+ unitStr: {
1158
+ type: String,
1159
+ default: "\u9879"
1160
+ },
1157
1161
  btnText: {
1158
1162
  type: String,
1159
1163
  default: "\u6DFB\u52A0"
@@ -1161,6 +1165,16 @@ const _sfc_main = defineComponent({
1161
1165
  placement: {
1162
1166
  type: String,
1163
1167
  default: "bottom"
1168
+ },
1169
+ toolTipProps: {
1170
+ type: Object,
1171
+ default: () => {
1172
+ return {};
1173
+ }
1174
+ },
1175
+ alwaysInvoke: {
1176
+ type: Boolean,
1177
+ default: true
1164
1178
  }
1165
1179
  },
1166
1180
  emits: ["clear", "update:list", "addClick"],
@@ -1177,13 +1191,38 @@ const _sfc_main = defineComponent({
1177
1191
  }
1178
1192
  }
1179
1193
  function toAddTags() {
1180
- emit("addClick");
1194
+ if (!props.list.length || props.alwaysInvoke)
1195
+ emit("addClick");
1181
1196
  }
1197
+ const tooltipConfig = ref({
1198
+ align: void 0,
1199
+ arrowPointAtCenter: false,
1200
+ autoAdjustOverflow: true,
1201
+ color: "#fff",
1202
+ defaultVisible: false,
1203
+ destroyTooltipOnHide: false,
1204
+ getPopupContainer,
1205
+ mouseEnterDelay: 0.1,
1206
+ mouseLeaveDelay: 0.1,
1207
+ overlayClassName: "__list-filter-popover",
1208
+ overlayStyle: null,
1209
+ placement: props.placement,
1210
+ trigger: "hover"
1211
+ });
1212
+ watch(() => props.toolTipProps, (tooltipprop) => {
1213
+ tooltipConfig.value = {
1214
+ ...tooltipConfig.value,
1215
+ ...tooltipprop
1216
+ };
1217
+ }, {
1218
+ immediate: true,
1219
+ deep: true
1220
+ });
1182
1221
  return {
1183
1222
  containId,
1184
1223
  clear,
1185
1224
  toAddTags,
1186
- getPopupContainer
1225
+ tooltipConfig
1187
1226
  };
1188
1227
  }
1189
1228
  });
@@ -1192,11 +1231,9 @@ const _hoisted_2 = ["id"];
1192
1231
  const _hoisted_3 = { class: "pop-seleted" };
1193
1232
  const _hoisted_4 = { class: "pop-seleted-title" };
1194
1233
  const _hoisted_5 = /* @__PURE__ */ createTextVNode(" \u5DF2\u9009\u62E9");
1195
- const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u9879 ");
1196
- const _hoisted_7 = { class: "select-input-wrapper" };
1197
- const _hoisted_8 = { key: 1 };
1198
- const _hoisted_9 = { key: 2 };
1199
- const _hoisted_10 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
1234
+ const _hoisted_6 = { key: 1 };
1235
+ const _hoisted_7 = { key: 2 };
1236
+ const _hoisted_8 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
1200
1237
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1201
1238
  const _component_a_tag = resolveComponent("a-tag");
1202
1239
  const _component_CloseCircleFilled = resolveComponent("CloseCircleFilled");
@@ -1208,18 +1245,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1208
1245
  id: _ctx.containId,
1209
1246
  class: "bm-tags-display-wrapper"
1210
1247
  }, [
1211
- createVNode(_component_ToolTip, {
1212
- color: "#fff",
1213
- "get-popup-container": _ctx.getPopupContainer,
1214
- placement: _ctx.placement,
1215
- "overlay-class-name": "__list-filter-popover"
1216
- }, {
1248
+ createVNode(_component_ToolTip, normalizeProps(guardReactiveProps(_ctx.tooltipConfig)), {
1217
1249
  title: withCtx(() => [
1218
1250
  createElementVNode("div", _hoisted_3, [
1219
1251
  createElementVNode("div", _hoisted_4, [
1220
1252
  _hoisted_5,
1221
1253
  createElementVNode("span", null, toDisplayString(_ctx.list.length), 1),
1222
- _hoisted_6
1254
+ createTextVNode(toDisplayString(_ctx.unitStr), 1)
1223
1255
  ])
1224
1256
  ]),
1225
1257
  createElementVNode("div", {
@@ -1241,7 +1273,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1241
1273
  ], 32)
1242
1274
  ]),
1243
1275
  default: withCtx(() => [
1244
- createElementVNode("div", _hoisted_7, [
1276
+ createElementVNode("div", {
1277
+ class: "select-input-wrapper",
1278
+ onClick: _cache[4] || (_cache[4] = (...args) => _ctx.toAddTags && _ctx.toAddTags(...args))
1279
+ }, [
1245
1280
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item) => {
1246
1281
  return openBlock(), createBlock(_component_a_tag, {
1247
1282
  key: item.key
@@ -1265,9 +1300,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1265
1300
  ])
1266
1301
  ]),
1267
1302
  _: 1
1268
- }, 8, ["get-popup-container", "placement"])
1303
+ }, 16)
1269
1304
  ], 8, _hoisted_2)) : createCommentVNode("v-if", true),
1270
- _ctx.showEmptyBtn && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_8, [
1305
+ _ctx.showEmptyBtn && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_6, [
1271
1306
  createVNode(_component_Button, {
1272
1307
  onClick: withModifiers(_ctx.toAddTags, ["stop"])
1273
1308
  }, {
@@ -1277,13 +1312,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1277
1312
  _: 1
1278
1313
  }, 8, ["onClick"])
1279
1314
  ])) : createCommentVNode("v-if", true),
1280
- _ctx.showEmpty && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_9, [
1315
+ _ctx.showEmpty && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_7, [
1281
1316
  createElementVNode("div", {
1282
1317
  class: "selector-empty-input",
1283
- onClick: _cache[4] || (_cache[4] = withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
1284
- }, "\xA0\xA0" + toDisplayString(_ctx.placeholder), 1)
1318
+ onClick: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
1319
+ }, " \xA0\xA0" + toDisplayString(_ctx.placeholder), 1)
1285
1320
  ])) : createCommentVNode("v-if", true),
1286
- _hoisted_10
1321
+ _hoisted_8
1287
1322
  ]);
1288
1323
  }
1289
1324
  var InputTagsDisplay = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "input-tags-display.vue"]]);
@@ -65,7 +65,7 @@ function boundAlpha(a) {
65
65
  */
66
66
  function convertToPercentage(n) {
67
67
  if (n <= 1) {
68
- return Number(n) * 100 + "%";
68
+ return "".concat(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 = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
450
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(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|\\(]+(" + 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*\\)?";
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*\\)?");
456
456
  var matchers = {
457
457
  CSS_UNIT: new RegExp(CSS_UNIT),
458
458
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -66,7 +66,7 @@ function boundAlpha(a) {
66
66
  */
67
67
  function convertToPercentage(n) {
68
68
  if (n <= 1) {
69
- return Number(n) * 100 + "%";
69
+ return "".concat(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 = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
451
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(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|\\(]+(" + 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*\\)?";
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*\\)?");
457
457
  var matchers = {
458
458
  CSS_UNIT: new RegExp(CSS_UNIT),
459
459
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -1961,7 +1961,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1961
1961
  }
1962
1962
  }
1963
1963
  watch(isExpand, (val) => {
1964
- handleChangeExpand(val);
1964
+ setTimeout(() => {
1965
+ handleChangeExpand(val);
1966
+ }, 0);
1965
1967
  }, {
1966
1968
  immediate: true
1967
1969
  });
@@ -70,7 +70,7 @@ function boundAlpha(a) {
70
70
  */
71
71
  function convertToPercentage(n) {
72
72
  if (n <= 1) {
73
- return Number(n) * 100 + "%";
73
+ return "".concat(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 = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
455
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(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|\\(]+(" + 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*\\)?";
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*\\)?");
461
461
  var matchers = {
462
462
  CSS_UNIT: new RegExp(CSS_UNIT),
463
463
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -71,7 +71,7 @@ function boundAlpha(a) {
71
71
  */
72
72
  function convertToPercentage(n) {
73
73
  if (n <= 1) {
74
- return Number(n) * 100 + "%";
74
+ return "".concat(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 = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
456
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(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|\\(]+(" + 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*\\)?";
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*\\)?");
462
462
  var matchers = {
463
463
  CSS_UNIT: new RegExp(CSS_UNIT),
464
464
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -65,7 +65,7 @@ function boundAlpha(a) {
65
65
  */
66
66
  function convertToPercentage(n) {
67
67
  if (n <= 1) {
68
- return Number(n) * 100 + "%";
68
+ return "".concat(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 = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
450
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(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|\\(]+(" + 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*\\)?";
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*\\)?");
456
456
  var matchers = {
457
457
  CSS_UNIT: new RegExp(CSS_UNIT),
458
458
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -1359,18 +1359,29 @@ const _sfc_main = {
1359
1359
  setup(props, { emit }) {
1360
1360
  let acceptList = [
1361
1361
  ".xlsx",
1362
+ ".XLSX",
1362
1363
  ".pdf",
1364
+ ".PDF",
1363
1365
  ".doc",
1366
+ ".DOC",
1364
1367
  ".docx",
1368
+ ".DOCX",
1365
1369
  ".jpg",
1366
- ".jpeg",
1367
1370
  ".JPG",
1371
+ ".jpeg",
1372
+ ".JPEG",
1368
1373
  ".png",
1374
+ ".PNG",
1369
1375
  ".rar",
1376
+ ".RAR",
1370
1377
  ".zip",
1378
+ ".ZIP",
1371
1379
  ".ppt",
1380
+ ".PPT",
1372
1381
  ".pptx",
1373
- ".mp4"
1382
+ ".PPTX",
1383
+ ".mp4",
1384
+ ".MP4"
1374
1385
  ];
1375
1386
  const state = reactive({
1376
1387
  uploadBarColor: "#4DA0FF",
@@ -1433,26 +1444,26 @@ const _sfc_main = {
1433
1444
  }
1434
1445
  });
1435
1446
  const methods = {
1436
- customUploadRequest(file) {
1437
- const updateUploadProgress = (progress) => {
1438
- if (methods.fileIsDelete(file)) {
1439
- return;
1440
- }
1441
- state.fileList[file.uid] = {
1442
- ...state.fileList[file.uid],
1443
- progress
1444
- };
1447
+ updateUploadProgress(file, progress) {
1448
+ if (methods.fileIsDelete(file)) {
1449
+ return;
1450
+ }
1451
+ state.fileList[file.uid] = {
1452
+ ...state.fileList[file.uid],
1453
+ progress
1445
1454
  };
1455
+ },
1456
+ customUploadRequest(file) {
1446
1457
  props.uploadRequest?.(file, {
1447
1458
  onUploadProgress: (e) => {
1448
1459
  let progress = Math.round(e.loaded / e.total * 100);
1449
1460
  if (props.holdProgress) {
1450
1461
  progress = progress > props.holdProgress ? props.holdProgress : progress;
1451
1462
  }
1452
- updateUploadProgress(progress);
1463
+ methods.updateUploadProgress(file, progress);
1453
1464
  }
1454
1465
  }).then(function(data) {
1455
- updateUploadProgress(100);
1466
+ methods.updateUploadProgress(file, 100);
1456
1467
  methods.uploadSuccess(data, file);
1457
1468
  }).catch(function(error) {
1458
1469
  console.error(error);
@@ -1470,6 +1481,7 @@ const _sfc_main = {
1470
1481
  return;
1471
1482
  }
1472
1483
  emit("successFile", data);
1484
+ state.fileList[file.uid].status = "success";
1473
1485
  let uri = data?.url;
1474
1486
  let item = state.extraConfigs.fileDetail ? {
1475
1487
  name: file.name,
@@ -1487,9 +1499,7 @@ const _sfc_main = {
1487
1499
  if (methods.fileIsDelete(file)) {
1488
1500
  return;
1489
1501
  }
1490
- if (file.uid && state.fileList[file.uid]) {
1491
- state.fileList[file.uid].status = "error";
1492
- }
1502
+ state.fileList[file.uid].status = "error";
1493
1503
  emit("error", error);
1494
1504
  },
1495
1505
  async deleteFile(uid) {
@@ -1507,7 +1517,7 @@ const _sfc_main = {
1507
1517
  state.onepViewImageHover[uid] = false;
1508
1518
  },
1509
1519
  viewOnePicture(item) {
1510
- if (["img", "image", "png", "jpg", "jpeg"].includes(item.type.toLowerCase())) {
1520
+ if (["img", "image", "png", "PNG", "jpg", "JPG", "jpeg", "JPEG"].includes(item.type.toLowerCase())) {
1511
1521
  state.previewVisible = true;
1512
1522
  state.onepViewImage = item;
1513
1523
  return;
@@ -1738,13 +1748,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1738
1748
  onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
1739
1749
  onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
1740
1750
  }, [
1741
- ["pdf", "application/pdf"].includes(item.type) ? (openBlock(), createElementBlock("img", {
1751
+ ["pdf", "PDF", "application/pdf"].includes(item.type) ? (openBlock(), createElementBlock("img", {
1742
1752
  key: 0,
1743
1753
  class: "bm-upload__picture-result__image",
1744
1754
  src: $setup.icons.pdf,
1745
1755
  alt: "avatar"
1746
1756
  }, null, 8, _hoisted_4)) : [
1747
1757
  "xlsx",
1758
+ "XLSX",
1748
1759
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
1749
1760
  ].includes(item.type) ? (openBlock(), createElementBlock("img", {
1750
1761
  key: 1,
@@ -1753,8 +1764,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1753
1764
  alt: "avatar"
1754
1765
  }, null, 8, _hoisted_5)) : [
1755
1766
  "ppt",
1767
+ "PPT",
1756
1768
  "application/vnd.ms-powerpoint",
1757
1769
  "pptx",
1770
+ "PPTX",
1758
1771
  "application/vnd.openxmlformats-officedocument.presentationml.presentation"
1759
1772
  ].includes(item.type) ? (openBlock(), createElementBlock("img", {
1760
1773
  key: 2,
@@ -1763,8 +1776,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1763
1776
  alt: "avatar"
1764
1777
  }, null, 8, _hoisted_6)) : [
1765
1778
  "doc",
1779
+ "DOC",
1766
1780
  "application/msword",
1767
1781
  "docx",
1782
+ "DOCX",
1768
1783
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
1769
1784
  ].includes(item.type) ? (openBlock(), createElementBlock("img", {
1770
1785
  key: 3,
@@ -1775,11 +1790,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1775
1790
  "img",
1776
1791
  "image",
1777
1792
  "png",
1793
+ "PNG",
1778
1794
  "image/png",
1779
1795
  "jpg",
1796
+ "JPG",
1780
1797
  "jpeg",
1798
+ "JPEG",
1781
1799
  "image/jpeg",
1782
1800
  "gif",
1801
+ "GIF",
1783
1802
  "image/gif"
1784
1803
  ].includes(item.type) ? (openBlock(), createElementBlock("img", {
1785
1804
  key: 4,
@@ -1908,7 +1927,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1908
1927
  }, {
1909
1928
  default: withCtx(() => [
1910
1929
  createElementVNode("div", _hoisted_32, [
1911
- ["img", "image", "png", "jpg", "jpeg"].includes(_ctx.onepViewImage.type) ? (openBlock(), createElementBlock("img", {
1930
+ [
1931
+ "img",
1932
+ "image",
1933
+ "png",
1934
+ "PNG",
1935
+ "jpg",
1936
+ "JPG",
1937
+ "jpeg",
1938
+ "JPEG"
1939
+ ].includes(_ctx.onepViewImage.type) ? (openBlock(), createElementBlock("img", {
1912
1940
  key: 0,
1913
1941
  style: { "width": "100%" },
1914
1942
  src: _ctx.onepViewImage.url,