bm-admin-ui 1.0.32-alpha → 1.0.34-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 (92) hide show
  1. package/es/components/feedback/index.js +1 -1
  2. package/es/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
  3. package/es/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
  4. package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +249 -0
  5. package/es/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
  6. package/es/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
  7. package/es/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
  8. package/es/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
  9. package/es/components/flow-designer/src/config.d.ts +24 -0
  10. package/es/components/flow-designer/src/flow-designer-test.d.ts +20 -0
  11. package/es/components/flow-designer/src/flow-designer.d.ts +11 -0
  12. package/es/components/flow-designer/src/utils.d.ts +29 -0
  13. package/es/components/index.d.ts +0 -1
  14. package/es/components/index.js +0 -1
  15. package/es/components/input-tags-display/index.d.ts +22 -4
  16. package/es/components/input-tags-display/index.js +26 -22
  17. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +22 -4
  18. package/es/components/search-filter/index.d.ts +1 -1
  19. package/es/components/search-filter/index.js +28 -603
  20. package/es/components/search-filter/src/search-filter.vue.d.ts +1 -1
  21. package/es/components/shops-filter/index.d.ts +1 -1
  22. package/es/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
  23. package/es/components/staffs-selector/index.js +4 -4
  24. package/es/components/upload/index.d.ts +1 -0
  25. package/es/components/upload/index.js +50 -30
  26. package/es/components/upload/src/upload.vue.d.ts +1 -0
  27. package/index.esm.js +180 -711
  28. package/index.js +178 -710
  29. package/lib/components/feedback/index.js +1 -1
  30. package/lib/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
  31. package/lib/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
  32. package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +249 -0
  33. package/lib/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
  34. package/lib/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
  35. package/lib/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
  36. package/lib/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
  37. package/lib/components/flow-designer/src/config.d.ts +24 -0
  38. package/lib/components/flow-designer/src/flow-designer-test.d.ts +20 -0
  39. package/lib/components/flow-designer/src/flow-designer.d.ts +11 -0
  40. package/lib/components/flow-designer/src/utils.d.ts +29 -0
  41. package/lib/components/index.d.ts +0 -1
  42. package/lib/components/index.js +0 -7
  43. package/lib/components/input-tags-display/index.d.ts +22 -4
  44. package/lib/components/input-tags-display/index.js +25 -21
  45. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +22 -4
  46. package/lib/components/search-filter/index.d.ts +1 -1
  47. package/lib/components/search-filter/index.js +27 -602
  48. package/lib/components/search-filter/src/search-filter.vue.d.ts +1 -1
  49. package/lib/components/shops-filter/index.d.ts +1 -1
  50. package/lib/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
  51. package/lib/components/staffs-selector/index.js +4 -4
  52. package/lib/components/upload/index.d.ts +1 -0
  53. package/lib/components/upload/index.js +49 -29
  54. package/lib/components/upload/src/upload.vue.d.ts +1 -0
  55. package/package.json +1 -1
  56. package/theme-chalk/flow-designer.css +1 -1
  57. package/theme-chalk/index.css +1 -1
  58. package/types/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
  59. package/types/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
  60. package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +249 -0
  61. package/types/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
  62. package/types/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
  63. package/types/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
  64. package/types/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
  65. package/types/components/flow-designer/src/config.d.ts +24 -0
  66. package/types/components/flow-designer/src/flow-designer-test.d.ts +20 -0
  67. package/types/components/flow-designer/src/flow-designer.d.ts +11 -0
  68. package/types/components/flow-designer/src/utils.d.ts +29 -0
  69. package/types/components/index.d.ts +0 -1
  70. package/types/components/input-tags-display/index.d.ts +22 -4
  71. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +22 -4
  72. package/types/components/search-filter/index.d.ts +1 -1
  73. package/types/components/search-filter/src/search-filter.vue.d.ts +1 -1
  74. package/types/components/shops-filter/index.d.ts +1 -1
  75. package/types/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
  76. package/types/components/upload/index.d.ts +1 -0
  77. package/types/components/upload/src/upload.vue.d.ts +1 -0
  78. package/es/components/multi-cascader-compose/index.d.ts +0 -164
  79. package/es/components/multi-cascader-compose/index.js +0 -1710
  80. package/es/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
  81. package/es/components/multi-cascader-compose/src/props.d.ts +0 -40
  82. package/es/components/multi-cascader-compose/types.d.ts +0 -10
  83. package/lib/components/multi-cascader-compose/index.d.ts +0 -164
  84. package/lib/components/multi-cascader-compose/index.js +0 -1715
  85. package/lib/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
  86. package/lib/components/multi-cascader-compose/src/props.d.ts +0 -40
  87. package/lib/components/multi-cascader-compose/types.d.ts +0 -10
  88. package/theme-chalk/multi-cascader-compose.css +0 -1
  89. package/types/components/multi-cascader-compose/index.d.ts +0 -164
  90. package/types/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
  91. package/types/components/multi-cascader-compose/src/props.d.ts +0 -40
  92. package/types/components/multi-cascader-compose/types.d.ts +0 -10
