WeChat Mini Programs (Components – Forms: Sliders, Switches, Selectors)
(1) Form component—slider sliding component
color attribute
slider properties
drag event
(2) Form component - switch switch component
Note:
When the switch type is switched, iOS has its own vibration feedback, which can be turned off in System Settings -> Sound and Haptic -> System Haptic Feedback
information authentication
(3) Form component—picker scrolling selector
mode value
Note: In addition to the previous general attributes, the picker has different attributes for different modes
Normal selector mode = selector
Next, change range to object array, and use range-key to specify the value of the key in Object as the selector to display the content
Multi-column selector mode = multiSelector
date picker mode = date
Province, city selector mode = region
(6) Form component—picker-view embedded component
picker-view is a scroll picker embedded in the page. Only the picker-view-column component can be placed in it, and other nodes will not display
picker-view-column as a child of the scroll selector. It can only be placed in picker-view, and the height of its child nodes will be automatically set to be consistent with the height of the check box in picker-view. For details, please refer to the official
website documentation, and you can simply understand it
navigation component
The navigator commonly used in navigation components has been explained before.