From 223ecc0e6b7ed72fb545c21d2fdee99b453e4232 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 3 Jun 2024 10:43:28 +0800 Subject: [PATCH] fix dialog persistent-hint --- src/api/types.ts | 2 +- src/components/dialog/ReorganizeDialog.vue | 37 +++++++++---- src/components/dialog/SiteAddEditDialog.vue | 53 ++++++++++-------- src/components/dialog/SubscribeEditDialog.vue | 54 ++++++++++++++----- 4 files changed, 102 insertions(+), 44 deletions(-) diff --git a/src/api/types.ts b/src/api/types.ts index 3d8d575a..b7c11ce9 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -58,7 +58,7 @@ export interface Subscribe { // 当前优先级 current_priority: number // 保存目录 - save_path: string + save_path?: string // 时间 date: string // 编辑框设置项 diff --git a/src/components/dialog/ReorganizeDialog.vue b/src/components/dialog/ReorganizeDialog.vue index 53ba2a10..9bea9b05 100644 --- a/src/components/dialog/ReorganizeDialog.vue +++ b/src/components/dialog/ReorganizeDialog.vue @@ -214,7 +214,8 @@ onMounted(() => { :items="targetDirectories" label="目的路径" placeholder="留空自动" - hint="留空将自动匹配目标路径" + hint="整理目的路径,留空将自动匹配" + persistent-hint /> @@ -230,6 +231,8 @@ onMounted(() => { { title: 'Rclone复制', value: 'rclone_copy' }, { title: 'Rclone移动', value: 'rclone_move' }, ]" + hint="文件操作整理方式" + persistent-hint /> @@ -243,6 +246,8 @@ onMounted(() => { { title: '电影', value: '电影' }, { title: '电视剧', value: '电视剧' }, ]" + hint="文件的媒体类型" + persistent-hint /> @@ -254,7 +259,8 @@ onMounted(() => { placeholder="留空自动识别" :rules="[numberValidator]" append-inner-icon="mdi-magnify" - hint="点击图标按名称搜索,留空将自动重新识别" + hint="按名称查询媒体编号,留空自动识别" + persistent-hint @click:append-inner="mediaSelectorDialog = true" /> { placeholder="留空自动识别" :rules="[numberValidator]" append-inner-icon="mdi-magnify" - hint="点击图标按名称搜索,留空将自动重新识别" + hint="按名称查询媒体编号,留空自动识别" + persistent-hint @click:append-inner="mediaSelectorDialog = true" /> @@ -275,6 +282,8 @@ onMounted(() => { v-model.number="transferForm.season" label="季" :items="seasonItems" + hint="指定季数" + persistent-hint /> @@ -284,7 +293,8 @@ onMounted(() => { v-model="transferForm.episode_format" label="集数定位" placeholder="使用{ep}定位集数" - hint="使用{ep}定位文件名中的集数部分,其余相同部分直接填写,不同部分使用{a}进行忽略,例如:{a}葬送的芙莉莲_Sousou no Frieren 第{ep}话{b}" + hint="使用{ep}定位文件名中的集数部分以辅助识别" + persistent-hint /> @@ -292,7 +302,8 @@ onMounted(() => { v-model="transferForm.episode_detail" label="指定集数" placeholder="起始集,终止集,如1或1,2" - hint="直接指定集数或者范围,格式:起始集,终止集,如1或1,2" + hint="指定集数或范围,如1或1,2" + persistent-hint /> @@ -300,7 +311,8 @@ onMounted(() => { v-model="transferForm.episode_part" label="指定Part" placeholder="如part1" - hint="指定集数的Part,如part1" + hint="指定Part,如part1" + persistent-hint /> @@ -308,7 +320,8 @@ onMounted(() => { v-model.number="transferForm.episode_offset" label="集数偏移" placeholder="如-10" - hint="对集数进行偏移运算,如-10表示文件名中的集数减10为整理后集数" + hint="集数偏移运算,如-10或EP*2" + persistent-hint /> @@ -317,13 +330,19 @@ onMounted(() => { label="最小文件大小(MB)" :rules="[numberValidator]" placeholder="0" - hint="最小文件大小,小于此大小的文件将被忽略不进行整理" + hint="只整理大于最小文件大小的文件" + persistent-hint /> - + diff --git a/src/components/dialog/SiteAddEditDialog.vue b/src/components/dialog/SiteAddEditDialog.vue index b547c247..560461a2 100644 --- a/src/components/dialog/SiteAddEditDialog.vue +++ b/src/components/dialog/SiteAddEditDialog.vue @@ -143,6 +143,7 @@ async function updateSiteInfo() { label="站点地址" :rules="[requiredValidator]" hint="格式:http://www.example.com/" + persistent-hint /> @@ -151,11 +152,18 @@ async function updateSiteInfo() { label="优先级" :items="priorityItems" :rules="[requiredValidator]" - hint="站点资源下载优先级,优先级数字越小越优先下载" + hint="优先级越小越优先" + persistent-hint /> - + @@ -163,34 +171,38 @@ async function updateSiteInfo() { - + - + - + @@ -200,7 +212,8 @@ async function updateSiteInfo() { v-model="siteForm.limit_interval" label="单位周期(秒)" :rules="[numberValidator]" - hint="设定站点限流的单位周期,单位为秒,0为不限流" + hint="限流控制的单位周期时长" + persistent-hint /> @@ -208,7 +221,8 @@ async function updateSiteInfo() { v-model="siteForm.limit_count" label="周期内访问次数" :rules="[numberValidator]" - hint="设定单位周期内站点允许的访问次数,0为不限制" + hint="单位周期内允许的访问次数" + persistent-hint /> @@ -216,20 +230,17 @@ async function updateSiteInfo() { v-model="siteForm.limit_seconds" label="访问间隔(秒)" :rules="[numberValidator]" - hint="设定单位周期内每次站点访问需间隔时间,单位为秒,0为不限制" + hint="每次访问需要间隔的最小时间" + persistent-hint /> - + - + diff --git a/src/components/dialog/SubscribeEditDialog.vue b/src/components/dialog/SubscribeEditDialog.vue index ee03d8a7..90a697d3 100644 --- a/src/components/dialog/SubscribeEditDialog.vue +++ b/src/components/dialog/SubscribeEditDialog.vue @@ -53,7 +53,7 @@ const subscribeForm = ref({ last_update: '', username: '', current_priority: 0, - save_path: '', + save_path: undefined, date: '', show_edit_dialog: false, }) @@ -301,7 +301,8 @@ onMounted(() => { v-if="!props.default" v-model="subscribeForm.keyword" label="搜索关键词" - hint="设定搜索关键词后,将使用此关键词搜索站点资源,否则自动使用themoviedb中的名称搜索" + hint="指定搜索站点时使用的关键词" + persistent-hint /> @@ -309,7 +310,8 @@ onMounted(() => { v-model="subscribeForm.total_episode" label="总集数" :rules="[numberValidator]" - hint="手动设定总集数" + hint="剧集总集数" + persistent-hint /> @@ -317,19 +319,38 @@ onMounted(() => { v-model="subscribeForm.start_episode" label="开始集数" :rules="[numberValidator]" - hint="只下载此集数及之后的集" + hint="开始订阅集数" + persistent-hint /> - + - + - + @@ -337,14 +358,16 @@ onMounted(() => { @@ -354,7 +377,8 @@ onMounted(() => { chips label="订阅站点" multiple - hint="只订阅选中的订阅站点,不选则订阅所有可订阅站点" + hint="订阅的站点范围,不选使用系统设置" + persistent-hint /> @@ -365,6 +389,7 @@ onMounted(() => { :items="targetDirectories" label="保存路径" hint="指定该订阅的下载保存路径,留空自动使用设定的下载目录" + persistent-hint /> @@ -373,21 +398,24 @@ onMounted(() => {