xiguaxigua / vuepress-plugin-demo-block

write vue, react, vanilla js demo in vuepress
https://daxigua.me/vuepress-plugin-demo-block
MIT License
114 stars 24 forks source link

element-ui的 el-table 不能正常运行显示 #21

Open XavierLuo opened 4 years ago

XavierLuo commented 4 years ago

安装了插件之后,使用element-ui的 el-table 不能正常运行显示table。但是有 table 元素显示。不知道什么问题。

calebman commented 4 years ago

script 包裹的代码块通过 Vue.extend 编译出 Vue 对象,再调用其 $mount() 方法挂载到示例 dom,而非使用 vue-template-compiler 编译使其无法链接到注册组件导致的。

可以试试 https://github.com/calebman/vuepress-plugin-demo-container

liangxiaolong111 commented 4 years ago

最后问题解决了吗? 我这也是用了vuepress-plugin-demo-block 写readme时 element table 不显示

liangxiaolong111 commented 4 years ago

script 包裹的代码块通过 Vue.extend 编译出 Vue 对象,再调用其 $mount() 方法挂载到示例 dom,而非使用 vue-template-compiler 编译使其无法链接到注册组件导致的。

可以试试 https://github.com/calebman/vuepress-plugin-demo-container

使用了,可还是报错, image

wangliang01 commented 3 years ago

请问解决了吗?使用vuepress-plugin-demo-container,或者vuepress-plugin-demo-block都渲染不出来,除了ElTable组件,ElPopover组件也有这个问题。

frontendWangqun commented 3 years ago

最后问题解决了吗? 我这也是用了vuepress-plugin-demo-block 写readme时 element table 不显示

这个问题解决了吗?el-table有真实DOM元素,但是表头和表体的DOM是没有的,怎么解决的呀?