mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2025-01-19 01:24:12 +01:00
feat: 🎉 优化设备界面视图并添加虚拟控制栏配置
This commit is contained in:
parent
6ac0e59521
commit
3be0682078
@ -1,5 +1,12 @@
|
||||
export default () => {
|
||||
return [
|
||||
{
|
||||
label: '虚拟控制栏',
|
||||
type: 'switch',
|
||||
field: '--show-touches',
|
||||
value: false,
|
||||
placeholder: '开启后将打开虚拟控制栏,在某些机型上可能不会生效 比如较老的具有实体按键的设备',
|
||||
},
|
||||
{
|
||||
label: '保持清醒',
|
||||
type: 'switch',
|
||||
|
@ -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'"
|
||||
|
@ -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 ? '镜像中' : '开始镜像' }}
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user