Showing
1 changed file
with
14 additions
and
10 deletions
@@ -21,16 +21,18 @@ | @@ -21,16 +21,18 @@ | ||
21 | :isClose="item.close" | 21 | :isClose="item.close" |
22 | > | 22 | > |
23 | <template #action> | 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 | </template> | 36 | </template> |
35 | <div style="border: 1px solid #d9d9d9; width: 100%"> | 37 | <div style="border: 1px solid #d9d9d9; width: 100%"> |
36 | <div style="margin: 10px 15px"> | 38 | <div style="margin: 10px 15px"> |
@@ -87,7 +89,7 @@ | @@ -87,7 +89,7 @@ | ||
87 | import { modelSchemas, settingsSchemas, deviceSchemas } from './index'; | 89 | import { modelSchemas, settingsSchemas, deviceSchemas } from './index'; |
88 | import BootStrapForm from './cpns/BootStrapForm.vue'; | 90 | import BootStrapForm from './cpns/BootStrapForm.vue'; |
89 | import { DeleteOutlined, PlusCircleOutlined } from '@ant-design/icons-vue'; | 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 | import { CollapseContainer } from '/@/components/Container'; | 93 | import { CollapseContainer } from '/@/components/Container'; |
92 | import { useModal } from '/@/components/Modal'; | 94 | import { useModal } from '/@/components/Modal'; |
93 | import ServerConfigModal from './cpns/ServerConfigModal.vue'; | 95 | import ServerConfigModal from './cpns/ServerConfigModal.vue'; |
@@ -257,12 +259,14 @@ | @@ -257,12 +259,14 @@ | ||
257 | dynamicBOOTSTRAP.bootstrap.push({ | 259 | dynamicBOOTSTRAP.bootstrap.push({ |
258 | securityMode: 'NO_SEC', | 260 | securityMode: 'NO_SEC', |
259 | shortServerId: 1234, | 261 | shortServerId: 1234, |
262 | + close: false, | ||
260 | }); | 263 | }); |
261 | break; | 264 | break; |
262 | case 'Bootstrap': | 265 | case 'Bootstrap': |
263 | dynamicBOOTSTRAP.bootstrap.push({ | 266 | dynamicBOOTSTRAP.bootstrap.push({ |
264 | securityMode: 'NO_SEC', | 267 | securityMode: 'NO_SEC', |
265 | shortServerId: 1234, | 268 | shortServerId: 1234, |
269 | + close: false, | ||
266 | }); | 270 | }); |
267 | break; | 271 | break; |
268 | } | 272 | } |