@blueking/bk-user-selector 0.0.10 → 0.0.12

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.
@@ -48,7 +48,8 @@ const searchUsers = async (apiBaseUrl = "", tenantId = "", keyword = "") => {
48
48
  return [];
49
49
  }
50
50
  };
51
- const lookupUsers = async (apiBaseUrl = "", tenantId = "", exactSearchKey = "bk_username", users = []) => {
51
+ const lookupUsers = async (apiBaseUrl = "", tenantId = "", exactSearchKey = "bk_username", usersList = []) => {
52
+ const users = usersList.filter((user) => user).map((user) => user.trim());
52
53
  if (users.length === 0 || !apiBaseUrl || !tenantId) {
53
54
  console.warn("批量查找用户需要提供有效的apiBaseUrl、租户ID和至少一个用户名");
54
55
  return [];
@@ -16768,6 +16769,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
16768
16769
  userGroupName: {
16769
16770
  type: String,
16770
16771
  default: "用户群组"
16772
+ },
16773
+ /**
16774
+ * 无匹配人员时的提示文本
16775
+ */
16776
+ emptyText: {
16777
+ type: String,
16778
+ default: "无匹配人员"
16771
16779
  }
16772
16780
  },
16773
16781
  emits: ["select-user"],
@@ -16817,7 +16825,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
16817
16825
  createElementVNode(
16818
16826
  "span",
16819
16827
  null,
16820
- toDisplayString(__props.searchQuery.length > 1 ? "未找到匹配用户" : "请输入关键词搜索"),
16828
+ toDisplayString(__props.searchQuery.length > 1 ? __props.emptyText : "请至少输入2个字符搜索"),
16821
16829
  1
16822
16830
  /* TEXT */
16823
16831
  )
@@ -16900,7 +16908,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
16900
16908
  };
16901
16909
  }
16902
16910
  });
16903
- const SelectionPopover = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-01b75e6e"]]);
16911
+ const SelectionPopover = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-05b232a4"]]);
16904
16912
  const _hoisted_1$3 = { class: "tag-content" };
16905
16913
  const _hoisted_2$2 = { class: "user-name" };
16906
16914
  const _hoisted_3$2 = {
@@ -16960,7 +16968,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
16960
16968
  };
16961
16969
  }
16962
16970
  });
16963
- const UserTag = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-203c36cb"]]);
16971
+ const UserTag = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-87c12feb"]]);
16964
16972
  const _hoisted_1$2 = ["onClick"];
16965
16973
  const _hoisted_2$1 = ["placeholder"];
16966
16974
  const _hoisted_3$1 = ["placeholder"];
@@ -16980,7 +16988,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
16980
16988
  currentUserId: { default: "" },
16981
16989
  exactSearchKey: { default: "bk_username" },
16982
16990
  userGroup: { default: () => [] },
16983
- userGroupName: { default: "用户群组" }
16991
+ userGroupName: { default: "用户群组" },
16992
+ emptyText: { default: "无匹配人员" }
16984
16993
  },
16985
16994
  emits: ["update:selectedUsers", "add-user", "remove-user"],
16986
16995
  setup(__props, { emit: __emit }) {
@@ -17057,7 +17066,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
17057
17066
  }
17058
17067
  });
17059
17068
  };
17060
- const handleClickOutside = () => {
17069
+ const handleClickOutside = ({ event }) => {
17070
+ event.stopPropagation();
17071
+ const target = event.target;
17072
+ const container = containerRef.value;
17073
+ if ((container == null ? void 0 : container.contains(target)) || container === target) {
17074
+ return;
17075
+ }
17061
17076
  isFocused.value = false;
17062
17077
  showDropdown.value = false;
17063
17078
  activeTagIndex.value = -1;
@@ -17166,7 +17181,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
17166
17181
  emit("add-user", user);
17167
17182
  }
17168
17183
  searchQuery.value = "";
17169
- showDropdown.value = false;
17184
+ setTimeout(() => {
17185
+ showDropdown.value = false;
17186
+ }, 220);
17187
+ nextTick(() => {
17188
+ if (lastInputRef.value) {
17189
+ lastInputRef.value.focus();
17190
+ }
17191
+ });
17170
17192
  };
