@blueking/bk-user-selector 0.0.11 → 0.0.13
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 +17 -16
- package/package.json +1 -1
- package/typings/components/multiple-selector.vue.d.ts +3 -0
- package/typings/components/selection-popover.vue.d.ts +15 -0
- package/typings/components/single-selector.vue.d.ts +3 -0
- package/typings/components/user-selector.vue.d.ts +3 -0
- package/typings/types/index.d.ts +4 -0
- package/vue2/index.es.min.js +233 -200
- package/vue2/index.iife.min.js +234 -201
- package/vue2/index.umd.min.js +234 -201
- package/vue2/vue2.css +26 -26
- package/vue3/index.es.min.js +233 -200
- package/vue3/index.iife.min.js +234 -201
- package/vue3/index.umd.min.js +234 -201
- package/vue3/vue3.css +26 -26
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 蓝鲸用户人员选择器组件
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
蓝鲸用户人员选择器(BkUserSelector)是一个用于在蓝鲸系统中选择用户的组件,支持单选和多选模式,具备搜索、跨租户查询等功能。
|
|
4
4
|
|
|
5
5
|
## 特性
|
|
6
6
|
|
|
@@ -122,20 +122,21 @@ import '@blueking/bk-user-selector/vue2/vue2.css';
|
|
|
122
122
|
|
|
123
123
|
### 属性
|
|
124
124
|
|
|
125
|
-
| 参数 | 说明 | 类型 | 默认值
|
|
126
|
-
| -------------------- | ----------------------------------------------------------------------- | -------------- |
|
|
127
|
-
| modelValue / v-model | 绑定值,单选为字符串,多选为数组 | String / Array | '' / []
|
|
128
|
-
| label | 文本标签 | String |
|
|
129
|
-
| required | 是否必填 | Boolean | false
|
|
130
|
-
| placeholder | 占位文本 | String |
|
|
131
|
-
| multiple | 是否多选 | Boolean | false
|
|
132
|
-
| draggable | 是否可拖拽(仅多选模式有效) | Boolean | false
|
|
133
|
-
| apiBaseUrl | API 基础 URL | String | ''
|
|
134
|
-
| tenantId | 租户 ID | String | ''
|
|
135
|
-
| exactSearchKey | 精确查找key,可选值为 bk_username、login_name、full_name, 多个以逗号分隔 | String |
|
|
136
|
-
| currentUserId | 当前用户ID(用于快速选择"我") | String | ''
|
|
137
|
-
| userGroup | 用户组列表,用于在下拉列表中显示用户组 | Array | []
|
|
138
|
-
| userGroupName | 用户组名称,用于在下拉列表中显示用户组名称 | String |
|
|
125
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
126
|
+
| -------------------- | ----------------------------------------------------------------------- | -------------- | ------------------ |
|
|
127
|
+
| modelValue / v-model | 绑定值,单选为字符串,多选为数组 | String / Array | '' / [] |
|
|
128
|
+
| label | 文本标签 | String | 人员选择 |
|
|
129
|
+
| required | 是否必填 | Boolean | false |
|
|
130
|
+
| placeholder | 占位文本 | String | 请输入人员名称搜索 |
|
|
131
|
+
| multiple | 是否多选 | Boolean | false |
|
|
132
|
+
| draggable | 是否可拖拽(仅多选模式有效) | Boolean | false |
|
|
133
|
+
| apiBaseUrl | API 基础 URL | String | '' |
|
|
134
|
+
| tenantId | 租户 ID | String | '' |
|
|
135
|
+
| exactSearchKey | 精确查找key,可选值为 bk_username、login_name、full_name, 多个以逗号分隔 | String | bk_username |
|
|
136
|
+
| currentUserId | 当前用户ID(用于快速选择"我") | String | '' |
|
|
137
|
+
| userGroup | 用户组列表,用于在下拉列表中显示用户组 | Array | [] |
|
|
138
|
+
| userGroupName | 用户组名称,用于在下拉列表中显示用户组名称 | String | 用户群组 |
|
|
139
|
+
| emptyText | 无匹配人员时的提示文本 | String | 无匹配人员 |
|
|
139
140
|
|
|
140
141
|
### 事件
|
|
141
142
|
|
package/package.json
CHANGED
|
@@ -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;
|