@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/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
- .form-label[data-v-f60d399f] {
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
- .form-required[data-v-f60d399f] {
2967
- color: #ea3636;
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
- .form-content[data-v-f60d399f] {
2971
- flex: 1;
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
- .tag-input-container[data-v-f60d399f] {
2975
- display: flex;
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
- min-height: 32px;
2980
- align-items: center;
2981
- padding: 2px 8px;
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
- .is-focused[data-v-f60d399f] {
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
- .tag-group[data-v-f60d399f] {
2996
- display: contents;
2997
- /* 让draggable的内容直接成为父容器的子元素 */
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-content[data-v-f60d399f] {
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
- .tag-input[data-v-f60d399f] {
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
- border: none;
3018
+ }
3019
+ .multiple-selector .search-input[data-v-6a1779a9] {
3021
3020
  outline: none;
3022
- height: 32px;
3021
+ border: none;
3023
3022
  font-size: 14px;
3024
- padding: 0 8px;
3023
+ height: 28px;
3025
3024
  background: transparent;
3026
- cursor: text;
3027
- transition: width 0.1s ease-in-out;
3028
3025
  }
3029
- .tag-input[data-v-f60d399f]::placeholder {
3030
- color: #c4c6cc;
3031
- font-size: 12px;
3026
+ .multiple-selector .search-input[data-v-6a1779a9]::placeholder {
3027
+ color: #C4C6CC;
3032
3028
  }
3033
- .full-width[data-v-f60d399f] {
3034
- flex-grow: 1;
3035
- padding: 0 8px;
3036
- /* 添加统一的内边距 */
3029
+ .multiple-selector .search-input.inline[data-v-6a1779a9] {
3030
+ width: 4px;
3031
+ min-width: 4px;
3037
3032
  }
3038
- .popover-content[data-v-f60d399f] {
3039
- min-height: 80px;
3040
- max-height: 250px;
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
- .user-option[data-v-f60d399f] {
3045
- display: flex;
3046
- align-items: center;
3047
- padding: 8px 12px;
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
- .user-option[data-v-f60d399f]:hover {
3051
- background-color: #f5f7fa;
3052
- }
3053
- .user-avatar[data-v-f60d399f] {
3054
- width: 24px;
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
- .user-avatar-text[data-v-f60d399f] {
3060
- width: 24px;
3061
- height: 24px;
3062
- line-height: 24px;
3049
+ .dropdown-content .no-data[data-v-6a1779a9] {
3050
+ padding: 10px;
3063
3051
  text-align: center;
3064
- border-radius: 50%;
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
- justify-content: space-between;
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-arrow[data-v-f60d399f] {
3148
- margin-left: 8px;
3149
- font-size: 10px;
3150
- color: #979ba5;
3061
+ .dropdown-content .user-option[data-v-6a1779a9]:hover {
3062
+ background-color: #f5f7fa;
3151
3063
  }
3152
- .clear-icon[data-v-f60d399f] {
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
- .no-data[data-v-f60d399f] {
3162
- padding: 8px 12px;
3067
+ .dropdown-content .user-option .tenant-name[data-v-6a1779a9] {
3163
3068
  font-size: 12px;
3164
- text-align: center;
3165
- display: flex;
3166
- align-items: center;
3167
- justify-content: center;
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
+ }