perf: 优化 UI 控件交互
This commit is contained in:
parent
7f1012274c
commit
e54de66103
@ -211,11 +211,25 @@ const saveHandle = () => {
|
||||
|
||||
// 取消
|
||||
const closeHandle = () => {
|
||||
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()
|
||||
}
|
||||
}
|
||||
|
||||
// 底色
|
||||
const colorBackgroundImage = (item: ColorType) => {
|
||||
return `linear-gradient(to right, ${item.color[0]} 0%, ${item.color[5]} 100%)`
|
||||
|
Loading…
x
Reference in New Issue
Block a user