fix: 关闭后的重置问题

This commit is contained in:
2023-08-14 21:50:12 +08:00
parent f72e02c634
commit 7407ee1a13

View File

@ -2,7 +2,7 @@
* @Author: zhaojinfeng 121016171@qq.com * @Author: zhaojinfeng 121016171@qq.com
* @Date: 2023-08-14 11:07:15 * @Date: 2023-08-14 11:07:15
* @LastEditors: zhaojinfeng 121016171@qq.com * @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-08-14 19:30:19 * @LastEditTime: 2023-08-14 21:49:26
* @FilePath: \vue3\packages\select-transfer-modal\index.vue * @FilePath: \vue3\packages\select-transfer-modal\index.vue
* @Description: * @Description:
* *
@ -207,10 +207,7 @@ function transferValueInit() {
} }
watch(() => properties.value, () => { watch(() => properties.value, () => {
if (!showDialog.value) { transferValueInit()
// 关闭时触发
transferValueInit()
}
}) })
watch(() => properties.show, (show) => { watch(() => properties.show, (show) => {
showDialog.value = show showDialog.value = show