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.
- package/es/components/search-filter/index.d.ts +15 -14
- package/es/components/search-filter/index.js +24 -16
- package/es/components/search-filter/src/search-filter.d.ts +8 -4
- package/es/components/search-filter/src/search-filter.vue.d.ts +15 -14
- package/es/components/search-filter/src/search-reset-btn.vue.d.ts +17 -0
- package/index.esm.js +24 -16
- package/index.js +23 -15
- package/lib/components/search-filter/index.d.ts +15 -14
- package/lib/components/search-filter/index.js +23 -15
- package/lib/components/search-filter/src/search-filter.d.ts +8 -4
- package/lib/components/search-filter/src/search-filter.vue.d.ts +15 -14
- package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +17 -0
- package/package.json +1 -1
- package/theme-chalk/feedback.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/search-filter.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/search-filter/index.d.ts +15 -14
- package/types/components/search-filter/src/search-filter.d.ts +8 -4
- package/types/components/search-filter/src/search-filter.vue.d.ts +15 -14
- package/types/components/search-filter/src/search-reset-btn.vue.d.ts +17 -0
|
@@ -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:
|
|
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,
|
|
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-
|
|
1298
|
-
const _hoisted_2$1 =
|
|
1299
|
-
const _hoisted_3$1 = /* @__PURE__ */ createTextVNode("\
|
|
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",
|
|
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",
|
|
1335
|
+
createElementVNode("span", _hoisted_1$1, [
|
|
1329
1336
|
createVNode(_component_a_button, { onClick: handleReset }, {
|
|
1330
1337
|
default: withCtx(() => [
|
|
1331
|
-
|
|
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
|
-
|
|
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:
|
|
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/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,
|
|
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-
|
|
27466
|
-
const _hoisted_2$8 =
|
|
27467
|
-
const _hoisted_3$7 = /* @__PURE__ */ createTextVNode("\
|
|
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",
|
|
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",
|
|
27503
|
+
createElementVNode("span", _hoisted_1$a, [
|
|
27497
27504
|
createVNode(_component_a_button, { onClick: handleReset }, {
|
|
27498
27505
|
default: withCtx(() => [
|
|
27499
|
-
|
|
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
|
-
|
|
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() {
|
package/index.js
CHANGED
|
@@ -27432,6 +27432,12 @@ var process = {
|
|
|
27432
27432
|
type: String,
|
|
27433
27433
|
default: '收起',
|
|
27434
27434
|
},
|
|
27435
|
+
gutter: {
|
|
27436
|
+
type: Array,
|
|
27437
|
+
default() {
|
|
27438
|
+
return [24, 16];
|
|
27439
|
+
},
|
|
27440
|
+
},
|
|
27435
27441
|
};
|
|
27436
27442
|
const searchFilterProps = Object.assign({ userRule: {
|
|
27437
27443
|
type: Array,
|
|
@@ -27455,11 +27461,6 @@ var process = {
|
|
|
27455
27461
|
default() {
|
|
27456
27462
|
return {};
|
|
27457
27463
|
},
|
|
27458
|
-
}, gutter: {
|
|
27459
|
-
type: Array,
|
|
27460
|
-
default() {
|
|
27461
|
-
return [24, 16];
|
|
27462
|
-
},
|
|
27463
27464
|
}, fixedCount: {
|
|
27464
27465
|
type: Number,
|
|
27465
27466
|
default: 999999,
|
|
@@ -27470,16 +27471,19 @@ var process = {
|
|
|
27470
27471
|
},
|
|
27471
27472
|
} }, searchResetBtnProps);
|
|
27472
27473
|
|
|
27473
|
-
const _hoisted_1$a = { class: "bm-search-filter-
|
|
27474
|
-
const _hoisted_2$8 =
|
|
27475
|
-
const _hoisted_3$7 = /* @__PURE__ */ require$$1$1.createTextVNode("\
|
|
27476
|
-
const _hoisted_4$7 = /* @__PURE__ */ require$$1$1.createTextVNode("\u67E5\u8BE2");
|
|
27474
|
+
const _hoisted_1$a = { class: "bm-search-filter-actions" };
|
|
27475
|
+
const _hoisted_2$8 = /* @__PURE__ */ require$$1$1.createTextVNode("\u91CD\u7F6E");
|
|
27476
|
+
const _hoisted_3$7 = /* @__PURE__ */ require$$1$1.createTextVNode("\u67E5\u8BE2");
|
|
27477
27477
|
const _sfc_main$d = /* @__PURE__ */ require$$1$1.defineComponent({
|
|
27478
27478
|
props: searchResetBtnProps,
|
|
27479
27479
|
emits: ["submit", "reset", "expand"],
|
|
27480
27480
|
setup(__props, { emit: emits }) {
|
|
27481
27481
|
const props = __props;
|
|
27482
27482
|
const isExpand = require$$1$1.ref(false);
|
|
27483
|
+
const wrapperStyle = require$$1$1.computed(() => {
|
|
27484
|
+
let gutter = props.gutter?.[0] || 24;
|
|
27485
|
+
return { paddingLeft: gutter / 2 + "px", paddingRight: gutter / 2 + "px" };
|
|
27486
|
+
});
|
|
27483
27487
|
function handleExpandBtnChange() {
|
|
27484
27488
|
isExpand.value = !isExpand.value;
|
|
27485
27489
|
emits("expand", isExpand.value);
|
|
@@ -27492,7 +27496,10 @@ var process = {
|
|
|
27492
27496
|
}
|
|
27493
27497
|
return (_ctx, _cache) => {
|
|
27494
27498
|
const _component_a_button = require$$1$1.resolveComponent("a-button");
|
|
27495
|
-
return require$$1$1.openBlock(), require$$1$1.createElementBlock("div",
|
|
27499
|
+
return require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
|
|
27500
|
+
class: "bm-search-filter-btn",
|
|
27501
|
+
style: require$$1$1.normalizeStyle(require$$1$1.unref(wrapperStyle))
|
|
27502
|
+
}, [
|
|
27496
27503
|
props.showExpandBtn ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("span", {
|
|
27497
27504
|
key: 0,
|
|
27498
27505
|
class: "bm-search-filter-expand",
|
|
@@ -27501,10 +27508,10 @@ var process = {
|
|
|
27501
27508
|
require$$1$1.createTextVNode(require$$1$1.toDisplayString(isExpand.value ? props.collapseText : props.expandText), 1),
|
|
27502
27509
|
isExpand.value ? (require$$1$1.openBlock(), require$$1$1.createBlock(require$$1$1.unref(UpOutlined$1), { key: 0 })) : (require$$1$1.openBlock(), require$$1$1.createBlock(require$$1$1.unref(DownOutlined$1), { key: 1 }))
|
|
27503
27510
|
])) : require$$1$1.createCommentVNode("v-if", true),
|
|
27504
|
-
require$$1$1.createElementVNode("span",
|
|
27511
|
+
require$$1$1.createElementVNode("span", _hoisted_1$a, [
|
|
27505
27512
|
require$$1$1.createVNode(_component_a_button, { onClick: handleReset }, {
|
|
27506
27513
|
default: require$$1$1.withCtx(() => [
|
|
27507
|
-
|
|
27514
|
+
_hoisted_2$8
|
|
27508
27515
|
]),
|
|
27509
27516
|
_: 1
|
|
27510
27517
|
}),
|
|
@@ -27514,12 +27521,12 @@ var process = {
|
|
|
27514
27521
|
}, {
|
|
27515
27522
|
default: require$$1$1.withCtx(() => [
|
|
27516
27523
|
props.showSearchIcon ? (require$$1$1.openBlock(), require$$1$1.createBlock(require$$1$1.unref(SearchOutlined$4), { key: 0 })) : require$$1$1.createCommentVNode("v-if", true),
|
|
27517
|
-
|
|
27524
|
+
_hoisted_3$7
|
|
27518
27525
|
]),
|
|
27519
27526
|
_: 1
|
|
27520
27527
|
})
|
|
27521
27528
|
])
|
|
27522
|
-
]);
|
|
27529
|
+
], 4);
|
|
27523
27530
|
};
|
|
27524
27531
|
}
|
|
27525
27532
|
});
|
|
@@ -28057,7 +28064,8 @@ var process = {
|
|
|
28057
28064
|
showExpandBtn: props.showExpandBtn,
|
|
28058
28065
|
showSearchIcon: props.showSearchIcon,
|
|
28059
28066
|
expandText: props.expandText,
|
|
28060
|
-
collapseText: props.collapseText
|
|
28067
|
+
collapseText: props.collapseText,
|
|
28068
|
+
gutter: props.gutter
|
|
28061
28069
|
},
|
|
28062
28070
|
on: {
|
|
28063
28071
|
submit() {
|
|
@@ -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:
|
|
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
|
}>>;
|