17171
17193
  const removeUser = (user) => {
17172
17194
  if (!(user == null ? void 0 : user.id)) return;
@@ -17215,200 +17237,206 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
17215
17237
  });
17216
17238
  });
17217
17239
  return (_ctx, _cache) => {
17218
- return withDirectives((openBlock(), createElementBlock("div", {
17219
- ref_key: "containerRef",
17220
- ref: containerRef,
17221
- class: "multiple-selector"
17222
- }, [
17223
- createCommentVNode(" 聚焦状态 - 可编辑模式 "),
17224
- isFocused.value ? (openBlock(), createElementBlock(
17225
- "div",
17226
- {
17227
- key: 0,
17228
- ref_key: "tagsContainerRef",
17229
- ref: tagsContainerRef,
17230
- class: "tags-container focused",
17231
- onClick: withModifiers(handleContainerClick, ["stop"])
17232
- },
17233
- [
17234
- createCommentVNode(" 用户标签列表 "),
17235
- createElementVNode(
17236
- "div",
17237
- {
17238
- ref_key: "sortableContainerRef",
17239
- ref: sortableContainerRef,
17240
- class: "tag-list"
17241
- },
17242
- [
17243
- (openBlock(true), createElementBlock(
17244
- Fragment,
17245
- null,
17246
- renderList(_ctx.selectedUsers, (user, index) => {
17247
- return openBlock(), createElementBlock("div", {
17248
- class: "tag-wrapper",
17249
- key: user.id,
17250
- onClick: withModifiers(($event) => handleTagClick(index), ["stop"])
17251
- }, [
17252
- createVNode(UserTag, {
17253
- active: index === activeTagIndex.value,
17240
+ return openBlock(), createElementBlock(
17241
+ "div",
17242
+ {
17243
+ ref_key: "containerRef",
17244
+ ref: containerRef,
17245
+ class: "multiple-selector"
17246
+ },
17247
+ [
17248
+ createCommentVNode(" 聚焦状态 - 可编辑模式 "),
17249
+ isFocused.value ? (openBlock(), createElementBlock(
17250
+ "div",
17251
+ {
17252
+ key: 0,
17253
+ ref_key: "tagsContainerRef",
17254
+ ref: tagsContainerRef,
17255
+ class: "tags-container focused",
17256
+ onClick: withModifiers(handleContainerClick, ["stop"])
17257
+ },
17258
+ [
17259
+ createCommentVNode(" 用户标签列表 "),
17260
+ createElementVNode(
17261
+ "div",
17262
+ {
17263
+ ref_key: "sortableContainerRef",
17264
+ ref: sortableContainerRef,
17265
+ class: "tag-list"
17266
+ },
17267
+ [
17268
+ (openBlock(true), createElementBlock(
17269
+ Fragment,
17270
+ null,
17271
+ renderList(_ctx.selectedUsers, (user, index) => {
17272
+ return openBlock(), createElementBlock("div", {
17273
+ class: "tag-wrapper",
17274
+ key: user.id,
17275
+ onClick: withModifiers(($event) => handleTagClick(index), ["stop"])
17276
+ }, [
17277
+ createVNode(UserTag, {
17278
+ active: index === activeTagIndex.value,
17279
+ "current-tenant-id": _ctx.tenantId,
17280
+ draggable: _ctx.draggable,
17281
+ tenants: _ctx.tenants,
17282
+ user,
17283
+ onClick: ($event) => handleTagClick(index),
17284
+ onClose: ($event) => removeUser(user)
17285
+ }, null, 8, ["active", "current-tenant-id", "draggable", "tenants", "user", "onClick", "onClose"]),
17286
+ createCommentVNode(" 在当前激活标签后插入输入框 "),
17287
+ index === activeTagIndex.value && activeTagIndex.value !== _ctx.selectedUsers.length - 1 ? withDirectives((openBlock(), createElementBlock(
17288
+ "input",
17289
+ {
17290
+ key: 0,
17291
+ ref_for: true,
17292
+ ref_key: "inlineInputRef",
17293
+ ref: inlineInputRef,
17294
+ class: "search-input inline",
17295
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
17296
+ onFocus: handleInputFocus,
17297
+ onInput: handleInput,
17298
+ onKeydown: handleKeyDown,
17299
+ onPaste: handlePaste
17300
+ },
17301
+ null,
17302
+ 544
17303
+ /* NEED_HYDRATION, NEED_PATCH */
17304
+ )), [
17305
+ [vModelText, unref(searchQuery)]
17306
+ ]) : createCommentVNode("v-if", true)
17307
+ ], 8, _hoisted_1$2);
17308
+ }),
17309
+ 128
17310
+ /* KEYED_FRAGMENT */
17311
+ )),
17312
+ createCommentVNode(" 最后一个输入框 "),
17313
+ activeTagIndex.value === -1 || activeTagIndex.value === _ctx.selectedUsers.length - 1 ? withDirectives((openBlock(), createElementBlock("input", {
17314
+ key: 0,
17315
+ ref_key: "lastInputRef",
17316
+ ref: lastInputRef,
17317
+ class: "search-input last",
17318
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
17319
+ placeholder: !_ctx.selectedUsers.length ? _ctx.placeholder : "",
17320
+ onFocus: handleInputFocus,
17321
+ onInput: handleInput,
17322
+ onKeydown: handleKeyDown,
17323
+ onPaste: handlePaste
17324
+ }, null, 40, _hoisted_2$1)), [
17325
+ [vModelText, unref(searchQuery)]
17326
+ ]) : createCommentVNode("v-if", true),
17327
+ createCommentVNode(' "我"标签 '),
17328
+ createVNode(MeTag, {
17329
+ "current-user-id": _ctx.currentUserId,
17330
+ "is-disabled": !!_ctx.currentUserId && _ctx.selectedUsers.some((user) => user.id === _ctx.currentUserId),
17331
+ onClick: addCurrentUser
17332
+ }, null, 8, ["current-user-id", "is-disabled"])
17333
+ ],
17334
+ 512
17335
+ /* NEED_PATCH */
17336
+ )
17337
+ ],
17338
+ 512
17339
+ /* NEED_PATCH */
17340
+ )) : (openBlock(), createElementBlock(
17341
+ Fragment,
17342
+ { key: 1 },
17343
+ [
17344
+ createCommentVNode(" 未聚焦状态 - 只读展示模式 "),
17345
+ createElementVNode(
17346
+ "div",
17347
+ {
17348
+ ref_key: "collapsedContainerRef",
17349
+ ref: collapsedContainerRef,
17350
+ class: "tags-container collapsed",
17351
+ onClick: withModifiers(handleFocus, ["stop"])
17352
+ },
17353
+ [
17354
+ (openBlock(true), createElementBlock(
17355
+ Fragment,
17356
+ null,
17357
+ renderList(visibleUsers.value, (user) => {
17358
+ return openBlock(), createBlock(UserTag, {
17254
17359
  "current-tenant-id": _ctx.tenantId,
17255
- draggable: _ctx.draggable,
17360
+ key: user.id,
17361
+ "show-tenant": true,
17256
17362
  tenants: _ctx.tenants,
17257
17363
  user,
17258
- onClick: ($event) => handleTagClick(index),
17364
+ onClick: handleFocus,
17259
17365
  onClose: ($event) => removeUser(user)
17260
- }, null, 8, ["active", "current-tenant-id", "draggable", "tenants", "user", "onClick", "onClose"]),
17261
- createCommentVNode(" 在当前激活标签后插入输入框 "),
17262
- index === activeTagIndex.value && activeTagIndex.value !== _ctx.selectedUsers.length - 1 ? withDirectives((openBlock(), createElementBlock(
17263
- "input",
17264
- {
17265
- key: 0,
17266
- ref_for: true,
17267
- ref_key: "inlineInputRef",
17268
- ref: inlineInputRef,
17269
- class: "search-input inline",
17270
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
17271
- onFocus: handleInputFocus,
17272
- onInput: handleInput,
17273
- onKeydown: handleKeyDown,
17274
- onPaste: handlePaste
17275
- },
17276
- null,
17277
- 544
17278
- /* NEED_HYDRATION, NEED_PATCH */
17279
- )), [
17280
- [vModelText, unref(searchQuery)]
17281
- ]) : createCommentVNode("v-if", true)
17282
- ], 8, _hoisted_1$2);
17283
- }),
17284
- 128
17285
- /* KEYED_FRAGMENT */
17286
- )),
17287
- createCommentVNode(" 最后一个输入框 "),
17288
- activeTagIndex.value === -1 || activeTagIndex.value === _ctx.selectedUsers.length - 1 ? withDirectives((openBlock(), createElementBlock("input", {
17289
- key: 0,
17290
- ref_key: "lastInputRef",
17291
- ref: lastInputRef,
17292
- class: "search-input last",
17293
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
17294
- placeholder: !_ctx.selectedUsers.length ? _ctx.placeholder : "",
17295
- onFocus: handleInputFocus,
17296
- onInput: handleInput,
17297
- onKeydown: handleKeyDown,
17298
- onPaste: handlePaste
17299
- }, null, 40, _hoisted_2$1)), [
17300
- [vModelText, unref(searchQuery)]
17301
- ]) : createCommentVNode("v-if", true),
17302
- createCommentVNode(' "我"标签 '),
17303
- createVNode(MeTag, {
17304
- "current-user-id": _ctx.currentUserId,
17305
- "is-disabled": !!_ctx.currentUserId && _ctx.selectedUsers.some((user) => user.id === _ctx.currentUserId),
17306
- onClick: addCurrentUser
17307
- }, null, 8, ["current-user-id", "is-disabled"])
17308
- ],
17309
- 512
17310
- /* NEED_PATCH */
17311
- )
17312
- ],
17313
- 512
17314
- /* NEED_PATCH */
17315
- )) : (openBlock(), createElementBlock(
17316
- Fragment,
17317
- { key: 1 },
17318
- [
17319
- createCommentVNode(" 未聚焦状态 - 只读展示模式 "),
17320
- createElementVNode(
17321
- "div",
17322
- {
17323
- ref_key: "collapsedContainerRef",
17324
- ref: collapsedContainerRef,
17325
- class: "tags-container collapsed",
17326
- onClick: withModifiers(handleFocus, ["stop"])
17327
- },
17328
- [
17329
- (openBlock(true), createElementBlock(
17330
- Fragment,
17331
- null,
17332
- renderList(visibleUsers.value, (user) => {
17333
- return openBlock(), createBlock(UserTag, {
17334
- "current-tenant-id": _ctx.tenantId,
17335
- key: user.id,
17336
- "show-tenant": true,
17337
- tenants: _ctx.tenants,
17338
- user,
17339
- onClick: handleFocus,
17340
- onClose: ($event) => removeUser(user)
17341
- }, null, 8, ["current-tenant-id", "tenants", "user", "onClose"]);
17342
- }),
17343
- 128
17344
- /* KEYED_FRAGMENT */
17345
- )),
17346
- createCommentVNode(" 显示折叠标签数量 "),
17347
- hiddenCount.value > 0 ? withDirectives((openBlock(), createBlock(unref(__webpack_exports__default), {
17348
- key: 0,
17349
- onClick: withModifiers(handleFocus, ["stop"])
17350
- }, {
17351
- default: withCtx(() => [
17352
- createTextVNode(
17353
- " +" + toDisplayString(hiddenCount.value),
17354
- 1
17355
- /* TEXT */
17356
- )
17366
+ }, null, 8, ["current-tenant-id", "tenants", "user", "onClose"]);
17367
+ }),
17368
+ 128
17369
+ /* KEYED_FRAGMENT */
17370
+ )),
17371
+ createCommentVNode(" 显示折叠标签数量 "),
17372
+ hiddenCount.value > 0 ? withDirectives((openBlock(), createBlock(unref(__webpack_exports__default), {
17373
+ key: 0,
17374
+ onClick: withModifiers(handleFocus, ["stop"])
17375
+ }, {
17376
+ default: withCtx(() => [
17377
+ createTextVNode(
17378
+ " +" + toDisplayString(hiddenCount.value),
17379
+ 1
17380
+ /* TEXT */
17381
+ )
17382
+ ]),
17383
+ _: 1
17384
+ /* STABLE */
17385
+ })), [
17386
+ [unref(__webpack_exports__bkTooltips), {
17387
+ content: _ctx.selectedUsers.slice(visibleUsers.value.length).map((user) => user.display_name).join(","),
17388
+ placement: "top"
17389
+ }]
17390
+ ]) : createCommentVNode("v-if", true),
17391
+ createCommentVNode(" 搜索输入框 "),
17392
+ withDirectives(createElementVNode("input", {
17393
+ ref_key: "collapsedInputRef",
17394
+ ref: collapsedInputRef,
17395
+ class: "search-input collapsed",
17396
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
17397
+ placeholder: !_ctx.selectedUsers.length ? _ctx.placeholder : "",
17398
+ onFocus: handleFocus
17399
+ }, null, 40, _hoisted_3$1), [
17400
+ [vModelText, unref(searchQuery)]
17357
17401
  ]),
17358
- _: 1
17359
- /* STABLE */
17360
- })), [
17361
- [unref(__webpack_exports__bkTooltips), {
17362
- content: _ctx.selectedUsers.slice(visibleUsers.value.length).map((user) => user.display_name).join(","),
17363
- placement: "top"
17364
- }]
17365
- ]) : createCommentVNode("v-if", true),
17366
- createCommentVNode(" 搜索输入框 "),
17367
- withDirectives(createElementVNode("input", {
17368
- ref_key: "collapsedInputRef",
17369
- ref: collapsedInputRef,
17370
- class: "search-input collapsed",
17371
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
17372
- placeholder: !_ctx.selectedUsers.length ? _ctx.placeholder : "",
17373
- onFocus: handleFocus
17374
- }, null, 40, _hoisted_3$1), [
17375
- [vModelText, unref(searchQuery)]
17376
- ]),
17377
- createCommentVNode(' 未聚焦状态下的"我"标签 '),
17378
- createVNode(MeTag, {
17379
- "current-user-id": _ctx.currentUserId,
17380
- "is-disabled": !!_ctx.currentUserId && _ctx.selectedUsers.some((user) => user[props2.exactSearchKey] === _ctx.currentUserId),
17381
- onClick: addCurrentUser
17382
- }, null, 8, ["current-user-id", "is-disabled"])
17383
- ],
17384
- 512
17385
- /* NEED_PATCH */
17386
- )
17387
- ],
17388
- 2112
17389
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
17390
- )),
17391
- createCommentVNode(" 下拉选项列表 "),
17392
- createVNode(SelectionPopover, {
17393
- "container-width": containerRef.value ? containerRef.value.offsetWidth : "auto",
17394
- "is-show": showDropdown.value,
17395
- loading: unref(searchLoading),
17396
- options: options.value,
17397
- "search-query": unref(searchQuery),
17398
- "tenant-id": _ctx.tenantId,
17399
- tenants: _ctx.tenants,
17400
- "user-group": _ctx.userGroup,
17401
- "user-group-name": _ctx.userGroupName,
17402
- onSelectUser: addUser
17403
- }, null, 8, ["container-width", "is-show", "loading", "options", "search-query", "tenant-id", "tenants", "user-group", "user-group-name"])
17404
- ])), [
17405
- [unref(__webpack_exports__clickoutside), handleClickOutside]
17406
- ]);
17402
+ createCommentVNode(' 未聚焦状态下的"我"标签 '),
17403
+ createVNode(MeTag, {
17404
+ "current-user-id": _ctx.currentUserId,
17405
+ "is-disabled": !!_ctx.currentUserId && _ctx.selectedUsers.some((user) => user[props2.exactSearchKey] === _ctx.currentUserId),
17406
+ onClick: addCurrentUser
17407
+ }, null, 8, ["current-user-id", "is-disabled"])
17408
+ ],
17409
+ 512
17410
+ /* NEED_PATCH */
17411
+ )
17412
+ ],
17413
+ 2112
17414
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
17415
+ )),
17416
+ createCommentVNode(" 下拉选项列表 "),
17417
+ createVNode(SelectionPopover, {
17418
+ "container-width": containerRef.value ? containerRef.value.offsetWidth : "auto",
17419
+ "empty-text": _ctx.emptyText,
17420
+ "is-show": showDropdown.value,
17421
+ loading: unref(searchLoading),
17422
+ options: options.value,
17423
+ "search-query": unref(searchQuery),
17424
+ "tenant-id": _ctx.tenantId,
17425
+ tenants: _ctx.tenants,
17426
+ "user-group": _ctx.userGroup,
17427
+ "user-group-name": _ctx.userGroupName,
17428
+ onClickoutside: handleClickOutside,
17429
+ onSelectUser: addUser
17430
+ }, null, 8, ["container-width", "empty-text", "is-show", "loading", "options", "search-query", "tenant-id", "tenants", "user-group", "user-group-name"])
17431
+ ],
17432
+ 512
17433
+ /* NEED_PATCH */
17434
+ );
17407
17435
  };
17408
17436
  }
17409
17437
  });
