@blueking/bk-user-selector 0.0.11 → 0.0.13

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