-
Notifications
You must be signed in to change notification settings - Fork 1.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
Fix(form): Collpsed in FormItemGi does not work #1166
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/tusimple/naive-ui/7S3wkCSnsDp9RJfxzVfUesQ8ovAG |
Codecov Report
@@ Coverage Diff @@
## main #1166 +/- ##
==========================================
- Coverage 49.77% 49.77% -0.01%
==========================================
Files 514 514
Lines 12718 12720 +2
Branches 3601 3601
==========================================
Hits 6331 6331
- Misses 5298 5300 +2
Partials 1089 1089
Continue to review full report at Codecov.
|
return h(NGridItem, keep(this.$props, gridItemPropKeys), { | ||
const self = getCurrentInstance() | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
const gridItemProps = self!.vnode.props as GridItemVNodeProps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这几行得写到 setup里面么
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
写在这个位置看起来没啥毛病。
不过也是有问题的,就是说把 formItemProps 也传给 gridItemProps 了,得想办法改一下。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self!.vnode.props 打印出来是不包含formItemProps的, 只有GridItemVNodeProps定义的几个类型值
close #1160