feat: 🎉 优化设备界面视图并添加虚拟控制栏配置

This commit is contained in:
viarotel 2023-09-19 11:10:28 +08:00
parent 6ac0e59521
commit 3be0682078
4 changed files with 15 additions and 3 deletions

View File

@ -1,5 +1,12 @@
export default () => {
return [
{
label: '虚拟控制栏',
type: 'switch',
field: '--show-touches',
value: false,
placeholder: '开启后将打开虚拟控制栏,在某些机型上可能不会生效 比如较老的具有实体按键的设备',
},
{
label: '保持清醒',
type: 'switch',

View File

@ -42,7 +42,7 @@
v-bind="item_1.props || {}"
v-model="scrcpyForm[item_1.field]"
class="!w-full"
:placeholder="item_1.placeholder"
:title="item_1.placeholder"
></el-switch>
<el-select
v-if="item_1.type === 'select'"

View File

@ -54,11 +54,16 @@
<WarningFilled />
</el-icon>
</el-tooltip>
{{ row.name }}
<el-tag v-if="row.$wireless" type="primary" effect="light" class="ml-2">
WIFI
</el-tag>
</div>
</template>
</el-table-column>
<el-table-column label="操作" width="350" align="center">
<el-table-column label="操作" width="350" align="left">
<template #default="{ row }">
<el-button type="primary" :loading="row.$loading" @click="handleMirror(row)">
{{ row.$loading ? '镜像中' : '开始镜像' }}

View File

@ -6,7 +6,7 @@ import * as ElementPlusIconsVue from '@element-plus/icons-vue'
export default {
install(app) {
app.use(ElementPlus)
app.use(ElementPlus, { size: 'default' })
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)