|
@@ -30,7 +30,7 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="删除:">
|
|
|
- <el-button type="primary" @click="handleClick">删除</el-button>
|
|
|
+ <el-button type="primary" @click="handleDel">删除</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -77,7 +77,7 @@ const defaultfrom = {
|
|
|
pos: null,
|
|
|
color: "#000000",
|
|
|
};
|
|
|
-const form = reactive(defaultfrom);
|
|
|
+let form = reactive(defaultfrom);
|
|
|
|
|
|
watch(
|
|
|
form,
|
|
@@ -98,17 +98,16 @@ for (let i = fontSizeRange[0]; i <= fontSizeRange[1]; i++) {
|
|
|
const handleClose = () => {
|
|
|
isShow.value = false;
|
|
|
emit("close", form);
|
|
|
- form = defaultfrom;
|
|
|
+ form = reactive(defaultfrom);
|
|
|
};
|
|
|
const handleUpdate = () => {
|
|
|
emit("update", form);
|
|
|
};
|
|
|
|
|
|
-const handleClick = () => {
|
|
|
+const handleDel = () => {
|
|
|
isShow.value = false;
|
|
|
emit("del", form);
|
|
|
- form = defaultfrom;
|
|
|
- // console.log("handleClick", form);
|
|
|
+ form = reactive(defaultfrom);
|
|
|
};
|
|
|
</script>
|
|
|
|