fix: 关闭抽屉同时销毁全部子元素 (#5776)

This commit is contained in:
2024-07-11 21:59:24 +08:00 committed by GitHub
parent 6f86dda1aa
commit d2740308a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 44 additions and 6 deletions

View File

@ -1,6 +1,7 @@
<template>
<el-drawer
v-model="open"
:destroy-on-close="true"
:before-close="handleClose"
size="50%"
:close-on-click-modal="false"

View File

@ -1,5 +1,11 @@
<template>
<el-drawer :close-on-click-modal="false" :close-on-press-escape="false" v-model="open" size="30%">
<el-drawer
:destroy-on-close="true"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-model="open"
size="30%"
>
<template #header>
<DrawerHeader
:header="process.operate == 'create' ? $t('commons.button.create') : $t('commons.button.edit')"

View File

@ -1,5 +1,11 @@
<template>
<el-drawer :close-on-click-modal="false" :close-on-press-escape="false" v-model="open" size="50%">
<el-drawer
:destroy-on-close="true"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-model="open"
size="50%"
>
<template #header>
<DrawerHeader
:header="$t('runtime.' + mode)"

View File

@ -1,5 +1,11 @@
<template>
<el-drawer :close-on-click-modal="false" :close-on-press-escape="false" v-model="open" size="50%">
<el-drawer
:destroy-on-close="true"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-model="open"
size="50%"
>
<template #header>
<DrawerHeader
:header="$t('runtime.' + mode)"

View File

@ -1,5 +1,11 @@
<template>
<el-drawer :close-on-click-modal="false" :close-on-press-escape="false" v-model="open" size="50%">
<el-drawer
:destroy-on-close="true"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-model="open"
size="50%"
>
<template #header>
<DrawerHeader
:header="$t('runtime.' + mode)"

View File

@ -5,6 +5,7 @@
:close-on-click-modal="false"
width="40%"
:before-close="handleClose"
:destroy-on-close="true"
>
<el-row v-loading="loading">
<el-col :span="22" :offset="1">

View File

@ -1,5 +1,11 @@
<template>
<el-drawer :close-on-click-modal="false" :close-on-press-escape="false" v-model="open" size="50%">
<el-drawer
:destroy-on-close="true"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-model="open"
size="50%"
>
<template #header>
<DrawerHeader :header="$t('ssl.' + operate)" :back="handleClose" />
</template>

View File

@ -1,5 +1,11 @@
<template>
<el-drawer :close-on-click-modal="false" :close-on-press-escape="false" v-model="open" size="50%">
<el-drawer
:destroy-on-close="true"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-model="open"
size="50%"
>
<template #header>
<DrawerHeader :header="$t('ssl.upload')" :back="handleClose" />
</template>