-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
chore: cascader-view's demo type fix #6445
Conversation
@@ -5,7 +5,7 @@ import { DemoBlock } from 'demos' | |||
import { options, sameValueOptions } from '../../cascader/demos/data' | |||
|
|||
export default () => { | |||
const [value, setValue] = useState<string[]>([]) | |||
const [value, setValue] = useState<Array<string | number>>([]) |
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.
我感觉 (string | number)[]
会更简单一些~~
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.
没问题~
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.
我感觉
(string | number)[]
会更简单一些~~
done
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6445.surge.sh |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6445 +/- ##
=======================================
Coverage 92.10% 92.10%
=======================================
Files 316 316
Lines 6861 6861
Branches 1719 1719
=======================================
Hits 6319 6319
Misses 504 504
Partials 38 38 ☔ View full report in Codecov by Sentry. |
demo代码里的小提示修复