mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
feat(dialog): Update SubscribeEditDialog.vue
- Add conditional rendering for certain form fields based on the 'default' prop value - Improve user experience by showing relevant form fields only when necessary
This commit is contained in:
@@ -321,10 +321,9 @@ onMounted(() => {
|
|||||||
<VWindow v-model="activeTab" class="mt-5 disable-tab-transition" :touch="false">
|
<VWindow v-model="activeTab" class="mt-5 disable-tab-transition" :touch="false">
|
||||||
<VWindowItem value="basic">
|
<VWindowItem value="basic">
|
||||||
<div>
|
<div>
|
||||||
<VRow>
|
<VRow v-if="!props.default">
|
||||||
<VCol cols="12" md="4">
|
<VCol cols="12" md="4">
|
||||||
<VTextField
|
<VTextField
|
||||||
v-if="!props.default"
|
|
||||||
v-model="subscribeForm.keyword"
|
v-model="subscribeForm.keyword"
|
||||||
label="搜索关键词"
|
label="搜索关键词"
|
||||||
hint="指定搜索站点时使用的关键词"
|
hint="指定搜索站点时使用的关键词"
|
||||||
@@ -454,7 +453,7 @@ onMounted(() => {
|
|||||||
persistent-hint
|
persistent-hint
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
<VCol cols="12" md="6">
|
<VCol cols="12" md="6" v-if="!props.default">
|
||||||
<VTextField
|
<VTextField
|
||||||
v-model="subscribeForm.media_category"
|
v-model="subscribeForm.media_category"
|
||||||
label="自定义类别"
|
label="自定义类别"
|
||||||
@@ -462,9 +461,7 @@ onMounted(() => {
|
|||||||
persistent-hint
|
persistent-hint
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
</VRow>
|
<VCol cols="12" md="6">
|
||||||
<VRow>
|
|
||||||
<VCol cols="12">
|
|
||||||
<VCombobox
|
<VCombobox
|
||||||
v-model="subscribeForm.save_path"
|
v-model="subscribeForm.save_path"
|
||||||
:items="targetDirectories"
|
:items="targetDirectories"
|
||||||
@@ -474,7 +471,7 @@ onMounted(() => {
|
|||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
<VRow>
|
<VRow v-if="!props.default">
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<VTextarea
|
<VTextarea
|
||||||
v-model="subscribeForm.custom_words"
|
v-model="subscribeForm.custom_words"
|
||||||
|
|||||||
Reference in New Issue
Block a user