@blueking/bk-user-selector 0.0.11 → 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.
@@ -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
  )
@@ -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-05b232a4"]]);
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;
@@ -17167,7 +17181,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
17167
17181
  emit("add-user", user);
17168
17182
  }
17169
17183
  searchQuery.value = "";
17170
- showDropdown.value = false;
17184
+ setTimeout(() => {
17185
+ showDropdown.value = false;
17186
+ }, 220);
17187
+ nextTick(() => {
17188
+ if (lastInputRef.value) {
17189
+ lastInputRef.value.focus();
17190
+ }
17191
+ });
17171
17192
  };
17172
17193
  const removeUser = (user) => {
17173
17194
  if (!(user == null ? void 0 : user.id)) return;
@@ -17216,200 +17237,206 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
17216
17237
  });
17217
17238
  });
17218
17239
  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,
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, {
17255
17359
  "current-tenant-id": _ctx.tenantId,
17256
- draggable: _ctx.draggable,
17360
+ key: user.id,
17361
+ "show-tenant": true,
17257
17362
  tenants: _ctx.tenants,
17258
17363
  user,
17259
- onClick: ($event) => handleTagClick(index),
17364
+ onClick: handleFocus,
17260
17365
  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
- )
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)]
17358
17401
  ]),
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
- ]);
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
+ );
17408
17435
  };
17409
17436
  }
17410
17437
  });
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);
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);
17413
17440
  const _hoisted_1$1 = { class: "input-container" };
17414
17441
  const _hoisted_2 = {
17415
17442
  key: 0,
@@ -17437,7 +17464,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
17437
17464
  currentUserId: { default: "" },
17438
17465
  exactSearchKey: { default: "bk_username" },
17439
17466
  userGroup: { default: () => [] },
17440
- userGroupName: { default: "用户群组" }
17467
+ userGroupName: { default: "用户群组" },
17468
+ emptyText: { default: "无匹配人员" }
17441
17469
  },
17442
17470
  emits: ["update:modelValue", "change"],
17443
17471
  setup(__props, { emit: __emit }) {
@@ -17580,6 +17608,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
17580
17608
  createCommentVNode(" 使用新的公共下拉选项组件 "),
17581
17609
  createVNode(SelectionPopover, {
17582
17610
  "container-width": containerRef.value ? containerRef.value.offsetWidth : "auto",
17611
+ "empty-text": _ctx.emptyText,
17583
17612
  "is-show": showDropdown.value,
17584
17613
  loading: isLoading.value,
17585
17614
  options: options.value,
@@ -17589,14 +17618,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
17589
17618
  "user-group": _ctx.userGroup,
17590
17619
  "user-group-name": _ctx.userGroupName,
17591
17620
  onSelectUser: addUser
17592
- }, 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"])
17593
17622
  ])), [
17594
17623
  [unref(__webpack_exports__clickoutside), handleClickOutside]
17595
17624
  ]);
17596
17625
  };
17597
17626
  }
17598
17627
  });
17599
- 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"]]);
17600
17629
  const _hoisted_1 = {
17601
17630
  ref: "containerRef",
17602
17631
  class: "bk-user-selector"
@@ -17616,7 +17645,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17616
17645
  currentUserId: { default: "" },
17617
17646
  exactSearchKey: { default: "bk_username" },
17618
17647
  userGroup: { default: () => [] },
17619
- userGroupName: { default: "用户群组" }
17648
+ userGroupName: { default: "用户群组" },
17649
+ emptyText: { default: "无匹配人员" }
17620
17650
  },
17621
17651
  emits: ["update:modelValue", "change"],
17622
17652
  setup(__props, { emit: __emit }) {
@@ -17674,6 +17704,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17674
17704
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedUser.value = $event),
17675
17705
  "api-base-url": _ctx.apiBaseUrl,
17676
17706
  "current-user-id": _ctx.currentUserId,
17707
+ "empty-text": _ctx.emptyText,
17677
17708
  "exact-search-key": _ctx.exactSearchKey,
17678
17709
  placeholder: _ctx.placeholder,
17679
17710
  "tenant-id": _ctx.tenantId,
@@ -17681,7 +17712,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17681
17712
  "user-group": _ctx.userGroup,
17682
17713
  "user-group-name": _ctx.userGroupName,
17683
17714
  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(
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(
17685
17716
  Fragment,
17686
17717
  { key: 1 },
17687
17718
  [
@@ -17692,6 +17723,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17692
17723
  "api-base-url": _ctx.apiBaseUrl,
17693
17724
  "current-user-id": _ctx.currentUserId,
17694
17725
  draggable: _ctx.draggable,
17726
+ "empty-text": _ctx.emptyText,
17695
17727
  "exact-search-key": _ctx.exactSearchKey,
17696
17728
  placeholder: _ctx.placeholder,
17697
17729
  "selected-users": selectedUsers.value,
@@ -17700,7 +17732,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17700
17732
  "user-group": _ctx.userGroup,
17701
17733
  "user-group-name": _ctx.userGroupName,
17702
17734
  "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"])
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"])
17704
17736
  ],
17705
17737
  2112
17706
17738
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
@@ -17712,7 +17744,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17712
17744
  };
17713
17745
  }
17714
17746
  });
17715
- const BkUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-84252deb"]]);
17747
+ const BkUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6fd92757"]]);
17716
17748
  const vue2 = {
17717
17749
  model: {
17718
17750
  prop: "modelValue",