-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSR开发环境下XInput不使用slot restricted-label出现Warning问题 #2201
Labels
Comments
这个问题看起来更像是 ssr 渲染的问题而不是组件的问题。 |
是hasRestrictedLabel的默认值的问题?
|
你服务端渲染用的 vue 是哪个版本? |
我是用nuxt 1.0.0-rc9, vue 2.4.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SSR的开发环境下,调用XInput组件,如果没有slot restricted-label,会有server side 与 client side virtual dom不一致的warning,如下
<x-input v-model="quantity" :is-type="number" :max="14" :placeholder="数量"></x-input>
使用slot restricted-label时则没有
看了一下XInput源码,主要是因为在client端非hasRestrictedLabel的时候
这部分代码会转成注释
<!---->
不知这个问题会不会改善下?
The text was updated successfully, but these errors were encountered: