mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-28 21:22:53 +08:00
feat: 支持在主界面上添加自定义的功能按钮
This commit is contained in:
parent
1d94254165
commit
cea87be65d
@ -8,10 +8,20 @@ import {
|
||||
ElCard,
|
||||
ElInput,
|
||||
ElSelect,
|
||||
ElOption
|
||||
ElOption,
|
||||
ElScrollbar
|
||||
} 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' : ''
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
<template #header>
|
||||
<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(2)">⭐ 开源代码</el-button>
|
||||
<el-button @click="handleLinkClick(3)">🎈 论坛发布页</el-button>
|
||||
</template>
|
||||
@ -30,16 +31,20 @@
|
||||
天
|
||||
</div>
|
||||
<div class="setting-card-content-item">
|
||||
<span>展示在主界面的功能按钮</span>
|
||||
<span>展示在主界面的功能</span>
|
||||
<el-select
|
||||
class="operation-select"
|
||||
v-model="shown"
|
||||
multiple
|
||||
:multiple-limit="4"
|
||||
placeholder="请选择"
|
||||
:teleported="false"
|
||||
>
|
||||
<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"
|
||||
:label="icon + title"
|
||||
:value="id"
|
||||
|
Loading…
x
Reference in New Issue
Block a user