17410
- const MultipleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-1a376d26"]]);
17411
- const _withScopeId = (n2) => (pushScopeId("data-v-22d9b76f"), n2 = n2(), popScopeId(), n2);
17438
+ const MultipleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-a884849e"]]);
17439
+ const _withScopeId = (n2) => (pushScopeId("data-v-ad0d9e2e"), n2 = n2(), popScopeId(), n2);
17412
17440
  const _hoisted_1$1 = { class: "input-container" };
17413
17441
  const _hoisted_2 = {
17414
17442
  key: 0,
@@ -17436,7 +17464,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
17436
17464
  currentUserId: { default: "" },
17437
17465
  exactSearchKey: { default: "bk_username" },
17438
17466
  userGroup: { default: () => [] },
17439
- userGroupName: { default: "用户群组" }
17467
+ userGroupName: { default: "用户群组" },
17468
+ emptyText: { default: "无匹配人员" }
17440
17469
  },
17441
17470
  emits: ["update:modelValue", "change"],
17442
17471
  setup(__props, { emit: __emit }) {
@@ -17579,6 +17608,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
17579
17608
  createCommentVNode(" 使用新的公共下拉选项组件 "),
17580
17609
  createVNode(SelectionPopover, {
17581
17610
  "container-width": containerRef.value ? containerRef.value.offsetWidth : "auto",
17611
+ "empty-text": _ctx.emptyText,
17582
17612
  "is-show": showDropdown.value,
17583
17613
  loading: isLoading.value,
17584
17614
  options: options.value,
@@ -17588,14 +17618,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
17588
17618
  "user-group": _ctx.userGroup,
17589
17619
  "user-group-name": _ctx.userGroupName,
17590
17620
  onSelectUser: addUser
17591
- }, null, 8, ["container-width", "is-show", "loading", "options", "search-query", "tenant-id", "tenants", "user-group", "user-group-name"])
17621
+ }, null, 8, ["container-width", "empty-text", "is-show", "loading", "options", "search-query", "tenant-id", "tenants", "user-group", "user-group-name"])
17592
17622
  ])), [
17593
17623
  [unref(__webpack_exports__clickoutside), handleClickOutside]
17594
17624
  ]);
