bm-admin-ui 1.0.25-alpha → 1.0.27-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 (32) hide show
  1. package/es/components/float-table/index.d.ts +2 -2
  2. package/es/components/float-table/src/float-table.vue.d.ts +2 -2
  3. package/es/components/search-filter/index.d.ts +15 -14
  4. package/es/components/search-filter/index.js +24 -16
  5. package/es/components/search-filter/src/search-filter.d.ts +8 -4
  6. package/es/components/search-filter/src/search-filter.vue.d.ts +15 -14
  7. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +17 -0
  8. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
  9. package/es/components/upload/index.js +23 -2
  10. package/index.esm.js +47 -18
  11. package/index.js +46 -17
  12. package/lib/components/float-table/index.d.ts +2 -2
  13. package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
  14. package/lib/components/search-filter/index.d.ts +15 -14
  15. package/lib/components/search-filter/index.js +23 -15
  16. package/lib/components/search-filter/src/search-filter.d.ts +8 -4
  17. package/lib/components/search-filter/src/search-filter.vue.d.ts +15 -14
  18. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +17 -0
  19. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
  20. package/lib/components/upload/index.js +23 -2
  21. package/package.json +1 -1
  22. package/theme-chalk/feedback.css +1 -1
  23. package/theme-chalk/index.css +1 -1
  24. package/theme-chalk/search-filter.css +1 -1
  25. package/theme-chalk/upload.css +1 -1
  26. package/types/components/float-table/index.d.ts +2 -2
  27. package/types/components/float-table/src/float-table.vue.d.ts +2 -2
  28. package/types/components/search-filter/index.d.ts +15 -14
  29. package/types/components/search-filter/src/search-filter.d.ts +8 -4
  30. package/types/components/search-filter/src/search-filter.vue.d.ts +15 -14
  31. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +17 -0
  32. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
@@ -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<{}>;
@@ -19,6 +19,10 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
19
19
  type: StringConstructor;
20
20
  default: string;
21
21
  };
22
+ gutter: {
23
+ type: import("vue").PropType<number[]>;
24
+ default(): number[];
25
+ };
22
26
  userRule: {
23
27
  type: ArrayConstructor;
24
28
  default(): never[];
@@ -37,10 +41,6 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
37
41
  type: ObjectConstructor;
38
42
  default(): {};
39
43
  };
40
- gutter: {
41
- type: ArrayConstructor;
42
- default(): number[];
43
- };
44
44
  fixedCount: {
45
45
  type: NumberConstructor;
46
46
  default: number;
@@ -71,6 +71,10 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
71
71
  type: StringConstructor;
72
72
  default: string;
73
73
  };
74
+ gutter: {
75
+ type: import("vue").PropType<number[]>;
76
+ default(): number[];
77
+ };
74
78
  userRule: {
75
79
  type: ArrayConstructor;
76
80
  default(): never[];
@@ -89,10 +93,6 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
89
93
  type: ObjectConstructor;
90
94
  default(): {};
91
95
  };
92
- gutter: {
93
- type: ArrayConstructor;
94
- default(): number[];
95
- };
96
96
  fixedCount: {
97
97
  type: NumberConstructor;
98
98
  default: number;
@@ -116,6 +116,7 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
116
116
  showSearchIcon: boolean;
117
117
  expandText: string;
118
118
  collapseText: string;
119
+ gutter: number[];
119
120
  };
120
121
  on: {
121
122
  submit: () => void;
@@ -129,7 +130,7 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
129
130
  span: number;
130
131
  };
131
132
  row: {
132
- gutter: unknown[];
133
+ gutter: number[];
133
134
  };
