@fewangsit/wangsvue-fats 1.0.0-alpha.156 → 1.0.0-alpha.158
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/components/username/UserName.vue.d.ts +7 -2
- package/package.json +1 -1
- package/stats.html +1 -1
- package/utils/getStatusSeverity.util.d.ts +4 -1
- package/wangsvue-fats.js +5277 -5272
- package/wangsvue-fats.system.js +71 -71
|
@@ -30,7 +30,7 @@ export interface UserNameComponentConfigs {
|
|
|
30
30
|
/**
|
|
31
31
|
* @example `/tim-member/member/{userId}/detail-member`
|
|
32
32
|
*/
|
|
33
|
-
detailUserPath
|
|
33
|
+
detailUserPath?: string;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* @default 'picture' - Show user profile picture instead of user icon
|
|
@@ -42,6 +42,11 @@ export interface UserNameComponentConfigs {
|
|
|
42
42
|
* @default true
|
|
43
43
|
*/
|
|
44
44
|
showUserName?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Whether to shorten the user's name..
|
|
47
|
+
* @default true
|
|
48
|
+
*/
|
|
49
|
+
formatUserName?: boolean;
|
|
45
50
|
/**
|
|
46
51
|
* Specify the field of user to be used as display name
|
|
47
52
|
*
|
|
@@ -60,7 +65,7 @@ export interface UserNameComponentConfigs {
|
|
|
60
65
|
* @param userId The user id
|
|
61
66
|
* @returns Full user detail object
|
|
62
67
|
*/
|
|
63
|
-
getUserDetail
|
|
68
|
+
getUserDetail?: (
|
|
64
69
|
userId: string,
|
|
65
70
|
) => UserNameProps['user'] | Promise<UserNameProps['user']>;
|
|
66
71
|
}
|