mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-18 18:04:28 +08:00
添加清空流程功能
This commit is contained in:
@@ -54,6 +54,15 @@
|
||||
>
|
||||
<q-tooltip>保存</q-tooltip>
|
||||
</q-btn>
|
||||
<q-btn
|
||||
dense
|
||||
flat
|
||||
icon="delete_sweep"
|
||||
@click="handleClear"
|
||||
v-if="!disabledButtons.includes('clear')"
|
||||
>
|
||||
<q-tooltip>清空所有流程</q-tooltip>
|
||||
</q-btn>
|
||||
<q-btn
|
||||
flat
|
||||
dense
|
||||
@@ -138,6 +147,14 @@ export default defineComponent({
|
||||
const code = generateFlowsCode(this.flows);
|
||||
this.$emit("action", "apply", code);
|
||||
},
|
||||
handleClear() {
|
||||
quickcommand
|
||||
.showConfirmBox("确定要清空所有流程吗?", "FBI WARNING")
|
||||
.then((isConfirm) => {
|
||||
if (!isConfirm) return;
|
||||
this.$emit("action", "clear");
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user