mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix
This commit is contained in:
@@ -202,7 +202,9 @@ const dropdownItems = ref([
|
|||||||
scrollable
|
scrollable
|
||||||
>
|
>
|
||||||
<VCard :title="`插件 - ${props.plugin?.plugin_name}`">
|
<VCard :title="`插件 - ${props.plugin?.plugin_name}`">
|
||||||
<VCardText />
|
<VCardText>
|
||||||
|
<FormRender v-for="(item, index) in pluginFormItems" :key="index" :config="item" />
|
||||||
|
</VCardText>
|
||||||
<VCardActions>
|
<VCardActions>
|
||||||
<VBtn v-if="pluginPageItems.length > 0" @click="showPluginInfo">
|
<VBtn v-if="pluginPageItems.length > 0" @click="showPluginInfo">
|
||||||
详情
|
详情
|
||||||
@@ -222,9 +224,7 @@ const dropdownItems = ref([
|
|||||||
scrollable
|
scrollable
|
||||||
>
|
>
|
||||||
<VCard :title="`插件 - ${props.plugin?.plugin_name}`">
|
<VCard :title="`插件 - ${props.plugin?.plugin_name}`">
|
||||||
<VCardText>
|
<VCardText />
|
||||||
<FormRender v-for="(item, index) in pluginFormItems" :key="index" :config="item" />
|
|
||||||
</VCardText>
|
|
||||||
<VCardActions>
|
<VCardActions>
|
||||||
<VSpacer />
|
<VSpacer />
|
||||||
<VBtn @click="pluginInfoDialog = false">
|
<VBtn @click="pluginInfoDialog = false">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { PropType } from 'vue'
|
import { type PropType, ref } from 'vue'
|
||||||
|
|
||||||
interface RenderProps {
|
interface RenderProps {
|
||||||
component: string
|
component: string
|
||||||
@@ -16,10 +16,7 @@ const formItems = ref(props.config)
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Component :is="item.component" v-for="(item, index) in formItems" :key="index" v-bind="$attrs">
|
<Component :is="item.component" v-for="(item, index) in formItems" :key="index">
|
||||||
<template v-for="(innerItem, innerIndex) in item.content" :key="innerIndex">
|
<FormRender v-for="(innerItem, innerIndex) in (item.content || [])" :key="innerIndex" :config="innerItem" />
|
||||||
<FormRender v-if="innerItem.component" :config="innerItem" v-bind="$attrs" />
|
|
||||||
<Component :is="innerItem.component" v-else v-bind="innerItem" />
|
|
||||||
</template>
|
|
||||||
</Component>
|
</Component>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user