xaboy / form-create

:fire::fire::fire: 强大的低代码动态表单组件,通过数据驱动表单渲染,适配移动端,支持可视化设计。提高开发者对表单的开发效率。目前在政务系统、OA系统、ERP系统、电商系统、流程管理等系统中已稳定应用。
https://www.form-create.com/
MIT License
6k stars 968 forks source link

在ssr的server环境全局注册,报name is not undefine #357

Open busyShadow opened 3 years ago

busyShadow commented 3 years ago

@form-create/element-ui@2.5.7

UI 框架的版本:ant-design-vue V1.7.4

组件库在ssr环境里引入,前端是使用Vue.use进行全局注册,如果不在 nuxt-config.js => plugins对象里设置应用范围为client,会报错提示name is not undefine并阻塞浏览器渲染

该组件库有计划支持ssr,server环境渲染组件吗?

xaboy commented 3 years ago

目前还没有兼容 ssr

mei2015 commented 1 year ago

你好 nuxt3 引入使用报 $formCreate 未定义 怎么回事 是不支持 nuxt3吗 image

import formCreate from '@form-create/element-ui' export default defineNuxtPlugin((nuxtApp) => { nuxtApp.vueApp.use(formCreate) })

目前还没有兼容 ssr

jarvis000000 commented 11 months ago

你好 nuxt3 引入使用报 $formCreate 未定义 怎么回事 是不支持 nuxt3吗 image

import formCreate from '@form-create/element-ui' export default defineNuxtPlugin((nuxtApp) => { nuxtApp.vueApp.use(formCreate) })

目前还没有兼容 ssr

同样的问题,nuxt3 不使用 ssr 只使用 client 的该怎么引入啊

mengyangdy commented 11 months ago

请问在nuxt3中使用,有解决方法了吗?