@blueking/bk-user-selector 0.0.1-beta.1 → 0.0.2-beta.1
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 +127 -1
- package/package.json +6 -4
- package/typings/api/user.d.ts +34 -0
- package/typings/components/multiple-selector.vue.d.ts +104 -0
- package/typings/components/single-selector.vue.d.ts +18 -0
- package/typings/components/user-selector.vue.d.ts +53 -0
- package/typings/components/user-tag.vue.d.ts +68 -0
- package/typings/hooks/useTenantData.d.ts +16 -0
- package/typings/hooks/useUserSearch.d.ts +20 -0
- package/typings/hooks/useUserSelection.d.ts +23 -0
- package/typings/index.d.ts +18 -0
- package/typings/types/index.d.ts +121 -0
- package/typings/utils/common.d.ts +33 -0
- package/typings/vue3.d.ts +1 -1
- package/vue2/index.es.min.js +9892 -13305
- package/vue2/index.iife.min.js +22083 -28837
- package/vue2/index.umd.min.js +9892 -13305
- package/vue2/vue2.css +88 -179
- package/vue3/index.es.min.js +932 -5266
- package/vue3/index.iife.min.js +9892 -13305
- package/vue3/index.umd.min.js +932 -5266
- package/vue3/vue3.css +89 -180
- package/typings/index.vue.d.ts +0 -22
- package/typings/single.vue.d.ts +0 -12
- package/typings/utils/index.d.ts +0 -59
- package/typings/utils/jsonp.d.ts +0 -4
- package/typings/utils/lang.d.ts +0 -3
- package/typings/utils/service.d.ts +0 -36
package/vue2/vue2.css
CHANGED
|
@@ -2947,222 +2947,131 @@ input:-moz-autofill:active {
|
|
|
2947
2947
|
width: 1px;
|
|
2948
2948
|
background: transparent;
|
|
2949
2949
|
}
|
|
2950
|
-
|
|
2951
|
-
.user-selector[data-v-f60d399f] {
|
|
2952
|
-
width: 100%;
|
|
2953
|
-
}
|
|
2954
|
-
.form-item[data-v-f60d399f] {
|
|
2950
|
+
.user-option[data-v-0ae61279] {
|
|
2955
2951
|
display: flex;
|
|
2956
2952
|
align-items: center;
|
|
2957
|
-
margin-bottom: 15px;
|
|
2958
2953
|
}
|
|
2959
|
-
.
|
|
2960
|
-
width: 80px;
|
|
2961
|
-
text-align: right;
|
|
2962
|
-
padding-right: 10px;
|
|
2954
|
+
.user-option .user-name[data-v-0ae61279] {
|
|
2963
2955
|
font-size: 14px;
|
|
2964
|
-
color: #63656e;
|
|
2965
2956
|
}
|
|
2966
|
-
.
|
|
2967
|
-
|
|
2957
|
+
.user-option .tenant-name[data-v-0ae61279] {
|
|
2958
|
+
font-size: 12px;
|
|
2959
|
+
color: #f59500;
|
|
2960
|
+
margin-left: 4px;
|
|
2961
|
+
padding: 0 4px;
|
|
2962
|
+
background: rgba(245, 149, 0, 0.1);
|
|
2963
|
+
border-radius: 2px;
|
|
2964
|
+
}.user-tag[data-v-cf26d9e2] {
|
|
2968
2965
|
margin-right: 4px;
|
|
2969
2966
|
}
|
|
2970
|
-
.
|
|
2971
|
-
|
|
2967
|
+
.user-tag.draggable[data-v-cf26d9e2] {
|
|
2968
|
+
cursor: move;
|
|
2969
|
+
}
|
|
2970
|
+
.user-tag.active[data-v-cf26d9e2] {
|
|
2971
|
+
background-color: #e1ecff;
|
|
2972
|
+
border-color: #3a84ff;
|
|
2973
|
+
}
|
|
2974
|
+
.user-tag .tag-content .user-name[data-v-cf26d9e2] {
|
|
2975
|
+
white-space: nowrap;
|
|
2976
|
+
overflow: hidden;
|
|
2977
|
+
text-overflow: ellipsis;
|
|
2978
|
+
font-size: 12px;
|
|
2979
|
+
}
|
|
2980
|
+
.user-tag .tag-content .tenant-name[data-v-cf26d9e2] {
|
|
2981
|
+
color: #f59500;
|
|
2982
|
+
margin-left: 3px;
|
|
2983
|
+
white-space: nowrap;
|
|
2984
|
+
padding: 0 3px;
|
|
2985
|
+
border-radius: 2px;
|
|
2986
|
+
}.bk-user-selector-popover.bk-popover.bk-pop2-content {
|
|
2987
|
+
padding: 0;
|
|
2988
|
+
}.multiple-selector[data-v-6a1779a9] {
|
|
2972
2989
|
position: relative;
|
|
2990
|
+
width: 100%;
|
|
2973
2991
|
}
|
|
2974
|
-
.
|
|
2975
|
-
|
|
2976
|
-
flex-wrap: wrap;
|
|
2992
|
+
.multiple-selector .tags-container[data-v-6a1779a9] {
|
|
2993
|
+
min-height: 32px;
|
|
2977
2994
|
border: 1px solid #dcdee5;
|
|
2978
2995
|
border-radius: 2px;
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
gap: 4px;
|
|
2983
|
-
}
|
|
2984
|
-
.tag-inline-container[data-v-f60d399f] {
|
|
2985
|
-
display: flex;
|
|
2986
|
-
flex-wrap: nowrap;
|
|
2987
|
-
align-items: center;
|
|
2988
|
-
gap: 4px;
|
|
2989
|
-
flex-grow: 1;
|
|
2990
|
-
min-height: 24px;
|
|
2996
|
+
padding: 1px 4px;
|
|
2997
|
+
transition: all 0.2s ease;
|
|
2998
|
+
background-color: #fff;
|
|
2991
2999
|
}
|
|
2992
|
-
.
|
|
3000
|
+
.multiple-selector .tags-container.focused[data-v-6a1779a9] {
|
|
2993
3001
|
border-color: #3a84ff;
|
|
3002
|
+
box-shadow: 0 0 0 2px rgba(58, 132, 255, 0.1);
|
|
2994
3003
|
}
|
|
2995
|
-
.
|
|
2996
|
-
display:
|
|
2997
|
-
|
|
2998
|
-
}
|
|
2999
|
-
.tag-item[data-v-f60d399f] {
|
|
3000
|
-
flex-shrink: 0;
|
|
3001
|
-
height: 24px;
|
|
3002
|
-
line-height: 24px;
|
|
3003
|
-
margin: 0;
|
|
3004
|
-
cursor: pointer;
|
|
3005
|
-
display: inline-flex;
|
|
3004
|
+
.multiple-selector .tags-container.collapsed[data-v-6a1779a9] {
|
|
3005
|
+
display: flex;
|
|
3006
|
+
flex-wrap: wrap;
|
|
3006
3007
|
align-items: center;
|
|
3007
3008
|
}
|
|
3008
|
-
.tag-
|
|
3009
|
+
.multiple-selector .tag-list[data-v-6a1779a9] {
|
|
3009
3010
|
display: flex;
|
|
3011
|
+
flex-wrap: wrap;
|
|
3010
3012
|
align-items: center;
|
|
3011
|
-
height: 100%;
|
|
3012
3013
|
}
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
flex-grow: 0;
|
|
3017
|
-
width: 10px;
|
|
3018
|
-
min-width: 10px;
|
|
3014
|
+
.multiple-selector .tag-wrapper[data-v-6a1779a9] {
|
|
3015
|
+
display: inline-flex;
|
|
3016
|
+
align-items: center;
|
|
3019
3017
|
max-width: 100%;
|
|
3020
|
-
|
|
3018
|
+
}
|
|
3019
|
+
.multiple-selector .search-input[data-v-6a1779a9] {
|
|
3021
3020
|
outline: none;
|
|
3022
|
-
|
|
3021
|
+
border: none;
|
|
3023
3022
|
font-size: 14px;
|
|
3024
|
-
|
|
3023
|
+
height: 28px;
|
|
3025
3024
|
background: transparent;
|
|
3026
|
-
cursor: text;
|
|
3027
|
-
transition: width 0.1s ease-in-out;
|
|
3028
3025
|
}
|
|
3029
|
-
.
|
|
3030
|
-
color: #
|
|
3031
|
-
font-size: 12px;
|
|
3026
|
+
.multiple-selector .search-input[data-v-6a1779a9]::placeholder {
|
|
3027
|
+
color: #C4C6CC;
|
|
3032
3028
|
}
|
|
3033
|
-
.
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
/* 添加统一的内边距 */
|
|
3029
|
+
.multiple-selector .search-input.inline[data-v-6a1779a9] {
|
|
3030
|
+
width: 4px;
|
|
3031
|
+
min-width: 4px;
|
|
3037
3032
|
}
|
|
3038
|
-
.
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
overflow-y: auto;
|
|
3042
|
-
background-color: #fff;
|
|
3033
|
+
.multiple-selector .search-input.last[data-v-6a1779a9], .multiple-selector .search-input.collapsed[data-v-6a1779a9] {
|
|
3034
|
+
flex: 1;
|
|
3035
|
+
min-width: 60px;
|
|
3043
3036
|
}
|
|
3044
|
-
.
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3037
|
+
.multiple-selector .tag-more[data-v-6a1779a9] {
|
|
3038
|
+
background-color: #f0f1f5;
|
|
3039
|
+
color: #63656e;
|
|
3040
|
+
margin: 0 4px 4px 0;
|
|
3048
3041
|
cursor: pointer;
|
|
3049
3042
|
}
|
|
3050
|
-
.
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
height: 24px;
|
|
3056
|
-
border-radius: 50%;
|
|
3057
|
-
margin-right: 8px;
|
|
3043
|
+
.dropdown-content[data-v-6a1779a9] {
|
|
3044
|
+
min-height: 40px;
|
|
3045
|
+
max-height: 300px;
|
|
3046
|
+
overflow-y: auto;
|
|
3047
|
+
padding: 5px 0;
|
|
3058
3048
|
}
|
|
3059
|
-
.
|
|
3060
|
-
|
|
3061
|
-
height: 24px;
|
|
3062
|
-
line-height: 24px;
|
|
3049
|
+
.dropdown-content .no-data[data-v-6a1779a9] {
|
|
3050
|
+
padding: 10px;
|
|
3063
3051
|
text-align: center;
|
|
3064
|
-
|
|
3065
|
-
background-color: #3a84ff;
|
|
3066
|
-
color: white;
|
|
3067
|
-
font-size: 12px;
|
|
3068
|
-
margin-right: 8px;
|
|
3069
|
-
}
|
|
3070
|
-
.user-name[data-v-f60d399f] {
|
|
3071
|
-
font-size: 12px;
|
|
3072
|
-
}
|
|
3073
|
-
|
|
3074
|
-
/* 拖拽相关样式 */
|
|
3075
|
-
.draggable[data-v-f60d399f] {
|
|
3076
|
-
cursor: move;
|
|
3077
|
-
padding-left: 4px;
|
|
3078
|
-
}
|
|
3079
|
-
.ghost-tag[data-v-f60d399f] {
|
|
3080
|
-
opacity: 0.5;
|
|
3081
|
-
background: #c8ebfb;
|
|
3082
|
-
}
|
|
3083
|
-
.chosen-tag[data-v-f60d399f] {
|
|
3084
|
-
box-shadow: 0 0 2px 2px #3a84ff;
|
|
3085
|
-
}
|
|
3086
|
-
.drag-tag[data-v-f60d399f] {
|
|
3087
|
-
opacity: 0.8;
|
|
3088
|
-
}
|
|
3089
|
-
.drag-handle[data-v-f60d399f] {
|
|
3090
|
-
display: inline-flex;
|
|
3091
|
-
align-items: center;
|
|
3092
|
-
margin-right: 4px;
|
|
3093
|
-
opacity: 0.6;
|
|
3094
|
-
cursor: move;
|
|
3095
|
-
}
|
|
3096
|
-
.drag-handle svg[data-v-f60d399f] {
|
|
3097
|
-
fill: currentColor;
|
|
3098
|
-
}
|
|
3099
|
-
.tag-wrapper[data-v-f60d399f] {
|
|
3100
|
-
display: flex;
|
|
3101
|
-
align-items: center;
|
|
3102
|
-
padding: 0;
|
|
3103
|
-
height: 24px;
|
|
3104
|
-
}
|
|
3105
|
-
.inline-input[data-v-f60d399f] {
|
|
3106
|
-
margin-left: 4px;
|
|
3107
|
-
min-width: 10px;
|
|
3108
|
-
padding: 0 2px;
|
|
3109
|
-
}
|
|
3110
|
-
|
|
3111
|
-
/* 测量元素样式 */
|
|
3112
|
-
.measure-text[data-v-f60d399f] {
|
|
3113
|
-
position: absolute;
|
|
3114
|
-
visibility: hidden;
|
|
3115
|
-
height: 0;
|
|
3116
|
-
white-space: pre;
|
|
3117
|
-
font-size: 14px;
|
|
3118
|
-
font-family: inherit;
|
|
3119
|
-
padding: 0 2px;
|
|
3052
|
+
color: #979ba5;
|
|
3120
3053
|
}
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
.is-single[data-v-f60d399f] {
|
|
3054
|
+
.dropdown-content .user-option[data-v-6a1779a9] {
|
|
3055
|
+
padding: 8px 12px;
|
|
3124
3056
|
cursor: pointer;
|
|
3125
|
-
}
|
|
3126
|
-
.single-select[data-v-f60d399f] {
|
|
3127
3057
|
display: flex;
|
|
3128
3058
|
align-items: center;
|
|
3129
|
-
|
|
3130
|
-
width: 100%;
|
|
3131
|
-
height: 100%;
|
|
3132
|
-
}
|
|
3133
|
-
.single-value[data-v-f60d399f] {
|
|
3134
|
-
display: flex;
|
|
3135
|
-
align-items: center;
|
|
3136
|
-
padding: 0 8px;
|
|
3137
|
-
margin-right: 4px;
|
|
3138
|
-
height: 24px;
|
|
3139
|
-
}
|
|
3140
|
-
.single-input[data-v-f60d399f] {
|
|
3141
|
-
flex: 1;
|
|
3142
|
-
width: auto;
|
|
3143
|
-
}
|
|
3144
|
-
.placeholder[data-v-f60d399f] {
|
|
3145
|
-
color: #c4c6cc;
|
|
3059
|
+
height: 32px;
|
|
3146
3060
|
}
|
|
3147
|
-
.dropdown-
|
|
3148
|
-
|
|
3149
|
-
font-size: 10px;
|
|
3150
|
-
color: #979ba5;
|
|
3061
|
+
.dropdown-content .user-option[data-v-6a1779a9]:hover {
|
|
3062
|
+
background-color: #f5f7fa;
|
|
3151
3063
|
}
|
|
3152
|
-
.
|
|
3153
|
-
margin-left: 8px;
|
|
3064
|
+
.dropdown-content .user-option .user-name[data-v-6a1779a9] {
|
|
3154
3065
|
font-size: 14px;
|
|
3155
|
-
color: #979ba5;
|
|
3156
|
-
cursor: pointer;
|
|
3157
|
-
}
|
|
3158
|
-
.clear-icon[data-v-f60d399f]:hover {
|
|
3159
|
-
color: #63656e;
|
|
3160
3066
|
}
|
|
3161
|
-
.
|
|
3162
|
-
padding: 8px 12px;
|
|
3067
|
+
.dropdown-content .user-option .tenant-name[data-v-6a1779a9] {
|
|
3163
3068
|
font-size: 12px;
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3069
|
+
color: #f59500;
|
|
3070
|
+
margin-left: 4px;
|
|
3071
|
+
padding: 0 4px;
|
|
3072
|
+
background: rgba(245, 149, 0, 0.1);
|
|
3073
|
+
border-radius: 2px;
|
|
3074
|
+
}.bk-user-selector[data-v-144c2518] {
|
|
3075
|
+
width: 100%;
|
|
3076
|
+
position: relative;
|
|
3077
|
+
}
|