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-form>
</n-tab-pane> </n-tab-pane>
<!-- Alias pane -->
<n-tab-pane :tab="$t('dialogue.connection.alias.title')" display-directive="show:lazy" name="alias"> <n-tab-pane :tab="$t('dialogue.connection.alias.title')" display-directive="show:lazy" name="alias">
<n-form <n-form
:model="generalForm.alias" :model="generalForm.alias"

View File

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

View File

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

View File

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