17595
17625
  };
17596
17626
  }
17597
17627
  });
17598
- const SingleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-22d9b76f"]]);
17628
+ const SingleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ad0d9e2e"]]);
17599
17629
  const _hoisted_1 = {
17600
17630
  ref: "containerRef",
17601
17631
  class: "bk-user-selector"
@@ -17615,7 +17645,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17615
17645
  currentUserId: { default: "" },
17616
17646
  exactSearchKey: { default: "bk_username" },
17617
17647
  userGroup: { default: () => [] },
17618
- userGroupName: { default: "用户群组" }
17648
+ userGroupName: { default: "用户群组" },
17649
+ emptyText: { default: "无匹配人员" }
17619
17650
  },
17620
17651
  emits: ["update:modelValue", "change"],
17621
17652
  setup(__props, { emit: __emit }) {
@@ -17673,6 +17704,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17673
17704
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedUser.value = $event),
17674
17705
  "api-base-url": _ctx.apiBaseUrl,
17675
17706
  "current-user-id": _ctx.currentUserId,
17707
+ "empty-text": _ctx.emptyText,
17676
17708
  "exact-search-key": _ctx.exactSearchKey,
17677
17709
  placeholder: _ctx.placeholder,
17678
17710
  "tenant-id": _ctx.tenantId,