134
135
  form: {
135
136
  labelCol: {
@@ -169,6 +170,10 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
169
170
  type: StringConstructor;
170
171
  default: string;
171
172
  };
173
+ gutter: {
174
+ type: import("vue").PropType<number[]>;
175
+ default(): number[];
176
+ };
172
177
  userRule: {
173
178
  type: ArrayConstructor;
174
179
  default(): never[];
@@ -187,10 +192,6 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
187
192
  type: ObjectConstructor;
188
193
  default(): {};
189
194
  };
190
- gutter: {
191
- type: ArrayConstructor;
192
- default(): number[];
193
- };
194
195
  fixedCount: {
195
196
  type: NumberConstructor;
196
197
  default: number;
@@ -211,10 +212,10 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
211
212
  expandPlacement: "left" | "right";
212
213
  expandText: string;
213
214
  collapseText: string;
215
+ gutter: number[];
214
216
  userRule: unknown[];
215
217
  labelCol: Record<string, any>;
216
218
  ruleSpan: Record<string, any>;
217
- gutter: unknown[];
218
219
  fixedCount: number;
219
220
  fixedFields: string[];
220
221
  }>>;
@@ -1,5 +1,5 @@
1
1
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
- import { h, nextTick, createVNode, defineComponent, ref, resolveComponent, openBlock, createElementBlock, createTextVNode, toDisplayString, createBlock, unref, createCommentVNode, createElementVNode, withCtx, computed, Fragment, renderList, withModifiers, normalizeClass, renderSlot, reactive, onBeforeUnmount, watch } from 'vue';
2
+ import { h, nextTick, createVNode, defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, unref, createTextVNode, toDisplayString, createBlock, createCommentVNode, createElementVNode, withCtx, Fragment, renderList, withModifiers, normalizeClass, renderSlot, reactive, onBeforeUnmount, watch } from 'vue';
3
3
  import FormCreateCtr from '@form-create/ant-design-vue';
4
4
 
5
5
  /**
@@ -1248,6 +1248,12 @@ const searchResetBtnProps = {
1248
1248
  type: String,
1249
1249
  default: '收起',
1250
1250
  },
1251
+ gutter: {
1252
+ type: Array,
1253
+ default() {
1254
+ return [24, 16];
1255
+ },
1256
+ },
1251
1257
  };
1252
1258
  const searchFilterProps = Object.assign({ userRule: {
1253
1259
  type: Array,
@@ -1271,11 +1277,6 @@ const searchFilterProps = Object.assign({ userRule: {
1271
1277
  default() {
1272
1278
  return {};
1273
1279
  },
1274
- }, gutter: {
1275
- type: Array,
1276
- default() {
1277
- return [24, 16];
1278
- },
1279
1280
  }, fixedCount: {
1280
1281
  type: Number,
1281
1282
  default: 999999,
@@ -1294,16 +1295,19 @@ var _export_sfc = (sfc, props) => {
1294
1295
  return target;
1295
1296
  };
1296
1297
 
1297
- const _hoisted_1$1 = { class: "bm-search-filter-btn" };
1298
- const _hoisted_2$1 = { class: "bm-search-filter-actions" };
1299
- const _hoisted_3$1 = /* @__PURE__ */ createTextVNode("\u91CD\u7F6E");
1300
- const _hoisted_4$1 = /* @__PURE__ */ createTextVNode("\u67E5\u8BE2");
1298
+ const _hoisted_1$1 = { class: "bm-search-filter-actions" };
1299
+ const _hoisted_2$1 = /* @__PURE__ */ createTextVNode("\u91CD\u7F6E");
1300
+ const _hoisted_3$1 = /* @__PURE__ */ createTextVNode("\u67E5\u8BE2");
1301
1301
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1302
1302
  props: searchResetBtnProps,
1303
1303
  emits: ["submit", "reset", "expand"],
1304
1304
  setup(__props, { emit: emits }) {
1305
1305
  const props = __props;
1306
1306
  const isExpand = ref(false);
1307
+ const wrapperStyle = computed(() => {
1308
+ let gutter = props.gutter?.[0] || 24;
1309
+ return { paddingLeft: gutter / 2 + "px", paddingRight: gutter / 2 + "px" };
1310
+ });
1307
1311
  function handleExpandBtnChange() {
1308
1312
  isExpand.value = !isExpand.value;
1309
1313
  emits("expand", isExpand.value);
@@ -1316,7 +1320,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1316
1320
  }
1317
1321
  return (_ctx, _cache) => {
1318
1322
  const _component_a_button = resolveComponent("a-button");
1319
- return openBlock(), createElementBlock("div", _hoisted_1$1, [
1323
+ return openBlock(), createElementBlock("div", {
1324
+ class: "bm-search-filter-btn",
1325
+ style: normalizeStyle(unref(wrapperStyle))
1326
+ }, [
1320
1327
  props.showExpandBtn ? (openBlock(), createElementBlock("span", {
1321
1328
  key: 0,
1322
1329
  class: "bm-search-filter-expand",
@@ -1325,10 +1332,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1325
1332
  createTextVNode(toDisplayString(isExpand.value ? props.collapseText : props.expandText), 1),
1326
1333
  isExpand.value ? (openBlock(), createBlock(unref(UpOutlined$1), { key: 0 })) : (openBlock(), createBlock(unref(DownOutlined$1), { key: 1 }))
1327
1334
  ])) : createCommentVNode("v-if", true),
1328
- createElementVNode("span", _hoisted_2$1, [
1335
+ createElementVNode("span", _hoisted_1$1, [
1329
1336
  createVNode(_component_a_button, { onClick: handleReset }, {
1330
1337
  default: withCtx(() => [
1331
- _hoisted_3$1
1338
+ _hoisted_2$1
1332
1339
  ]),
1333
1340
  _: 1
1334
1341
  }),
@@ -1338,12 +1345,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1338
1345
  }, {
1339
1346
  default: withCtx(() => [
1340
1347
  props.showSearchIcon ? (openBlock(), createBlock(unref(SearchOutlined$1), { key: 0 })) : createCommentVNode("v-if", true),
1341
- _hoisted_4$1
1348
+ _hoisted_3$1
1342
1349
  ]),
1343
1350
  _: 1
1344
1351
  })
1345
1352
  ])
1346
- ]);
1353
+ ], 4);
1347
1354
  };
1348
1355
  }
1349
1356
  });
