mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-29 05:33:14 +08:00
feat: 支持在主界面上添加自定义的功能按钮
This commit is contained in:
parent
1d94254165
commit
cea87be65d
@ -8,10 +8,20 @@ import {
|
|||||||
ElCard,
|
ElCard,
|
||||||
ElInput,
|
ElInput,
|
||||||
ElSelect,
|
ElSelect,
|
||||||
ElOption
|
ElOption,
|
||||||
|
ElScrollbar
|
||||||
} from 'element-plus'
|
} from 'element-plus'
|
||||||
|
|
||||||
const components = [ElButton, ElMessageBox, ElMessage, ElCard, ElInput, ElSelect, ElOption]
|
const components = [
|
||||||
|
ElButton,
|
||||||
|
ElMessageBox,
|
||||||
|
ElMessage,
|
||||||
|
ElCard,
|
||||||
|
ElInput,
|
||||||
|
ElSelect,
|
||||||
|
ElOption,
|
||||||
|
ElScrollbar
|
||||||
|
]
|
||||||
|
|
||||||
document.querySelector('html').className = utools.isDarkColors() ? 'dark' : ''
|
document.querySelector('html').className = utools.isDarkColors() ? 'dark' : ''
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<template #header>
|
<template #header>
|
||||||
<el-button type="primary" @click="handleLinkClick(0)">🚀 主页</el-button>
|
<el-button type="primary" @click="handleLinkClick(0)">🚀 主页</el-button>
|
||||||
<el-button @click="handleLinkClick(1)">⚡ 云同步教程</el-button>
|
<el-button @click="handleLinkClick(1)">⚡ 云同步教程</el-button>
|
||||||
|
<el-button @click="handleLinkClick(1)">💡 创造自己的功能按钮</el-button>
|
||||||
<el-button @click="handleLinkClick(2)">⭐ 开源代码</el-button>
|
<el-button @click="handleLinkClick(2)">⭐ 开源代码</el-button>
|
||||||
<el-button @click="handleLinkClick(3)">🎈 论坛发布页</el-button>
|
<el-button @click="handleLinkClick(3)">🎈 论坛发布页</el-button>
|
||||||
</template>
|
</template>
|
||||||
@ -30,16 +31,20 @@
|
|||||||
天
|
天
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-card-content-item">
|
<div class="setting-card-content-item">
|
||||||
<span>展示在主界面的功能按钮</span>
|
<span>展示在主界面的功能</span>
|
||||||
<el-select
|
<el-select
|
||||||
class="operation-select"
|
class="operation-select"
|
||||||
v-model="shown"
|
v-model="shown"
|
||||||
multiple
|
multiple
|
||||||
:multiple-limit="4"
|
:multiple-limit="4"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
|
:teleported="false"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="{ id, title, icon } in defaultOperation"
|
v-for="{ id, title, icon } in [
|
||||||
|
...defaultOperation,
|
||||||
|
...custom.map(({ id, title, icon }) => ({ id, title, icon }))
|
||||||
|
]"
|
||||||
:key="id"
|
:key="id"
|
||||||
:label="icon + title"
|
:label="icon + title"
|
||||||
:value="id"
|
:value="id"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user