mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
refactor: 添加了卡版折叠状态和展开按钮。
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { TransferDirectoryConf } from '@/api/types'
|
import type { TransferDirectoryConf } from '@/api/types'
|
||||||
import { VTextField } from 'vuetify/lib/components/index.mjs'
|
import { VDivider, VSpacer, VTextField } from 'vuetify/lib/components/index.mjs'
|
||||||
import { useToast } from 'vue-toast-notification'
|
import { useToast } from 'vue-toast-notification'
|
||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
import { nextTick } from 'vue'
|
import { nextTick } from 'vue'
|
||||||
@@ -26,6 +26,9 @@ const downloadPath = ref<string>('')
|
|||||||
// 媒体库路径
|
// 媒体库路径
|
||||||
const libraryPath = ref<string>('')
|
const libraryPath = ref<string>('')
|
||||||
|
|
||||||
|
// 卡版是否折叠状态
|
||||||
|
const isCollapsed = ref(true)
|
||||||
|
|
||||||
// 类型下拉字典
|
// 类型下拉字典
|
||||||
const typeItems = [
|
const typeItems = [
|
||||||
{ title: '全部', value: '' },
|
{ title: '全部', value: '' },
|
||||||
@@ -188,7 +191,7 @@ watch(
|
|||||||
</IconBtn>
|
</IconBtn>
|
||||||
</span>
|
</span>
|
||||||
</VCardItem>
|
</VCardItem>
|
||||||
<VCardText>
|
<VCardText v-if="!isCollapsed">
|
||||||
<VForm>
|
<VForm>
|
||||||
<VRow>
|
<VRow>
|
||||||
<VCol cols="6">
|
<VCol cols="6">
|
||||||
@@ -242,7 +245,7 @@ watch(
|
|||||||
</VCol>
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
<VRow v-if="$props.directory.monitor_type">
|
<VRow v-if="$props.directory.monitor_type">
|
||||||
<VCol cols="12" v-if="$props.directory.monitor_type == 'monitor'">
|
<VCol cols="12" v-if="$props.directory.monitor_type == 'monitor'">
|
||||||
<VSelect
|
<VSelect
|
||||||
v-model="props.directory.monitor_mode"
|
v-model="props.directory.monitor_mode"
|
||||||
variant="underlined"
|
variant="underlined"
|
||||||
@@ -305,5 +308,10 @@ watch(
|
|||||||
</VRow>
|
</VRow>
|
||||||
</VForm>
|
</VForm>
|
||||||
</VCardText>
|
</VCardText>
|
||||||
|
<VCardActions class="text-center py-0">
|
||||||
|
<VSpacer />
|
||||||
|
<VBtn :icon="isCollapsed ? 'mdi-chevron-down' : 'mdi-chevron-up'" @click.stop="isCollapsed = !isCollapsed" />
|
||||||
|
<VSpacer />
|
||||||
|
</VCardActions>
|
||||||
</VCard>
|
</VCard>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user