mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
refactor(front): update download and view options to use array syntax for translation labels
This commit is contained in:
@@ -21,11 +21,11 @@ const props = defineProps<{
|
||||
name="download_nums"
|
||||
:label="t('page.shareOptions.file.downloadNums')"
|
||||
:options="[
|
||||
{ label: t('page.shareOptions.file.downloadOptions.xdownload', 1), value: 1 },
|
||||
{ label: t('page.shareOptions.file.downloadOptions.xdownload', 2), value: 2 },
|
||||
{ label: t('page.shareOptions.file.downloadOptions.xdownload', 3), value: 3 },
|
||||
{ label: t('page.shareOptions.file.downloadOptions.xdownload', 5), value: 5 },
|
||||
{ label: t('page.shareOptions.file.downloadOptions.xdownload', 10), value: 10 },
|
||||
{ label: t('page.shareOptions.file.downloadOptions.xdownload', [1]), value: 1 },
|
||||
{ label: t('page.shareOptions.file.downloadOptions.xdownload', [2]), value: 2 },
|
||||
{ label: t('page.shareOptions.file.downloadOptions.xdownload', [3]), value: 3 },
|
||||
{ label: t('page.shareOptions.file.downloadOptions.xdownload', [5]), value: 5 },
|
||||
{ label: t('page.shareOptions.file.downloadOptions.xdownload', [10]), value: 10 },
|
||||
]"
|
||||
/>
|
||||
{{ t('page.shareOptions.file.or') }}
|
||||
|
||||
@@ -21,11 +21,11 @@ const props = defineProps<{
|
||||
name="download_nums"
|
||||
:label="t('page.shareOptions.text.viewNums')"
|
||||
:options="[
|
||||
{ label: t('page.shareOptions.text.viewOptions.xview', 1), value: 1 },
|
||||
{ label: t('page.shareOptions.text.viewOptions.xview', 2), value: 2 },
|
||||
{ label: t('page.shareOptions.text.viewOptions.xview', 3), value: 3 },
|
||||
{ label: t('page.shareOptions.text.viewOptions.xview', 5), value: 5 },
|
||||
{ label: t('page.shareOptions.text.viewOptions.xview', 10), value: 10 },
|
||||
{ label: t('page.shareOptions.text.viewOptions.xview', [1]), value: 1 },
|
||||
{ label: t('page.shareOptions.text.viewOptions.xview', [2]), value: 2 },
|
||||
{ label: t('page.shareOptions.text.viewOptions.xview', [3]), value: 3 },
|
||||
{ label: t('page.shareOptions.text.viewOptions.xview', [5]), value: 5 },
|
||||
{ label: t('page.shareOptions.text.viewOptions.xview', [10]), value: 10 },
|
||||
]"
|
||||
/>
|
||||
{{ t('page.shareOptions.text.or') }}
|
||||
|
||||
Reference in New Issue
Block a user