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