chore: update placeholder of font select input

This commit is contained in:
Lykin 2024-01-29 11:21:24 +08:00
parent fd58357a04
commit 74d789ac8e
4 changed files with 6 additions and 0 deletions

View File

@ -498,6 +498,7 @@ const pasteFromClipboard = async () => {
</n-form>
</n-tab-pane>
<!-- Alias pane -->
<n-tab-pane :tab="$t('dialogue.connection.alias.title')" display-directive="show:lazy" name="alias">
<n-form
:model="generalForm.alias"

View File

@ -108,6 +108,7 @@ const onClose = () => {
<n-select
v-model:value="prefStore.general.fontFamily"
:options="prefStore.fontOption"
:placeholder="$t('preferences.general.font_tip')"
:render-label="({ label, value }) => (value === '' ? $t(label) : label)"
filterable
multiple
@ -166,6 +167,7 @@ const onClose = () => {
<n-select
v-model:value="prefStore.editor.fontFamily"
:options="prefStore.fontOption"
:placeholder="$t('preferences.general.font_tip')"
:render-label="({ label, value }) => value || $t(label)"
filterable
multiple
@ -206,6 +208,7 @@ const onClose = () => {
<n-select
v-model:value="prefStore.cli.fontFamily"
:options="prefStore.fontOption"
:placeholder="$t('preferences.general.font_tip')"
:render-label="({ label, value }) => value || $t(label)"
filterable
multiple

View File

@ -37,6 +37,7 @@
"language": "Language",
"system_lang": "Use System Language",
"font": "Font",
"font_tip": "Please Select or Input Font Name",
"font_size": "Font Size",
"scan_size": "Default Size for SCAN Command",
"key_icon_style": "Key Icon Style",

View File

@ -37,6 +37,7 @@
"language": "语言",
"system_lang": "使用系统语言",
"font": "字体",
"font_tip": "请选择或手动输入字体名",
"font_size": "字体尺寸",
"scan_size": "SCAN命令默认数量",
"key_icon_style": "键图标样式",