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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
|
+
import { h, nextTick, createVNode, defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode, toDisplayString, createTextVNode, withModifiers, Fragment, renderList, createBlock, createCommentVNode } from 'vue';
|
|
2
3
|
import ToolTip from 'ant-design-vue/lib/tooltip';
|
|
3
4
|
import Button from 'ant-design-vue/lib/button';
|
|
4
|
-
import { h, nextTick, createVNode, defineComponent, resolveComponent, openBlock, createElementBlock, withCtx, createElementVNode, toDisplayString, withModifiers, Fragment, renderList, createBlock, createTextVNode, createCommentVNode } from 'vue';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Take input from [0, n] and return it as [0, 1]
|
|
@@ -1154,6 +1154,10 @@ const _sfc_main = defineComponent({
|
|
|
1154
1154
|
type: Boolean,
|
|
1155
1155
|
default: true
|
|
1156
1156
|
},
|
|
1157
|
+
unitStr: {
|
|
1158
|
+
type: String,
|
|
1159
|
+
default: "\u9879"
|
|
1160
|
+
},
|
|
1157
1161
|
btnText: {
|
|
1158
1162
|
type: String,
|
|
1159
1163
|
default: "\u6DFB\u52A0"
|
|
@@ -1161,6 +1165,16 @@ const _sfc_main = defineComponent({
|
|
|
1161
1165
|
placement: {
|
|
1162
1166
|
type: String,
|
|
1163
1167
|
default: "bottom"
|
|
1168
|
+
},
|
|
1169
|
+
toolTipProps: {
|
|
1170
|
+
type: Object,
|
|
1171
|
+
default: () => {
|
|
1172
|
+
return {};
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
alwaysInvoke: {
|
|
1176
|
+
type: Boolean,
|
|
1177
|
+
default: true
|
|
1164
1178
|
}
|
|
1165
1179
|
},
|
|
1166
1180
|
emits: ["clear", "update:list", "addClick"],
|
|
@@ -1177,13 +1191,38 @@ const _sfc_main = defineComponent({
|
|
|
1177
1191
|
}
|
|
1178
1192
|
}
|
|
1179
1193
|
function toAddTags() {
|
|
1180
|
-
|
|
1194
|
+
if (!props.list.length || props.alwaysInvoke)
|
|
1195
|
+
emit("addClick");
|
|
1181
1196
|
}
|
|
1197
|
+
const tooltipConfig = ref({
|
|
1198
|
+
align: void 0,
|
|
1199
|
+
arrowPointAtCenter: false,
|
|
1200
|
+
autoAdjustOverflow: true,
|
|
1201
|
+
color: "#fff",
|
|
1202
|
+
defaultVisible: false,
|
|
1203
|
+
destroyTooltipOnHide: false,
|
|
1204
|
+
getPopupContainer,
|
|
1205
|
+
mouseEnterDelay: 0.1,
|
|
1206
|
+
mouseLeaveDelay: 0.1,
|
|
1207
|
+
overlayClassName: "__list-filter-popover",
|
|
1208
|
+
overlayStyle: null,
|
|
1209
|
+
placement: props.placement,
|
|
1210
|
+
trigger: "hover"
|
|
1211
|
+
});
|
|
1212
|
+
watch(() => props.toolTipProps, (tooltipprop) => {
|
|
1213
|
+
tooltipConfig.value = {
|
|
1214
|
+
...tooltipConfig.value,
|
|
1215
|
+
...tooltipprop
|
|
1216
|
+
};
|
|
1217
|
+
}, {
|
|
1218
|
+
immediate: true,
|
|
1219
|
+
deep: true
|
|
1220
|
+
});
|
|
1182
1221
|
return {
|
|
1183
1222
|
containId,
|
|
1184
1223
|
clear,
|
|
1185
1224
|
toAddTags,
|
|
1186
|
-
|
|
1225
|
+
tooltipConfig
|
|
1187
1226
|
};
|
|
1188
1227
|
}
|
|
1189
1228
|
});
|
|
@@ -1192,11 +1231,9 @@ const _hoisted_2 = ["id"];
|
|
|
1192
1231
|
const _hoisted_3 = { class: "pop-seleted" };
|
|
1193
1232
|
const _hoisted_4 = { class: "pop-seleted-title" };
|
|
1194
1233
|
const _hoisted_5 = /* @__PURE__ */ createTextVNode(" \u5DF2\u9009\u62E9");
|
|
1195
|
-
const _hoisted_6 =
|
|
1196
|
-
const _hoisted_7 = {
|
|
1197
|
-
const _hoisted_8 =
|
|
1198
|
-
const _hoisted_9 = { key: 2 };
|
|
1199
|
-
const _hoisted_10 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
|
|
1234
|
+
const _hoisted_6 = { key: 1 };
|
|
1235
|
+
const _hoisted_7 = { key: 2 };
|
|
1236
|
+
const _hoisted_8 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
|
|
1200
1237
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1201
1238
|
const _component_a_tag = resolveComponent("a-tag");
|
|
1202
1239
|
const _component_CloseCircleFilled = resolveComponent("CloseCircleFilled");
|
|
@@ -1208,18 +1245,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1208
1245
|
id: _ctx.containId,
|
|
1209
1246
|
class: "bm-tags-display-wrapper"
|
|
1210
1247
|
}, [
|
|
1211
|
-
createVNode(_component_ToolTip, {
|
|
1212
|
-
color: "#fff",
|
|
1213
|
-
"get-popup-container": _ctx.getPopupContainer,
|
|
1214
|
-
placement: _ctx.placement,
|
|
1215
|
-
"overlay-class-name": "__list-filter-popover"
|
|
1216
|
-
}, {
|
|
1248
|
+
createVNode(_component_ToolTip, normalizeProps(guardReactiveProps(_ctx.tooltipConfig)), {
|
|
1217
1249
|
title: withCtx(() => [
|
|
1218
1250
|
createElementVNode("div", _hoisted_3, [
|
|
1219
1251
|
createElementVNode("div", _hoisted_4, [
|
|
1220
1252
|
_hoisted_5,
|
|
1221
1253
|
createElementVNode("span", null, toDisplayString(_ctx.list.length), 1),
|
|
1222
|
-
|
|
1254
|
+
createTextVNode(toDisplayString(_ctx.unitStr), 1)
|
|
1223
1255
|
])
|
|
1224
1256
|
]),
|
|
1225
1257
|
createElementVNode("div", {
|
|
@@ -1241,7 +1273,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1241
1273
|
], 32)
|
|
1242
1274
|
]),
|
|
1243
1275
|
default: withCtx(() => [
|
|
1244
|
-
createElementVNode("div",
|
|
1276
|
+
createElementVNode("div", {
|
|
1277
|
+
class: "select-input-wrapper",
|
|
1278
|
+
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.toAddTags && _ctx.toAddTags(...args))
|
|
1279
|
+
}, [
|
|
1245
1280
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item) => {
|
|
1246
1281
|
return openBlock(), createBlock(_component_a_tag, {
|
|
1247
1282
|
key: item.key
|
|
@@ -1265,9 +1300,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1265
1300
|
])
|
|
1266
1301
|
]),
|
|
1267
1302
|
_: 1
|
|
1268
|
-
},
|
|
1303
|
+
}, 16)
|
|
1269
1304
|
], 8, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
1270
|
-
_ctx.showEmptyBtn && !_ctx.list.length ? (openBlock(), createElementBlock("div",
|
|
1305
|
+
_ctx.showEmptyBtn && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
1271
1306
|
createVNode(_component_Button, {
|
|
1272
1307
|
onClick: withModifiers(_ctx.toAddTags, ["stop"])
|
|
1273
1308
|
}, {
|
|
@@ -1277,13 +1312,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1277
1312
|
_: 1
|
|
1278
1313
|
}, 8, ["onClick"])
|
|
1279
1314
|
])) : createCommentVNode("v-if", true),
|
|
1280
|
-
_ctx.showEmpty && !_ctx.list.length ? (openBlock(), createElementBlock("div",
|
|
1315
|
+
_ctx.showEmpty && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
1281
1316
|
createElementVNode("div", {
|
|
1282
1317
|
class: "selector-empty-input",
|
|
1283
|
-
onClick: _cache[
|
|
1284
|
-
}, "\xA0\xA0" + toDisplayString(_ctx.placeholder), 1)
|
|
1318
|
+
onClick: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
|
|
1319
|
+
}, " \xA0\xA0" + toDisplayString(_ctx.placeholder), 1)
|
|
1285
1320
|
])) : createCommentVNode("v-if", true),
|
|
1286
|
-
|
|
1321
|
+
_hoisted_8
|
|
1287
1322
|
]);
|
|
1288
1323
|
}
|
|
1289
1324
|
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;
|
|
@@ -1236,6 +1236,18 @@ const searchResetBtnProps = {
|
|
|
1236
1236
|
type: Boolean,
|
|
1237
1237
|
default: false,
|
|
1238
1238
|
},
|
|
1239
|
+
expandPlacement: {
|
|
1240
|
+
type: String,
|
|
1241
|
+
default: 'left',
|
|
1242
|
+
},
|
|
1243
|
+
expandText: {
|
|
1244
|
+
type: String,
|
|
1245
|
+
default: '展开',
|
|
1246
|
+
},
|
|
1247
|
+
collapseText: {
|
|
1248
|
+
type: String,
|
|
1249
|
+
default: '收起',
|
|
1250
|
+
},
|
|
1239
1251
|
};
|
|
1240
1252
|
const searchFilterProps = Object.assign({ userRule: {
|
|
1241
1253
|
type: Array,
|
|
@@ -1272,9 +1284,6 @@ const searchFilterProps = Object.assign({ userRule: {
|
|
|
1272
1284
|
default() {
|
|
1273
1285
|
return [];
|
|
1274
1286
|
},
|
|
1275
|
-
}, expandPlacement: {
|
|
1276
|
-
type: String,
|
|
1277
|
-
default: 'left',
|
|
1278
1287
|
} }, searchResetBtnProps);
|
|
1279
1288
|
|
|
1280
1289
|
var _export_sfc = (sfc, props) => {
|
|
@@ -1290,6 +1299,7 @@ const _hoisted_2$1 = { class: "bm-search-filter-actions" };
|
|
|
1290
1299
|
const _hoisted_3$1 = /* @__PURE__ */ createTextVNode("\u91CD\u7F6E");
|
|
1291
1300
|
const _hoisted_4$1 = /* @__PURE__ */ createTextVNode("\u67E5\u8BE2");
|
|
1292
1301
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1302
|
+
name: "search-reset-btn",
|
|
1293
1303
|
props: searchResetBtnProps,
|
|
1294
1304
|
emits: ["submit", "reset", "expand"],
|
|
1295
1305
|
setup(__props, { emit: emits }) {
|
|
@@ -1313,7 +1323,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1313
1323
|
class: "bm-search-filter-expand",
|
|
1314
1324
|
onClick: handleExpandBtnChange
|
|
1315
1325
|
}, [
|
|
1316
|
-
createTextVNode(toDisplayString(isExpand.value ?
|
|
1326
|
+
createTextVNode(toDisplayString(isExpand.value ? props.collapseText : props.expandText), 1),
|
|
1317
1327
|
isExpand.value ? (openBlock(), createBlock(unref(UpOutlined$1), { key: 0 })) : (openBlock(), createBlock(unref(DownOutlined$1), { key: 1 }))
|
|
1318
1328
|
])) : createCommentVNode("v-if", true),
|
|
1319
1329
|
createElementVNode("span", _hoisted_2$1, [
|
|
@@ -1961,7 +1971,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1961
1971
|
}
|
|
1962
1972
|
}
|
|
1963
1973
|
watch(isExpand, (val) => {
|
|
1964
|
-
|
|
1974
|
+
setTimeout(() => {
|
|
1975
|
+
handleChangeExpand(val);
|
|
1976
|
+
}, 0);
|
|
1965
1977
|
}, {
|
|
1966
1978
|
immediate: true
|
|
1967
1979
|
});
|
|
@@ -1978,7 +1990,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1978
1990
|
"onUpdate:api": _cache[0] || (_cache[0] = ($event) => fApi.value = $event),
|
|
1979
1991
|
"model-value": props.value,
|
|
1980
1992
|
rule: unref(rule),
|
|
1981
|
-
option
|
|
1993
|
+
option,
|
|
1982
1994
|
onChange: handleChange
|
|
1983
1995
|
}, null, 8, ["api", "model-value", "rule", "option"])
|
|
1984
1996
|
], 2);
|