mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-21 08:10:16 +08:00
更新 DynamicRender 组件,添加对 config.text 的支持以增强渲染功能
This commit is contained in:
@@ -94,6 +94,9 @@ const renderComponent = (config: any, model: any, slotScope: any = {}) => {
|
||||
<!-- 调用递归渲染函数 -->
|
||||
<div>
|
||||
<Component v-if="config.html" :is="config.component" v-bind="config.props" v-html="config.html" />
|
||||
<Component v-else-if="config.text" :is="config.component" v-bind="config.props">
|
||||
{{ config.text }}
|
||||
</Component>
|
||||
<Component v-else :is="renderComponent(config, model)" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user