@blueking/bk-user-selector 0.0.25 → 0.0.27
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 +3 -3
- package/package.json +2 -2
- package/typings/components/user-selector.vue.d.ts +3 -0
- package/typings/types/index.d.ts +4 -0
- package/vue2/index.es.min.js +84 -74
- package/vue2/index.iife.min.js +85 -75
- package/vue2/index.umd.min.js +85 -75
- package/vue2/vue2.css +32 -23
- package/vue3/index.es.min.js +84 -74
- package/vue3/index.iife.min.js +85 -75
- package/vue3/index.umd.min.js +85 -75
- package/vue3/vue3.css +32 -23
- package/typings/components/render-tag.d.ts +0 -8
package/vue3/index.umd.min.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
})(this, function(exports2, vue, bkuiVue) {
|
|
4
4
|
"use strict";
|
|
5
5
|
var __vite_style__ = document.createElement("style");
|
|
6
|
-
__vite_style__.textContent = ".me-tag[data-v-887b7c44] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n background-color: #e1ecff;\n color: #4d4f56;\n border-radius: 50%;\n padding: 0 8px;\n height: 24px;\n width: 24px;\n cursor: pointer;\n font-size: 12px;\n position: absolute;\n right: 8px;\n top: 50%;\n transform: translateY(-50%);\n z-index: 1;\n}\n.me-tag[data-v-887b7c44]:hover {\n background-color: #cddffe;\n color: #3a84ff;\n}\n.me-tag.disabled[data-v-887b7c44] {\n background-color: #f0f1f5;\n color: #c4c6cc;\n cursor: not-allowed;\n}.dropdown-content[data-v-
|
|
6
|
+
__vite_style__.textContent = ".me-tag[data-v-887b7c44] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n background-color: #e1ecff;\n color: #4d4f56;\n border-radius: 50%;\n padding: 0 8px;\n height: 24px;\n width: 24px;\n cursor: pointer;\n font-size: 12px;\n position: absolute;\n right: 8px;\n top: 50%;\n transform: translateY(-50%);\n z-index: 1;\n}\n.me-tag[data-v-887b7c44]:hover {\n background-color: #cddffe;\n color: #3a84ff;\n}\n.me-tag.disabled[data-v-887b7c44] {\n background-color: #f0f1f5;\n color: #c4c6cc;\n cursor: not-allowed;\n}.dropdown-content[data-v-e3741833] {\n min-height: 40px;\n max-height: 300px;\n overflow-y: auto;\n padding: 5px 0;\n}\n.dropdown-content .no-data[data-v-e3741833] {\n padding: 10px;\n text-align: center;\n color: #979ba5;\n}\n.dropdown-content .user-group .group-header[data-v-e3741833] {\n padding: 8px 12px;\n color: #979ba5;\n display: flex;\n align-items: center;\n}\n.dropdown-content .user-group .group-header .group-count[data-v-e3741833] {\n margin-left: 4px;\n}\n.dropdown-content .user-option[data-v-e3741833] {\n padding: 8px 12px;\n cursor: pointer;\n display: flex;\n align-items: center;\n height: 32px;\n}\n.dropdown-content .user-option[data-v-e3741833]:hover {\n background-color: #f5f7fa;\n}.bk-user-selector-popover.bk-user-selector-pop2-content {\n padding: 0;\n}.user-tag[data-v-655f7a5a] {\n margin-right: 4px;\n margin-left: 0;\n}\n.user-tag.draggable[data-v-655f7a5a] {\n cursor: move;\n}\n.user-tag.active[data-v-655f7a5a] {\n background-color: #e1ecff;\n border-color: #3a84ff;\n}\n.user-tag .tag-content .user-name[data-v-655f7a5a] {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 12px;\n}.multiple-selector[data-v-19a0ebec] {\n position: relative;\n width: 100%;\n}\n.multiple-selector.is-disabled[data-v-19a0ebec] {\n pointer-events: none;\n}\n.multiple-selector .tags-container[data-v-19a0ebec] {\n min-height: 32px;\n border: 1px solid #c4c6cc;\n border-radius: 2px;\n padding: 1px 10px 1px 8px;\n transition: all 0.2s ease;\n background-color: #fff;\n}\n.multiple-selector .tags-container.focused[data-v-19a0ebec] {\n border-color: #3a84ff;\n box-shadow: 0 0 0 2px rgba(58, 132, 255, 0.1);\n}\n.multiple-selector .tags-container.collapsed[data-v-19a0ebec] {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n}\n.multiple-selector .tag-list[data-v-19a0ebec] {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n}\n.multiple-selector .tag-wrapper[data-v-19a0ebec] {\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n}\n.multiple-selector .search-input[data-v-19a0ebec] {\n outline: none;\n border: none;\n height: 28px;\n min-width: 10px;\n background: transparent;\n}\n.multiple-selector .search-input[data-v-19a0ebec]::placeholder {\n color: #c4c6cc;\n}\n.multiple-selector .search-input.inline[data-v-19a0ebec] {\n min-width: 10px;\n}\n.multiple-selector .search-input.last[data-v-19a0ebec], .multiple-selector .search-input.collapsed[data-v-19a0ebec] {\n flex: 1;\n min-width: 60px;\n}.single-selector[data-v-b6af00c3] {\n position: relative;\n width: 100%;\n}\n.single-selector.is-disabled[data-v-b6af00c3] {\n pointer-events: none;\n}\n.input-container[data-v-b6af00c3] {\n position: relative;\n display: flex;\n align-items: center;\n min-height: 32px;\n border: 1px solid #c4c6cc;\n border-radius: 2px;\n padding: 0 8px;\n background-color: #fff;\n}\n.input-container[data-v-b6af00c3]:focus-within {\n border-color: #3a84ff;\n box-shadow: 0 0 0 2px rgba(58, 132, 255, 0.1);\n}\n.search-input[data-v-b6af00c3] {\n flex: 1;\n outline: none;\n border: none;\n height: 30px;\n background: transparent;\n}\n.search-input[data-v-b6af00c3]::placeholder {\n color: #c4c6cc;\n}.bk-user-selector[data-v-c31311f7] {\n width: 100%;\n position: relative;\n font-size: 12px;\n}\n.bk-user-selector.is-disabled[data-v-c31311f7] {\n cursor: not-allowed;\n}/*$vite$:1*/";
|
|
7
7
|
document.head.appendChild(__vite_style__);
|
|
8
8
|
const getTenants = async (apiBaseUrl, tenantId) => {
|
|
9
9
|
if (!apiBaseUrl || !tenantId) {
|
|
@@ -3064,7 +3064,7 @@
|
|
|
3064
3064
|
};
|
|
3065
3065
|
}
|
|
3066
3066
|
});
|
|
3067
|
-
const _hoisted_1$
|
|
3067
|
+
const _hoisted_1$2 = {
|
|
3068
3068
|
key: 0,
|
|
3069
3069
|
class: "no-data"
|
|
3070
3070
|
};
|
|
@@ -3209,7 +3209,7 @@
|
|
|
3209
3209
|
mode: "spin"
|
|
3210
3210
|
}, {
|
|
3211
3211
|
default: vue.withCtx(() => [
|
|
3212
|
-
__props.options.length === 0 && __props.userGroup.length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3212
|
+
__props.options.length === 0 && __props.userGroup.length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
|
|
3213
3213
|
vue.createElementVNode(
|
|
3214
3214
|
"span",
|
|
3215
3215
|
null,
|
|
@@ -3288,7 +3288,7 @@
|
|
|
3288
3288
|
};
|
|
3289
3289
|
}
|
|
3290
3290
|
});
|
|
3291
|
-
const SelectionPopover = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
3291
|
+
const SelectionPopover = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-e3741833"]]);
|
|
3292
3292
|
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
3293
3293
|
...{
|
|
3294
3294
|
name: "UserTag"
|
|
@@ -3334,7 +3334,7 @@
|
|
|
3334
3334
|
}
|
|
3335
3335
|
});
|
|
3336
3336
|
const UserTag = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-655f7a5a"]]);
|
|
3337
|
-
const _hoisted_1$
|
|
3337
|
+
const _hoisted_1$1 = ["onClick"];
|
|
3338
3338
|
const _hoisted_2$1 = ["placeholder"];
|
|
3339
3339
|
const _hoisted_3 = ["placeholder"];
|
|
3340
3340
|
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -3355,6 +3355,7 @@
|
|
|
3355
3355
|
userGroup: { default: () => [] },
|
|
3356
3356
|
userGroupName: { default: "用户群组" },
|
|
3357
3357
|
emptyText: { default: "无匹配人员" },
|
|
3358
|
+
disabled: { type: Boolean },
|
|
3358
3359
|
renderListItem: {},
|
|
3359
3360
|
renderTag: {},
|
|
3360
3361
|
excludeUserIds: { default: () => [] }
|
|
@@ -3612,7 +3613,7 @@
|
|
|
3612
3613
|
{
|
|
3613
3614
|
ref_key: "containerRef",
|
|
3614
3615
|
ref: containerRef,
|
|
3615
|
-
class: "multiple-selector"
|
|
3616
|
+
class: vue.normalizeClass(["multiple-selector", { "is-disabled": _ctx.disabled }])
|
|
3616
3617
|
},
|
|
3617
3618
|
[
|
|
3618
3619
|
vue.createCommentVNode(" 聚焦状态 - 可编辑模式 "),
|
|
@@ -3675,7 +3676,7 @@
|
|
|
3675
3676
|
)), [
|
|
3676
3677
|
[vue.vModelText, vue.unref(searchQuery)]
|
|
3677
3678
|
]) : vue.createCommentVNode("v-if", true)
|
|
3678
|
-
], 8, _hoisted_1$
|
|
3679
|
+
], 8, _hoisted_1$1);
|
|
3679
3680
|
}),
|
|
3680
3681
|
128
|
|
3681
3682
|
/* KEYED_FRAGMENT */
|
|
@@ -3820,14 +3821,14 @@
|
|
|
3820
3821
|
onSelectUser: addUser
|
|
3821
3822
|
}, null, 8, ["container-width", "cross-axis-offset", "empty-text", "is-show", "loading", "options", "render-list-item", "search-query", "tenant-id", "tenants", "user-group", "user-group-name"])
|
|
3822
3823
|
],
|
|
3823
|
-
|
|
3824
|
-
/*
|
|
3824
|
+
2
|
|
3825
|
+
/* CLASS */
|
|
3825
3826
|
);
|
|
3826
3827
|
};
|
|
3827
3828
|
}
|
|
3828
3829
|
});
|
|
3829
|
-
const MultipleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
3830
|
-
const _hoisted_1
|
|
3830
|
+
const MultipleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-19a0ebec"]]);
|
|
3831
|
+
const _hoisted_1 = { class: "input-container" };
|
|
3831
3832
|
const _hoisted_2 = ["placeholder"];
|
|
3832
3833
|
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
3833
3834
|
...{
|
|
@@ -3845,6 +3846,7 @@
|
|
|
3845
3846
|
userGroup: { default: () => [] },
|
|
3846
3847
|
userGroupName: { default: "用户群组" },
|
|
3847
3848
|
emptyText: { default: "无匹配人员" },
|
|
3849
|
+
disabled: { type: Boolean },
|
|
3848
3850
|
renderListItem: {},
|
|
3849
3851
|
renderTag: {},
|
|
3850
3852
|
excludeUserIds: { default: () => [] }
|
|
@@ -3962,70 +3964,72 @@
|
|
|
3962
3964
|
emit("update:modelValue", newVal);
|
|
3963
3965
|
});
|
|
3964
3966
|
return (_ctx, _cache) => {
|
|
3965
|
-
return vue.withDirectives((vue.openBlock(), vue.createElementBlock(
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3967
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock(
|
|
3968
|
+
"div",
|
|
3969
|
+
{
|
|
3970
|
+
ref_key: "containerRef",
|
|
3971
|
+
ref: containerRef,
|
|
3972
|
+
class: vue.normalizeClass(["single-selector", { "is-disabled": _ctx.disabled }])
|
|
3973
|
+
},
|
|
3974
|
+
[
|
|
3975
|
+
vue.createCommentVNode(" 输入框 "),
|
|
3976
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
3977
|
+
vue.createCommentVNode(" 用户标签显示 "),
|
|
3978
|
+
selectedUserInfo.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
3979
|
+
key: 0,
|
|
3980
|
+
onClick: vue.withModifiers(removeSelectedUser, ["stop"])
|
|
3981
|
+
}, [
|
|
3982
|
+
vue.createVNode(UserTag, {
|
|
3983
|
+
"current-tenant-id": _ctx.tenantId,
|
|
3984
|
+
"render-tag": _ctx.renderTag,
|
|
3985
|
+
tenants: _ctx.tenants,
|
|
3986
|
+
user: selectedUserInfo.value,
|
|
3987
|
+
onClose: removeSelectedUser
|
|
3988
|
+
}, null, 8, ["current-tenant-id", "render-tag", "tenants", "user"])
|
|
3989
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
3990
|
+
vue.withDirectives(vue.createElementVNode("input", {
|
|
3991
|
+
ref_key: "inputRef",
|
|
3992
|
+
ref: inputRef,
|
|
3993
|
+
class: "search-input",
|
|
3994
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchQuery.value = $event),
|
|
3995
|
+
placeholder: selectedUserInfo.value ? "" : _ctx.placeholder,
|
|
3996
|
+
onFocus: handleInputFocus,
|
|
3997
|
+
onInput: handleInput
|
|
3998
|
+
}, null, 40, _hoisted_2), [
|
|
3999
|
+
[vue.vModelText, searchQuery.value]
|
|
4000
|
+
]),
|
|
4001
|
+
vue.createCommentVNode(' "我"标签 '),
|
|
4002
|
+
vue.createVNode(MeTag, {
|
|
4003
|
+
"current-user-id": _ctx.currentUserId,
|
|
4004
|
+
"is-disabled": !!_ctx.currentUserId && !!selectedUserInfo.value && selectedUserInfo.value[_ctx.exactSearchKey] === _ctx.currentUserId,
|
|
4005
|
+
onClick: addCurrentUser
|
|
4006
|
+
}, null, 8, ["current-user-id", "is-disabled"])
|
|
3995
4007
|
]),
|
|
3996
|
-
vue.createCommentVNode(
|
|
3997
|
-
vue.createVNode(
|
|
3998
|
-
"
|
|
3999
|
-
"
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
"render-list-item"
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
"user-group-name": _ctx.userGroupName,
|
|
4016
|
-
onSelectUser: addUser
|
|
4017
|
-
}, null, 8, ["container-width", "empty-text", "is-show", "loading", "options", "render-list-item", "search-query", "tenant-id", "tenants", "user-group", "user-group-name"])
|
|
4018
|
-
])), [
|
|
4008
|
+
vue.createCommentVNode(" 使用新的公共下拉选项组件 "),
|
|
4009
|
+
vue.createVNode(SelectionPopover, {
|
|
4010
|
+
"container-width": containerRef.value ? containerRef.value.offsetWidth : "auto",
|
|
4011
|
+
"empty-text": _ctx.emptyText,
|
|
4012
|
+
"is-show": showDropdown.value,
|
|
4013
|
+
loading: isLoading.value,
|
|
4014
|
+
options: options.value,
|
|
4015
|
+
"render-list-item": _ctx.renderListItem,
|
|
4016
|
+
"search-query": searchQuery.value,
|
|
4017
|
+
"tenant-id": _ctx.tenantId,
|
|
4018
|
+
tenants: _ctx.tenants,
|
|
4019
|
+
"user-group": userGroupFilter.value,
|
|
4020
|
+
"user-group-name": _ctx.userGroupName,
|
|
4021
|
+
onSelectUser: addUser
|
|
4022
|
+
}, null, 8, ["container-width", "empty-text", "is-show", "loading", "options", "render-list-item", "search-query", "tenant-id", "tenants", "user-group", "user-group-name"])
|
|
4023
|
+
],
|
|
4024
|
+
2
|
|
4025
|
+
/* CLASS */
|
|
4026
|
+
)), [
|
|
4019
4027
|
[vue.unref(bkuiVue.clickoutside), handleClickOutside]
|
|
4020
4028
|
]);
|
|
4021
4029
|
};
|
|
4022
4030
|
}
|
|
4023
4031
|
});
|
|
4024
|
-
const SingleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
4025
|
-
const _hoisted_1 = {
|
|
4026
|
-
ref: "containerRef",
|
|
4027
|
-
class: "bk-user-selector"
|
|
4028
|
-
};
|
|
4032
|
+
const SingleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-b6af00c3"]]);
|
|
4029
4033
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
4030
4034
|
...{
|
|
4031
4035
|
name: "BkUserSelector"
|
|
@@ -4043,6 +4047,7 @@
|
|
|
4043
4047
|
userGroup: { default: () => [] },
|
|
4044
4048
|
userGroupName: { default: "用户群组" },
|
|
4045
4049
|
emptyText: { default: "无匹配人员" },
|
|
4050
|
+
disabled: { type: Boolean, default: false },
|
|
4046
4051
|
renderListItem: {},
|
|
4047
4052
|
renderTag: {},
|
|
4048
4053
|
excludeUserIds: { default: () => [] }
|
|
@@ -4120,7 +4125,10 @@
|
|
|
4120
4125
|
return (_ctx, _cache) => {
|
|
4121
4126
|
return vue.openBlock(), vue.createElementBlock(
|
|
4122
4127
|
"section",
|
|
4123
|
-
|
|
4128
|
+
{
|
|
4129
|
+
ref: "containerRef",
|
|
4130
|
+
class: vue.normalizeClass(["bk-user-selector", { "is-disabled": _ctx.disabled }])
|
|
4131
|
+
},
|
|
4124
4132
|
[
|
|
4125
4133
|
vue.createCommentVNode(" 单选模式 "),
|
|
4126
4134
|
!_ctx.multiple ? (vue.openBlock(), vue.createBlock(SingleSelector, {
|
|
@@ -4129,6 +4137,7 @@
|
|
|
4129
4137
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedUser.value = $event),
|
|
4130
4138
|
"api-base-url": _ctx.apiBaseUrl,
|
|
4131
4139
|
"current-user-id": _ctx.currentUserId,
|
|
4140
|
+
disabled: _ctx.disabled,
|
|
4132
4141
|
"empty-text": _ctx.emptyText,
|
|
4133
4142
|
"exact-search-key": _ctx.exactSearchKey,
|
|
4134
4143
|
"exclude-user-ids": _ctx.excludeUserIds,
|
|
@@ -4140,7 +4149,7 @@
|
|
|
4140
4149
|
"user-group": _ctx.userGroup,
|
|
4141
4150
|
"user-group-name": _ctx.userGroupName,
|
|
4142
4151
|
onChange: handleUpdateUser
|
|
4143
|
-
}, null, 8, ["modelValue", "api-base-url", "current-user-id", "empty-text", "exact-search-key", "exclude-user-ids", "placeholder", "render-list-item", "render-tag", "tenant-id", "tenants", "user-group", "user-group-name"])) : (vue.openBlock(), vue.createElementBlock(
|
|
4152
|
+
}, null, 8, ["modelValue", "api-base-url", "current-user-id", "disabled", "empty-text", "exact-search-key", "exclude-user-ids", "placeholder", "render-list-item", "render-tag", "tenant-id", "tenants", "user-group", "user-group-name"])) : (vue.openBlock(), vue.createElementBlock(
|
|
4144
4153
|
vue.Fragment,
|
|
4145
4154
|
{ key: 1 },
|
|
4146
4155
|
[
|
|
@@ -4150,6 +4159,7 @@
|
|
|
4150
4159
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedUserIds.value = $event),
|
|
4151
4160
|
"api-base-url": _ctx.apiBaseUrl,
|
|
4152
4161
|
"current-user-id": _ctx.currentUserId,
|
|
4162
|
+
disabled: _ctx.disabled,
|
|
4153
4163
|
draggable: _ctx.draggable,
|
|
4154
4164
|
"empty-text": _ctx.emptyText,
|
|
4155
4165
|
"exact-search-key": _ctx.exactSearchKey,
|
|
@@ -4163,19 +4173,19 @@
|
|
|
4163
4173
|
"user-group": _ctx.userGroup,
|
|
4164
4174
|
"user-group-name": _ctx.userGroupName,
|
|
4165
4175
|
"onUpdate:selectedUsers": handleUpdateSelectedUsers
|
|
4166
|
-
}, null, 8, ["modelValue", "api-base-url", "current-user-id", "draggable", "empty-text", "exact-search-key", "exclude-user-ids", "placeholder", "render-list-item", "render-tag", "selected-users", "tenant-id", "tenants", "user-group", "user-group-name"])
|
|
4176
|
+
}, null, 8, ["modelValue", "api-base-url", "current-user-id", "disabled", "draggable", "empty-text", "exact-search-key", "exclude-user-ids", "placeholder", "render-list-item", "render-tag", "selected-users", "tenant-id", "tenants", "user-group", "user-group-name"])
|
|
4167
4177
|
],
|
|
4168
4178
|
2112
|
|
4169
4179
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
4170
4180
|
))
|
|
4171
4181
|
],
|
|
4172
|
-
|
|
4173
|
-
/*
|
|
4182
|
+
2
|
|
4183
|
+
/* CLASS */
|
|
4174
4184
|
);
|
|
4175
4185
|
};
|
|
4176
4186
|
}
|
|
4177
4187
|
});
|
|
4178
|
-
const BkUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4188
|
+
const BkUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c31311f7"]]);
|
|
4179
4189
|
exports2.BkUserSelector = BkUserSelector;
|
|
4180
4190
|
exports2.default = BkUserSelector;
|
|
4181
4191
|
Object.defineProperties(exports2, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
package/vue3/vue3.css
CHANGED
|
@@ -24,36 +24,36 @@
|
|
|
24
24
|
background-color: #f0f1f5;
|
|
25
25
|
color: #c4c6cc;
|
|
26
26
|
cursor: not-allowed;
|
|
27
|
-
}.dropdown-content[data-v-
|
|
27
|
+
}.dropdown-content[data-v-e3741833] {
|
|
28
28
|
min-height: 40px;
|
|
29
29
|
max-height: 300px;
|
|
30
30
|
overflow-y: auto;
|
|
31
31
|
padding: 5px 0;
|
|
32
32
|
}
|
|
33
|
-
.dropdown-content .no-data[data-v-
|
|
33
|
+
.dropdown-content .no-data[data-v-e3741833] {
|
|
34
34
|
padding: 10px;
|
|
35
35
|
text-align: center;
|
|
36
36
|
color: #979ba5;
|
|
37
37
|
}
|
|
38
|
-
.dropdown-content .user-group .group-header[data-v-
|
|
38
|
+
.dropdown-content .user-group .group-header[data-v-e3741833] {
|
|
39
39
|
padding: 8px 12px;
|
|
40
40
|
color: #979ba5;
|
|
41
41
|
display: flex;
|
|
42
42
|
align-items: center;
|
|
43
43
|
}
|
|
44
|
-
.dropdown-content .user-group .group-header .group-count[data-v-
|
|
44
|
+
.dropdown-content .user-group .group-header .group-count[data-v-e3741833] {
|
|
45
45
|
margin-left: 4px;
|
|
46
46
|
}
|
|
47
|
-
.dropdown-content .user-option[data-v-
|
|
47
|
+
.dropdown-content .user-option[data-v-e3741833] {
|
|
48
48
|
padding: 8px 12px;
|
|
49
49
|
cursor: pointer;
|
|
50
50
|
display: flex;
|
|
51
51
|
align-items: center;
|
|
52
52
|
height: 32px;
|
|
53
53
|
}
|
|
54
|
-
.dropdown-content .user-option[data-v-
|
|
54
|
+
.dropdown-content .user-option[data-v-e3741833]:hover {
|
|
55
55
|
background-color: #f5f7fa;
|
|
56
|
-
}.bk-user-selector-popover.bk-
|
|
56
|
+
}.bk-user-selector-popover.bk-user-selector-pop2-content {
|
|
57
57
|
padding: 0;
|
|
58
58
|
}.user-tag[data-v-655f7a5a] {
|
|
59
59
|
margin-right: 4px;
|
|
@@ -71,11 +71,14 @@
|
|
|
71
71
|
overflow: hidden;
|
|
72
72
|
text-overflow: ellipsis;
|
|
73
73
|
font-size: 12px;
|
|
74
|
-
}.multiple-selector[data-v-
|
|
74
|
+
}.multiple-selector[data-v-19a0ebec] {
|
|
75
75
|
position: relative;
|
|
76
76
|
width: 100%;
|
|
77
77
|
}
|
|
78
|
-
.multiple-selector
|
|
78
|
+
.multiple-selector.is-disabled[data-v-19a0ebec] {
|
|
79
|
+
pointer-events: none;
|
|
80
|
+
}
|
|
81
|
+
.multiple-selector .tags-container[data-v-19a0ebec] {
|
|
79
82
|
min-height: 32px;
|
|
80
83
|
border: 1px solid #c4c6cc;
|
|
81
84
|
border-radius: 2px;
|
|
@@ -83,46 +86,49 @@
|
|
|
83
86
|
transition: all 0.2s ease;
|
|
84
87
|
background-color: #fff;
|
|
85
88
|
}
|
|
86
|
-
.multiple-selector .tags-container.focused[data-v-
|
|
89
|
+
.multiple-selector .tags-container.focused[data-v-19a0ebec] {
|
|
87
90
|
border-color: #3a84ff;
|
|
88
91
|
box-shadow: 0 0 0 2px rgba(58, 132, 255, 0.1);
|
|
89
92
|
}
|
|
90
|
-
.multiple-selector .tags-container.collapsed[data-v-
|
|
93
|
+
.multiple-selector .tags-container.collapsed[data-v-19a0ebec] {
|
|
91
94
|
display: flex;
|
|
92
95
|
flex-wrap: wrap;
|
|
93
96
|
align-items: center;
|
|
94
97
|
}
|
|
95
|
-
.multiple-selector .tag-list[data-v-
|
|
98
|
+
.multiple-selector .tag-list[data-v-19a0ebec] {
|
|
96
99
|
display: flex;
|
|
97
100
|
flex-wrap: wrap;
|
|
98
101
|
align-items: center;
|
|
99
102
|
}
|
|
100
|
-
.multiple-selector .tag-wrapper[data-v-
|
|
103
|
+
.multiple-selector .tag-wrapper[data-v-19a0ebec] {
|
|
101
104
|
display: inline-flex;
|
|
102
105
|
align-items: center;
|
|
103
106
|
max-width: 100%;
|
|
104
107
|
}
|
|
105
|
-
.multiple-selector .search-input[data-v-
|
|
108
|
+
.multiple-selector .search-input[data-v-19a0ebec] {
|
|
106
109
|
outline: none;
|
|
107
110
|
border: none;
|
|
108
111
|
height: 28px;
|
|
109
112
|
min-width: 10px;
|
|
110
113
|
background: transparent;
|
|
111
114
|
}
|
|
112
|
-
.multiple-selector .search-input[data-v-
|
|
115
|
+
.multiple-selector .search-input[data-v-19a0ebec]::placeholder {
|
|
113
116
|
color: #c4c6cc;
|
|
114
117
|
}
|
|
115
|
-
.multiple-selector .search-input.inline[data-v-
|
|
118
|
+
.multiple-selector .search-input.inline[data-v-19a0ebec] {
|
|
116
119
|
min-width: 10px;
|
|
117
120
|
}
|
|
118
|
-
.multiple-selector .search-input.last[data-v-
|
|
121
|
+
.multiple-selector .search-input.last[data-v-19a0ebec], .multiple-selector .search-input.collapsed[data-v-19a0ebec] {
|
|
119
122
|
flex: 1;
|
|
120
123
|
min-width: 60px;
|
|
121
|
-
}.single-selector[data-v-
|
|
124
|
+
}.single-selector[data-v-b6af00c3] {
|
|
122
125
|
position: relative;
|
|
123
126
|
width: 100%;
|
|
124
127
|
}
|
|
125
|
-
.
|
|
128
|
+
.single-selector.is-disabled[data-v-b6af00c3] {
|
|
129
|
+
pointer-events: none;
|
|
130
|
+
}
|
|
131
|
+
.input-container[data-v-b6af00c3] {
|
|
126
132
|
position: relative;
|
|
127
133
|
display: flex;
|
|
128
134
|
align-items: center;
|
|
@@ -132,21 +138,24 @@
|
|
|
132
138
|
padding: 0 8px;
|
|
133
139
|
background-color: #fff;
|
|
134
140
|
}
|
|
135
|
-
.input-container[data-v-
|
|
141
|
+
.input-container[data-v-b6af00c3]:focus-within {
|
|
136
142
|
border-color: #3a84ff;
|
|
137
143
|
box-shadow: 0 0 0 2px rgba(58, 132, 255, 0.1);
|
|
138
144
|
}
|
|
139
|
-
.search-input[data-v-
|
|
145
|
+
.search-input[data-v-b6af00c3] {
|
|
140
146
|
flex: 1;
|
|
141
147
|
outline: none;
|
|
142
148
|
border: none;
|
|
143
149
|
height: 30px;
|
|
144
150
|
background: transparent;
|
|
145
151
|
}
|
|
146
|
-
.search-input[data-v-
|
|
152
|
+
.search-input[data-v-b6af00c3]::placeholder {
|
|
147
153
|
color: #c4c6cc;
|
|
148
|
-
}.bk-user-selector[data-v-
|
|
154
|
+
}.bk-user-selector[data-v-c31311f7] {
|
|
149
155
|
width: 100%;
|
|
150
156
|
position: relative;
|
|
151
157
|
font-size: 12px;
|
|
158
|
+
}
|
|
159
|
+
.bk-user-selector.is-disabled[data-v-c31311f7] {
|
|
160
|
+
cursor: not-allowed;
|
|
152
161
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
renderTag: FunctionConstructor;
|
|
3
|
-
userInfo: ObjectConstructor;
|
|
4
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5
|
-
renderTag: FunctionConstructor;
|
|
6
|
-
userInfo: ObjectConstructor;
|
|
7
|
-
}>>, {}, {}>;
|
|
8
|
-
export default _default;
|