Showing
1 changed file
with
14 additions
and
10 deletions
... | ... | @@ -21,16 +21,18 @@ |
21 | 21 | :isClose="item.close" |
22 | 22 | > |
23 | 23 | <template #action> |
24 | - <Button | |
25 | - style="margin-right: 1vw" | |
26 | - size="small" | |
27 | - type="text" | |
28 | - @click="handleRemove(index)" | |
24 | + <Popconfirm | |
25 | + title="您确定要删除该项?" | |
26 | + ok-text="确定" | |
27 | + cancel-text="取消" | |
28 | + @confirm="handleRemove(index)" | |
29 | 29 | > |
30 | - <template #icon> | |
31 | - <DeleteOutlined /> | |
32 | - </template> | |
33 | - </Button> | |
30 | + <Button style="margin-right: 1vw" size="small" type="text"> | |
31 | + <template #icon> | |
32 | + <DeleteOutlined /> | |
33 | + </template> | |
34 | + </Button> | |
35 | + </Popconfirm> | |
34 | 36 | </template> |
35 | 37 | <div style="border: 1px solid #d9d9d9; width: 100%"> |
36 | 38 | <div style="margin: 10px 15px"> |
... | ... | @@ -87,7 +89,7 @@ |
87 | 89 | import { modelSchemas, settingsSchemas, deviceSchemas } from './index'; |
88 | 90 | import BootStrapForm from './cpns/BootStrapForm.vue'; |
89 | 91 | import { DeleteOutlined, PlusCircleOutlined } from '@ant-design/icons-vue'; |
90 | - import { Button, Checkbox } from 'ant-design-vue'; | |
92 | + import { Button, Checkbox, Popconfirm } from 'ant-design-vue'; | |
91 | 93 | import { CollapseContainer } from '/@/components/Container'; |
92 | 94 | import { useModal } from '/@/components/Modal'; |
93 | 95 | import ServerConfigModal from './cpns/ServerConfigModal.vue'; |
... | ... | @@ -257,12 +259,14 @@ |
257 | 259 | dynamicBOOTSTRAP.bootstrap.push({ |
258 | 260 | securityMode: 'NO_SEC', |
259 | 261 | shortServerId: 1234, |
262 | + close: false, | |
260 | 263 | }); |
261 | 264 | break; |
262 | 265 | case 'Bootstrap': |
263 | 266 | dynamicBOOTSTRAP.bootstrap.push({ |
264 | 267 | securityMode: 'NO_SEC', |
265 | 268 | shortServerId: 1234, |
269 | + close: false, | |
266 | 270 | }); |
267 | 271 | break; |
268 | 272 | } | ... | ... |