更新 DynamicRender 组件,添加对 config.text 的支持以增强渲染功能

This commit is contained in:
jxxghp
2025-01-12 16:24:05 +08:00
parent 3e1bd687f1
commit 211b05c643

View File

@@ -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>