bm-admin-ui 1.0.33-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.
@@ -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<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
- }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ }> | null | undefined) | (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<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
- }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ }> | null | undefined) | (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 @@ declare const _default: import("vue").DefineComponent<{
65
65
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
66
66
  prefixCls: StringConstructor;
67
67
  color: {
68
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"success" | "error" | "warning" | "default" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
68
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
69
69
  };
70
70
  closable: {
71
71
  type: BooleanConstructor;
@@ -98,7 +98,7 @@ declare const _default: import("vue").DefineComponent<{
98
98
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
99
99
  prefixCls: StringConstructor;
100
100
  color: {
101
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"success" | "error" | "warning" | "default" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
101
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
102
102
  };
103
103
  closable: {
104
104
  type: BooleanConstructor;
@@ -140,7 +140,7 @@ declare const _default: import("vue").DefineComponent<{
140
140
  } & Readonly<import("vue").ExtractPropTypes<{
141
141
  prefixCls: StringConstructor;
142
142
  color: {
143
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"success" | "error" | "warning" | "default" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
143
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
144
144
  };
145
145
  closable: {
146
146
  type: BooleanConstructor;
@@ -163,7 +163,7 @@ declare const _default: import("vue").DefineComponent<{
163
163
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
164
164
  prefixCls: StringConstructor;
165
165
  color: {
166
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"success" | "error" | "warning" | "default" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
166
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
167
167
  };
168
168
  closable: {
169
169
  type: BooleanConstructor;
@@ -40,9 +40,9 @@ declare const _default: import("vue").DefineComponent<{
40
40
  searchVal: import("vue").Ref<string>;
41
41
  selectAll: import("vue").Ref<boolean>;
42
42
  indeterminate: import("vue").Ref<boolean>;
43
- emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
+ emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
44
44
  [key: string]: any;
45
- }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ }> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
47
  }> | null | undefined)[]>;
48
48
  listChecked: import("vue").Ref<{}>;
@@ -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: {
@@ -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,
@@ -1727,6 +1747,7 @@ const _hoisted_32 = ["title", "src"];
1727
1747
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1728
1748
  const _component_a_progress = resolveComponent("a-progress");
1729
1749
  const _component_a_image = resolveComponent("a-image");
1750
+ const _component_LoadingOutlined = resolveComponent("LoadingOutlined");
1730
1751
  const _component_PlusOutlined = resolveComponent("PlusOutlined");
1731
1752
  const _component_UploadOutlined = resolveComponent("UploadOutlined");
1732
1753
  const _component_a_button = resolveComponent("a-button");
@@ -1805,12 +1826,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1805
1826
  class: "bm-upload__picture-result__image",
1806
1827
  src: $setup.icons.doc,
1807
1828
  alt: "\u56FE\u7247"
1808
- }, null, 8, _hoisted_7)) : _ctx.pictureFileTypes.includes(item.type) ? (openBlock(), createBlock(_component_a_image, {
1809
- key: 4,
1810
- class: "bm-upload__picture-result__image",
1811
- src: item.url,
1812
- alt: "\u56FE\u7247"
1813
- }, 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", {
1814
1837
  key: 5,
1815
1838
  class: "bm-upload__picture-result__image",
1816
1839
  src: $setup.icons.others,
@@ -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: {
package/index.esm.js CHANGED
@@ -45505,7 +45505,7 @@ var icons = {
45505
45505
  const CLOUND_PRE = "/cloudStorage/read";
45506
45506
  const _sfc_main$3 = {
45507
45507
  name: "BmUpload",
45508
- components: { PlusOutlined: PlusOutlined$1, OverTooltips: BmOverTooltips, UploadOutlined: UploadOutlined$1 },
45508
+ components: { PlusOutlined: PlusOutlined$1, OverTooltips: BmOverTooltips, UploadOutlined: UploadOutlined$1, LoadingOutlined: LoadingOutlined$1 },
45509
45509
  props: {
45510
45510
  uploadProps: {
45511
45511
  type: Object,
@@ -45927,6 +45927,7 @@ const _hoisted_32 = ["title", "src"];
45927
45927
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
45928
45928
  const _component_a_progress = resolveComponent("a-progress");
45929
45929
  const _component_a_image = resolveComponent("a-image");
45930
+ const _component_LoadingOutlined = resolveComponent("LoadingOutlined");
45930
45931
  const _component_PlusOutlined = resolveComponent("PlusOutlined");
45931
45932
  const _component_UploadOutlined = resolveComponent("UploadOutlined");
45932
45933
  const _component_a_button = resolveComponent("a-button");
@@ -46005,12 +46006,14 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
46005
46006
  class: "bm-upload__picture-result__image",
46006
46007
  src: $setup.icons.doc,
46007
46008
  alt: "\u56FE\u7247"
46008
- }, null, 8, _hoisted_7$1)) : _ctx.pictureFileTypes.includes(item.type) ? (openBlock(), createBlock(_component_a_image, {
46009
- key: 4,
46010
- class: "bm-upload__picture-result__image",
46011
- src: item.url,
46012
- alt: "\u56FE\u7247"
46013
- }, null, 8, ["src"])) : (openBlock(), createElementBlock("img", {
46009
+ }, null, 8, _hoisted_7$1)) : _ctx.pictureFileTypes.includes(item.type) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
46010
+ item.url ? (openBlock(), createBlock(_component_a_image, {
46011
+ key: 0,
46012
+ class: "bm-upload__picture-result__image",
46013
+ src: item.url,
46014
+ alt: "\u56FE\u7247"
46015
+ }, null, 8, ["src"])) : (openBlock(), createBlock(_component_LoadingOutlined, { key: 1 }))
46016
+ ], 2112)) : (openBlock(), createElementBlock("img", {
46014
46017
  key: 5,
46015
46018
  class: "bm-upload__picture-result__image",
46016
46019
  src: $setup.icons.others,
package/index.js CHANGED
@@ -45513,7 +45513,7 @@ var process = {
45513
45513
  const CLOUND_PRE = "/cloudStorage/read";
45514
45514
  const _sfc_main$3 = {
45515
45515
  name: "BmUpload",
45516
- components: { PlusOutlined: PlusOutlined$1, OverTooltips: BmOverTooltips, UploadOutlined: UploadOutlined$1 },
45516
+ components: { PlusOutlined: PlusOutlined$1, OverTooltips: BmOverTooltips, UploadOutlined: UploadOutlined$1, LoadingOutlined: LoadingOutlined$1 },
45517
45517
  props: {
45518
45518
  uploadProps: {
45519
45519
  type: Object,
@@ -45935,6 +45935,7 @@ var process = {
45935
45935
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
45936
45936
  const _component_a_progress = require$$1$1.resolveComponent("a-progress");
45937
45937
  const _component_a_image = require$$1$1.resolveComponent("a-image");
45938
+ const _component_LoadingOutlined = require$$1$1.resolveComponent("LoadingOutlined");
45938
45939
  const _component_PlusOutlined = require$$1$1.resolveComponent("PlusOutlined");
45939
45940
  const _component_UploadOutlined = require$$1$1.resolveComponent("UploadOutlined");
45940
45941
  const _component_a_button = require$$1$1.resolveComponent("a-button");
@@ -46013,12 +46014,14 @@ var process = {
46013
46014
  class: "bm-upload__picture-result__image",
46014
46015
  src: $setup.icons.doc,
46015
46016
  alt: "\u56FE\u7247"
46016
- }, null, 8, _hoisted_7$1)) : _ctx.pictureFileTypes.includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createBlock(_component_a_image, {
46017
- key: 4,
46018
- class: "bm-upload__picture-result__image",
46019
- src: item.url,
46020
- alt: "\u56FE\u7247"
46021
- }, null, 8, ["src"])) : (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46017
+ }, null, 8, _hoisted_7$1)) : _ctx.pictureFileTypes.includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock(require$$1$1.Fragment, { key: 4 }, [
46018
+ item.url ? (require$$1$1.openBlock(), require$$1$1.createBlock(_component_a_image, {
46019
+ key: 0,
46020
+ class: "bm-upload__picture-result__image",
46021
+ src: item.url,
46022
+ alt: "\u56FE\u7247"
46023
+ }, null, 8, ["src"])) : (require$$1$1.openBlock(), require$$1$1.createBlock(_component_LoadingOutlined, { key: 1 }))
46024
+ ], 2112)) : (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
46022
46025
  key: 5,
46023
46026
  class: "bm-upload__picture-result__image",
46024
46027
  src: $setup.icons.others,
@@ -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<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
- }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ }> | null | undefined) | (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<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
- }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ }> | null | undefined) | (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 @@ declare const _default: import("vue").DefineComponent<{
65
65
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
66
66
  prefixCls: StringConstructor;
67
67
  color: {
68
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"success" | "error" | "warning" | "default" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
68
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
69
69
  };
70
70
  closable: {
71
71
  type: BooleanConstructor;
@@ -98,7 +98,7 @@ declare const _default: import("vue").DefineComponent<{
98
98
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
99
99
  prefixCls: StringConstructor;
100
100
  color: {
101
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"success" | "error" | "warning" | "default" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
101
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
102
102
  };
103
103
  closable: {
104
104
  type: BooleanConstructor;
@@ -140,7 +140,7 @@ declare const _default: import("vue").DefineComponent<{
140
140
  } & Readonly<import("vue").ExtractPropTypes<{
141
141
  prefixCls: StringConstructor;
142
142
  color: {
143
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"success" | "error" | "warning" | "default" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
143
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
144
144
  };
145
145
  closable: {
146
146
  type: BooleanConstructor;
@@ -163,7 +163,7 @@ declare const _default: import("vue").DefineComponent<{
163
163
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
164
164
  prefixCls: StringConstructor;
165
165
  color: {
166
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"success" | "error" | "warning" | "default" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
166
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
167
167
  };
168
168
  closable: {
169
169
  type: BooleanConstructor;
@@ -40,9 +40,9 @@ declare const _default: import("vue").DefineComponent<{
40
40
  searchVal: import("vue").Ref<string>;
41
41
  selectAll: import("vue").Ref<boolean>;
42
42
  indeterminate: import("vue").Ref<boolean>;
43
- emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
+ emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
44
44
  [key: string]: any;
45
- }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ }> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
47
  }> | null | undefined)[]>;
48
48
  listChecked: import("vue").Ref<{}>;
@@ -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: {
@@ -855,9 +855,9 @@ function insertCss(css, options) {
855
855
  return styleElement;
856
856
  }
857
857
 
858
- 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; }
858
+ 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; }
859
859
 
860
- 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; }
860
+ 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; }
861
861
  function warn(valid, message) {
862
862
  // Support uglify
863
863
  if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {
@@ -873,14 +873,14 @@ function isIconDefinition(target) {
873
873
  }
874
874
  function generate(node, key, rootProps) {
875
875
  if (!rootProps) {
876
- return vue.h(node.tag, _objectSpread$4({
876
+ return vue.h(node.tag, _objectSpread$5({
877
877
  key: key
878
878
  }, node.attrs), (node.children || []).map(function (child, index) {
879
879
  return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
880
880
  }));
881
881
  }
882
882
 
883
- return vue.h(node.tag, _objectSpread$4({
883
+ return vue.h(node.tag, _objectSpread$5({
884
884
  key: key
885
885
  }, rootProps, node.attrs), (node.children || []).map(function (child, index) {
886
886
  return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
@@ -920,9 +920,9 @@ function _objectWithoutProperties$1(source, excluded) { if (source == null) retu
920
920
 
921
921
  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; }
922
922
 
923
- 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; }
923
+ 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; }
924
924
 
925
- 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; }
925
+ 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; }
926
926
  var twoToneColorPalette = {
927
927
  primaryColor: '#333',
928
928
  secondaryColor: '#E6E6E6',
@@ -938,11 +938,11 @@ function setTwoToneColors(_ref) {
938
938
  }
939
939
 
940
940
  function getTwoToneColors() {
941
- return _objectSpread$3({}, twoToneColorPalette);
941
+ return _objectSpread$4({}, twoToneColorPalette);
942
942
  }
943
943
 
944
944
  var IconBase = function IconBase(props, context) {
945
- var _props$context$attrs = _objectSpread$3({}, props, context.attrs),
945
+ var _props$context$attrs = _objectSpread$4({}, props, context.attrs),
946
946
  icon = _props$context$attrs.icon,
947
947
  primaryColor = _props$context$attrs.primaryColor,
948
948
  secondaryColor = _props$context$attrs.secondaryColor,
@@ -967,12 +967,12 @@ var IconBase = function IconBase(props, context) {
967
967
  var target = icon;
968
968
 
969
969
  if (target && typeof target.icon === 'function') {
970
- target = _objectSpread$3({}, target, {
970
+ target = _objectSpread$4({}, target, {
971
971
  icon: target.icon(colors.primaryColor, colors.secondaryColor)
972
972
  });
973
973
  }
974
974
 
975
- return generate(target.icon, "svg-".concat(target.name), _objectSpread$3({}, restProps, {
975
+ return generate(target.icon, "svg-".concat(target.name), _objectSpread$4({}, restProps, {
976
976
  'data-icon': target.name,
977
977
  width: '1em',
978
978
  height: '1em',
@@ -1039,9 +1039,9 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
1039
1039
 
1040
1040
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
1041
1041
 
1042
- 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; }
1042
+ 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; }
1043
1043
 
1044
- 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; }
1044
+ 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; }
1045
1045
 
1046
1046
  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; }
1047
1047
 
@@ -1052,7 +1052,7 @@ setTwoToneColor('#1890ff');
1052
1052
  var Icon = function Icon(props, context) {
1053
1053
  var _classObj;
1054
1054
 
1055
- var _props$context$attrs = _objectSpread$2({}, props, context.attrs),
1055
+ var _props$context$attrs = _objectSpread$3({}, props, context.attrs),
1056
1056
  cls = _props$context$attrs["class"],
1057
1057
  icon = _props$context$attrs.icon,
1058
1058
  spin = _props$context$attrs.spin,
@@ -1064,7 +1064,7 @@ var Icon = function Icon(props, context) {
1064
1064
 
1065
1065
  var classObj = (_classObj = {
1066
1066
  anticon: true
1067
- }, _defineProperty$2(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty$2(_classObj, cls, cls), _classObj);
1067
+ }, _defineProperty$3(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty$3(_classObj, cls, cls), _classObj);
1068
1068
  var svgClassString = spin === '' || !!spin || icon.name === 'loading' ? 'anticon-spin' : '';
1069
1069
  var iconTabIndex = tabindex;
1070
1070
 
@@ -1083,7 +1083,7 @@ var Icon = function Icon(props, context) {
1083
1083
  primaryColor = _normalizeTwoToneColo2[0],
1084
1084
  secondaryColor = _normalizeTwoToneColo2[1];
1085
1085
 
1086
- return vue.createVNode("span", _objectSpread$2({
1086
+ return vue.createVNode("span", _objectSpread$3({
1087
1087
  "role": "img",
1088
1088
  "aria-label": icon.name
1089
1089
  }, restProps, {
@@ -1110,6 +1110,26 @@ Icon.getTwoToneColor = getTwoToneColor;
1110
1110
  Icon.setTwoToneColor = setTwoToneColor;
1111
1111
  var AntdIcon = Icon;
1112
1112
 
1113
+ // This icon file is generated automatically.
1114
+ 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" };
1115
+ var LoadingOutlinedSvg = LoadingOutlined$2;
1116
+
1117
+ 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; }
1118
+
1119
+ 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; }
1120
+
1121
+ var LoadingOutlined = function LoadingOutlined(props, context) {
1122
+ var p = _objectSpread$2({}, props, context.attrs);
1123
+
1124
+ return vue.createVNode(AntdIcon, _objectSpread$2({}, p, {
1125
+ "icon": LoadingOutlinedSvg
1126
+ }), null);
1127
+ };
1128
+
1129
+ LoadingOutlined.displayName = 'LoadingOutlined';
1130
+ LoadingOutlined.inheritAttrs = false;
1131
+ var LoadingOutlined$1 = LoadingOutlined;
1132
+
1113
1133
  // This icon file is generated automatically.
1114
1134
  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" };
1115
1135
  var PlusOutlinedSvg = PlusOutlined$2;
@@ -1309,7 +1329,7 @@ var icons = {
1309
1329
  const CLOUND_PRE = "/cloudStorage/read";
1310
1330
  const _sfc_main = {
1311
1331
  name: "BmUpload",
1312
- components: { PlusOutlined: PlusOutlined$1, OverTooltips, UploadOutlined: UploadOutlined$1 },
1332
+ components: { PlusOutlined: PlusOutlined$1, OverTooltips, UploadOutlined: UploadOutlined$1, LoadingOutlined: LoadingOutlined$1 },
1313
1333
  props: {
1314
1334
  uploadProps: {
1315
1335
  type: Object,
@@ -1731,6 +1751,7 @@ const _hoisted_32 = ["title", "src"];
1731
1751
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1732
1752
  const _component_a_progress = vue.resolveComponent("a-progress");
1733
1753
  const _component_a_image = vue.resolveComponent("a-image");
1754
+ const _component_LoadingOutlined = vue.resolveComponent("LoadingOutlined");
1734
1755
  const _component_PlusOutlined = vue.resolveComponent("PlusOutlined");
1735
1756
  const _component_UploadOutlined = vue.resolveComponent("UploadOutlined");
1736
1757
  const _component_a_button = vue.resolveComponent("a-button");
@@ -1809,12 +1830,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1809
1830
  class: "bm-upload__picture-result__image",
1810
1831
  src: $setup.icons.doc,
1811
1832
  alt: "\u56FE\u7247"
1812
- }, null, 8, _hoisted_7)) : _ctx.pictureFileTypes.includes(item.type) ? (vue.openBlock(), vue.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"])) : (vue.openBlock(), vue.createElementBlock("img", {
1833
+ }, null, 8, _hoisted_7)) : _ctx.pictureFileTypes.includes(item.type) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 4 }, [
1834
+ item.url ? (vue.openBlock(), vue.createBlock(_component_a_image, {
1835
+ key: 0,
1836
+ class: "bm-upload__picture-result__image",
1837
+ src: item.url,
1838
+ alt: "\u56FE\u7247"
1839
+ }, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock(_component_LoadingOutlined, { key: 1 }))
1840
+ ], 2112)) : (vue.openBlock(), vue.createElementBlock("img", {
1818
1841
  key: 5,
1819
1842
  class: "bm-upload__picture-result__image",
1820
1843
  src: $setup.icons.others,
@@ -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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bm-admin-ui",
3
- "version": "1.0.33-alpha",
3
+ "version": "1.0.34-alpha",
4
4
  "private": false,
5
5
  "description": "An Admin Component Library for Bm",
6
6
  "license": "UNLICENSED",
@@ -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<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
- }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ }> | null | undefined) | (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<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
- }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ }> | null | undefined) | (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 @@ declare const _default: import("vue").DefineComponent<{
65
65
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
66
66
  prefixCls: StringConstructor;
67
67
  color: {
68
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"success" | "error" | "warning" | "default" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
68
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
69
69
  };
70
70
  closable: {
71
71
  type: BooleanConstructor;
@@ -98,7 +98,7 @@ declare const _default: import("vue").DefineComponent<{
98
98
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
99
99
  prefixCls: StringConstructor;
100
100
  color: {
101
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"success" | "error" | "warning" | "default" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
101
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
102
102
  };
103
103
  closable: {
104
104
  type: BooleanConstructor;
@@ -140,7 +140,7 @@ declare const _default: import("vue").DefineComponent<{
140
140
  } & Readonly<import("vue").ExtractPropTypes<{
141
141
  prefixCls: StringConstructor;
142
142
  color: {
143
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"success" | "error" | "warning" | "default" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
143
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
144
144
  };
145
145
  closable: {
146
146
  type: BooleanConstructor;
@@ -163,7 +163,7 @@ declare const _default: import("vue").DefineComponent<{
163
163
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
164
164
  prefixCls: StringConstructor;
165
165
  color: {
166
- type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"success" | "error" | "warning" | "default" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
166
+ type: import("vue").PropType<import("ant-design-vue/lib/_util/type").LiteralUnion<"default" | "success" | "error" | "warning" | "blue" | "red" | "green" | "cyan" | "gold" | "lime" | "magenta" | "orange" | "pink" | "purple" | "yellow" | "processing" | "geekblue" | "volcano", string>>;
167
167
  };
168
168
  closable: {
169
169
  type: BooleanConstructor;
@@ -40,9 +40,9 @@ declare const _default: import("vue").DefineComponent<{
40
40
  searchVal: import("vue").Ref<string>;
41
41
  selectAll: import("vue").Ref<boolean>;
42
42
  indeterminate: import("vue").Ref<boolean>;
43
- emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
+ emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
44
44
  [key: string]: any;
45
- }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ }> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
46
  [key: string]: any;
47
47
  }> | null | undefined)[]>;
48
48
  listChecked: import("vue").Ref<{}>;
@@ -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: {
@@ -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: {