@@ -206,7 +206,6 @@ declare const _default: import("vue").DefineComponent<{
206
206
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
207
207
  onExpand?: ((...args: any[]) => any) | undefined;
208
208
  }, {
209
- value: Record<string, any>;
210
209
  showExpandBtn: boolean;
211
210
  showSearchIcon: boolean;
212
211
  expandPlacement: "left" | "right";
@@ -215,6 +214,7 @@ declare const _default: import("vue").DefineComponent<{
215
214
  gutter: number[];
216
215
  userRule: unknown[];
217
216
  labelCol: Record<string, any>;
217
+ value: Record<string, any>;
218
218
  ruleSpan: Record<string, any>;
219
219
  fixedCount: number;
220
220
  fixedFields: string[];
@@ -58,7 +58,7 @@ declare const BmShopsFilter: import("bm-admin-ui/es/utils/with-install").SFCWith
58
58
  label?: string | undefined;
59
59
  multiple?: boolean | undefined;
60
60
  }[]>;
61
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:selected")[], "change" | "update:selected", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
61
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "change")[], "update:selected" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
62
62
  labelTitle: {
63
63
  type: StringConstructor;
64
64
  default: string;
@@ -58,7 +58,7 @@ declare const _default: import("vue").DefineComponent<{
58
58
  label?: string | undefined;
59
59
  multiple?: boolean | undefined;
60
60
  }[]>;
61
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:selected")[], "change" | "update:selected", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
61
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "change")[], "update:selected" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
62
62
  labelTitle: {
63
63
  type: StringConstructor;
64
64
  default: string;
@@ -2039,10 +2039,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
2039
2039
  "curlist-keys": _ctx.curlistKeys,
2040
2040
  "is-tree": _ctx.multipTree,
2041
2041
  "data-map": _ctx.dataMap,
2042
- onFetchList: _ctx.fetch,
2043
- showCount: _ctx.showCount,
2044
- unitStr: _ctx.unitStr
2045
- }, null, 8, ["selected", "limit", "list", "curlist-keys", "is-tree", "data-map", "onFetchList", "showCount", "unitStr"]))
2042
+ "show-count": _ctx.showCount,
2043
+ "unit-str": _ctx.unitStr,
2044
+ onFetchList: _ctx.fetch
2045
+ }, null, 8, ["selected", "limit", "list", "curlist-keys", "is-tree", "data-map", "show-count", "unit-str", "onFetchList"]))
2046
2046
  ])
2047
2047
  ]),
2048
2048
  _: 1
@@ -36,6 +36,7 @@ declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
36
36
  };
37
37
  }>;
38
38
  UploadOutlined: import("@ant-design/icons-vue/lib/icons/UploadOutlined").UploadOutlinedIconType;
39
+ LoadingOutlined: import("@ant-design/icons-vue/lib/icons/LoadingOutlined").LoadingOutlinedIconType;
39
40
  };
