bm-admin-ui 1.0.19-alpha → 1.0.21-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/button/index.d.ts +3 -3
- package/es/components/button/src/button.vue.d.ts +3 -3
- package/es/components/feedback/index.d.ts +4 -4
- package/es/components/feedback/src/bmAlert.vue.d.ts +2 -2
- package/es/components/feedback/src/bmModal.vue.d.ts +2 -2
- package/es/components/float-table/index.js +1 -1
- package/es/components/input-tags-display/index.d.ts +42 -1
- package/es/components/input-tags-display/index.js +57 -22
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +42 -1
- package/es/components/search-filter/index.d.ts +40 -16
- package/es/components/search-filter/index.js +18 -6
- package/es/components/search-filter/src/search-filter.d.ts +24 -4
- package/es/components/search-filter/src/search-filter.vue.d.ts +40 -16
- package/es/components/search-filter/src/search-reset-btn.vue.d.ts +39 -0
- package/es/components/staffs-selector/index.d.ts +1 -1
- package/es/components/staffs-selector/index.js +1 -1
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -1
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +1 -1
- package/es/components/upload/index.d.ts +1 -0
- package/es/components/upload/index.js +52 -22
- package/es/components/upload/src/upload.vue.d.ts +1 -0
- package/index.esm.js +222 -145
- package/index.js +221 -144
- package/lib/components/button/index.d.ts +3 -3
- package/lib/components/button/src/button.vue.d.ts +3 -3
- package/lib/components/feedback/index.d.ts +4 -4
- package/lib/components/feedback/src/bmAlert.vue.d.ts +2 -2
- package/lib/components/feedback/src/bmModal.vue.d.ts +2 -2
- package/lib/components/float-table/index.js +1 -1
- package/lib/components/input-tags-display/index.d.ts +42 -1
- package/lib/components/input-tags-display/index.js +57 -22
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +42 -1
- package/lib/components/search-filter/index.d.ts +40 -16
- package/lib/components/search-filter/index.js +18 -6
- package/lib/components/search-filter/src/search-filter.d.ts +24 -4
- package/lib/components/search-filter/src/search-filter.vue.d.ts +40 -16
- package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +39 -0
- package/lib/components/staffs-selector/index.d.ts +1 -1
- package/lib/components/staffs-selector/index.js +1 -1
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -1
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +1 -1
- package/lib/components/upload/index.d.ts +1 -0
- package/lib/components/upload/index.js +52 -22
- package/lib/components/upload/src/upload.vue.d.ts +1 -0
- package/package.json +1 -1
- package/theme-chalk/feedback.css +1 -1
- package/theme-chalk/float-table.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/button/index.d.ts +3 -3
- package/types/components/button/src/button.vue.d.ts +3 -3
- package/types/components/feedback/index.d.ts +4 -4
- package/types/components/feedback/src/bmAlert.vue.d.ts +2 -2
- package/types/components/feedback/src/bmModal.vue.d.ts +2 -2
- package/types/components/input-tags-display/index.d.ts +42 -1
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +42 -1
- package/types/components/search-filter/index.d.ts +40 -16
- package/types/components/search-filter/src/search-filter.d.ts +24 -4
- package/types/components/search-filter/src/search-filter.vue.d.ts +40 -16
- package/types/components/search-filter/src/search-reset-btn.vue.d.ts +39 -0
- package/types/components/staffs-selector/index.d.ts +1 -1
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -1
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +1 -1
- package/types/components/upload/index.d.ts +1 -0
- package/types/components/upload/src/upload.vue.d.ts +1 -0
|
@@ -141,7 +141,7 @@ declare const BmButton: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
141
141
|
onMousedown: {
|
|
142
142
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
143
143
|
};
|
|
144
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
144
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
145
145
|
block: boolean;
|
|
146
146
|
disabled: boolean;
|
|
147
147
|
loading: boolean | {
|
|
@@ -268,7 +268,7 @@ declare const BmButton: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
268
268
|
onMousedown: {
|
|
269
269
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
270
270
|
};
|
|
271
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
271
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
272
272
|
block: boolean;
|
|
273
273
|
disabled: boolean;
|
|
274
274
|
loading: boolean | {
|
|
@@ -283,7 +283,7 @@ declare const BmButton: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
283
283
|
size: {
|
|
284
284
|
type: import("vue").PropType<import("ant-design-vue/lib/button").ButtonSize>;
|
|
285
285
|
};
|
|
286
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
286
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
287
287
|
prefixCls: StringConstructor;
|
|
288
288
|
size: {
|
|
289
289
|
type: import("vue").PropType<import("ant-design-vue/lib/button").ButtonSize>;
|
|
@@ -143,7 +143,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
143
143
|
onMousedown: {
|
|
144
144
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
145
145
|
};
|
|
146
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
146
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
147
147
|
block: boolean;
|
|
148
148
|
disabled: boolean;
|
|
149
149
|
loading: boolean | {
|
|
@@ -270,7 +270,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
270
270
|
onMousedown: {
|
|
271
271
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
272
272
|
};
|
|
273
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
273
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
274
274
|
block: boolean;
|
|
275
275
|
disabled: boolean;
|
|
276
276
|
loading: boolean | {
|
|
@@ -285,7 +285,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
285
285
|
size: {
|
|
286
286
|
type: import("vue").PropType<SizeType>;
|
|
287
287
|
};
|
|
288
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
288
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
289
289
|
prefixCls: StringConstructor;
|
|
290
290
|
size: {
|
|
291
291
|
type: import("vue").PropType<SizeType>;
|
|
@@ -417,7 +417,7 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
417
417
|
modalRender: import("vue").PropType<(arg: {
|
|
418
418
|
originVNode: import("ant-design-vue/lib/_util/type").VueNode;
|
|
419
419
|
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
420
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
420
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
421
421
|
visible: boolean;
|
|
422
422
|
mask: boolean;
|
|
423
423
|
forceRender: boolean;
|
|
@@ -797,7 +797,7 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
797
797
|
modalRender: import("vue").PropType<(arg: {
|
|
798
798
|
originVNode: import("ant-design-vue/lib/_util/type").VueNode;
|
|
799
799
|
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
800
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
800
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
801
801
|
visible: boolean;
|
|
802
802
|
mask: boolean;
|
|
803
803
|
forceRender: boolean;
|
|
@@ -939,7 +939,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
939
939
|
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
940
940
|
closeIcon: import("vue-types").VueTypeValidableDef<any>;
|
|
941
941
|
onClose: import("vue").PropType<import("ant-design-vue/lib/vc-tree/contextTypes").NodeMouseEventHandler>;
|
|
942
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
942
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
943
943
|
showIcon: boolean;
|
|
944
944
|
closable: boolean;
|
|
945
945
|
banner: boolean;
|
|
@@ -1011,7 +1011,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
1011
1011
|
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
1012
1012
|
closeIcon: import("vue-types").VueTypeValidableDef<any>;
|
|
1013
1013
|
onClose: import("vue").PropType<import("ant-design-vue/lib/vc-tree/contextTypes").NodeMouseEventHandler>;
|
|
1014
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
1014
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
1015
1015
|
showIcon: boolean;
|
|
1016
1016
|
closable: boolean;
|
|
1017
1017
|
banner: boolean;
|
|
@@ -95,7 +95,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
95
|
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
96
96
|
closeIcon: import("vue-types").VueTypeValidableDef<any>;
|
|
97
97
|
onClose: import("vue").PropType<import("ant-design-vue/lib/vc-tree/contextTypes").NodeMouseEventHandler>;
|
|
98
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
98
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
99
99
|
showIcon: boolean;
|
|
100
100
|
closable: boolean;
|
|
101
101
|
banner: boolean;
|
|
@@ -167,7 +167,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
167
167
|
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
168
168
|
closeIcon: import("vue-types").VueTypeValidableDef<any>;
|
|
169
169
|
onClose: import("vue").PropType<import("ant-design-vue/lib/vc-tree/contextTypes").NodeMouseEventHandler>;
|
|
170
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
170
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
171
171
|
showIcon: boolean;
|
|
172
172
|
closable: boolean;
|
|
173
173
|
banner: boolean;
|
|
@@ -411,7 +411,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
411
411
|
modalRender: import("vue").PropType<(arg: {
|
|
412
412
|
originVNode: import("ant-design-vue/lib/_util/type").VueNode;
|
|
413
413
|
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
414
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
414
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
415
415
|
visible: boolean;
|
|
416
416
|
mask: boolean;
|
|
417
417
|
forceRender: boolean;
|
|
@@ -791,7 +791,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
791
791
|
modalRender: import("vue").PropType<(arg: {
|
|
792
792
|
originVNode: import("ant-design-vue/lib/_util/type").VueNode;
|
|
793
793
|
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
794
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
794
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
795
795
|
visible: boolean;
|
|
796
796
|
mask: boolean;
|
|
797
797
|
forceRender: boolean;
|
|
@@ -17,6 +17,10 @@ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWith
|
|
|
17
17
|
type: BooleanConstructor;
|
|
18
18
|
default: boolean;
|
|
19
19
|
};
|
|
20
|
+
unitStr: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
20
24
|
btnText: {
|
|
21
25
|
type: StringConstructor;
|
|
22
26
|
default: string;
|
|
@@ -25,11 +29,33 @@ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWith
|
|
|
25
29
|
type: StringConstructor;
|
|
26
30
|
default: string;
|
|
27
31
|
};
|
|
32
|
+
toolTipProps: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
default: () => {};
|
|
35
|
+
};
|
|
36
|
+
alwaysInvoke: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
28
40
|
}, {
|
|
29
41
|
containId: string;
|
|
30
42
|
clear: () => void;
|
|
31
43
|
toAddTags: () => void;
|
|
32
|
-
|
|
44
|
+
tooltipConfig: import("vue").Ref<{
|
|
45
|
+
align: undefined;
|
|
46
|
+
arrowPointAtCenter: boolean;
|
|
47
|
+
autoAdjustOverflow: boolean;
|
|
48
|
+
color: string;
|
|
49
|
+
defaultVisible: boolean;
|
|
50
|
+
destroyTooltipOnHide: boolean;
|
|
51
|
+
getPopupContainer: () => HTMLElement;
|
|
52
|
+
mouseEnterDelay: number;
|
|
53
|
+
mouseLeaveDelay: number;
|
|
54
|
+
overlayClassName: string;
|
|
55
|
+
overlayStyle: null;
|
|
56
|
+
placement: string;
|
|
57
|
+
trigger: string;
|
|
58
|
+
}>;
|
|
33
59
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:list" | "addClick")[], "clear" | "update:list" | "addClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
60
|
list: {
|
|
35
61
|
type: ArrayConstructor;
|
|
@@ -49,6 +75,10 @@ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWith
|
|
|
49
75
|
type: BooleanConstructor;
|
|
50
76
|
default: boolean;
|
|
51
77
|
};
|
|
78
|
+
unitStr: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
52
82
|
btnText: {
|
|
53
83
|
type: StringConstructor;
|
|
54
84
|
default: string;
|
|
@@ -57,6 +87,14 @@ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWith
|
|
|
57
87
|
type: StringConstructor;
|
|
58
88
|
default: string;
|
|
59
89
|
};
|
|
90
|
+
toolTipProps: {
|
|
91
|
+
type: ObjectConstructor;
|
|
92
|
+
default: () => {};
|
|
93
|
+
};
|
|
94
|
+
alwaysInvoke: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
60
98
|
}>> & {
|
|
61
99
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
62
100
|
"onUpdate:list"?: ((...args: any[]) => any) | undefined;
|
|
@@ -66,7 +104,10 @@ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWith
|
|
|
66
104
|
list: unknown[];
|
|
67
105
|
showEmpty: boolean;
|
|
68
106
|
showEmptyBtn: boolean;
|
|
107
|
+
unitStr: string;
|
|
69
108
|
btnText: string;
|
|
109
|
+
toolTipProps: Record<string, any>;
|
|
110
|
+
alwaysInvoke: boolean;
|
|
70
111
|
}>>;
|
|
71
112
|
export { BmTagsDisplay };
|
|
72
113
|
export default BmTagsDisplay;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var withInstall = require('bm-admin-ui/lib/utils/with-install');
|
|
6
|
+
var vue = require('vue');
|
|
6
7
|
var ToolTip = require('ant-design-vue/lib/tooltip');
|
|
7
8
|
var Button = require('ant-design-vue/lib/button');
|
|
8
|
-
var vue = require('vue');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
@@ -1163,6 +1163,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
1163
1163
|
type: Boolean,
|
|
1164
1164
|
default: true
|
|
1165
1165
|
},
|
|
1166
|
+
unitStr: {
|
|
1167
|
+
type: String,
|
|
1168
|
+
default: "\u9879"
|
|
1169
|
+
},
|
|
1166
1170
|
btnText: {
|
|
1167
1171
|
type: String,
|
|
1168
1172
|
default: "\u6DFB\u52A0"
|
|
@@ -1170,6 +1174,16 @@ const _sfc_main = vue.defineComponent({
|
|
|
1170
1174
|
placement: {
|
|
1171
1175
|
type: String,
|
|
1172
1176
|
default: "bottom"
|
|
1177
|
+
},
|
|
1178
|
+
toolTipProps: {
|
|
1179
|
+
type: Object,
|
|
1180
|
+
default: () => {
|
|
1181
|
+
return {};
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
alwaysInvoke: {
|
|
1185
|
+
type: Boolean,
|
|
1186
|
+
default: true
|
|
1173
1187
|
}
|
|
1174
1188
|
},
|
|
1175
1189
|
emits: ["clear", "update:list", "addClick"],
|
|
@@ -1186,13 +1200,38 @@ const _sfc_main = vue.defineComponent({
|
|
|
1186
1200
|
}
|
|
1187
1201
|
}
|
|
1188
1202
|
function toAddTags() {
|
|
1189
|
-
|
|
1203
|
+
if (!props.list.length || props.alwaysInvoke)
|
|
1204
|
+
emit("addClick");
|
|
1190
1205
|
}
|
|
1206
|
+
const tooltipConfig = vue.ref({
|
|
1207
|
+
align: void 0,
|
|
1208
|
+
arrowPointAtCenter: false,
|
|
1209
|
+
autoAdjustOverflow: true,
|
|
1210
|
+
color: "#fff",
|
|
1211
|
+
defaultVisible: false,
|
|
1212
|
+
destroyTooltipOnHide: false,
|
|
1213
|
+
getPopupContainer,
|
|
1214
|
+
mouseEnterDelay: 0.1,
|
|
1215
|
+
mouseLeaveDelay: 0.1,
|
|
1216
|
+
overlayClassName: "__list-filter-popover",
|
|
1217
|
+
overlayStyle: null,
|
|
1218
|
+
placement: props.placement,
|
|
1219
|
+
trigger: "hover"
|
|
1220
|
+
});
|
|
1221
|
+
vue.watch(() => props.toolTipProps, (tooltipprop) => {
|
|
1222
|
+
tooltipConfig.value = {
|
|
1223
|
+
...tooltipConfig.value,
|
|
1224
|
+
...tooltipprop
|
|
1225
|
+
};
|
|
1226
|
+
}, {
|
|
1227
|
+
immediate: true,
|
|
1228
|
+
deep: true
|
|
1229
|
+
});
|
|
1191
1230
|
return {
|
|
1192
1231
|
containId,
|
|
1193
1232
|
clear,
|
|
1194
1233
|
toAddTags,
|
|
1195
|
-
|
|
1234
|
+
tooltipConfig
|
|
1196
1235
|
};
|
|
1197
1236
|
}
|
|
1198
1237
|
});
|
|
@@ -1201,11 +1240,9 @@ const _hoisted_2 = ["id"];
|
|
|
1201
1240
|
const _hoisted_3 = { class: "pop-seleted" };
|
|
1202
1241
|
const _hoisted_4 = { class: "pop-seleted-title" };
|
|
1203
1242
|
const _hoisted_5 = /* @__PURE__ */ vue.createTextVNode(" \u5DF2\u9009\u62E9");
|
|
1204
|
-
const _hoisted_6 =
|
|
1205
|
-
const _hoisted_7 = {
|
|
1206
|
-
const _hoisted_8 =
|
|
1207
|
-
const _hoisted_9 = { key: 2 };
|
|
1208
|
-
const _hoisted_10 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
|
|
1243
|
+
const _hoisted_6 = { key: 1 };
|
|
1244
|
+
const _hoisted_7 = { key: 2 };
|
|
1245
|
+
const _hoisted_8 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
|
|
1209
1246
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1210
1247
|
const _component_a_tag = vue.resolveComponent("a-tag");
|
|
1211
1248
|
const _component_CloseCircleFilled = vue.resolveComponent("CloseCircleFilled");
|
|
@@ -1217,18 +1254,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1217
1254
|
id: _ctx.containId,
|
|
1218
1255
|
class: "bm-tags-display-wrapper"
|
|
1219
1256
|
}, [
|
|
1220
|
-
vue.createVNode(_component_ToolTip, {
|
|
1221
|
-
color: "#fff",
|
|
1222
|
-
"get-popup-container": _ctx.getPopupContainer,
|
|
1223
|
-
placement: _ctx.placement,
|
|
1224
|
-
"overlay-class-name": "__list-filter-popover"
|
|
1225
|
-
}, {
|
|
1257
|
+
vue.createVNode(_component_ToolTip, vue.normalizeProps(vue.guardReactiveProps(_ctx.tooltipConfig)), {
|
|
1226
1258
|
title: vue.withCtx(() => [
|
|
1227
1259
|
vue.createElementVNode("div", _hoisted_3, [
|
|
1228
1260
|
vue.createElementVNode("div", _hoisted_4, [
|
|
1229
1261
|
_hoisted_5,
|
|
1230
1262
|
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.list.length), 1),
|
|
1231
|
-
|
|
1263
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.unitStr), 1)
|
|
1232
1264
|
])
|
|
1233
1265
|
]),
|
|
1234
1266
|
vue.createElementVNode("div", {
|
|
@@ -1250,7 +1282,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1250
1282
|
], 32)
|
|
1251
1283
|
]),
|
|
1252
1284
|
default: vue.withCtx(() => [
|
|
1253
|
-
vue.createElementVNode("div",
|
|
1285
|
+
vue.createElementVNode("div", {
|
|
1286
|
+
class: "select-input-wrapper",
|
|
1287
|
+
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.toAddTags && _ctx.toAddTags(...args))
|
|
1288
|
+
}, [
|
|
1254
1289
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.list, (item) => {
|
|
1255
1290
|
return vue.openBlock(), vue.createBlock(_component_a_tag, {
|
|
1256
1291
|
key: item.key
|
|
@@ -1274,9 +1309,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1274
1309
|
])
|
|
1275
1310
|
]),
|
|
1276
1311
|
_: 1
|
|
1277
|
-
},
|
|
1312
|
+
}, 16)
|
|
1278
1313
|
], 8, _hoisted_2)) : vue.createCommentVNode("v-if", true),
|
|
1279
|
-
_ctx.showEmptyBtn && !_ctx.list.length ? (vue.openBlock(), vue.createElementBlock("div",
|
|
1314
|
+
_ctx.showEmptyBtn && !_ctx.list.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
|
|
1280
1315
|
vue.createVNode(_component_Button, {
|
|
1281
1316
|
onClick: vue.withModifiers(_ctx.toAddTags, ["stop"])
|
|
1282
1317
|
}, {
|
|
@@ -1286,13 +1321,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1286
1321
|
_: 1
|
|
1287
1322
|
}, 8, ["onClick"])
|
|
1288
1323
|
])) : vue.createCommentVNode("v-if", true),
|
|
1289
|
-
_ctx.showEmpty && !_ctx.list.length ? (vue.openBlock(), vue.createElementBlock("div",
|
|
1324
|
+
_ctx.showEmpty && !_ctx.list.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
1290
1325
|
vue.createElementVNode("div", {
|
|
1291
1326
|
class: "selector-empty-input",
|
|
1292
|
-
onClick: _cache[
|
|
1293
|
-
}, "\xA0\xA0" + vue.toDisplayString(_ctx.placeholder), 1)
|
|
1327
|
+
onClick: _cache[5] || (_cache[5] = vue.withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
|
|
1328
|
+
}, " \xA0\xA0" + vue.toDisplayString(_ctx.placeholder), 1)
|
|
1294
1329
|
])) : vue.createCommentVNode("v-if", true),
|
|
1295
|
-
|
|
1330
|
+
_hoisted_8
|
|
1296
1331
|
]);
|
|
1297
1332
|
}
|
|
1298
1333
|
var InputTagsDisplay = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "input-tags-display.vue"]]);
|
|
@@ -18,6 +18,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
type: BooleanConstructor;
|
|
19
19
|
default: boolean;
|
|
20
20
|
};
|
|
21
|
+
unitStr: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
21
25
|
btnText: {
|
|
22
26
|
type: StringConstructor;
|
|
23
27
|
default: string;
|
|
@@ -26,11 +30,33 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
30
|
type: StringConstructor;
|
|
27
31
|
default: string;
|
|
28
32
|
};
|
|
33
|
+
toolTipProps: {
|
|
34
|
+
type: ObjectConstructor;
|
|
35
|
+
default: () => {};
|
|
36
|
+
};
|
|
37
|
+
alwaysInvoke: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
29
41
|
}, {
|
|
30
42
|
containId: string;
|
|
31
43
|
clear: () => void;
|
|
32
44
|
toAddTags: () => void;
|
|
33
|
-
|
|
45
|
+
tooltipConfig: import("vue").Ref<{
|
|
46
|
+
align: undefined;
|
|
47
|
+
arrowPointAtCenter: boolean;
|
|
48
|
+
autoAdjustOverflow: boolean;
|
|
49
|
+
color: string;
|
|
50
|
+
defaultVisible: boolean;
|
|
51
|
+
destroyTooltipOnHide: boolean;
|
|
52
|
+
getPopupContainer: () => HTMLElement;
|
|
53
|
+
mouseEnterDelay: number;
|
|
54
|
+
mouseLeaveDelay: number;
|
|
55
|
+
overlayClassName: string;
|
|
56
|
+
overlayStyle: null;
|
|
57
|
+
placement: string;
|
|
58
|
+
trigger: string;
|
|
59
|
+
}>;
|
|
34
60
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:list" | "addClick")[], "clear" | "update:list" | "addClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
61
|
list: {
|
|
36
62
|
type: ArrayConstructor;
|
|
@@ -47,6 +73,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
73
|
type: BooleanConstructor;
|
|
48
74
|
default: boolean;
|
|
49
75
|
};
|
|
76
|
+
unitStr: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
50
80
|
btnText: {
|
|
51
81
|
type: StringConstructor;
|
|
52
82
|
default: string;
|
|
@@ -55,6 +85,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
85
|
type: StringConstructor;
|
|
56
86
|
default: string;
|
|
57
87
|
};
|
|
88
|
+
toolTipProps: {
|
|
89
|
+
type: ObjectConstructor;
|
|
90
|
+
default: () => {};
|
|
91
|
+
};
|
|
92
|
+
alwaysInvoke: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
58
96
|
}>> & {
|
|
59
97
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
60
98
|
"onUpdate:list"?: ((...args: any[]) => any) | undefined;
|
|
@@ -64,6 +102,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
64
102
|
list: unknown[];
|
|
65
103
|
showEmpty: boolean;
|
|
66
104
|
showEmptyBtn: boolean;
|
|
105
|
+
unitStr: string;
|
|
67
106
|
btnText: string;
|
|
107
|
+
toolTipProps: Record<string, any>;
|
|
108
|
+
alwaysInvoke: boolean;
|
|
68
109
|
}>;
|
|
69
110
|
export default _default;
|
|
@@ -7,6 +7,18 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
7
7
|
type: BooleanConstructor;
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
|
+
expandPlacement: {
|
|
11
|
+
type: import("vue").PropType<"left" | "right">;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
expandText: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
collapseText: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
10
22
|
userRule: {
|
|
11
23
|
type: ArrayConstructor;
|
|
12
24
|
default(): never[];
|
|
@@ -37,10 +49,6 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
37
49
|
type: import("vue").PropType<string[]>;
|
|
38
50
|
default(): never[];
|
|
39
51
|
};
|
|
40
|
-
expandPlacement: {
|
|
41
|
-
type: import("vue").PropType<"left" | "right">;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
52
|
}, {
|
|
45
53
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
46
54
|
showExpandBtn: {
|
|
@@ -51,6 +59,18 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
51
59
|
type: BooleanConstructor;
|
|
52
60
|
default: boolean;
|
|
53
61
|
};
|
|
62
|
+
expandPlacement: {
|
|
63
|
+
type: import("vue").PropType<"left" | "right">;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
expandText: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
collapseText: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
54
74
|
userRule: {
|
|
55
75
|
type: ArrayConstructor;
|
|
56
76
|
default(): never[];
|
|
@@ -81,10 +101,6 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
81
101
|
type: import("vue").PropType<string[]>;
|
|
82
102
|
default(): never[];
|
|
83
103
|
};
|
|
84
|
-
expandPlacement: {
|
|
85
|
-
type: import("vue").PropType<"left" | "right">;
|
|
86
|
-
default: string;
|
|
87
|
-
};
|
|
88
104
|
}>> & {
|
|
89
105
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
90
106
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
@@ -114,9 +130,7 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
114
130
|
gutter: unknown[];
|
|
115
131
|
};
|
|
116
132
|
form: {
|
|
117
|
-
labelCol:
|
|
118
|
-
[x: string]: any;
|
|
119
|
-
};
|
|
133
|
+
labelCol: Record<string, any>;
|
|
120
134
|
labelAlign: string;
|
|
121
135
|
wrapperCol: {
|
|
122
136
|
span: number;
|
|
@@ -139,6 +153,18 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
139
153
|
type: BooleanConstructor;
|
|
140
154
|
default: boolean;
|
|
141
155
|
};
|
|
156
|
+
expandPlacement: {
|
|
157
|
+
type: import("vue").PropType<"left" | "right">;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
expandText: {
|
|
161
|
+
type: StringConstructor;
|
|
162
|
+
default: string;
|
|
163
|
+
};
|
|
164
|
+
collapseText: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
142
168
|
userRule: {
|
|
143
169
|
type: ArrayConstructor;
|
|
144
170
|
default(): never[];
|
|
@@ -169,10 +195,6 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
169
195
|
type: import("vue").PropType<string[]>;
|
|
170
196
|
default(): never[];
|
|
171
197
|
};
|
|
172
|
-
expandPlacement: {
|
|
173
|
-
type: import("vue").PropType<"left" | "right">;
|
|
174
|
-
default: string;
|
|
175
|
-
};
|
|
176
198
|
}>> & {
|
|
177
199
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
178
200
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
@@ -182,13 +204,15 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
182
204
|
value: Record<string, any>;
|
|
183
205
|
showExpandBtn: boolean;
|
|
184
206
|
showSearchIcon: boolean;
|
|
207
|
+
expandPlacement: "left" | "right";
|
|
208
|
+
expandText: string;
|
|
209
|
+
collapseText: string;
|
|
185
210
|
userRule: unknown[];
|
|
186
211
|
labelCol: Record<string, any>;
|
|
187
212
|
ruleSpan: Record<string, any>;
|
|
188
213
|
gutter: unknown[];
|
|
189
214
|
fixedCount: number;
|
|
190
215
|
fixedFields: string[];
|
|
191
|
-
expandPlacement: "left" | "right";
|
|
192
216
|
}>>;
|
|
193
217
|
export { BmSearchFilter };
|
|
194
218
|
export default BmSearchFilter;
|
|
@@ -1244,6 +1244,18 @@ const searchResetBtnProps = {
|
|
|
1244
1244
|
type: Boolean,
|
|
1245
1245
|
default: false,
|
|
1246
1246
|
},
|
|
1247
|
+
expandPlacement: {
|
|
1248
|
+
type: String,
|
|
1249
|
+
default: 'left',
|
|
1250
|
+
},
|
|
1251
|
+
expandText: {
|
|
1252
|
+
type: String,
|
|
1253
|
+
default: '展开',
|
|
1254
|
+
},
|
|
1255
|
+
collapseText: {
|
|
1256
|
+
type: String,
|
|
1257
|
+
default: '收起',
|
|
1258
|
+
},
|
|
1247
1259
|
};
|
|
1248
1260
|
const searchFilterProps = Object.assign({ userRule: {
|
|
1249
1261
|
type: Array,
|
|
@@ -1280,9 +1292,6 @@ const searchFilterProps = Object.assign({ userRule: {
|
|
|
1280
1292
|
default() {
|
|
1281
1293
|
return [];
|
|
1282
1294
|
},
|
|
1283
|
-
}, expandPlacement: {
|
|
1284
|
-
type: String,
|
|
1285
|
-
default: 'left',
|
|
1286
1295
|
} }, searchResetBtnProps);
|
|
1287
1296
|
|
|
1288
1297
|
var _export_sfc = (sfc, props) => {
|
|
@@ -1298,6 +1307,7 @@ const _hoisted_2$1 = { class: "bm-search-filter-actions" };
|
|
|
1298
1307
|
const _hoisted_3$1 = /* @__PURE__ */ vue.createTextVNode("\u91CD\u7F6E");
|
|
1299
1308
|
const _hoisted_4$1 = /* @__PURE__ */ vue.createTextVNode("\u67E5\u8BE2");
|
|
1300
1309
|
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
1310
|
+
name: "search-reset-btn",
|
|
1301
1311
|
props: searchResetBtnProps,
|
|
1302
1312
|
emits: ["submit", "reset", "expand"],
|
|
1303
1313
|
setup(__props, { emit: emits }) {
|
|
@@ -1321,7 +1331,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1321
1331
|
class: "bm-search-filter-expand",
|
|
1322
1332
|
onClick: handleExpandBtnChange
|
|
1323
1333
|
}, [
|
|
1324
|
-
vue.createTextVNode(vue.toDisplayString(isExpand.value ?
|
|
1334
|
+
vue.createTextVNode(vue.toDisplayString(isExpand.value ? props.collapseText : props.expandText), 1),
|
|
1325
1335
|
isExpand.value ? (vue.openBlock(), vue.createBlock(vue.unref(UpOutlined$1), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(DownOutlined$1), { key: 1 }))
|
|
1326
1336
|
])) : vue.createCommentVNode("v-if", true),
|
|
1327
1337
|
vue.createElementVNode("span", _hoisted_2$1, [
|
|
@@ -1969,7 +1979,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1969
1979
|
}
|
|
1970
1980
|
}
|
|
1971
1981
|
vue.watch(isExpand, (val) => {
|
|
1972
|
-
|
|
1982
|
+
setTimeout(() => {
|
|
1983
|
+
handleChangeExpand(val);
|
|
1984
|
+
}, 0);
|
|
1973
1985
|
}, {
|
|
1974
1986
|
immediate: true
|
|
1975
1987
|
});
|
|
@@ -1986,7 +1998,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1986
1998
|
"onUpdate:api": _cache[0] || (_cache[0] = ($event) => fApi.value = $event),
|
|
1987
1999
|
"model-value": props.value,
|
|
1988
2000
|
rule: vue.unref(rule),
|
|
1989
|
-
option
|
|
2001
|
+
option,
|
|
1990
2002
|
onChange: handleChange
|
|
1991
2003
|
}, null, 8, ["api", "model-value", "rule", "option"])
|
|
1992
2004
|
], 2);
|