@@ -1882,7 +1889,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1882
1889
  showExpandBtn: props.showExpandBtn,
1883
1890
  showSearchIcon: props.showSearchIcon,
1884
1891
  expandText: props.expandText,
1885
- collapseText: props.collapseText
1892
+ collapseText: props.collapseText,
1893
+ gutter: props.gutter
1886
1894
  },
1887
1895
  on: {
1888
1896
  submit() {
@@ -20,6 +20,10 @@ export declare const searchResetBtnProps: {
20
20
  type: StringConstructor;
21
21
  default: string;
22
22
  };
23
+ gutter: {
24
+ type: PropType<number[]>;
25
+ default(): number[];
26
+ };
23
27
  };
24
28
  export declare const searchFilterProps: {
25
29
  showExpandBtn: {
@@ -42,6 +46,10 @@ export declare const searchFilterProps: {
42
46
  type: StringConstructor;
43
47
  default: string;
44
48
  };
49
+ gutter: {
50
+ type: PropType<number[]>;
51
+ default(): number[];
52
+ };
45
53
  userRule: {
46
54
  type: ArrayConstructor;
47
55
  default(): never[];
@@ -60,10 +68,6 @@ export declare const searchFilterProps: {
60
68
  type: ObjectConstructor;
61
69
  default(): {};
62
70
  };
63
- gutter: {
64
- type: ArrayConstructor;
65
- default(): number[];
66
- };
67
71
  fixedCount: {
68
72
  type: NumberConstructor;
69
73
  default: number;
@@ -19,6 +19,10 @@ declare const _default: import("vue").DefineComponent<{
19
19
  type: StringConstructor;
20
20
  default: string;
21
21
  };
22
+ gutter: {
23
+ type: import("vue").PropType<number[]>;
24
+ default(): number[];
25
+ };
22
26
  userRule: {
23
27
  type: ArrayConstructor;
24
28
  default(): never[];
@@ -37,10 +41,6 @@ declare const _default: import("vue").DefineComponent<{
37
41
  type: ObjectConstructor;
38
42
  default(): {};
39
43
  };
40
- gutter: {
41
- type: ArrayConstructor;
42
- default(): number[];
43
- };
44
44
  fixedCount: {
45
45
  type: NumberConstructor;
46
46
  default: number;
@@ -71,6 +71,10 @@ declare const _default: import("vue").DefineComponent<{
71
71
  type: StringConstructor;
72
72
  default: string;
73
73
  };
74
+ gutter: {
75
+ type: import("vue").PropType<number[]>;
76
+ default(): number[];
77
+ };
74
78
  userRule: {
75
79
  type: ArrayConstructor;
76
80
  default(): never[];
@@ -89,10 +93,6 @@ declare const _default: import("vue").DefineComponent<{
89
93
  type: ObjectConstructor;
90
94
  default(): {};
91
95
  };
92
- gutter: {
93
- type: ArrayConstructor;
94
- default(): number[];
95
- };
96
96
  fixedCount: {
97
97
  type: NumberConstructor;
98
98
  default: number;
@@ -116,6 +116,7 @@ declare const _default: import("vue").DefineComponent<{
116
116
  showSearchIcon: boolean;
117
117
  expandText: string;
118
118
  collapseText: string;
119
+ gutter: number[];
119
120
  };
120
121
  on: {
121
122
  submit: () => void;
@@ -129,7 +130,7 @@ declare const _default: import("vue").DefineComponent<{
129
130
  span: number;
130
131
  };
131
132
  row: {
132
- gutter: unknown[];
133
+ gutter: number[];
133
134
  };
134
135
  form: {
135
136
  labelCol: {
@@ -169,6 +170,10 @@ declare const _default: import("vue").DefineComponent<{
169
170
  type: StringConstructor;
170
171
  default: string;
171
172
  };
173
+ gutter: {
174
+ type: import("vue").PropType<number[]>;
175
+ default(): number[];
176
+ };
172
177
  userRule: {
173
178
  type: ArrayConstructor;
174
179
  default(): never[];
@@ -187,10 +192,6 @@ declare const _default: import("vue").DefineComponent<{
187
192
  type: ObjectConstructor;
188
193
  default(): {};
189
194
  };
190
- gutter: {
191
- type: ArrayConstructor;
192
- default(): number[];
193
- };
194
195
  fixedCount: {
195
196
  type: NumberConstructor;
196
197
  default: number;
@@ -211,10 +212,10 @@ declare const _default: import("vue").DefineComponent<{
211
212
  expandPlacement: "left" | "right";
212
213
  expandText: string;
213
214
  collapseText: string;
215
+ gutter: number[];
214
216
  userRule: unknown[];
215
217
  labelCol: Record<string, any>;
216
218
  ruleSpan: Record<string, any>;
217
- gutter: unknown[];
218
219
  fixedCount: number;
219
220
  fixedFields: string[];
220
221
  }>;
@@ -19,6 +19,10 @@ declare const _default: import("vue").DefineComponent<{
19
19
  type: StringConstructor;
20
20
  default: string;
21
21
  };
22
+ gutter: {
23
+ type: import("vue").PropType<number[]>;
24
+ default(): number[];
25
+ };
22
26
  }, {
23
27
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
24
28
  showExpandBtn: {
@@ -41,6 +45,10 @@ declare const _default: import("vue").DefineComponent<{
41
45
  type: StringConstructor;
42
46
  default: string;
43
47
  };
48
+ gutter: {
49
+ type: import("vue").PropType<number[]>;
50
+ default(): number[];
51
+ };
44
52
  }>> & {
45
53
  onReset?: ((...args: any[]) => any) | undefined;
46
54
  onSubmit?: ((...args: any[]) => any) | undefined;
@@ -48,6 +56,10 @@ declare const _default: import("vue").DefineComponent<{
48
56
  }>>;
49
57
  emits: (event: "submit" | "reset" | "expand", ...args: any[]) => void;
50
58
  isExpand: import("vue").Ref<boolean>;
59
+ wrapperStyle: import("vue").ComputedRef<{
60
+ paddingLeft: string;
61
+ paddingRight: string;
62
+ }>;
51
63
  handleExpandBtnChange: () => void;
52
64
  handleSubmit: () => void;
53
65
  handleReset: () => void;
@@ -75,6 +87,10 @@ declare const _default: import("vue").DefineComponent<{
75
87
  type: StringConstructor;
76
88
  default: string;
77
89
  };
90
+ gutter: {
91
+ type: import("vue").PropType<number[]>;
92
+ default(): number[];
93
+ };
78
94
  }>> & {
79
95
  onReset?: ((...args: any[]) => any) | undefined;
80
96
  onSubmit?: ((...args: any[]) => any) | undefined;
@@ -85,5 +101,6 @@ declare const _default: import("vue").DefineComponent<{
85
101
  expandPlacement: "left" | "right";
86
102
  expandText: string;
87
103
  collapseText: string;
104
+ gutter: number[];
88
105
  }>;
89
106
  export default _default;
@@ -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<{}>;
@@ -1372,6 +1372,8 @@ const _sfc_main = {
1372
1372
  ".JPEG",
1373
1373
  ".png",
1374
1374
  ".PNG",
1375
+ ".gif",
1376
+ ".GIF",
1375
1377
  ".rar",
1376
1378
  ".RAR",
1377
1379
  ".zip",
@@ -1519,7 +1521,21 @@ const _sfc_main = {
1519
1521
  state.onepViewImageHover[uid] = false;
1520
1522
  },
1521
1523
  viewOnePicture(item) {
1522
- if (["img", "image", "png", "PNG", "jpg", "JPG", "jpeg", "JPEG"].includes(item.type.toLowerCase())) {
1524
+ if ([
1525
+ "img",
1526
+ "image",
1527
+ "png",
1528
+ "PNG",
1529
+ "image/png",
1530
+ "jpg",
1531
+ "JPG",
1532
+ "jpeg",
1533
+ "JPEG",
1534
+ "image/jpeg",
1535
+ "gif",
1536
+ "GIF",
1537
+ "image/gif"
1538
+ ].includes(item.type.toLowerCase())) {
1523
1539
  state.previewVisible = true;
1524
1540
  state.onepViewImage = item;
1525
1541
  return;
@@ -1934,10 +1950,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1934
1950
  "image",
1935
1951
  "png",
1936
1952
  "PNG",
1953
+ "image/png",
1937
1954
  "jpg",
1938
1955
  "JPG",
1939
1956
  "jpeg",
1940
- "JPEG"
1957
+ "JPEG",
1958
+ "image/jpeg",
1959
+ "gif",
1960
+ "GIF",
1961
+ "image/gif"
1941
1962
  ].includes(_ctx.onepViewImage.type) ? (openBlock(), createElementBlock("img", {
1942
1963
  key: 0,
1943
1964
  style: { "width": "100%" },
package/index.esm.js CHANGED
@@ -3,7 +3,7 @@ var process = {
3
3
  NODE_ENV: 'production'
4
4
  }
5
5
  };
6
- import require$$1$1, { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot, resolveComponent, ref, onMounted, createElementBlock, Fragment, isVNode, Comment, Text, inject, computed, createVNode, reactive, provide, watch, Transition, onUnmounted, Teleport, TransitionGroup, render as render$9, h as h$2, nextTick, watchEffect, onBeforeMount, onUpdated, onBeforeUnmount, getCurrentInstance, withDirectives, vShow, resolveDynamicComponent, useSlots, createSlots, createElementVNode, createTextVNode, mergeProps as mergeProps$1, markRaw, toRef, createApp, toRefs, resolveDirective, toDisplayString, createCommentVNode, renderList, withModifiers, normalizeClass, normalizeStyle, readonly, toHandlers, normalizeProps, guardReactiveProps } from 'vue';
6
+ import require$$1$1, { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot, resolveComponent, ref, onMounted, createElementBlock, Fragment, isVNode, Comment, Text, inject, computed, createVNode, reactive, provide, watch, Transition, onUnmounted, Teleport, TransitionGroup, render as render$9, h as h$2, nextTick, watchEffect, onBeforeMount, onUpdated, onBeforeUnmount, getCurrentInstance, withDirectives, vShow, resolveDynamicComponent, useSlots, createSlots, createElementVNode, createTextVNode, mergeProps as mergeProps$1, markRaw, toRef, createApp, toRefs, resolveDirective, normalizeStyle, toDisplayString, createCommentVNode, renderList, withModifiers, normalizeClass, readonly, toHandlers, normalizeProps, guardReactiveProps } from 'vue';
7
7
 
8
8
  const withInstall$2 = (comp) => {
9
9
  comp.install = function (app) {
@@ -27424,6 +27424,12 @@ const searchResetBtnProps = {
27424
27424
  type: String,
27425
27425
  default: '收起',
27426
27426
  },
27427
+ gutter: {
27428
+ type: Array,
27429
+ default() {
27430
+ return [24, 16];
27431
+ },
27432
+ },
27427
27433
  };
27428
27434
  const searchFilterProps = Object.assign({ userRule: {
27429
27435
  type: Array,
@@ -27447,11 +27453,6 @@ const searchFilterProps = Object.assign({ userRule: {
27447
27453
  default() {
27448
27454
  return {};
27449
27455
  },
27450
- }, gutter: {
27451
- type: Array,
27452
- default() {
27453
- return [24, 16];
27454
- },
27455
27456
  }, fixedCount: {
27456
27457
  type: Number,
27457
27458
  default: 999999,
@@ -27462,16 +27463,19 @@ const searchFilterProps = Object.assign({ userRule: {
27462
27463
  },
27463
27464
  } }, searchResetBtnProps);
27464
27465
 
27465
- const _hoisted_1$a = { class: "bm-search-filter-btn" };
27466
- const _hoisted_2$8 = { class: "bm-search-filter-actions" };
27467
- const _hoisted_3$7 = /* @__PURE__ */ createTextVNode("\u91CD\u7F6E");
27468
- const _hoisted_4$7 = /* @__PURE__ */ createTextVNode("\u67E5\u8BE2");
27466
+ const _hoisted_1$a = { class: "bm-search-filter-actions" };
27467
+ const _hoisted_2$8 = /* @__PURE__ */ createTextVNode("\u91CD\u7F6E");
27468
+ const _hoisted_3$7 = /* @__PURE__ */ createTextVNode("\u67E5\u8BE2");
27469
27469
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
27470
27470
  props: searchResetBtnProps,
27471
27471
  emits: ["submit", "reset", "expand"],
27472
27472
  setup(__props, { emit: emits }) {
27473
27473
  const props = __props;
27474
27474
  const isExpand = ref(false);
27475
+ const wrapperStyle = computed(() => {
27476
+ let gutter = props.gutter?.[0] || 24;
27477
+ return { paddingLeft: gutter / 2 + "px", paddingRight: gutter / 2 + "px" };
27478
+ });
27475
27479
  function handleExpandBtnChange() {
27476
27480
  isExpand.value = !isExpand.value;
27477
27481
  emits("expand", isExpand.value);
@@ -27484,7 +27488,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
27484
27488
  }
27485
27489
  return (_ctx, _cache) => {
27486
27490
  const _component_a_button = resolveComponent("a-button");
27487
- return openBlock(), createElementBlock("div", _hoisted_1$a, [
27491
+ return openBlock(), createElementBlock("div", {
27492
+ class: "bm-search-filter-btn",
27493
+ style: normalizeStyle(unref(wrapperStyle))
27494
+ }, [
27488
27495
  props.showExpandBtn ? (openBlock(), createElementBlock("span", {
27489
27496
  key: 0,
27490
27497
  class: "bm-search-filter-expand",
@@ -27493,10 +27500,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
27493
27500
  createTextVNode(toDisplayString(isExpand.value ? props.collapseText : props.expandText), 1),
27494
27501
  isExpand.value ? (openBlock(), createBlock(unref(UpOutlined$1), { key: 0 })) : (openBlock(), createBlock(unref(DownOutlined$1), { key: 1 }))
27495
27502
  ])) : createCommentVNode("v-if", true),
27496
- createElementVNode("span", _hoisted_2$8, [
27503
+ createElementVNode("span", _hoisted_1$a, [
27497
27504
  createVNode(_component_a_button, { onClick: handleReset }, {
27498
27505
  default: withCtx(() => [
27499
- _hoisted_3$7
27506
+ _hoisted_2$8
27500
27507
  ]),
27501
27508
  _: 1
27502
27509
  }),
@@ -27506,12 +27513,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
27506
27513
  }, {
27507
27514
  default: withCtx(() => [
27508
27515
  props.showSearchIcon ? (openBlock(), createBlock(unref(SearchOutlined$4), { key: 0 })) : createCommentVNode("v-if", true),
27509
- _hoisted_4$7
27516
+ _hoisted_3$7
27510
27517
  ]),
27511
27518
  _: 1
27512
27519
  })
27513
27520
  ])
27514
- ]);
27521
+ ], 4);
27515
27522
  };
27516
27523
  }
27517
27524
  });
@@ -28049,7 +28056,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
28049
28056
  showExpandBtn: props.showExpandBtn,
28050
28057
  showSearchIcon: props.showSearchIcon,
28051
28058
  expandText: props.expandText,
28052
- collapseText: props.collapseText
28059
+ collapseText: props.collapseText,
28060
+ gutter: props.gutter
28053
28061
  },
28054
28062
  on: {
28055
28063
  submit() {
@@ -46100,6 +46108,8 @@ const _sfc_main$3 = {
46100
46108
  ".JPEG",
46101
46109
  ".png",
46102
46110
  ".PNG",
46111
+ ".gif",
46112
+ ".GIF",
46103
46113
  ".rar",
46104
46114
  ".RAR",
46105
46115
  ".zip",
@@ -46247,7 +46257,21 @@ const _sfc_main$3 = {
46247
46257
  state.onepViewImageHover[uid] = false;
46248
46258
  },
46249
46259
  viewOnePicture(item) {
46250
- if (["img", "image", "png", "PNG", "jpg", "JPG", "jpeg", "JPEG"].includes(item.type.toLowerCase())) {
46260
+ if ([
46261
+ "img",
46262
+ "image",
46263
+ "png",
46264
+ "PNG",
46265
+ "image/png",
46266
+ "jpg",
46267
+ "JPG",
46268
+ "jpeg",
46269
+ "JPEG",
46270
+ "image/jpeg",
46271
+ "gif",
46272
+ "GIF",
46273
+ "image/gif"
46274
+ ].includes(item.type.toLowerCase())) {
46251
46275
  state.previewVisible = true;
46252
46276
  state.onepViewImage = item;
46253
46277
  return;
@@ -46662,10 +46686,15 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
46662
46686
  "image",
46663
46687
  "png",
46664
46688
  "PNG",
46689
+ "image/png",
46665
46690
  "jpg",
46666
46691
  "JPG",
46667
46692
  "jpeg",
46668
- "JPEG"
46693
+ "JPEG",
46694
+ "image/jpeg",
46695
+ "gif",
46696
+ "GIF",
46697
+ "image/gif"
46669
46698
  ].includes(_ctx.onepViewImage.type) ? (openBlock(), createElementBlock("img", {
46670
46699
  key: 0,
46671
46700
  style: { "width": "100%" },