40
41
  props: {
41
42
  uploadProps: {
@@ -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, renderSlot, createElementVNode, normalizeStyle, normalizeClass, createTextVNode, toDisplayString, computed, watchEffect, createElementBlock, Fragment, createCommentVNode, renderList, mergeProps } from 'vue';
2
+ import { h, nextTick, createVNode, reactive, onBeforeUnmount, ref, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementVNode, normalizeStyle, normalizeClass, createTextVNode, toDisplayString, computed, createElementBlock, Fragment, createCommentVNode, renderList, mergeProps } from 'vue';
3
3
 
4
4
  /**
5
5
  * Take input from [0, n] and return it as [0, 1]
@@ -851,9 +851,9 @@ function insertCss(css, options) {
851
851
  return styleElement;
852
852
  }
853
853
 
854
- function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } return target; }
854
+ function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$5(target, key, source[key]); }); } return target; }
855
855
 
856
- function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
856
+ function _defineProperty$5(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
857
857
  function warn(valid, message) {
858
858
  // Support uglify
859
859
  if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {
@@ -869,14 +869,14 @@ function isIconDefinition(target) {
869
869
  }
870
870
  function generate(node, key, rootProps) {
871
871
  if (!rootProps) {
872
- return h(node.tag, _objectSpread$4({
872
+ return h(node.tag, _objectSpread$5({
873
873
  key: key
874
874
  }, node.attrs), (node.children || []).map(function (child, index) {
875
875
  return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
876
876
  }));
877
877
  }
878
878
 
879
- return h(node.tag, _objectSpread$4({
879
+ return h(node.tag, _objectSpread$5({
880
880
  key: key
881
881
  }, rootProps, node.attrs), (node.children || []).map(function (child, index) {
882
882
  return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
@@ -916,9 +916,9 @@ function _objectWithoutProperties$1(source, excluded) { if (source == null) retu
916
916
 
917
917
  function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
918
918
 
919
- function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } return target; }
919
+ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } return target; }
920
920
 
921
- function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
921
+ function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
922
922
  var twoToneColorPalette = {
923
923
  primaryColor: '#333',
924
924
  secondaryColor: '#E6E6E6',
@@ -934,11 +934,11 @@ function setTwoToneColors(_ref) {
934
934
  }
935
935
 
936
936
  function getTwoToneColors() {
937
- return _objectSpread$3({}, twoToneColorPalette);
937
+ return _objectSpread$4({}, twoToneColorPalette);
938
938
  }
939
939
 
940
940
  var IconBase = function IconBase(props, context) {
941
- var _props$context$attrs = _objectSpread$3({}, props, context.attrs),
941
+ var _props$context$attrs = _objectSpread$4({}, props, context.attrs),
942
942
  icon = _props$context$attrs.icon,
943
943
  primaryColor = _props$context$attrs.primaryColor,
944
944
  secondaryColor = _props$context$attrs.secondaryColor,
@@ -963,12 +963,12 @@ var IconBase = function IconBase(props, context) {
963
963
  var target = icon;
964
964
 
965
965
  if (target && typeof target.icon === 'function') {
966
- target = _objectSpread$3({}, target, {
966
+ target = _objectSpread$4({}, target, {
967
967
  icon: target.icon(colors.primaryColor, colors.secondaryColor)
968
968
  });
969
969
  }
970
970
 
971
- return generate(target.icon, "svg-".concat(target.name), _objectSpread$3({}, restProps, {
971
+ return generate(target.icon, "svg-".concat(target.name), _objectSpread$4({}, restProps, {
972
972
  'data-icon': target.name,
973
973
  width: '1em',
974
974
  height: '1em',
@@ -1035,9 +1035,9 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
1035
1035
 
1036
1036
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
1037
1037
 
1038
- function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } return target; }
1038
+ function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } return target; }
1039
1039
 
1040
- function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1040
+ function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1041
1041
 
1042
1042
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
1043
1043
 
@@ -1048,7 +1048,7 @@ setTwoToneColor('#1890ff');
1048
1048
  var Icon = function Icon(props, context) {
1049
1049
  var _classObj;
1050
1050
 
1051
- var _props$context$attrs = _objectSpread$2({}, props, context.attrs),
1051
+ var _props$context$attrs = _objectSpread$3({}, props, context.attrs),
1052
1052
  cls = _props$context$attrs["class"],
1053
1053
  icon = _props$context$attrs.icon,
1054
1054
  spin = _props$context$attrs.spin,
@@ -1060,7 +1060,7 @@ var Icon = function Icon(props, context) {
1060
1060
 
1061
1061
  var classObj = (_classObj = {
1062
1062
  anticon: true
1063
- }, _defineProperty$2(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty$2(_classObj, cls, cls), _classObj);
1063
+ }, _defineProperty$3(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty$3(_classObj, cls, cls), _classObj);
1064
1064
  var svgClassString = spin === '' || !!spin || icon.name === 'loading' ? 'anticon-spin' : '';
1065
1065
  var iconTabIndex = tabindex;
1066
1066
 
@@ -1079,7 +1079,7 @@ var Icon = function Icon(props, context) {
1079
1079
  primaryColor = _normalizeTwoToneColo2[0],
1080
1080
  secondaryColor = _normalizeTwoToneColo2[1];
1081
1081
 
1082
- return createVNode("span", _objectSpread$2({
1082
+ return createVNode("span", _objectSpread$3({
1083
1083
  "role": "img",
1084
1084
  "aria-label": icon.name
1085
1085
  }, restProps, {
@@ -1106,6 +1106,26 @@ Icon.getTwoToneColor = getTwoToneColor;
1106
1106
  Icon.setTwoToneColor = setTwoToneColor;
1107
1107
  var AntdIcon = Icon;
1108
1108
 
1109
+ // This icon file is generated automatically.
1110
+ var LoadingOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, "name": "loading", "theme": "outlined" };
1111
+ var LoadingOutlinedSvg = LoadingOutlined$2;
1112
+
1113
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } return target; }
1114
+
1115
+ function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1116
+
1117
+ var LoadingOutlined = function LoadingOutlined(props, context) {
1118
+ var p = _objectSpread$2({}, props, context.attrs);
1119
+
1120
+ return createVNode(AntdIcon, _objectSpread$2({}, p, {
1121
+ "icon": LoadingOutlinedSvg
1122
+ }), null);
1123
+ };
1124
+
1125
+ LoadingOutlined.displayName = 'LoadingOutlined';
1126
+ LoadingOutlined.inheritAttrs = false;
1127
+ var LoadingOutlined$1 = LoadingOutlined;
1128
+
1109
1129
  // This icon file is generated automatically.
1110
1130
  var PlusOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "defs", "attrs": {}, "children": [{ "tag": "style", "attrs": {} }] }, { "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z" } }] }, "name": "plus", "theme": "outlined" };
1111
1131
  var PlusOutlinedSvg = PlusOutlined$2;
@@ -1305,7 +1325,7 @@ var icons = {
1305
1325
  const CLOUND_PRE = "/cloudStorage/read";
1306
1326
  const _sfc_main = {
1307
1327
  name: "BmUpload",
1308
- components: { PlusOutlined: PlusOutlined$1, OverTooltips, UploadOutlined: UploadOutlined$1 },
1328
+ components: { PlusOutlined: PlusOutlined$1, OverTooltips, UploadOutlined: UploadOutlined$1, LoadingOutlined: LoadingOutlined$1 },
1309
1329
  props: {
1310
1330
  uploadProps: {
1311
1331
  type: Object,
@@ -1387,7 +1407,6 @@ const _sfc_main = {
1387
1407
  ];
1388
1408
  const state = reactive({
1389
1409
  uploadBarColor: "#4DA0FF",
1390
- uploadDisabled: false,
1391
1410
  uploadedList: [],
1392
1411
  fileList: {},
1393
1412
  onepViewImageHover: {},
@@ -1637,14 +1656,11 @@ const _sfc_main = {
1637
1656
  deep: true
1638
1657
  });
1639
1658
  const uploadDisabled = computed(() => {
1640
- if (Object.keys(state.fileList).length >= state.extraConfigs.maxCount) {
1659
+ if (props.uploadProps.disabled || Object.keys(state.fileList).length >= state.extraConfigs.maxCount) {
1641
1660
  return true;
1642
1661
  }
1643
1662
  return false;
1644
1663
  });
1645
- watchEffect(() => {
1646
- state.uploadConfigs.disabled = uploadDisabled.value;
1647
- });
1648
1664
  watch(() => uploadDisabled.value, (value) => {
1649
1665
  emit("updateDisabledStatus", value);
1650
1666
  }, {
@@ -1731,6 +1747,7 @@ const _hoisted_32 = ["title", "src"];
1731
1747
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1732
1748
  const _component_a_progress = resolveComponent("a-progress");
1733
1749
  const _component_a_image = resolveComponent("a-image");
1750
+ const _component_LoadingOutlined = resolveComponent("LoadingOutlined");
1734
1751
  const _component_PlusOutlined = resolveComponent("PlusOutlined");
1735
1752
  const _component_UploadOutlined = resolveComponent("UploadOutlined");
1736
1753
  const _component_a_button = resolveComponent("a-button");
@@ -1809,12 +1826,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1809
1826
  class: "bm-upload__picture-result__image",
1810
1827
  src: $setup.icons.doc,
1811
1828
  alt: "\u56FE\u7247"
1812
- }, null, 8, _hoisted_7)) : _ctx.pictureFileTypes.includes(item.type) ? (openBlock(), createBlock(_component_a_image, {
1813
- key: 4,
1814
- class: "bm-upload__picture-result__image",
1815
- src: item.url,
1816
- alt: "\u56FE\u7247"
1817
- }, null, 8, ["src"])) : (openBlock(), createElementBlock("img", {
1829
+ }, null, 8, _hoisted_7)) : _ctx.pictureFileTypes.includes(item.type) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
1830
+ item.url ? (openBlock(), createBlock(_component_a_image, {
1831
+ key: 0,
1832
+ class: "bm-upload__picture-result__image",
1833
+ src: item.url,
1834
+ alt: "\u56FE\u7247"
1835
+ }, null, 8, ["src"])) : (openBlock(), createBlock(_component_LoadingOutlined, { key: 1 }))
1836
+ ], 2112)) : (openBlock(), createElementBlock("img", {
1818
1837
  key: 5,
1819
1838
  class: "bm-upload__picture-result__image",
1820
1839
  src: $setup.icons.others,
@@ -1868,6 +1887,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1868
1887
  createCommentVNode(" </a-image-preview-group> ")
1869
1888
  ], 2112)) : createCommentVNode("v-if", true),
1870
1889
  !($setup.uploadDisabled && _ctx.extraConfigs?.hideDisabledBtn) ? (openBlock(), createBlock(_component_a_upload, mergeProps({ key: 1 }, _ctx.uploadConfigs, {
1890
+ disabled: $setup.uploadDisabled,
1871
1891
  class: { "bm--upload__custom-button": _ctx.extraConfigs.myBtn },
1872
1892
  onReject: _ctx.handleReject
1873
1893
  }), {
@@ -1880,7 +1900,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1880
1900
  ])) : _ctx.uploadConfigs.listType === "text" ? (openBlock(), createElementBlock("div", _hoisted_20, [
1881
1901
  createVNode(_component_a_button, {
1882
1902
  class: normalizeClass(_ctx.extraConfigs.btnClass),
1883
- disabled: $setup.uploadDisabled && !_ctx.extraConfigs?.hideDisabledBtn
1903
+ disabled: $setup.uploadDisabled
1884
1904
  }, {
1885
1905
  default: withCtx(() => [
1886
1906
  createVNode(_component_UploadOutlined),
@@ -1893,7 +1913,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1893
1913
  ], 2112))
1894
1914
  ]),
1895
1915
  _: 3
1896
- }, 16, ["class", "onReject"])) : createCommentVNode("v-if", true),
1916
+ }, 16, ["disabled", "class", "onReject"])) : createCommentVNode("v-if", true),
1897
1917
  _ctx.uploadConfigs.listType === "text" && !_ctx.uploadConfigs.showSlotList ? (openBlock(), createElementBlock("div", _hoisted_22, [
1898
1918
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fileList, (item) => {
1899
1919
  return openBlock(), createElementBlock("div", {
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  };
37
37
  }>;
38
38
  UploadOutlined: import("@ant-design/icons-vue/lib/icons/UploadOutlined").UploadOutlinedIconType;
39
+ LoadingOutlined: import("@ant-design/icons-vue/lib/icons/LoadingOutlined").LoadingOutlinedIconType;
39
40
  };
40
41
  props: {
41
42
  uploadProps: {