수정 아이콘 수정정
This commit is contained in:
parent
d7cc2c056a
commit
2aa31ab64f
@ -18,19 +18,19 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const buttonClass = ref("bx bx-edit");
|
const buttonClass = ref("bx bx-edit-alt");
|
||||||
|
|
||||||
watch(() => props.isActive, (newVal) => {
|
watch(() => props.isActive, (newVal) => {
|
||||||
buttonClass.value = newVal ? "bx bx-x" : "bx bx-edit";
|
buttonClass.value = newVal ? "bx bx-x" : "bx bx-edit-alt";
|
||||||
});
|
});
|
||||||
|
|
||||||
const toggleText = () => {
|
const toggleText = () => {
|
||||||
if (props.isToggleEnabled) {
|
if (props.isToggleEnabled) {
|
||||||
buttonClass.value = buttonClass.value === "bx bx-edit" ? "bx bx-x" : "bx bx-edit";
|
buttonClass.value = buttonClass.value === "bx bx-edit-alt" ? "bx bx-x" : "bx bx-edit-alt";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const resetButton = () => {
|
const resetButton = () => {
|
||||||
buttonClass.value = "bx bx-edit";
|
buttonClass.value = "bx bx-edit-alt";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user