@blueking/bk-user-selector 0.1.0 → 0.1.1-beta.2
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 +2 -0
- package/package.json +1 -1
- package/typings/components/selection-popover.vue.d.ts +6 -0
- package/typings/components/user-render.d.ts +20 -1
- package/typings/components/user-selector.vue.d.ts +2 -0
- package/typings/components/user-tag.vue.d.ts +16 -0
- package/typings/types/index.d.ts +10 -0
- package/vue2/index.es.min.js +392 -81
- package/vue2/index.iife.min.js +397 -109
- package/vue2/index.umd.min.js +392 -81
- package/vue2/vue2.css +24 -24
- package/vue3/index.es.min.js +87 -22
- package/vue3/index.iife.min.js +392 -81
- package/vue3/index.umd.min.js +88 -23
- package/vue3/vue3.css +24 -24
package/README.md
CHANGED
|
@@ -266,6 +266,8 @@ export default {
|
|
|
266
266
|
| modelValue / v-model | 绑定值,单选为字符串,多选为数组 | `string` / `string[]` | `''` / `[]` | 是 |
|
|
267
267
|
| apiBaseUrl | API 基础 URL | `string` | `''` | 是 |
|
|
268
268
|
| tenantId | 租户 ID | `string` | `''` | 是 |
|
|
269
|
+
| hasAvatar | 是否显示头像 | `boolean` | `false` | 否 |
|
|
270
|
+
| avatarBaseUrl | 头像基础 URL | `string` | `` | 否 |
|
|
269
271
|
| label | 文本标签 | `string` | `'人员选择'` | 否 |
|
|
270
272
|
| placeholder | 占位文本 | `string` | `'请输入人员名称搜索'` | 否 |
|
|
271
273
|
| multiple | 是否多选 | `boolean` | `false` | 否 |
|
package/package.json
CHANGED
|
@@ -3,10 +3,14 @@ import { FormattedUser, RenderFunction, TenantMap, UserGroupConfig } from '../ty
|
|
|
3
3
|
* 组件属性
|
|
4
4
|
*/
|
|
5
5
|
interface SelectionPopoverProps {
|
|
6
|
+
/** 头像基础URL */
|
|
7
|
+
avatarBaseUrl?: string;
|
|
6
8
|
/** 容器宽度 */
|
|
7
9
|
containerWidth?: number | string;
|
|
8
10
|
/** 无匹配人员时的提示文本 */
|
|
9
11
|
emptyText?: string;
|
|
12
|
+
/** 是否显示头像 */
|
|
13
|
+
hasAvatar?: boolean;
|
|
10
14
|
/** 是否显示下拉菜单 */
|
|
11
15
|
isShow?: boolean;
|
|
12
16
|
/** 是否加载中 */
|
|
@@ -51,6 +55,8 @@ declare const __VLS_component: import("vue").DefineComponent<SelectionPopoverPro
|
|
|
51
55
|
tenantId: string;
|
|
52
56
|
searchQuery: string;
|
|
53
57
|
tenants: TenantMap;
|
|
58
|
+
hasAvatar: boolean;
|
|
59
|
+
avatarBaseUrl: string;
|
|
54
60
|
containerWidth: number | string;
|
|
55
61
|
emptyText: string;
|
|
56
62
|
isShow: boolean;
|
|
@@ -16,6 +16,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
16
16
|
type: FunctionConstructor;
|
|
17
17
|
required: false;
|
|
18
18
|
};
|
|
19
|
+
hasAvatar: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
avatarBaseUrl: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
19
27
|
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
28
|
user: {
|
|
21
29
|
type: () => FormattedUser;
|
|
@@ -33,5 +41,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
33
41
|
type: FunctionConstructor;
|
|
34
42
|
required: false;
|
|
35
43
|
};
|
|
36
|
-
|
|
44
|
+
hasAvatar: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
avatarBaseUrl: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
}>> & Readonly<{}>, {
|
|
53
|
+
hasAvatar: boolean;
|
|
54
|
+
avatarBaseUrl: string;
|
|
55
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
37
56
|
export default _default;
|
|
@@ -25,6 +25,8 @@ declare const _default: import("vue").DefineComponent<UserSelectorProps, {}, {},
|
|
|
25
25
|
maxCount: number;
|
|
26
26
|
excludeUserIds: string[];
|
|
27
27
|
disabled: boolean;
|
|
28
|
+
hasAvatar: boolean;
|
|
29
|
+
avatarBaseUrl: string;
|
|
28
30
|
emptyText: string;
|
|
29
31
|
userGroupName: string;
|
|
30
32
|
draggable: boolean;
|
|
@@ -5,6 +5,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
* 是否激活状态
|
|
6
6
|
*/
|
|
7
7
|
active?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 头像基础URL
|
|
10
|
+
*/
|
|
11
|
+
avatarBaseUrl?: string;
|
|
8
12
|
/**
|
|
9
13
|
* 当前租户ID
|
|
10
14
|
*/
|
|
@@ -13,6 +17,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
17
|
* 是否可拖拽
|
|
14
18
|
*/
|
|
15
19
|
draggable?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* 是否显示头像
|
|
22
|
+
*/
|
|
23
|
+
hasAvatar?: boolean;
|
|
16
24
|
/**
|
|
17
25
|
* 渲染标签
|
|
18
26
|
*/
|
|
@@ -37,6 +45,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
45
|
* 是否激活状态
|
|
38
46
|
*/
|
|
39
47
|
active?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 头像基础URL
|
|
50
|
+
*/
|
|
51
|
+
avatarBaseUrl?: string;
|
|
40
52
|
/**
|
|
41
53
|
* 当前租户ID
|
|
42
54
|
*/
|
|
@@ -45,6 +57,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
57
|
* 是否可拖拽
|
|
46
58
|
*/
|
|
47
59
|
draggable?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* 是否显示头像
|
|
62
|
+
*/
|
|
63
|
+
hasAvatar?: boolean;
|
|
48
64
|
/**
|
|
49
65
|
* 渲染标签
|
|
50
66
|
*/
|
package/typings/types/index.d.ts
CHANGED
|
@@ -13,6 +13,11 @@ export interface BaseSelectorProps {
|
|
|
13
13
|
* 接口基础URL
|
|
14
14
|
*/
|
|
15
15
|
apiBaseUrl: string;
|
|
16
|
+
/**
|
|
17
|
+
* 头像基础URL
|
|
18
|
+
* @default ''
|
|
19
|
+
*/
|
|
20
|
+
avatarBaseUrl?: string;
|
|
16
21
|
/**
|
|
17
22
|
* 本人ID
|
|
18
23
|
*/
|
|
@@ -41,6 +46,11 @@ export interface BaseSelectorProps {
|
|
|
41
46
|
* 是否允许粘贴任意文本
|
|
42
47
|
*/
|
|
43
48
|
freePaste?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* 是否显示头像
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
hasAvatar?: boolean;
|
|
44
54
|
/**
|
|
45
55
|
* 占位文字
|
|
46
56
|
*/
|