-
Notifications
You must be signed in to change notification settings - Fork 3
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
β¨ [progress] add progress #10
base: main
Are you sure you want to change the base?
Conversation
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.
defineCore in vue version has some "historical reasons".
I don't think this is necessary in react version.
export const leaf = leafPng; | ||
|
||
|
||
export function useProgress(options: Options<{ |
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.
try this:
export function useProgress(props:ProgressProps)
@@ -0,0 +1,65 @@ | |||
/** |
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.
copy file from vue version , you should update comments
useEffect(() => { | ||
setValue(props.value ?? 0); | ||
setMax(props.max ?? 100); | ||
}, [props.value, props.max]); |
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.
should value
and max
use two useEffect
?
Their changes don't seem to affect each other.
π€ Nature of this PR
π Related Issue
π‘ Background and Solution
β Pre-merge Checklist
βοΈPlease self-check and check all options.βοΈ