Replies: 2 comments
-
@kustone 你好,renderfunction需要返回Vnode类型,一般是 h 函数或者 JSX。这里可以写成 ()=> h(newEle,{...props})。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
我也遇到了真的恶心,用最基础的input能够正常显示,用arcodesign的组件就不能显示 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
请教一下,Arco-VUE组件库的Modal 对话框,如何在函数调用的情况下传递自定义组件?此前用的可以有参数传递VUE组件,Arco的content参数类型为renderfunction,我尝试了以下方法去展示自定义组件,但无法正常渲染自定义组件中使用的arco组件,希望能提供一下方法示例,十分感谢!!
官方示例是arco.$modal.info(title:str,content:str)的例子,没有展示如和渲染自定义组件
this.$modal.info({ title: 'Info Title', content: 'This is an info message' });
以下是我的代码方法:
import newEle from '@/views/layout/component/new.vue';
this.$modal.open({ title: "测试标题", content:()=>{ return newEle.render() } })
实际显示结果是基础的html标签(如div/p等)和css样式能正常显示,但是arco的组件标签就无法正常渲染(比如a-button等)
Beta Was this translation helpful? Give feedback.
All reactions