cd-personselector 1.3.7 → 1.3.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cd-personselector",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "人员选择器组件 - 支持多Tab、树形结构、搜索、懒加载、输入框选择模式",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -7,8 +7,10 @@
7
7
  placement="center"
8
8
  destroy-on-close
9
9
  attach="body"
10
+ :close-on-overlay-click="true"
10
11
  @confirm="handleConfirm"
11
12
  @close="handleClose"
13
+ @cancel="handleClose"
12
14
  >
13
15
  <div class="cd-ps-container">
14
16
  <div v-if="showSearch" class="cd-ps-search">
@@ -448,7 +450,7 @@ const handleConfirm = () => {
448
450
  emit('confirm', selectedItems.value);
449
451
  dialogVisible.value = false;
450
452
  };
451
- const handleClose = () => { dialogVisible.value = false; };
453
+ const handleClose = () => { dialogVisible.value = false; emit('close'); };
452
454
  defineExpose({
453
455
  clearSelection,
454
456
  appendUsers: (tabKey: string, nodeId: number | string, users: User[]) => {