bm-admin-ui 1.0.25-alpha → 1.0.26-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.
@@ -1256,6 +1256,12 @@ const searchResetBtnProps = {
1256
1256
  type: String,
1257
1257
  default: '收起',
1258
1258
  },
1259
+ gutter: {
1260
+ type: Array,
1261
+ default() {
1262
+ return [24, 16];
1263
+ },
1264
+ },
1259
1265
  };
1260
1266
  const searchFilterProps = Object.assign({ userRule: {
1261
1267
  type: Array,
@@ -1279,11 +1285,6 @@ const searchFilterProps = Object.assign({ userRule: {
1279
1285
  default() {
1280
1286
  return {};
1281
1287
  },
1282
- }, gutter: {
1283
- type: Array,
1284
- default() {
1285
- return [24, 16];
1286
- },
1287
1288
  }, fixedCount: {
1288
1289
  type: Number,
1289
1290
  default: 999999,
@@ -1302,16 +1303,19 @@ var _export_sfc = (sfc, props) => {
1302
1303
  return target;
1303
1304
  };
1304
1305
 
1305
- const _hoisted_1$1 = { class: "bm-search-filter-btn" };
1306
- const _hoisted_2$1 = { class: "bm-search-filter-actions" };
1307
- const _hoisted_3$1 = /* @__PURE__ */ vue.createTextVNode("\u91CD\u7F6E");
1308
- const _hoisted_4$1 = /* @__PURE__ */ vue.createTextVNode("\u67E5\u8BE2");
1306
+ const _hoisted_1$1 = { class: "bm-search-filter-actions" };
1307
+ const _hoisted_2$1 = /* @__PURE__ */ vue.createTextVNode("\u91CD\u7F6E");
1308
+ const _hoisted_3$1 = /* @__PURE__ */ vue.createTextVNode("\u67E5\u8BE2");
1309
1309
  const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
1310
1310
  props: searchResetBtnProps,
1311
1311
  emits: ["submit", "reset", "expand"],
1312
1312
  setup(__props, { emit: emits }) {
1313
1313
  const props = __props;
1314
1314
  const isExpand = vue.ref(false);
1315
+ const wrapperStyle = vue.computed(() => {
1316
+ let gutter = props.gutter?.[0] || 24;
1317
+ return { paddingLeft: gutter / 2 + "px", paddingRight: gutter / 2 + "px" };
1318
+ });
1315
1319
  function handleExpandBtnChange() {
1316
1320
  isExpand.value = !isExpand.value;
1317
1321
  emits("expand", isExpand.value);
@@ -1324,7 +1328,10 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
1324
1328
  }
1325
1329
  return (_ctx, _cache) => {
1326
1330
  const _component_a_button = vue.resolveComponent("a-button");
1327
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
1331
+ return vue.openBlock(), vue.createElementBlock("div", {
1332
+ class: "bm-search-filter-btn",
1333
+ style: vue.normalizeStyle(vue.unref(wrapperStyle))
1334
+ }, [
1328
1335
  props.showExpandBtn ? (vue.openBlock(), vue.createElementBlock("span", {
1329
1336
  key: 0,
1330
1337
  class: "bm-search-filter-expand",
@@ -1333,10 +1340,10 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
1333
1340
  vue.createTextVNode(vue.toDisplayString(isExpand.value ? props.collapseText : props.expandText), 1),
1334
1341
  isExpand.value ? (vue.openBlock(), vue.createBlock(vue.unref(UpOutlined$1), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(DownOutlined$1), { key: 1 }))
1335
1342
  ])) : vue.createCommentVNode("v-if", true),
1336
- vue.createElementVNode("span", _hoisted_2$1, [
1343
+ vue.createElementVNode("span", _hoisted_1$1, [
1337
1344
  vue.createVNode(_component_a_button, { onClick: handleReset }, {
1338
1345
  default: vue.withCtx(() => [
1339
- _hoisted_3$1
1346
+ _hoisted_2$1
1340
1347
  ]),
1341
1348
  _: 1
1342
1349
  }),
@@ -1346,12 +1353,12 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
1346
1353
  }, {
1347
1354
  default: vue.withCtx(() => [
1348
1355
  props.showSearchIcon ? (vue.openBlock(), vue.createBlock(vue.unref(SearchOutlined$1), { key: 0 })) : vue.createCommentVNode("v-if", true),
1349
- _hoisted_4$1
1356
+ _hoisted_3$1
1350
1357
  ]),
1351
1358
  _: 1
1352
1359
  })
1353
1360
  ])
1354
- ]);
1361
+ ], 4);
1355
1362
  };
1356
1363
  }
1357
1364
  });
@@ -1890,7 +1897,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1890
1897
  showExpandBtn: props.showExpandBtn,
1891
1898
  showSearchIcon: props.showSearchIcon,
1892
1899
  expandText: props.expandText,
1893
- collapseText: props.collapseText
1900
+ collapseText: props.collapseText,
1901
+ gutter: props.gutter
1894
1902
  },
1895
1903
  on: {
1896
1904
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bm-admin-ui",
3
- "version": "1.0.25-alpha",
3
+ "version": "1.0.26-alpha",
4
4
  "private": false,
5
5
  "description": "An Admin Component Library for Bm",
6
6
  "license": "UNLICENSED",