mirror of
https://gitee.com/dromara/go-view.git
synced 2024-11-30 02:38:30 +08:00
perf: 优化 UI 控件交互
This commit is contained in:
parent
7f1012274c
commit
e54de66103
@ -211,9 +211,23 @@ const saveHandle = () => {
|
||||
|
||||
// 取消
|
||||
const closeHandle = () => {
|
||||
colorList.splice(0, colorList.length)
|
||||
selectColor.selectInfo = undefined
|
||||
emit('update:modelShow', false)
|
||||
const positiveHandle = () => {
|
||||
updateColor.value = undefined
|
||||
colorList.splice(0, colorList.length)
|
||||
selectColor.selectInfo = undefined
|
||||
emit('update:modelShow', false)
|
||||
}
|
||||
|
||||
if (updateColor.value !== undefined) {
|
||||
goDialog({
|
||||
message: '当前有变动未保存,是否直接放弃修改?',
|
||||
onPositiveCallback: () => {
|
||||
positiveHandle()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
positiveHandle()
|
||||
}
|
||||
}
|
||||
|
||||
// 底色
|
||||
|
Loading…
Reference in New Issue
Block a user