-
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
feat(n-layout): add scroll event #1296
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/tusimple/naive-ui/4vNTEC6csxJaifUY2RHxGmGWeYwa |
Codecov Report
@@ Coverage Diff @@
## main #1296 +/- ##
=======================================
Coverage 51.90% 51.90%
=======================================
Files 529 529
Lines 13109 13109
Branches 3737 3737
=======================================
Hits 6804 6804
Misses 5179 5179
Partials 1126 1126
Continue to review full report at Codecov.
|
@@ -72,6 +73,7 @@ scroll-to | |||
| trigger-style | `string \| Object` | `undefined` | Trigger style. | | |||
| width | `number \| string` | `272` | Width CSS value. When it is number, px will be added. | | |||
| on-update:collapsed | `(collapsed: boolean) => void` | `undefined` | Callback function when the folding state changes. | | |||
| on-scroll | `(e: Event) => void` | `undefined` | Callback function when the content scroll. | |
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.
u > s
@@ -34,6 +34,7 @@ scroll-to | |||
| embedded | `boolean` | `false` | Use darker background to show a embedded effect. Only work for light theme. | | |||
| has-sider | `boolean` | `false` | Whether the component has sider inside. If so it must be `true`. | | |||
| native-scrollbar | `boolean` | `true` | Whether to use native scrollbar on itself. If set to `false`, layout will use a naive-ui style scrollbar for content. | | |||
| on-scroll | `(e: Event) => void` | `undefined` | Callback function when the content scroll. | |
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.
事件放在最后面
Close #1232