-
Notifications
You must be signed in to change notification settings - Fork 86
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: added tooltip format for Slider Component #394
Conversation
✅ Deploy Preview for ikun-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
components/Slider/src/index.svelte
Outdated
@@ -16,6 +16,7 @@ | |||
export let attrs: KSliderProps['attrs'] = {}; | |||
export let cls: KSliderProps['cls'] = undefined; | |||
export let showTooltip: KSliderProps['showTooltip'] = true; | |||
export let format: KSliderProps['format'] = ''; |
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.
Sorry, maybe my description of #342 is not accurate enough. It should actually be a function called format. The parameter is the current slider value and the return value is the user-defined formatted content.it might be something like this
format: (value: number) => number | string
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.
ok, I got it
No description provided.