@blueking/bk-user-selector 0.0.10 → 0.0.12

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/README.md CHANGED
@@ -136,6 +136,7 @@ import '@blueking/bk-user-selector/vue2/vue2.css';
136
136
  | currentUserId | 当前用户ID(用于快速选择"我") | String | '' |
137
137
  | userGroup | 用户组列表,用于在下拉列表中显示用户组 | Array | [] |
138
138
  | userGroupName | 用户组名称,用于在下拉列表中显示用户组名称 | String | '用户群组' |
139
+ | emptyText | 无匹配人员时的提示文本 | String | '无匹配人员' |
139
140
 
140
141
  ### 事件
141
142
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/bk-user-selector",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "蓝鲸用户选择器",
5
5
  "license": "MIT",
6
6
  "author": "Tencent BlueKing",
@@ -26,7 +26,7 @@ export declare const searchUsers: (apiBaseUrl?: string, tenantId?: string, keywo
26
26
  * @param exactSearchKey - 精确查找key
27
27
  * @returns 查找到的用户列表Promise
28
28
  */
29
- export declare const lookupUsers: (apiBaseUrl?: string, tenantId?: string, exactSearchKey?: string, users?: string[]) => Promise<User[]>;
29
+ export declare const lookupUsers: (apiBaseUrl?: string, tenantId?: string, exactSearchKey?: string, usersList?: string[]) => Promise<User[]>;
30
30
  /**
31
31
  * 将API返回的用户数据格式化为组件所需格式
32
32
  * @param users - API返回的用户列表
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
11
11
  exactSearchKey: string;
12
12
  userGroup: () => never[];
13
13
  userGroupName: string;
14
+ emptyText: string;
14
15
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
16
  "update:selectedUsers": (...args: any[]) => void;
16
17
  "add-user": (...args: any[]) => void;
@@ -27,6 +28,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
27
28
  exactSearchKey: string;
28
29
  userGroup: () => never[];
29
30
  userGroupName: string;
31
+ emptyText: string;
30
32
  }>>> & {
31
33
  "onUpdate:selectedUsers"?: ((...args: any[]) => any) | undefined;
32
34
  "onAdd-user"?: ((...args: any[]) => any) | undefined;
@@ -40,6 +42,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
40
42
  name: string;
41
43
  }[];
42
44
  userGroupName: string;
45
+ emptyText: string;
43
46
  draggable: boolean;
44
47
  modelValue: string[];
45
48
  selectedUsers: FormattedUser[];
@@ -66,6 +66,13 @@ declare const _default: import("vue").DefineComponent<{
66
66
  type: StringConstructor;
67
67
  default: string;
68
68
  };
69
+ /**
70
+ * 无匹配人员时的提示文本
71
+ */
72
+ emptyText: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
69
76
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
70
77
  "select-user": (...args: any[]) => void;
71
78
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -135,6 +142,13 @@ declare const _default: import("vue").DefineComponent<{
135
142
  type: StringConstructor;
136
143
  default: string;
137
144
  };
145
+ /**
146
+ * 无匹配人员时的提示文本
147
+ */
148
+ emptyText: {
149
+ type: StringConstructor;
150
+ default: string;
151
+ };
138
152
  }>> & {
139
153
  "onSelect-user"?: ((...args: any[]) => any) | undefined;
140
154
  }, {
@@ -150,5 +164,6 @@ declare const _default: import("vue").DefineComponent<{
150
164
  name: string;
151
165
  }[];
152
166
  userGroupName: string;
167
+ emptyText: string;
153
168
  }, {}>;
154
169
  export default _default;
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
8
8
  exactSearchKey: string;
9
9
  userGroup: () => never[];
10
10
  userGroupName: string;
11
+ emptyText: string;
11
12
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
13
  change: (...args: any[]) => void;
13
14
  "update:modelValue": (...args: any[]) => void;
@@ -20,6 +21,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
20
21
  exactSearchKey: string;
21
22
  userGroup: () => never[];
22
23
  userGroupName: string;
24
+ emptyText: string;
23
25
  }>>> & {
24
26
  onChange?: ((...args: any[]) => any) | undefined;
25
27
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -31,6 +33,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
31
33
  name: string;
32
34
  }[];
33
35
  userGroupName: string;
36
+ emptyText: string;
34
37
  modelValue: string;
35
38
  apiBaseUrl: string;
36
39
  placeholder: string;
@@ -10,6 +10,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
10
10
  exactSearchKey: string;
11
11
  userGroup: () => never[];
12
12
  userGroupName: string;
13
+ emptyText: string;
13
14
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
15
  change: (...args: any[]) => void;
15
16
  "update:modelValue": (...args: any[]) => void;
@@ -24,6 +25,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
24
25
  exactSearchKey: string;
25
26
  userGroup: () => never[];
26
27
  userGroupName: string;
28
+ emptyText: string;
27
29
  }>>> & {
28
30
  onChange?: ((...args: any[]) => any) | undefined;
29
31
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -35,6 +37,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
35
37
  name: string;
36
38
  }[];
37
39
  userGroupName: string;
40
+ emptyText: string;
38
41
  draggable: boolean;
39
42
  modelValue: string | string[];
40
43
  apiBaseUrl: string;
@@ -96,6 +96,10 @@ interface BaseSelectorProps {
96
96
  * 用户组名称
97
97
  */
98
98
  userGroupName?: string;
99
+ /**
100
+ * 无匹配人员时的提示文本
101
+ */
102
+ emptyText?: string;
99
103
  }
100
104
  /**
101
105
  * 用户选择器属性