Skip to content

Commit

Permalink
style: webpage display
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyzyykk committed Jan 6, 2025
1 parent 292c033 commit f355b7f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions front/terminal/src/components/StyleSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
<div class="item-class">
<div>{{ $t('字体') }}</div>
<el-dropdown style="margin: 0 20px;" hide-timeout="300" >
<span class="a-link" >{{ setInfo.fontFamily }}<el-icon class="el-icon--right"><arrow-down /></el-icon></span>
<span class="a-link no-select" >{{ setInfo.fontFamily }}<el-icon class="el-icon--right"><arrow-down /></el-icon></span>
<template #dropdown>
<el-dropdown-menu>
<template v-for="(font,index) in fontFamilyList" :key="index" >
<el-dropdown-item @click="setInfo.fontFamily = font" >{{ font }}</el-dropdown-item>
<el-dropdown-item class="no-select" @click="setInfo.fontFamily = font" >{{ font }}</el-dropdown-item>
</template>
</el-dropdown-menu>
</template>
Expand All @@ -45,11 +45,11 @@
<div class="item-class">
<div>{{ $t('字号') }}</div>
<el-dropdown style="margin: 0 20px;" hide-timeout="300" >
<span class="a-link" >{{ setInfo.fontSize }}<el-icon class="el-icon--right"><arrow-down /></el-icon></span>
<span class="a-link no-select" >{{ setInfo.fontSize }}<el-icon class="el-icon--right"><arrow-down /></el-icon></span>
<template #dropdown>
<el-dropdown-menu>
<template v-for="(size,index) in fontSizeList" :key="index" >
<el-dropdown-item @click="setInfo.fontSize = size" >{{ size }}</el-dropdown-item>
<el-dropdown-item class="no-select" @click="setInfo.fontSize = size" >{{ size }}</el-dropdown-item>
</template>
</el-dropdown-menu>
</template>
Expand All @@ -61,11 +61,11 @@
<div class="item-class">
<div>{{ $t('样式') }}</div>
<el-dropdown style="margin: 0 20px;" hide-timeout="300" >
<span class="a-link" >{{ setInfo.cursorStyle }}<el-icon class="el-icon--right"><arrow-down /></el-icon></span>
<span class="a-link no-select" >{{ setInfo.cursorStyle }}<el-icon class="el-icon--right"><arrow-down /></el-icon></span>
<template #dropdown>
<el-dropdown-menu>
<template v-for="(style,index) in cursorStyleList" :key="index" >
<el-dropdown-item @click="setInfo.cursorStyle = style" >{{ style }}</el-dropdown-item>
<el-dropdown-item class="no-select" @click="setInfo.cursorStyle = style" >{{ style }}</el-dropdown-item>
</template>
</el-dropdown-menu>
</template>
Expand Down Expand Up @@ -93,11 +93,11 @@
<div class="item-class">
<div>{{ $t('语言') }}</div>
<el-dropdown style="margin: 0 20px;" hide-timeout="300" >
<span class="a-link" >{{ mapValueToLabel(setInfo.lang) }}<el-icon class="el-icon--right"><arrow-down /></el-icon></span>
<span class="a-link no-select" >{{ mapValueToLabel(setInfo.lang) }}<el-icon class="el-icon--right"><arrow-down /></el-icon></span>
<template #dropdown>
<el-dropdown-menu>
<template v-for="(lang,index) in langList" :key="index" >
<el-dropdown-item @click="setInfo.lang = lang.value" >{{ lang.label }}</el-dropdown-item>
<el-dropdown-item class="no-select" @click="setInfo.lang = lang.value" >{{ lang.label }}</el-dropdown-item>
</template>
</el-dropdown-menu>
</template>
Expand Down
8 changes: 4 additions & 4 deletions front/terminal/src/components/preview/TxtPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
<div class="kk-flex" >
<div class="no-select" >{{ $t('保存编码') }}:</div>
<el-dropdown size="small" hide-timeout="300" >
<span class="a-link" >{{ encode }}<el-icon class="el-icon--right"><arrow-down /></el-icon></span>
<span class="a-link no-select" >{{ encode }}<el-icon class="el-icon--right"><arrow-down /></el-icon></span>
<template #dropdown>
<el-dropdown-menu>
<template v-for="(name,index) in encodeSet" :key="index" >
<el-dropdown-item @click="encode = name; modifyTag = '*';" >{{ name }}</el-dropdown-item>
<el-dropdown-item class="no-select" @click="encode = name; modifyTag = '*';" >{{ name }}</el-dropdown-item>
</template>
</el-dropdown-menu>
</template>
Expand All @@ -33,11 +33,11 @@
<div class="kk-flex" >
<div class="no-select" >{{ $t('模式') }}:</div>
<el-dropdown size="small" hide-timeout="300" >
<span class="a-link" >{{ mode }}<el-icon class="el-icon--right"><arrow-down /></el-icon></span>
<span class="a-link no-select" >{{ mode }}<el-icon class="el-icon--right"><arrow-down /></el-icon></span>
<template #dropdown>
<el-dropdown-menu>
<template v-for="(name,index) in modeSet" :key="index" >
<el-dropdown-item @click="setMode(name)" >{{ name }}</el-dropdown-item>
<el-dropdown-item class="no-select" @click="setMode(name)" >{{ name }}</el-dropdown-item>
</template>
</el-dropdown-menu>
</template>
Expand Down

0 comments on commit f355b7f

Please sign in to comment.