Commit 67a7a76b735aafe2e1a8258c75c4a3c5dd657de6

Authored by Vben
1 parent 64b6313b

fix(table-action): ensure that the click event is not triggered, fix #441

src/components/Dropdown/src/Dropdown.vue
... ... @@ -11,7 +11,7 @@
11 11 @click="handleClickMenu(item)"
12 12 :disabled="item.disabled"
13 13 >
14   - <Popconfirm v-if="popconfirm" v-bind="item">
  14 + <Popconfirm v-if="popconfirm && item.popConfirm" v-bind="item">
15 15 <Icon :icon="item.icon" v-if="item.icon" />
16 16 <span class="ml-1">{{ item.text }}</span>
17 17 </Popconfirm>
... ... @@ -59,7 +59,7 @@
59 59 },
60 60 },
61 61 dropMenuList: {
62   - type: Array as PropType<DropMenu[]>,
  62 + type: Array as PropType<(DropMenu & Recordable)[]>,
63 63 default: () => [],
64 64 },
65 65 selectedKeys: {
... ...
src/components/Form/src/BasicForm.vue
... ... @@ -285,9 +285,16 @@
285 285 display: flex;
286 286 }
287 287  
  288 + .ant-form-item-control {
  289 + margin-top: 4px;
  290 + }
  291 +
288 292 .suffix {
289   - display: inline-block;
  293 + display: inline-flex;
290 294 padding-left: 6px;
  295 + margin-top: 1px;
  296 + line-height: 1;
  297 + align-items: center;
291 298 }
292 299 }
293 300 }
... ...
src/components/Table/src/components/TableAction.vue
... ... @@ -82,6 +82,8 @@
82 82 return {
83 83 ...action,
84 84 ...popConfirm,
  85 + onConfirm: popConfirm?.confirm,
  86 + onCancel: popConfirm?.cancel,
85 87 text: label,
86 88 divider: index < props.dropDownActions.length - 1 ? props.divider : false,
87 89 };
... ...