refactor(ScriptEdit): 更新 ScriptEdit 组件的按钮功能和图标

- 将取消按钮的图标从 CloseOutlined 改为 ArrowLeftOutlined
- 移除保存配置按钮
- 修改 Scripts 组件中添加脚本按钮的文案为"新建脚本"
This commit is contained in:
2025-08-05 23:29:07 +08:00
parent 8c88e4e6a2
commit 40ca642c07
3 changed files with 959 additions and 633 deletions

View File

@@ -23,22 +23,22 @@
<a-space size="middle">
<a-button size="large" @click="handleCancel" class="cancel-button">
<template #icon>
<CloseOutlined />
<ArrowLeftOutlined />
</template>
取消
</a-button>
<a-button
type="primary"
size="large"
:loading="loading"
@click="handleSave"
class="save-button"
>
<template #icon>
<SaveOutlined />
</template>
保存配置
返回
</a-button>
<!-- <a-button-->
<!-- type="primary"-->
<!-- size="large"-->
<!-- :loading="loading"-->
<!-- @click="handleSave"-->
<!-- class="save-button"-->
<!-- >-->
<!-- <template #icon>-->
<!-- <SaveOutlined />-->
<!-- </template>-->
<!-- 保存配置-->
<!-- </a-button>-->
</a-space>
</div>
@@ -829,7 +829,7 @@ import { message } from 'ant-design-vue'
import type { GeneralScriptConfig, MAAScriptConfig, ScriptType } from '../types/script'
import { useScriptApi } from '../composables/useScriptApi'
import {
CloseOutlined,
ArrowLeftOutlined,
FileOutlined,
FolderOpenOutlined,
QuestionCircleOutlined,

View File

@@ -8,7 +8,7 @@
<template #icon>
<PlusOutlined />
</template>
添加脚本
新建脚本
</a-button>
<a-button size="large" @click="handleRefresh" class="default">
<template #icon>

File diff suppressed because it is too large Load Diff