refactor(ScriptEdit): 更新 ScriptEdit 组件的按钮功能和图标
- 将取消按钮的图标从 CloseOutlined 改为 ArrowLeftOutlined - 移除保存配置按钮 - 修改 Scripts 组件中添加脚本按钮的文案为"新建脚本"
This commit is contained in:
@@ -23,22 +23,22 @@
|
|||||||
<a-space size="middle">
|
<a-space size="middle">
|
||||||
<a-button size="large" @click="handleCancel" class="cancel-button">
|
<a-button size="large" @click="handleCancel" class="cancel-button">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<CloseOutlined />
|
<ArrowLeftOutlined />
|
||||||
</template>
|
</template>
|
||||||
取消
|
返回
|
||||||
</a-button>
|
|
||||||
<a-button
|
|
||||||
type="primary"
|
|
||||||
size="large"
|
|
||||||
:loading="loading"
|
|
||||||
@click="handleSave"
|
|
||||||
class="save-button"
|
|
||||||
>
|
|
||||||
<template #icon>
|
|
||||||
<SaveOutlined />
|
|
||||||
</template>
|
|
||||||
保存配置
|
|
||||||
</a-button>
|
</a-button>
|
||||||
|
<!-- <a-button-->
|
||||||
|
<!-- type="primary"-->
|
||||||
|
<!-- size="large"-->
|
||||||
|
<!-- :loading="loading"-->
|
||||||
|
<!-- @click="handleSave"-->
|
||||||
|
<!-- class="save-button"-->
|
||||||
|
<!-- >-->
|
||||||
|
<!-- <template #icon>-->
|
||||||
|
<!-- <SaveOutlined />-->
|
||||||
|
<!-- </template>-->
|
||||||
|
<!-- 保存配置-->
|
||||||
|
<!-- </a-button>-->
|
||||||
</a-space>
|
</a-space>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -829,7 +829,7 @@ import { message } from 'ant-design-vue'
|
|||||||
import type { GeneralScriptConfig, MAAScriptConfig, ScriptType } from '../types/script'
|
import type { GeneralScriptConfig, MAAScriptConfig, ScriptType } from '../types/script'
|
||||||
import { useScriptApi } from '../composables/useScriptApi'
|
import { useScriptApi } from '../composables/useScriptApi'
|
||||||
import {
|
import {
|
||||||
CloseOutlined,
|
ArrowLeftOutlined,
|
||||||
FileOutlined,
|
FileOutlined,
|
||||||
FolderOpenOutlined,
|
FolderOpenOutlined,
|
||||||
QuestionCircleOutlined,
|
QuestionCircleOutlined,
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<template #icon>
|
<template #icon>
|
||||||
<PlusOutlined />
|
<PlusOutlined />
|
||||||
</template>
|
</template>
|
||||||
添加脚本
|
新建脚本
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button size="large" @click="handleRefresh" class="default">
|
<a-button size="large" @click="handleRefresh" class="default">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user