@@ -17680,7 +17712,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17680
17712
  "user-group": _ctx.userGroup,
17681
17713
  "user-group-name": _ctx.userGroupName,
17682
17714
  onChange: handleUpdateUser
17683
- }, null, 8, ["modelValue", "api-base-url", "current-user-id", "exact-search-key", "placeholder", "tenant-id", "tenants", "user-group", "user-group-name"])) : (openBlock(), createElementBlock(
17715
+ }, null, 8, ["modelValue", "api-base-url", "current-user-id", "empty-text", "exact-search-key", "placeholder", "tenant-id", "tenants", "user-group", "user-group-name"])) : (openBlock(), createElementBlock(
17684
17716
  Fragment,
17685
17717
  { key: 1 },
17686
17718
  [
@@ -17691,6 +17723,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17691
17723
  "api-base-url": _ctx.apiBaseUrl,
17692
17724
  "current-user-id": _ctx.currentUserId,
17693
17725
  draggable: _ctx.draggable,
17726
+ "empty-text": _ctx.emptyText,
17694
17727
  "exact-search-key": _ctx.exactSearchKey,
17695
17728
  placeholder: _ctx.placeholder,
17696
17729
  "selected-users": selectedUsers.value,
@@ -17699,7 +17732,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17699
17732
  "user-group": _ctx.userGroup,
17700
17733
  "user-group-name": _ctx.userGroupName,
17701
17734
  "onUpdate:selectedUsers": handleUpdateSelectedUsers
17702
- }, null, 8, ["modelValue", "api-base-url", "current-user-id", "draggable", "exact-search-key", "placeholder", "selected-users", "tenant-id", "tenants", "user-group", "user-group-name"])
17735
+ }, null, 8, ["modelValue", "api-base-url", "current-user-id", "draggable", "empty-text", "exact-search-key", "placeholder", "selected-users", "tenant-id", "tenants", "user-group", "user-group-name"])
17703
17736
  ],
17704
17737
  2112
17705
17738
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
@@ -17711,7 +17744,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17711
17744
  };
17712
17745
  }
17713
17746
  });
17714
- const BkUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-84252deb"]]);
17747
+ const BkUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6fd92757"]]);
17715
17748
  const vue2 = {
17716
17749
  model: {
17717
17750
  prop: "modelValue",