bm-admin-ui 1.0.69-alpha → 1.0.70-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 +1 -1
- package/es/components/button/src/button.vue.d.ts +1 -1
- package/es/components/editor/index.d.ts +1 -1
- package/es/components/editor/src/editor.vue.d.ts +1 -1
- package/es/components/float-table/index.d.ts +2 -2
- package/es/components/float-table/src/float-table.vue.d.ts +2 -2
- package/es/components/form-create/index.js +5 -3
- package/es/components/search-filter/index.d.ts +1 -1
- package/es/components/search-filter/src/search-filter.vue.d.ts +1 -1
- package/es/components/select-all/index.d.ts +1 -1
- package/es/components/select-all/src/selectAll.vue.d.ts +1 -1
- package/es/components/staffs-selector/index.d.ts +9 -5
- package/es/components/staffs-selector/index.js +30 -22
- package/es/components/staffs-selector/src/action.d.ts +1 -0
- package/es/components/staffs-selector/src/departmentCmp.vue.d.ts +3 -2
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +3 -2
- package/es/components/staffs-selector/src/radioCmp.vue.d.ts +1 -0
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +9 -5
- package/es/components/staffs-selector/src/variedCmp.vue.d.ts +1 -0
- package/lib/components/button/index.d.ts +1 -1
- package/lib/components/button/src/button.vue.d.ts +1 -1
- package/lib/components/editor/index.d.ts +1 -1
- package/lib/components/editor/src/editor.vue.d.ts +1 -1
- package/lib/components/float-table/index.d.ts +2 -2
- package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
- package/lib/components/form-create/index.js +5 -3
- package/lib/components/search-filter/index.d.ts +1 -1
- package/lib/components/search-filter/src/search-filter.vue.d.ts +1 -1
- package/lib/components/select-all/index.d.ts +1 -1
- package/lib/components/select-all/src/selectAll.vue.d.ts +1 -1
- package/lib/components/staffs-selector/index.d.ts +9 -5
- package/lib/components/staffs-selector/index.js +29 -21
- package/lib/components/staffs-selector/src/action.d.ts +1 -0
- package/lib/components/staffs-selector/src/departmentCmp.vue.d.ts +3 -2
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +3 -2
- package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +1 -0
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +9 -5
- package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +1 -0
- package/package.json +1 -1
- package/types/components/button/index.d.ts +1 -1
- package/types/components/button/src/button.vue.d.ts +1 -1
- package/types/components/editor/index.d.ts +1 -1
- package/types/components/editor/src/editor.vue.d.ts +1 -1
- package/types/components/float-table/index.d.ts +2 -2
- package/types/components/float-table/src/float-table.vue.d.ts +2 -2
- package/types/components/search-filter/index.d.ts +1 -1
- package/types/components/search-filter/src/search-filter.vue.d.ts +1 -1
- package/types/components/select-all/index.d.ts +1 -1
- package/types/components/select-all/src/selectAll.vue.d.ts +1 -1
- package/types/components/staffs-selector/index.d.ts +9 -5
- package/types/components/staffs-selector/src/action.d.ts +1 -0
- package/types/components/staffs-selector/src/departmentCmp.vue.d.ts +3 -2
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +3 -2
- package/types/components/staffs-selector/src/radioCmp.vue.d.ts +1 -0
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +9 -5
- package/types/components/staffs-selector/src/variedCmp.vue.d.ts +1 -0
|
@@ -78,7 +78,7 @@ declare const BmButton: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
78
78
|
onMousedown: {
|
|
79
79
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
80
80
|
};
|
|
81
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
81
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "loading" | "htmlType" | "ghost" | "block" | "danger">;
|
|
82
82
|
$attrs: {
|
|
83
83
|
[x: string]: unknown;
|
|
84
84
|
};
|
|
@@ -80,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
onMousedown: {
|
|
81
81
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
82
82
|
};
|
|
83
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
83
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "loading" | "htmlType" | "ghost" | "block" | "danger">;
|
|
84
84
|
$attrs: {
|
|
85
85
|
[x: string]: unknown;
|
|
86
86
|
};
|
|
@@ -294,8 +294,8 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
294
294
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
disabled: boolean;
|
|
298
297
|
value: string;
|
|
298
|
+
disabled: boolean;
|
|
299
299
|
options: {
|
|
300
300
|
[key: string]: any;
|
|
301
301
|
};
|
|
@@ -294,8 +294,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
294
294
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
disabled: boolean;
|
|
298
297
|
value: string;
|
|
298
|
+
disabled: boolean;
|
|
299
299
|
options: {
|
|
300
300
|
[key: string]: any;
|
|
301
301
|
};
|
|
@@ -42,9 +42,9 @@ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithI
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<
|
|
45
|
+
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -42,9 +42,9 @@ declare const _default: {
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<
|
|
45
|
+
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -19073,7 +19073,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
19073
19073
|
() => {
|
|
19074
19074
|
emitChange();
|
|
19075
19075
|
},
|
|
19076
|
-
{
|
|
19076
|
+
{
|
|
19077
|
+
deep: true
|
|
19078
|
+
}
|
|
19077
19079
|
);
|
|
19078
19080
|
return (_ctx, _cache) => {
|
|
19079
19081
|
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
@@ -19495,11 +19497,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
19495
19497
|
])) : createCommentVNode("v-if", true)
|
|
19496
19498
|
]),
|
|
19497
19499
|
default: withCtx(() => [
|
|
19498
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(panes, (pane) => {
|
|
19500
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(panes, (pane, index2) => {
|
|
19499
19501
|
return openBlock(), createBlock(unref(TabPane), {
|
|
19500
19502
|
key: pane.key,
|
|
19501
19503
|
tab: pane.title,
|
|
19502
|
-
closable:
|
|
19504
|
+
closable: index2 !== 0 && !__props.disabled?.includes?.("selectBtn")
|
|
19503
19505
|
}, {
|
|
19504
19506
|
default: withCtx(() => [
|
|
19505
19507
|
createVNode(unref(FormItemRest), null, {
|
|
@@ -217,9 +217,9 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
217
217
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
|
-
loading: boolean;
|
|
221
220
|
labelCol: Record<string, any>;
|
|
222
221
|
value: Record<string, any>;
|
|
222
|
+
loading: boolean;
|
|
223
223
|
showExpandBtn: boolean;
|
|
224
224
|
showSearchIcon: boolean;
|
|
225
225
|
expandPlacement: "left" | "right";
|
|
@@ -217,9 +217,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
217
217
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
|
-
loading: boolean;
|
|
221
220
|
labelCol: Record<string, any>;
|
|
222
221
|
value: Record<string, any>;
|
|
222
|
+
loading: boolean;
|
|
223
223
|
showExpandBtn: boolean;
|
|
224
224
|
showSearchIcon: boolean;
|
|
225
225
|
expandPlacement: "left" | "right";
|
|
@@ -210,7 +210,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
210
210
|
type: BooleanConstructor;
|
|
211
211
|
default: any;
|
|
212
212
|
};
|
|
213
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
213
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "bordered" | "choiceTransitionName" | "open" | "disabled" | "virtual" | "dropdownMatchSelectWidth" | "autofocus" | "loading" | "showSearch" | "defaultOpen" | "allowClear" | "showArrow" | "autoClearSearchValue" | "filterOption" | "defaultActiveFirstOption" | "labelInValue">;
|
|
214
214
|
$attrs: {
|
|
215
215
|
[x: string]: unknown;
|
|
216
216
|
};
|
|
@@ -210,7 +210,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
210
210
|
type: BooleanConstructor;
|
|
211
211
|
default: any;
|
|
212
212
|
};
|
|
213
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
213
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "bordered" | "choiceTransitionName" | "open" | "disabled" | "virtual" | "dropdownMatchSelectWidth" | "autofocus" | "loading" | "showSearch" | "defaultOpen" | "allowClear" | "showArrow" | "autoClearSearchValue" | "filterOption" | "defaultActiveFirstOption" | "labelInValue">;
|
|
214
214
|
$attrs: {
|
|
215
215
|
[x: string]: unknown;
|
|
216
216
|
};
|
|
@@ -904,12 +904,13 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
904
904
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
905
905
|
activeKey: import("vue").Ref<number>;
|
|
906
906
|
fetchLoading: import("vue").Ref<boolean>;
|
|
907
|
+
searched: import("vue").Ref<boolean>;
|
|
907
908
|
searchVal: import("vue").Ref<string>;
|
|
908
909
|
selectAll: import("vue").Ref<boolean>;
|
|
909
910
|
indeterminate: import("vue").Ref<boolean>;
|
|
910
|
-
emptyPic: import("vue").Ref<
|
|
911
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
911
912
|
[key: string]: any;
|
|
912
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
913
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
913
914
|
[key: string]: any;
|
|
914
915
|
}> | null | undefined)[]>;
|
|
915
916
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -941,6 +942,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
941
942
|
}, {
|
|
942
943
|
searchVal: import("vue").Ref<string>;
|
|
943
944
|
emptyPic: import("ant-design-vue/lib/_util/type").VueNode;
|
|
945
|
+
searched: import("vue").ComputedRef<boolean>;
|
|
944
946
|
search: () => void;
|
|
945
947
|
radioChange: (e: any) => void;
|
|
946
948
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -987,6 +989,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
987
989
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
988
990
|
activeKey: import("vue").Ref<number>;
|
|
989
991
|
fetchLoading: import("vue").Ref<boolean>;
|
|
992
|
+
searched: import("vue").Ref<boolean>;
|
|
990
993
|
indicator: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
991
994
|
[key: string]: any;
|
|
992
995
|
}>;
|
|
@@ -1050,12 +1053,13 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
1050
1053
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
1051
1054
|
activeKey: import("vue").Ref<number>;
|
|
1052
1055
|
fetchLoading: import("vue").Ref<boolean>;
|
|
1056
|
+
searched: import("vue").Ref<boolean>;
|
|
1053
1057
|
searchVal: import("vue").Ref<string>;
|
|
1054
1058
|
selectAll: import("vue").Ref<boolean>;
|
|
1055
1059
|
indeterminate: import("vue").Ref<boolean>;
|
|
1056
|
-
emptyPic: import("vue").Ref<
|
|
1060
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1057
1061
|
[key: string]: any;
|
|
1058
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1062
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1059
1063
|
[key: string]: any;
|
|
1060
1064
|
}> | null | undefined)[]>;
|
|
1061
1065
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -1123,9 +1127,9 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
1123
1127
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1124
1128
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
1125
1129
|
}, {
|
|
1126
|
-
title: string;
|
|
1127
1130
|
mode: string;
|
|
1128
1131
|
showCount: boolean;
|
|
1132
|
+
title: string;
|
|
1129
1133
|
visible: boolean;
|
|
1130
1134
|
unitStr: string;
|
|
1131
1135
|
limit: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
|
-
import { readonly, ref, reactive, defineComponent, watch, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, withDirectives, createTextVNode, vShow, Fragment, renderList, toDisplayString, createCommentVNode, createBlock, h,
|
|
2
|
+
import { readonly, ref, reactive, defineComponent, watch, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, withDirectives, createTextVNode, vShow, Fragment, renderList, toDisplayString, createCommentVNode, computed, createBlock, h, normalizeClass, withModifiers, unref } from 'vue';
|
|
3
3
|
import { Checkbox, Empty, Radio, Input, RadioGroup, Tree, message, Modal } from 'ant-design-vue';
|
|
4
4
|
import { SearchOutlined, LoadingOutlined, CloseCircleFilled } from '@ant-design/icons-vue';
|
|
5
5
|
|
|
@@ -71,6 +71,7 @@ const selectState = reactive({
|
|
|
71
71
|
curlistKeys: new Set(),
|
|
72
72
|
activeKey: 0,
|
|
73
73
|
fetchLoading: false,
|
|
74
|
+
searched: false
|
|
74
75
|
});
|
|
75
76
|
const list = ref([]);
|
|
76
77
|
const departNative = ref([]);
|
|
@@ -185,13 +186,13 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
185
186
|
value: _ctx.searchVal,
|
|
186
187
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.searchVal = $event),
|
|
187
188
|
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u7F16\u53F7",
|
|
188
|
-
|
|
189
|
+
onBlur: _ctx.search
|
|
189
190
|
}, {
|
|
190
191
|
suffix: withCtx(() => [
|
|
191
192
|
createVNode(_component_search_outlined, { style: { color: "#9393A3" } })
|
|
192
193
|
]),
|
|
193
194
|
_: 1
|
|
194
|
-
}, 8, ["value", "
|
|
195
|
+
}, 8, ["value", "onBlur"]),
|
|
195
196
|
createElementVNode("div", _hoisted_4$4, [
|
|
196
197
|
createElementVNode("div", _hoisted_5$4, [
|
|
197
198
|
withDirectives(createVNode(_component_Checkbox, {
|
|
@@ -229,7 +230,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
229
230
|
_ctx.list && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
230
231
|
createVNode(_component_Empty, { image: _ctx.emptyPic }, {
|
|
231
232
|
description: withCtx(() => [
|
|
232
|
-
createElementVNode("span", _hoisted_7$2, toDisplayString(!!_ctx.
|
|
233
|
+
createElementVNode("span", _hoisted_7$2, toDisplayString(!!_ctx.searched ? "\u6682\u65E0\u6570\u636E" : "\u8BF7\u5148\u641C\u7D22\u4EBA\u5458\u5173\u952E\u5B57"), 1)
|
|
233
234
|
]),
|
|
234
235
|
_: 1
|
|
235
236
|
}, 8, ["image"])
|
|
@@ -265,9 +266,11 @@ const _sfc_main$3 = defineComponent({
|
|
|
265
266
|
function radioChange(e) {
|
|
266
267
|
emit("update:selected", String(e.target.value));
|
|
267
268
|
}
|
|
269
|
+
const searched = computed(() => selectState.searched);
|
|
268
270
|
return {
|
|
269
271
|
searchVal,
|
|
270
272
|
emptyPic,
|
|
273
|
+
searched,
|
|
271
274
|
search,
|
|
272
275
|
radioChange
|
|
273
276
|
};
|
|
@@ -296,13 +299,13 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
296
299
|
value: _ctx.searchVal,
|
|
297
300
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.searchVal = $event),
|
|
298
301
|
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u7F16\u53F7",
|
|
299
|
-
|
|
302
|
+
onBlur: _ctx.search
|
|
300
303
|
}, {
|
|
301
304
|
suffix: withCtx(() => [
|
|
302
305
|
createVNode(_component_search_outlined, { style: { color: "#9393A3" } })
|
|
303
306
|
]),
|
|
304
307
|
_: 1
|
|
305
|
-
}, 8, ["value", "
|
|
308
|
+
}, 8, ["value", "onBlur"]),
|
|
306
309
|
_ctx.list && _ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
|
307
310
|
createVNode(_component_ARadioGroup, {
|
|
308
311
|
value: _ctx.selected,
|
|
@@ -329,7 +332,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
329
332
|
_ctx.list && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
330
333
|
createVNode(_component_Empty, { image: _ctx.emptyPic }, {
|
|
331
334
|
description: withCtx(() => [
|
|
332
|
-
createElementVNode("span", _hoisted_5$3, toDisplayString(!!_ctx.
|
|
335
|
+
createElementVNode("span", _hoisted_5$3, toDisplayString(!!_ctx.searched ? "\u6682\u65E0\u6570\u636E" : "\u8BF7\u5148\u641C\u7D22\u4EBA\u5458\u5173\u952E\u5B57"), 1)
|
|
333
336
|
]),
|
|
334
337
|
_: 1
|
|
335
338
|
}, 8, ["image"])
|
|
@@ -485,18 +488,18 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
485
488
|
value: _ctx.searchVal,
|
|
486
489
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.searchVal = $event),
|
|
487
490
|
placeholder: _ctx.inputPlaceHolder,
|
|
488
|
-
|
|
491
|
+
onBlur: _ctx.search
|
|
489
492
|
}, {
|
|
490
493
|
suffix: withCtx(() => [
|
|
491
494
|
createVNode(_component_search_outlined, { style: { color: "#9393A3" } })
|
|
492
495
|
]),
|
|
493
496
|
_: 1
|
|
494
|
-
}, 8, ["value", "placeholder", "
|
|
497
|
+
}, 8, ["value", "placeholder", "onBlur"]),
|
|
495
498
|
createElementVNode("div", _hoisted_5$2, [
|
|
496
499
|
_ctx.list && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
497
500
|
createVNode(_component_Empty, { image: _ctx.emptyPic }, {
|
|
498
501
|
description: withCtx(() => [
|
|
499
|
-
createElementVNode("span", _hoisted_7$1, toDisplayString(!!_ctx.
|
|
502
|
+
createElementVNode("span", _hoisted_7$1, toDisplayString(!!_ctx.searched ? "\u6682\u65E0\u6570\u636E" : "\u8BF7\u5148\u641C\u7D22\u4EBA\u5458\u5173\u952E\u5B57"), 1)
|
|
500
503
|
]),
|
|
501
504
|
_: 1
|
|
502
505
|
}, 8, ["image"])
|
|
@@ -697,7 +700,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
697
700
|
_ctx.list && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
698
701
|
createVNode(_component_Empty, { image: _ctx.emptyPic }, {
|
|
699
702
|
description: withCtx(() => [
|
|
700
|
-
createElementVNode("span", _hoisted_8, toDisplayString(!!_ctx.
|
|
703
|
+
createElementVNode("span", _hoisted_8, toDisplayString(!!_ctx.searched ? "\u6682\u65E0\u6570\u636E" : "\u8BF7\u5148\u641C\u7D22\u4EBA\u5458\u5173\u952E\u5B57"), 1)
|
|
701
704
|
]),
|
|
702
705
|
_: 1
|
|
703
706
|
}, 8, ["image"])
|
|
@@ -777,6 +780,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
777
780
|
}
|
|
778
781
|
async function fetch(params) {
|
|
779
782
|
list.value = [];
|
|
783
|
+
selectState.searched = !!params?.searchVal;
|
|
780
784
|
let isDepartTree = params.area === "department" || props.mode === MODE.DEPARTMENT;
|
|
781
785
|
if (isDepartTree) {
|
|
782
786
|
if (!departNative.value.length) {
|
|
@@ -800,17 +804,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
800
804
|
}
|
|
801
805
|
return;
|
|
802
806
|
}
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
807
|
+
if (!!params.searchVal) {
|
|
808
|
+
await props.load(params).then((data) => {
|
|
809
|
+
if (data && data.length) {
|
|
810
|
+
let result = data.map((item) => {
|
|
811
|
+
return item;
|
|
812
|
+
});
|
|
813
|
+
list.value = isCurrentFetch(params.area) ? result : [];
|
|
814
|
+
selectState.dataMap = flatListFunc(data);
|
|
815
|
+
} else {
|
|
816
|
+
list.value = [];
|
|
817
|
+
}
|
|
818
|
+
});
|
|
819
|
+
} else {
|
|
820
|
+
list.value = [];
|
|
821
|
+
}
|
|
814
822
|
}
|
|
815
823
|
function flatListFunc(list2) {
|
|
816
824
|
let queue = [...list2];
|
|
@@ -20,12 +20,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
21
21
|
activeKey: import("vue").Ref<number>;
|
|
22
22
|
fetchLoading: import("vue").Ref<boolean>;
|
|
23
|
+
searched: import("vue").Ref<boolean>;
|
|
23
24
|
searchVal: import("vue").Ref<string>;
|
|
24
25
|
selectAll: import("vue").Ref<boolean>;
|
|
25
26
|
indeterminate: import("vue").Ref<boolean>;
|
|
26
|
-
emptyPic: import("vue").Ref<
|
|
27
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
27
28
|
[key: string]: any;
|
|
28
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
30
|
[key: string]: any;
|
|
30
31
|
}> | null | undefined)[]>;
|
|
31
32
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -22,12 +22,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
23
23
|
activeKey: import("vue").Ref<number>;
|
|
24
24
|
fetchLoading: import("vue").Ref<boolean>;
|
|
25
|
+
searched: import("vue").Ref<boolean>;
|
|
25
26
|
searchVal: import("vue").Ref<string>;
|
|
26
27
|
selectAll: import("vue").Ref<boolean>;
|
|
27
28
|
indeterminate: import("vue").Ref<boolean>;
|
|
28
|
-
emptyPic: import("vue").Ref<
|
|
29
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
30
|
[key: string]: any;
|
|
30
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
32
|
[key: string]: any;
|
|
32
33
|
}> | null | undefined)[]>;
|
|
33
34
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -10,6 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
}, {
|
|
11
11
|
searchVal: import("vue").Ref<string>;
|
|
12
12
|
emptyPic: import("ant-design-vue/lib/_util/type").VueNode;
|
|
13
|
+
searched: import("vue").ComputedRef<boolean>;
|
|
13
14
|
search: () => void;
|
|
14
15
|
radioChange: (e: any) => void;
|
|
15
16
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -904,12 +904,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
904
904
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
905
905
|
activeKey: import("vue").Ref<number>;
|
|
906
906
|
fetchLoading: import("vue").Ref<boolean>;
|
|
907
|
+
searched: import("vue").Ref<boolean>;
|
|
907
908
|
searchVal: import("vue").Ref<string>;
|
|
908
909
|
selectAll: import("vue").Ref<boolean>;
|
|
909
910
|
indeterminate: import("vue").Ref<boolean>;
|
|
910
|
-
emptyPic: import("vue").Ref<
|
|
911
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
911
912
|
[key: string]: any;
|
|
912
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
913
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
913
914
|
[key: string]: any;
|
|
914
915
|
}> | null | undefined)[]>;
|
|
915
916
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -941,6 +942,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
941
942
|
}, {
|
|
942
943
|
searchVal: import("vue").Ref<string>;
|
|
943
944
|
emptyPic: import("ant-design-vue/lib/_util/type").VueNode;
|
|
945
|
+
searched: import("vue").ComputedRef<boolean>;
|
|
944
946
|
search: () => void;
|
|
945
947
|
radioChange: (e: any) => void;
|
|
946
948
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -987,6 +989,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
987
989
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
988
990
|
activeKey: import("vue").Ref<number>;
|
|
989
991
|
fetchLoading: import("vue").Ref<boolean>;
|
|
992
|
+
searched: import("vue").Ref<boolean>;
|
|
990
993
|
indicator: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
991
994
|
[key: string]: any;
|
|
992
995
|
}>;
|
|
@@ -1050,12 +1053,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1050
1053
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
1051
1054
|
activeKey: import("vue").Ref<number>;
|
|
1052
1055
|
fetchLoading: import("vue").Ref<boolean>;
|
|
1056
|
+
searched: import("vue").Ref<boolean>;
|
|
1053
1057
|
searchVal: import("vue").Ref<string>;
|
|
1054
1058
|
selectAll: import("vue").Ref<boolean>;
|
|
1055
1059
|
indeterminate: import("vue").Ref<boolean>;
|
|
1056
|
-
emptyPic: import("vue").Ref<
|
|
1060
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1057
1061
|
[key: string]: any;
|
|
1058
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1062
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1059
1063
|
[key: string]: any;
|
|
1060
1064
|
}> | null | undefined)[]>;
|
|
1061
1065
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -1123,9 +1127,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1123
1127
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1124
1128
|
"onUpdate:select"?: ((...args: any[]) => any) | undefined;
|
|
1125
1129
|
}, {
|
|
1126
|
-
title: string;
|
|
1127
1130
|
mode: string;
|
|
1128
1131
|
showCount: boolean;
|
|
1132
|
+
title: string;
|
|
1129
1133
|
visible: boolean;
|
|
1130
1134
|
unitStr: string;
|
|
1131
1135
|
limit: number;
|
|
@@ -26,6 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
27
27
|
activeKey: import("vue").Ref<number>;
|
|
28
28
|
fetchLoading: import("vue").Ref<boolean>;
|
|
29
|
+
searched: import("vue").Ref<boolean>;
|
|
29
30
|
indicator: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
30
31
|
[key: string]: any;
|
|
31
32
|
}>;
|
|
@@ -78,7 +78,7 @@ declare const BmButton: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
78
78
|
onMousedown: {
|
|
79
79
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
80
80
|
};
|
|
81
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
81
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "loading" | "htmlType" | "ghost" | "block" | "danger">;
|
|
82
82
|
$attrs: {
|
|
83
83
|
[x: string]: unknown;
|
|
84
84
|
};
|
|
@@ -80,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
onMousedown: {
|
|
81
81
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
82
82
|
};
|
|
83
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
83
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "loading" | "htmlType" | "ghost" | "block" | "danger">;
|
|
84
84
|
$attrs: {
|
|
85
85
|
[x: string]: unknown;
|
|
86
86
|
};
|
|
@@ -294,8 +294,8 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
294
294
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
disabled: boolean;
|
|
298
297
|
value: string;
|
|
298
|
+
disabled: boolean;
|
|
299
299
|
options: {
|
|
300
300
|
[key: string]: any;
|
|
301
301
|
};
|
|
@@ -294,8 +294,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
294
294
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
disabled: boolean;
|
|
298
297
|
value: string;
|
|
298
|
+
disabled: boolean;
|
|
299
299
|
options: {
|
|
300
300
|
[key: string]: any;
|
|
301
301
|
};
|
|
@@ -42,9 +42,9 @@ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithI
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<
|
|
45
|
+
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -42,9 +42,9 @@ declare const _default: {
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<
|
|
45
|
+
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -19084,7 +19084,9 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19084
19084
|
() => {
|
|
19085
19085
|
emitChange();
|
|
19086
19086
|
},
|
|
19087
|
-
{
|
|
19087
|
+
{
|
|
19088
|
+
deep: true
|
|
19089
|
+
}
|
|
19088
19090
|
);
|
|
19089
19091
|
return (_ctx, _cache) => {
|
|
19090
19092
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
|
|
@@ -19506,11 +19508,11 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19506
19508
|
])) : vue.createCommentVNode("v-if", true)
|
|
19507
19509
|
]),
|
|
19508
19510
|
default: vue.withCtx(() => [
|
|
19509
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(panes, (pane) => {
|
|
19511
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(panes, (pane, index2) => {
|
|
19510
19512
|
return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.TabPane), {
|
|
19511
19513
|
key: pane.key,
|
|
19512
19514
|
tab: pane.title,
|
|
19513
|
-
closable:
|
|
19515
|
+
closable: index2 !== 0 && !__props.disabled?.includes?.("selectBtn")
|
|
19514
19516
|
}, {
|
|
19515
19517
|
default: vue.withCtx(() => [
|
|
19516
19518
|
vue.createVNode(vue.unref(antDesignVue.FormItemRest), null, {
|
|
@@ -217,9 +217,9 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
217
217
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
|
-
loading: boolean;
|
|
221
220
|
labelCol: Record<string, any>;
|
|
222
221
|
value: Record<string, any>;
|
|
222
|
+
loading: boolean;
|
|
223
223
|
showExpandBtn: boolean;
|
|
224
224
|
showSearchIcon: boolean;
|
|
225
225
|
expandPlacement: "left" | "right";
|
|
@@ -217,9 +217,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
217
217
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
219
219
|
}, {
|
|
220
|
-
loading: boolean;
|
|
221
220
|
labelCol: Record<string, any>;
|
|
222
221
|
value: Record<string, any>;
|
|
222
|
+
loading: boolean;
|
|
223
223
|
showExpandBtn: boolean;
|
|
224
224
|
showSearchIcon: boolean;
|
|
225
225
|
expandPlacement: "left" | "right";
|
|
@@ -210,7 +210,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
|
|
|
210
210
|
type: BooleanConstructor;
|
|
211
211
|
default: any;
|
|
212
212
|
};
|
|
213
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
213
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "bordered" | "choiceTransitionName" | "open" | "disabled" | "virtual" | "dropdownMatchSelectWidth" | "autofocus" | "loading" | "showSearch" | "defaultOpen" | "allowClear" | "showArrow" | "autoClearSearchValue" | "filterOption" | "defaultActiveFirstOption" | "labelInValue">;
|
|
214
214
|
$attrs: {
|
|
215
215
|
[x: string]: unknown;
|
|
216
216
|
};
|
|
@@ -210,7 +210,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
210
210
|
type: BooleanConstructor;
|
|
211
211
|
default: any;
|
|
212
212
|
};
|
|
213
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
213
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "bordered" | "choiceTransitionName" | "open" | "disabled" | "virtual" | "dropdownMatchSelectWidth" | "autofocus" | "loading" | "showSearch" | "defaultOpen" | "allowClear" | "showArrow" | "autoClearSearchValue" | "filterOption" | "defaultActiveFirstOption" | "labelInValue">;
|
|
214
214
|
$attrs: {
|
|
215
215
|
[x: string]: unknown;
|
|
216
216
|
};
|