@ray-js/components 0.3.0-beta.1c347991
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Button/Button.android.js +1 -0
- package/lib/Button/Button.d.ts +4 -0
- package/lib/Button/Button.ios.js +1 -0
- package/lib/Button/Button.js +57 -0
- package/lib/Button/Button.native.d.ts +29 -0
- package/lib/Button/Button.tuya.d.ts +4 -0
- package/lib/Button/Button.tuya.js +43 -0
- package/lib/Button/Button.web.js +57 -0
- package/lib/Button/Button.wechat.d.ts +4 -0
- package/lib/Button/Button.wechat.js +44 -0
- package/lib/Button/index.android.js +1 -0
- package/lib/Button/index.d.ts +3 -0
- package/lib/Button/index.ios.js +1 -0
- package/lib/Button/index.js +3 -0
- package/lib/Button/index.md +41 -0
- package/lib/Button/index.module.less +129 -0
- package/lib/Button/index.tuya.js +3 -0
- package/lib/Button/index.web.js +3 -0
- package/lib/Button/index.wechat.js +3 -0
- package/lib/Button/props.android.js +1 -0
- package/lib/Button/props.d.ts +18 -0
- package/lib/Button/props.ios.js +1 -0
- package/lib/Button/props.js +10 -0
- package/lib/Button/props.tuya.js +10 -0
- package/lib/Button/props.web.js +10 -0
- package/lib/Button/props.wechat.js +10 -0
- package/lib/Checkbox/Checkbox.android.js +1 -0
- package/lib/Checkbox/Checkbox.d.ts +5 -0
- package/lib/Checkbox/Checkbox.ios.js +1 -0
- package/lib/Checkbox/Checkbox.js +36 -0
- package/lib/Checkbox/Checkbox.native.d.ts +28 -0
- package/lib/Checkbox/Checkbox.tuya.d.ts +4 -0
- package/lib/Checkbox/Checkbox.tuya.js +22 -0
- package/lib/Checkbox/Checkbox.web.js +36 -0
- package/lib/Checkbox/Checkbox.wechat.d.ts +4 -0
- package/lib/Checkbox/Checkbox.wechat.js +24 -0
- package/lib/Checkbox/index.android.js +1 -0
- package/lib/Checkbox/index.d.ts +3 -0
- package/lib/Checkbox/index.ios.js +1 -0
- package/lib/Checkbox/index.js +3 -0
- package/lib/Checkbox/index.md +33 -0
- package/lib/Checkbox/index.module.less +11 -0
- package/lib/Checkbox/index.tuya.js +3 -0
- package/lib/Checkbox/index.web.js +3 -0
- package/lib/Checkbox/index.wechat.js +3 -0
- package/lib/Checkbox/props.android.js +1 -0
- package/lib/Checkbox/props.d.ts +7 -0
- package/lib/Checkbox/props.ios.js +1 -0
- package/lib/Checkbox/props.js +1 -0
- package/lib/Checkbox/props.tuya.js +1 -0
- package/lib/Checkbox/props.web.js +1 -0
- package/lib/Checkbox/props.wechat.js +1 -0
- package/lib/CheckboxGroup/CheckboxGroup.android.js +1 -0
- package/lib/CheckboxGroup/CheckboxGroup.d.ts +4 -0
- package/lib/CheckboxGroup/CheckboxGroup.ios.js +1 -0
- package/lib/CheckboxGroup/CheckboxGroup.js +9 -0
- package/lib/CheckboxGroup/CheckboxGroup.native.d.ts +18 -0
- package/lib/CheckboxGroup/CheckboxGroup.tuya.d.ts +4 -0
- package/lib/CheckboxGroup/CheckboxGroup.tuya.js +35 -0
- package/lib/CheckboxGroup/CheckboxGroup.web.js +9 -0
- package/lib/CheckboxGroup/CheckboxGroup.wechat.d.ts +4 -0
- package/lib/CheckboxGroup/CheckboxGroup.wechat.js +35 -0
- package/lib/CheckboxGroup/index.android.js +1 -0
- package/lib/CheckboxGroup/index.d.ts +3 -0
- package/lib/CheckboxGroup/index.ios.js +1 -0
- package/lib/CheckboxGroup/index.js +3 -0
- package/lib/CheckboxGroup/index.md +37 -0
- package/lib/CheckboxGroup/index.tuya.js +3 -0
- package/lib/CheckboxGroup/index.web.js +3 -0
- package/lib/CheckboxGroup/index.wechat.js +3 -0
- package/lib/CheckboxGroup/props.android.js +1 -0
- package/lib/CheckboxGroup/props.d.ts +13 -0
- package/lib/CheckboxGroup/props.ios.js +1 -0
- package/lib/CheckboxGroup/props.js +1 -0
- package/lib/CheckboxGroup/props.tuya.js +1 -0
- package/lib/CheckboxGroup/props.web.js +1 -0
- package/lib/CheckboxGroup/props.wechat.js +1 -0
- package/lib/ClickableSimplified/index.android.js +1 -0
- package/lib/ClickableSimplified/index.ios.js +1 -0
- package/lib/ClickableSimplified/index.native.d.ts +42 -0
- package/lib/DatePicker/DatePicker.android.js +1 -0
- package/lib/DatePicker/DatePicker.d.ts +4 -0
- package/lib/DatePicker/DatePicker.ios.js +1 -0
- package/lib/DatePicker/DatePicker.js +10 -0
- package/lib/DatePicker/DatePicker.native.d.ts +34 -0
- package/lib/DatePicker/DatePicker.tuya.d.ts +4 -0
- package/lib/DatePicker/DatePicker.tuya.js +56 -0
- package/lib/DatePicker/DatePicker.web.js +10 -0
- package/lib/DatePicker/DatePicker.wechat.d.ts +4 -0
- package/lib/DatePicker/DatePicker.wechat.js +56 -0
- package/lib/DatePicker/index.android.js +1 -0
- package/lib/DatePicker/index.d.ts +3 -0
- package/lib/DatePicker/index.ios.js +1 -0
- package/lib/DatePicker/index.js +3 -0
- package/lib/DatePicker/index.md +36 -0
- package/lib/DatePicker/index.module.less +0 -0
- package/lib/DatePicker/index.tuya.js +3 -0
- package/lib/DatePicker/index.web.js +3 -0
- package/lib/DatePicker/index.wechat.js +3 -0
- package/lib/DatePicker/props.android.js +1 -0
- package/lib/DatePicker/props.d.ts +31 -0
- package/lib/DatePicker/props.ios.js +1 -0
- package/lib/DatePicker/props.js +7 -0
- package/lib/DatePicker/props.tuya.js +7 -0
- package/lib/DatePicker/props.web.js +7 -0
- package/lib/DatePicker/props.wechat.js +7 -0
- package/lib/Icon/Icon.android.js +1 -0
- package/lib/Icon/Icon.d.ts +5 -0
- package/lib/Icon/Icon.ios.js +1 -0
- package/lib/Icon/Icon.js +23 -0
- package/lib/Icon/Icon.native.d.ts +15 -0
- package/lib/Icon/Icon.tuya.d.ts +5 -0
- package/lib/Icon/Icon.tuya.js +23 -0
- package/lib/Icon/Icon.web.js +23 -0
- package/lib/Icon/Icon.wechat.d.ts +5 -0
- package/lib/Icon/Icon.wechat.js +23 -0
- package/lib/Icon/iconfont/iconfont.android.js +1 -0
- package/lib/Icon/iconfont/iconfont.css +765 -0
- package/lib/Icon/iconfont/iconfont.ios.js +1 -0
- package/lib/Icon/iconfont/iconfont.js +47 -0
- package/lib/Icon/iconfont/iconfont.json +1318 -0
- package/lib/Icon/iconfont/iconfont.ttf +0 -0
- package/lib/Icon/iconfont/iconfont.tuya.js +47 -0
- package/lib/Icon/iconfont/iconfont.web.js +47 -0
- package/lib/Icon/iconfont/iconfont.wechat.js +47 -0
- package/lib/Icon/iconfont/iconfont.woff +0 -0
- package/lib/Icon/iconfont/iconfont.woff2 +0 -0
- package/lib/Icon/iconfont-rn/iconfont.json +189 -0
- package/lib/Icon/index.android.js +1 -0
- package/lib/Icon/index.d.ts +3 -0
- package/lib/Icon/index.ios.js +1 -0
- package/lib/Icon/index.js +3 -0
- package/lib/Icon/index.less +5 -0
- package/lib/Icon/index.md +29 -0
- package/lib/Icon/index.tuya.js +3 -0
- package/lib/Icon/index.web.js +3 -0
- package/lib/Icon/index.wechat.js +3 -0
- package/lib/Icon/props.android.js +1 -0
- package/lib/Icon/props.d.ts +9 -0
- package/lib/Icon/props.ios.js +1 -0
- package/lib/Icon/props.js +5 -0
- package/lib/Icon/props.tuya.js +5 -0
- package/lib/Icon/props.web.js +5 -0
- package/lib/Icon/props.wechat.js +5 -0
- package/lib/Image/Image.android.js +1 -0
- package/lib/Image/Image.d.ts +4 -0
- package/lib/Image/Image.ios.js +1 -0
- package/lib/Image/Image.js +92 -0
- package/lib/Image/Image.native.d.ts +28 -0
- package/lib/Image/Image.tuya.d.ts +4 -0
- package/lib/Image/Image.tuya.js +23 -0
- package/lib/Image/Image.web.js +92 -0
- package/lib/Image/Image.wechat.d.ts +4 -0
- package/lib/Image/Image.wechat.js +51 -0
- package/lib/Image/index.android.js +1 -0
- package/lib/Image/index.d.ts +3 -0
- package/lib/Image/index.ios.js +1 -0
- package/lib/Image/index.js +3 -0
- package/lib/Image/index.md +50 -0
- package/lib/Image/index.module.less +6 -0
- package/lib/Image/index.tuya.js +3 -0
- package/lib/Image/index.web.js +3 -0
- package/lib/Image/index.wechat.js +3 -0
- package/lib/Image/props.android.js +1 -0
- package/lib/Image/props.d.ts +24 -0
- package/lib/Image/props.ios.js +1 -0
- package/lib/Image/props.js +4 -0
- package/lib/Image/props.tuya.js +4 -0
- package/lib/Image/props.web.js +4 -0
- package/lib/Image/props.wechat.js +4 -0
- package/lib/Input/Input.android.js +1 -0
- package/lib/Input/Input.d.ts +4 -0
- package/lib/Input/Input.ios.js +1 -0
- package/lib/Input/Input.js +100 -0
- package/lib/Input/Input.native.d.ts +32 -0
- package/lib/Input/Input.tuya.d.ts +4 -0
- package/lib/Input/Input.tuya.js +86 -0
- package/lib/Input/Input.web.js +100 -0
- package/lib/Input/Input.wechat.d.ts +4 -0
- package/lib/Input/Input.wechat.js +110 -0
- package/lib/Input/index.android.js +1 -0
- package/lib/Input/index.d.ts +3 -0
- package/lib/Input/index.ios.js +1 -0
- package/lib/Input/index.js +3 -0
- package/lib/Input/index.md +43 -0
- package/lib/Input/index.module.less +17 -0
- package/lib/Input/index.tuya.js +3 -0
- package/lib/Input/index.web.js +3 -0
- package/lib/Input/index.wechat.js +3 -0
- package/lib/Input/props.android.js +1 -0
- package/lib/Input/props.d.ts +36 -0
- package/lib/Input/props.ios.js +1 -0
- package/lib/Input/props.js +7 -0
- package/lib/Input/props.tuya.js +7 -0
- package/lib/Input/props.web.js +7 -0
- package/lib/Input/props.wechat.js +7 -0
- package/lib/Label/Label.android.js +1 -0
- package/lib/Label/Label.d.ts +4 -0
- package/lib/Label/Label.ios.js +1 -0
- package/lib/Label/Label.js +24 -0
- package/lib/Label/Label.native.d.ts +4 -0
- package/lib/Label/Label.tuya.d.ts +4 -0
- package/lib/Label/Label.tuya.js +21 -0
- package/lib/Label/Label.web.js +24 -0
- package/lib/Label/Label.wechat.d.ts +4 -0
- package/lib/Label/Label.wechat.js +21 -0
- package/lib/Label/index.android.js +1 -0
- package/lib/Label/index.d.ts +3 -0
- package/lib/Label/index.ios.js +1 -0
- package/lib/Label/index.js +3 -0
- package/lib/Label/index.module.less +4 -0
- package/lib/Label/index.tuya.js +3 -0
- package/lib/Label/index.web.js +3 -0
- package/lib/Label/index.wechat.js +3 -0
- package/lib/Label/props.android.js +1 -0
- package/lib/Label/props.d.ts +4 -0
- package/lib/Label/props.ios.js +1 -0
- package/lib/Label/props.js +1 -0
- package/lib/Label/props.tuya.js +1 -0
- package/lib/Label/props.web.js +1 -0
- package/lib/Label/props.wechat.js +1 -0
- package/lib/LinearGradient/LinearGradient.android.js +1 -0
- package/lib/LinearGradient/LinearGradient.d.ts +4 -0
- package/lib/LinearGradient/LinearGradient.ios.js +1 -0
- package/lib/LinearGradient/LinearGradient.js +8 -0
- package/lib/LinearGradient/LinearGradient.native.d.ts +16 -0
- package/lib/LinearGradient/LinearGradient.tuya.d.ts +4 -0
- package/lib/LinearGradient/LinearGradient.tuya.js +56 -0
- package/lib/LinearGradient/LinearGradient.web.js +8 -0
- package/lib/LinearGradient/LinearGradient.wechat.d.ts +4 -0
- package/lib/LinearGradient/LinearGradient.wechat.js +53 -0
- package/lib/LinearGradient/index.android.js +1 -0
- package/lib/LinearGradient/index.d.ts +3 -0
- package/lib/LinearGradient/index.ios.js +1 -0
- package/lib/LinearGradient/index.js +3 -0
- package/lib/LinearGradient/index.md +33 -0
- package/lib/LinearGradient/index.module.less +7 -0
- package/lib/LinearGradient/index.tuya.js +3 -0
- package/lib/LinearGradient/index.web.js +3 -0
- package/lib/LinearGradient/index.wechat.js +3 -0
- package/lib/LinearGradient/props.android.js +1 -0
- package/lib/LinearGradient/props.d.ts +48 -0
- package/lib/LinearGradient/props.ios.js +1 -0
- package/lib/LinearGradient/props.js +11 -0
- package/lib/LinearGradient/props.tuya.js +11 -0
- package/lib/LinearGradient/props.web.js +11 -0
- package/lib/LinearGradient/props.wechat.js +11 -0
- package/lib/Modal/Modal.android.js +1 -0
- package/lib/Modal/Modal.d.ts +4 -0
- package/lib/Modal/Modal.ios.js +1 -0
- package/lib/Modal/Modal.js +10 -0
- package/lib/Modal/Modal.native.d.ts +24 -0
- package/lib/Modal/Modal.tuya.d.ts +4 -0
- package/lib/Modal/Modal.tuya.js +75 -0
- package/lib/Modal/Modal.web.js +10 -0
- package/lib/Modal/Modal.wechat.d.ts +4 -0
- package/lib/Modal/Modal.wechat.js +75 -0
- package/lib/Modal/index.android.js +1 -0
- package/lib/Modal/index.d.ts +3 -0
- package/lib/Modal/index.ios.js +1 -0
- package/lib/Modal/index.js +3 -0
- package/lib/Modal/index.md +32 -0
- package/lib/Modal/index.module.less +46 -0
- package/lib/Modal/index.tuya.js +3 -0
- package/lib/Modal/index.web.js +3 -0
- package/lib/Modal/index.wechat.js +3 -0
- package/lib/Modal/props.android.js +1 -0
- package/lib/Modal/props.d.ts +16 -0
- package/lib/Modal/props.ios.js +1 -0
- package/lib/Modal/props.js +1 -0
- package/lib/Modal/props.tuya.js +1 -0
- package/lib/Modal/props.web.js +1 -0
- package/lib/Modal/props.wechat.js +1 -0
- package/lib/Motion/Fade/index.android.js +1 -0
- package/lib/Motion/Fade/index.d.ts +4 -0
- package/lib/Motion/Fade/index.ios.js +1 -0
- package/lib/Motion/Fade/index.js +28 -0
- package/lib/Motion/Fade/index.native.d.ts +2 -0
- package/lib/Motion/Fade/index.tuya.d.ts +4 -0
- package/lib/Motion/Fade/index.tuya.js +78 -0
- package/lib/Motion/Fade/index.web.js +28 -0
- package/lib/Motion/Fade/index.wechat.d.ts +4 -0
- package/lib/Motion/Fade/index.wechat.js +78 -0
- package/lib/Motion/PullUp/index.android.js +1 -0
- package/lib/Motion/PullUp/index.d.ts +4 -0
- package/lib/Motion/PullUp/index.ios.js +1 -0
- package/lib/Motion/PullUp/index.js +28 -0
- package/lib/Motion/PullUp/index.native.d.ts +2 -0
- package/lib/Motion/PullUp/index.tuya.d.ts +4 -0
- package/lib/Motion/PullUp/index.tuya.js +82 -0
- package/lib/Motion/PullUp/index.web.js +28 -0
- package/lib/Motion/PullUp/index.wechat.d.ts +4 -0
- package/lib/Motion/PullUp/index.wechat.js +82 -0
- package/lib/Motion/PushDown/index.android.js +1 -0
- package/lib/Motion/PushDown/index.d.ts +4 -0
- package/lib/Motion/PushDown/index.ios.js +1 -0
- package/lib/Motion/PushDown/index.js +28 -0
- package/lib/Motion/PushDown/index.native.d.ts +2 -0
- package/lib/Motion/PushDown/index.tuya.d.ts +4 -0
- package/lib/Motion/PushDown/index.tuya.js +82 -0
- package/lib/Motion/PushDown/index.web.js +28 -0
- package/lib/Motion/PushDown/index.wechat.d.ts +4 -0
- package/lib/Motion/PushDown/index.wechat.js +82 -0
- package/lib/Motion/ScaleFadeIn/index.android.js +1 -0
- package/lib/Motion/ScaleFadeIn/index.d.ts +4 -0
- package/lib/Motion/ScaleFadeIn/index.ios.js +1 -0
- package/lib/Motion/ScaleFadeIn/index.js +28 -0
- package/lib/Motion/ScaleFadeIn/index.native.d.ts +2 -0
- package/lib/Motion/ScaleFadeIn/index.tuya.d.ts +4 -0
- package/lib/Motion/ScaleFadeIn/index.tuya.js +83 -0
- package/lib/Motion/ScaleFadeIn/index.web.js +28 -0
- package/lib/Motion/ScaleFadeIn/index.wechat.d.ts +4 -0
- package/lib/Motion/ScaleFadeIn/index.wechat.js +83 -0
- package/lib/Motion/ScalePullDown/index.android.js +1 -0
- package/lib/Motion/ScalePullDown/index.d.ts +4 -0
- package/lib/Motion/ScalePullDown/index.ios.js +1 -0
- package/lib/Motion/ScalePullDown/index.js +28 -0
- package/lib/Motion/ScalePullDown/index.native.d.ts +2 -0
- package/lib/Motion/ScalePullDown/index.tuya.d.ts +4 -0
- package/lib/Motion/ScalePullDown/index.tuya.js +103 -0
- package/lib/Motion/ScalePullDown/index.web.js +28 -0
- package/lib/Motion/ScalePullDown/index.wechat.d.ts +4 -0
- package/lib/Motion/ScalePullDown/index.wechat.js +103 -0
- package/lib/Motion/index.android.js +1 -0
- package/lib/Motion/index.d.ts +14 -0
- package/lib/Motion/index.ios.js +1 -0
- package/lib/Motion/index.js +14 -0
- package/lib/Motion/index.md +68 -0
- package/lib/Motion/index.tuya.js +14 -0
- package/lib/Motion/index.web.js +14 -0
- package/lib/Motion/index.wechat.js +14 -0
- package/lib/Motion/props.android.js +1 -0
- package/lib/Motion/props.d.ts +92 -0
- package/lib/Motion/props.ios.js +1 -0
- package/lib/Motion/props.js +62 -0
- package/lib/Motion/props.tuya.js +62 -0
- package/lib/Motion/props.web.js +62 -0
- package/lib/Motion/props.wechat.js +62 -0
- package/lib/Picker/Picker.android.js +1 -0
- package/lib/Picker/Picker.d.ts +4 -0
- package/lib/Picker/Picker.ios.js +1 -0
- package/lib/Picker/Picker.js +11 -0
- package/lib/Picker/Picker.native.d.ts +22 -0
- package/lib/Picker/Picker.tuya.d.ts +4 -0
- package/lib/Picker/Picker.tuya.js +69 -0
- package/lib/Picker/Picker.web.js +11 -0
- package/lib/Picker/Picker.wechat.d.ts +4 -0
- package/lib/Picker/Picker.wechat.js +70 -0
- package/lib/Picker/index.android.js +1 -0
- package/lib/Picker/index.d.ts +3 -0
- package/lib/Picker/index.ios.js +1 -0
- package/lib/Picker/index.js +3 -0
- package/lib/Picker/index.md +35 -0
- package/lib/Picker/index.module.less +0 -0
- package/lib/Picker/index.tuya.js +3 -0
- package/lib/Picker/index.web.js +3 -0
- package/lib/Picker/index.wechat.js +3 -0
- package/lib/Picker/props.android.js +1 -0
- package/lib/Picker/props.d.ts +32 -0
- package/lib/Picker/props.ios.js +1 -0
- package/lib/Picker/props.js +4 -0
- package/lib/Picker/props.tuya.js +4 -0
- package/lib/Picker/props.web.js +4 -0
- package/lib/Picker/props.wechat.js +4 -0
- package/lib/PickerView/PickerView.android.js +1 -0
- package/lib/PickerView/PickerView.d.ts +4 -0
- package/lib/PickerView/PickerView.ios.js +1 -0
- package/lib/PickerView/PickerView.js +11 -0
- package/lib/PickerView/PickerView.native.d.ts +31 -0
- package/lib/PickerView/PickerView.tuya.d.ts +4 -0
- package/lib/PickerView/PickerView.tuya.js +71 -0
- package/lib/PickerView/PickerView.web.js +11 -0
- package/lib/PickerView/PickerView.wechat.d.ts +4 -0
- package/lib/PickerView/PickerView.wechat.js +72 -0
- package/lib/PickerView/index.android.js +1 -0
- package/lib/PickerView/index.d.ts +3 -0
- package/lib/PickerView/index.ios.js +1 -0
- package/lib/PickerView/index.js +3 -0
- package/lib/PickerView/index.md +32 -0
- package/lib/PickerView/index.module.less +8 -0
- package/lib/PickerView/index.tuya.js +3 -0
- package/lib/PickerView/index.web.js +3 -0
- package/lib/PickerView/index.wechat.js +3 -0
- package/lib/PickerView/props.android.js +1 -0
- package/lib/PickerView/props.d.ts +10 -0
- package/lib/PickerView/props.ios.js +1 -0
- package/lib/PickerView/props.js +1 -0
- package/lib/PickerView/props.tuya.js +1 -0
- package/lib/PickerView/props.web.js +1 -0
- package/lib/PickerView/props.wechat.js +1 -0
- package/lib/RadialGradient/RadialGradient.android.js +1 -0
- package/lib/RadialGradient/RadialGradient.d.ts +4 -0
- package/lib/RadialGradient/RadialGradient.ios.js +1 -0
- package/lib/RadialGradient/RadialGradient.js +8 -0
- package/lib/RadialGradient/RadialGradient.native.d.ts +17 -0
- package/lib/RadialGradient/RadialGradient.tuya.d.ts +4 -0
- package/lib/RadialGradient/RadialGradient.tuya.js +36 -0
- package/lib/RadialGradient/RadialGradient.web.js +8 -0
- package/lib/RadialGradient/RadialGradient.wechat.d.ts +4 -0
- package/lib/RadialGradient/RadialGradient.wechat.js +36 -0
- package/lib/RadialGradient/index.android.js +1 -0
- package/lib/RadialGradient/index.d.ts +3 -0
- package/lib/RadialGradient/index.ios.js +1 -0
- package/lib/RadialGradient/index.js +3 -0
- package/lib/RadialGradient/index.md +33 -0
- package/lib/RadialGradient/index.module.less +7 -0
- package/lib/RadialGradient/index.tuya.js +3 -0
- package/lib/RadialGradient/index.web.js +3 -0
- package/lib/RadialGradient/index.wechat.js +3 -0
- package/lib/RadialGradient/props.android.js +1 -0
- package/lib/RadialGradient/props.d.ts +54 -0
- package/lib/RadialGradient/props.ios.js +1 -0
- package/lib/RadialGradient/props.js +16 -0
- package/lib/RadialGradient/props.tuya.js +16 -0
- package/lib/RadialGradient/props.web.js +16 -0
- package/lib/RadialGradient/props.wechat.js +16 -0
- package/lib/Radio/Radio.android.js +1 -0
- package/lib/Radio/Radio.d.ts +4 -0
- package/lib/Radio/Radio.ios.js +1 -0
- package/lib/Radio/Radio.js +13 -0
- package/lib/Radio/Radio.native.d.ts +30 -0
- package/lib/Radio/Radio.tuya.d.ts +4 -0
- package/lib/Radio/Radio.tuya.js +22 -0
- package/lib/Radio/Radio.web.js +13 -0
- package/lib/Radio/Radio.wechat.d.ts +4 -0
- package/lib/Radio/Radio.wechat.js +24 -0
- package/lib/Radio/index.android.js +1 -0
- package/lib/Radio/index.d.ts +3 -0
- package/lib/Radio/index.ios.js +1 -0
- package/lib/Radio/index.js +3 -0
- package/lib/Radio/index.md +30 -0
- package/lib/Radio/index.module.less +0 -0
- package/lib/Radio/index.tuya.js +3 -0
- package/lib/Radio/index.web.js +3 -0
- package/lib/Radio/index.wechat.js +3 -0
- package/lib/Radio/props.android.js +1 -0
- package/lib/Radio/props.d.ts +7 -0
- package/lib/Radio/props.ios.js +1 -0
- package/lib/Radio/props.js +1 -0
- package/lib/Radio/props.tuya.js +1 -0
- package/lib/Radio/props.web.js +1 -0
- package/lib/Radio/props.wechat.js +1 -0
- package/lib/RadioGroup/RadioGroup.android.js +1 -0
- package/lib/RadioGroup/RadioGroup.d.ts +4 -0
- package/lib/RadioGroup/RadioGroup.ios.js +1 -0
- package/lib/RadioGroup/RadioGroup.js +9 -0
- package/lib/RadioGroup/RadioGroup.native.d.ts +18 -0
- package/lib/RadioGroup/RadioGroup.tuya.d.ts +4 -0
- package/lib/RadioGroup/RadioGroup.tuya.js +35 -0
- package/lib/RadioGroup/RadioGroup.web.js +9 -0
- package/lib/RadioGroup/RadioGroup.wechat.d.ts +4 -0
- package/lib/RadioGroup/RadioGroup.wechat.js +35 -0
- package/lib/RadioGroup/index.android.js +1 -0
- package/lib/RadioGroup/index.d.ts +3 -0
- package/lib/RadioGroup/index.ios.js +1 -0
- package/lib/RadioGroup/index.js +3 -0
- package/lib/RadioGroup/index.md +39 -0
- package/lib/RadioGroup/index.tuya.js +3 -0
- package/lib/RadioGroup/index.web.js +3 -0
- package/lib/RadioGroup/index.wechat.js +3 -0
- package/lib/RadioGroup/props.android.js +1 -0
- package/lib/RadioGroup/props.d.ts +14 -0
- package/lib/RadioGroup/props.ios.js +1 -0
- package/lib/RadioGroup/props.js +1 -0
- package/lib/RadioGroup/props.tuya.js +1 -0
- package/lib/RadioGroup/props.web.js +1 -0
- package/lib/RadioGroup/props.wechat.js +1 -0
- package/lib/ScrollView/ScrollView.android.js +1 -0
- package/lib/ScrollView/ScrollView.d.ts +4 -0
- package/lib/ScrollView/ScrollView.ios.js +1 -0
- package/lib/ScrollView/ScrollView.js +169 -0
- package/lib/ScrollView/ScrollView.native.d.ts +57 -0
- package/lib/ScrollView/ScrollView.tuya.d.ts +4 -0
- package/lib/ScrollView/ScrollView.tuya.js +20 -0
- package/lib/ScrollView/ScrollView.web.js +169 -0
- package/lib/ScrollView/ScrollView.wechat.d.ts +4 -0
- package/lib/ScrollView/ScrollView.wechat.js +20 -0
- package/lib/ScrollView/index.android.js +1 -0
- package/lib/ScrollView/index.d.ts +3 -0
- package/lib/ScrollView/index.ios.js +1 -0
- package/lib/ScrollView/index.js +3 -0
- package/lib/ScrollView/index.md +37 -0
- package/lib/ScrollView/index.module.less +6 -0
- package/lib/ScrollView/index.tuya.js +3 -0
- package/lib/ScrollView/index.web.js +3 -0
- package/lib/ScrollView/index.wechat.js +3 -0
- package/lib/ScrollView/props.android.js +1 -0
- package/lib/ScrollView/props.d.ts +43 -0
- package/lib/ScrollView/props.ios.js +1 -0
- package/lib/ScrollView/props.js +5 -0
- package/lib/ScrollView/props.tuya.js +5 -0
- package/lib/ScrollView/props.web.js +5 -0
- package/lib/ScrollView/props.wechat.js +5 -0
- package/lib/Slider/Slider.android.js +1 -0
- package/lib/Slider/Slider.d.ts +4 -0
- package/lib/Slider/Slider.ios.js +1 -0
- package/lib/Slider/Slider.js +20 -0
- package/lib/Slider/Slider.native.d.ts +21 -0
- package/lib/Slider/Slider.tuya.d.ts +4 -0
- package/lib/Slider/Slider.tuya.js +37 -0
- package/lib/Slider/Slider.web.js +20 -0
- package/lib/Slider/Slider.wechat.d.ts +4 -0
- package/lib/Slider/Slider.wechat.js +40 -0
- package/lib/Slider/index.android.js +1 -0
- package/lib/Slider/index.d.ts +3 -0
- package/lib/Slider/index.ios.js +1 -0
- package/lib/Slider/index.js +3 -0
- package/lib/Slider/index.md +42 -0
- package/lib/Slider/index.tuya.js +3 -0
- package/lib/Slider/index.web.js +3 -0
- package/lib/Slider/index.wechat.js +3 -0
- package/lib/Slider/props.android.js +1 -0
- package/lib/Slider/props.d.ts +34 -0
- package/lib/Slider/props.ios.js +1 -0
- package/lib/Slider/props.js +11 -0
- package/lib/Slider/props.tuya.js +11 -0
- package/lib/Slider/props.web.js +11 -0
- package/lib/Slider/props.wechat.js +11 -0
- package/lib/Swiper/Swiper.android.js +1 -0
- package/lib/Swiper/Swiper.d.ts +7 -0
- package/lib/Swiper/Swiper.ios.js +1 -0
- package/lib/Swiper/Swiper.js +10 -0
- package/lib/Swiper/Swiper.native.d.ts +6 -0
- package/lib/Swiper/Swiper.tuya.d.ts +7 -0
- package/lib/Swiper/Swiper.tuya.js +54 -0
- package/lib/Swiper/Swiper.web.js +10 -0
- package/lib/Swiper/Swiper.wechat.d.ts +7 -0
- package/lib/Swiper/Swiper.wechat.js +55 -0
- package/lib/Swiper/index.android.js +1 -0
- package/lib/Swiper/index.d.ts +3 -0
- package/lib/Swiper/index.ios.js +1 -0
- package/lib/Swiper/index.js +3 -0
- package/lib/Swiper/index.md +44 -0
- package/lib/Swiper/index.tuya.js +3 -0
- package/lib/Swiper/index.web.js +3 -0
- package/lib/Swiper/index.wechat.js +3 -0
- package/lib/Swiper/props.android.js +1 -0
- package/lib/Swiper/props.d.ts +44 -0
- package/lib/Swiper/props.ios.js +1 -0
- package/lib/Swiper/props.js +16 -0
- package/lib/Swiper/props.tuya.js +16 -0
- package/lib/Swiper/props.web.js +16 -0
- package/lib/Swiper/props.wechat.js +16 -0
- package/lib/Switch/Switch.android.js +1 -0
- package/lib/Switch/Switch.d.ts +4 -0
- package/lib/Switch/Switch.ios.js +1 -0
- package/lib/Switch/Switch.js +13 -0
- package/lib/Switch/Switch.native.d.ts +25 -0
- package/lib/Switch/Switch.tuya.d.ts +4 -0
- package/lib/Switch/Switch.tuya.js +35 -0
- package/lib/Switch/Switch.web.js +13 -0
- package/lib/Switch/Switch.wechat.d.ts +5 -0
- package/lib/Switch/Switch.wechat.js +36 -0
- package/lib/Switch/index.android.js +1 -0
- package/lib/Switch/index.d.ts +3 -0
- package/lib/Switch/index.ios.js +1 -0
- package/lib/Switch/index.js +3 -0
- package/lib/Switch/index.md +31 -0
- package/lib/Switch/index.module.less +7 -0
- package/lib/Switch/index.tuya.js +3 -0
- package/lib/Switch/index.web.js +3 -0
- package/lib/Switch/index.wechat.js +3 -0
- package/lib/Switch/props.android.js +1 -0
- package/lib/Switch/props.d.ts +20 -0
- package/lib/Switch/props.ios.js +1 -0
- package/lib/Switch/props.js +5 -0
- package/lib/Switch/props.tuya.js +5 -0
- package/lib/Switch/props.web.js +5 -0
- package/lib/Switch/props.wechat.js +5 -0
- package/lib/Text/Text.android.js +1 -0
- package/lib/Text/Text.d.ts +4 -0
- package/lib/Text/Text.ios.js +1 -0
- package/lib/Text/Text.js +41 -0
- package/lib/Text/Text.native.d.ts +8 -0
- package/lib/Text/Text.tuya.d.ts +4 -0
- package/lib/Text/Text.tuya.js +8 -0
- package/lib/Text/Text.web.js +41 -0
- package/lib/Text/Text.wechat.d.ts +4 -0
- package/lib/Text/Text.wechat.js +33 -0
- package/lib/Text/index.android.js +1 -0
- package/lib/Text/index.d.ts +3 -0
- package/lib/Text/index.ios.js +1 -0
- package/lib/Text/index.js +3 -0
- package/lib/Text/index.md +29 -0
- package/lib/Text/index.module.less +3 -0
- package/lib/Text/index.tuya.js +3 -0
- package/lib/Text/index.web.js +3 -0
- package/lib/Text/index.wechat.js +3 -0
- package/lib/Text/props.android.js +1 -0
- package/lib/Text/props.d.ts +14 -0
- package/lib/Text/props.ios.js +1 -0
- package/lib/Text/props.js +1 -0
- package/lib/Text/props.tuya.js +1 -0
- package/lib/Text/props.web.js +1 -0
- package/lib/Text/props.wechat.js +1 -0
- package/lib/Textarea/Textarea.android.js +1 -0
- package/lib/Textarea/Textarea.d.ts +4 -0
- package/lib/Textarea/Textarea.ios.js +1 -0
- package/lib/Textarea/Textarea.js +120 -0
- package/lib/Textarea/Textarea.native.d.ts +4 -0
- package/lib/Textarea/Textarea.tuya.d.ts +4 -0
- package/lib/Textarea/Textarea.tuya.js +60 -0
- package/lib/Textarea/Textarea.web.js +120 -0
- package/lib/Textarea/Textarea.wechat.d.ts +4 -0
- package/lib/Textarea/Textarea.wechat.js +60 -0
- package/lib/Textarea/index.android.js +1 -0
- package/lib/Textarea/index.d.ts +3 -0
- package/lib/Textarea/index.ios.js +1 -0
- package/lib/Textarea/index.js +3 -0
- package/lib/Textarea/index.md +46 -0
- package/lib/Textarea/index.module.less +12 -0
- package/lib/Textarea/index.tuya.js +3 -0
- package/lib/Textarea/index.web.js +3 -0
- package/lib/Textarea/index.wechat.js +3 -0
- package/lib/Textarea/props.android.js +1 -0
- package/lib/Textarea/props.d.ts +21 -0
- package/lib/Textarea/props.ios.js +1 -0
- package/lib/Textarea/props.js +1 -0
- package/lib/Textarea/props.tuya.js +1 -0
- package/lib/Textarea/props.web.js +1 -0
- package/lib/Textarea/props.wechat.js +1 -0
- package/lib/TimePicker/TimePicker.android.js +1 -0
- package/lib/TimePicker/TimePicker.d.ts +4 -0
- package/lib/TimePicker/TimePicker.ios.js +1 -0
- package/lib/TimePicker/TimePicker.js +10 -0
- package/lib/TimePicker/TimePicker.native.d.ts +39 -0
- package/lib/TimePicker/TimePicker.tuya.d.ts +4 -0
- package/lib/TimePicker/TimePicker.tuya.js +26 -0
- package/lib/TimePicker/TimePicker.web.js +10 -0
- package/lib/TimePicker/TimePicker.wechat.d.ts +4 -0
- package/lib/TimePicker/TimePicker.wechat.js +56 -0
- package/lib/TimePicker/index.android.js +1 -0
- package/lib/TimePicker/index.d.ts +3 -0
- package/lib/TimePicker/index.ios.js +1 -0
- package/lib/TimePicker/index.js +3 -0
- package/lib/TimePicker/index.md +35 -0
- package/lib/TimePicker/index.module.less +0 -0
- package/lib/TimePicker/index.tuya.js +3 -0
- package/lib/TimePicker/index.web.js +3 -0
- package/lib/TimePicker/index.wechat.js +3 -0
- package/lib/TimePicker/props.android.js +1 -0
- package/lib/TimePicker/props.d.ts +28 -0
- package/lib/TimePicker/props.ios.js +1 -0
- package/lib/TimePicker/props.js +6 -0
- package/lib/TimePicker/props.tuya.js +6 -0
- package/lib/TimePicker/props.web.js +6 -0
- package/lib/TimePicker/props.wechat.js +6 -0
- package/lib/View/View.android.js +1 -0
- package/lib/View/View.d.ts +4 -0
- package/lib/View/View.ios.js +1 -0
- package/lib/View/View.js +70 -0
- package/lib/View/View.native.d.ts +2 -0
- package/lib/View/View.tuya.d.ts +4 -0
- package/lib/View/View.tuya.js +76 -0
- package/lib/View/View.web.js +70 -0
- package/lib/View/View.wechat.d.ts +4 -0
- package/lib/View/View.wechat.js +76 -0
- package/lib/View/index.android.js +1 -0
- package/lib/View/index.d.ts +3 -0
- package/lib/View/index.ios.js +1 -0
- package/lib/View/index.js +3 -0
- package/lib/View/index.md +33 -0
- package/lib/View/index.module.less +10 -0
- package/lib/View/index.tuya.js +3 -0
- package/lib/View/index.web.js +3 -0
- package/lib/View/index.wechat.js +3 -0
- package/lib/View/props.android.js +1 -0
- package/lib/View/props.d.ts +11 -0
- package/lib/View/props.ios.js +1 -0
- package/lib/View/props.js +4 -0
- package/lib/View/props.tuya.js +4 -0
- package/lib/View/props.web.js +4 -0
- package/lib/View/props.wechat.js +4 -0
- package/lib/assets/back.png +0 -0
- package/lib/assets/edit.png +0 -0
- package/lib/assets/icons.android.js +1 -0
- package/lib/assets/icons.d.ts +7 -0
- package/lib/assets/icons.ios.js +1 -0
- package/lib/assets/icons.js +7 -0
- package/lib/assets/icons.tuya.js +7 -0
- package/lib/assets/icons.web.js +7 -0
- package/lib/assets/icons.wechat.js +7 -0
- package/lib/assets/loading-warn.png +0 -0
- package/lib/assets/loading.png +0 -0
- package/lib/assets/success_no_circle.png +0 -0
- package/lib/core/index.android.js +1 -0
- package/lib/core/index.d.ts +6 -0
- package/lib/core/index.ios.js +1 -0
- package/lib/core/index.js +25 -0
- package/lib/core/index.tuya.js +25 -0
- package/lib/core/index.web.js +25 -0
- package/lib/core/index.wechat.js +25 -0
- package/lib/index.android.js +1 -0
- package/lib/index.d.ts +24 -0
- package/lib/index.ios.js +1 -0
- package/lib/index.js +24 -0
- package/lib/index.tuya.js +24 -0
- package/lib/index.web.js +24 -0
- package/lib/index.wechat.js +24 -0
- package/lib/style/var.less +26 -0
- package/lib/types/event.android.js +0 -0
- package/lib/types/event.d.ts +3 -0
- package/lib/types/event.ios.js +0 -0
- package/lib/types/event.js +1 -0
- package/lib/types/event.tuya.js +1 -0
- package/lib/types/event.web.js +1 -0
- package/lib/types/event.wechat.js +1 -0
- package/lib/types/index.android.js +1 -0
- package/lib/types/index.d.ts +54 -0
- package/lib/types/index.ios.js +1 -0
- package/lib/types/index.js +9 -0
- package/lib/types/index.tuya.js +9 -0
- package/lib/types/index.web.js +9 -0
- package/lib/types/index.wechat.js +9 -0
- package/lib/utils/index.android.js +1 -0
- package/lib/utils/index.d.ts +10 -0
- package/lib/utils/index.ios.js +1 -0
- package/lib/utils/index.js +90 -0
- package/lib/utils/index.tuya.js +90 -0
- package/lib/utils/index.web.js +90 -0
- package/lib/utils/index.wechat.js +90 -0
- package/lib/utils/interface.android.js +1 -0
- package/lib/utils/interface.d.ts +20 -0
- package/lib/utils/interface.ios.js +1 -0
- package/lib/utils/interface.js +1 -0
- package/lib/utils/interface.tuya.js +1 -0
- package/lib/utils/interface.web.js +1 -0
- package/lib/utils/interface.wechat.js +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// 淡入淡出 Fade
|
|
2
|
+
export var defaultMotionFadeProps = {
|
|
3
|
+
show: false,
|
|
4
|
+
showDuration: 300,
|
|
5
|
+
hideDuration: 300,
|
|
6
|
+
fadeOpacity: 1,
|
|
7
|
+
onShow: function onShow() {// do nothing.
|
|
8
|
+
},
|
|
9
|
+
onHide: function onHide() {// do nothing.
|
|
10
|
+
},
|
|
11
|
+
delay: 0
|
|
12
|
+
}; // 下拉上滑 PullUp
|
|
13
|
+
|
|
14
|
+
export var defaultMotionPullUpProps = {
|
|
15
|
+
show: false,
|
|
16
|
+
showDuration: 300,
|
|
17
|
+
hideDuration: 300,
|
|
18
|
+
onShow: function onShow() {// do nothing.
|
|
19
|
+
},
|
|
20
|
+
onHide: function onHide() {// do nothing.
|
|
21
|
+
},
|
|
22
|
+
delay: 0,
|
|
23
|
+
dropHeight: 200
|
|
24
|
+
}; // ScaleFadeIn 放大淡入,缩小淡出
|
|
25
|
+
|
|
26
|
+
export var defaultMotionScaleFadeInProps = {
|
|
27
|
+
show: false,
|
|
28
|
+
showDuration: 300,
|
|
29
|
+
hideDuration: 300,
|
|
30
|
+
onShow: function onShow() {// do nothing.
|
|
31
|
+
},
|
|
32
|
+
onHide: function onHide() {// do nothing.
|
|
33
|
+
},
|
|
34
|
+
delay: 0,
|
|
35
|
+
initScale: 0,
|
|
36
|
+
finalScale: 0
|
|
37
|
+
}; // ScalePullDown 放大淡入下滑淡出
|
|
38
|
+
|
|
39
|
+
export var defaultMotionScalePullDownProps = {
|
|
40
|
+
show: false,
|
|
41
|
+
showDuration: 300,
|
|
42
|
+
hideDuration: 300,
|
|
43
|
+
onShow: function onShow() {// do nothing.
|
|
44
|
+
},
|
|
45
|
+
onHide: function onHide() {// do nothing.
|
|
46
|
+
},
|
|
47
|
+
delay: 0,
|
|
48
|
+
initScale: 0,
|
|
49
|
+
dropHeight: 200
|
|
50
|
+
}; // PushDown 下拉上推
|
|
51
|
+
|
|
52
|
+
export var defaultMotionPushDownProps = {
|
|
53
|
+
show: false,
|
|
54
|
+
showDuration: 300,
|
|
55
|
+
hideDuration: 300,
|
|
56
|
+
onShow: function onShow() {// do nothing.
|
|
57
|
+
},
|
|
58
|
+
onHide: function onHide() {// do nothing.
|
|
59
|
+
},
|
|
60
|
+
delay: 0,
|
|
61
|
+
dropHeight: 200
|
|
62
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// 淡入淡出 Fade
|
|
2
|
+
export var defaultMotionFadeProps = {
|
|
3
|
+
show: false,
|
|
4
|
+
showDuration: 300,
|
|
5
|
+
hideDuration: 300,
|
|
6
|
+
fadeOpacity: 1,
|
|
7
|
+
onShow: function onShow() {// do nothing.
|
|
8
|
+
},
|
|
9
|
+
onHide: function onHide() {// do nothing.
|
|
10
|
+
},
|
|
11
|
+
delay: 0
|
|
12
|
+
}; // 下拉上滑 PullUp
|
|
13
|
+
|
|
14
|
+
export var defaultMotionPullUpProps = {
|
|
15
|
+
show: false,
|
|
16
|
+
showDuration: 300,
|
|
17
|
+
hideDuration: 300,
|
|
18
|
+
onShow: function onShow() {// do nothing.
|
|
19
|
+
},
|
|
20
|
+
onHide: function onHide() {// do nothing.
|
|
21
|
+
},
|
|
22
|
+
delay: 0,
|
|
23
|
+
dropHeight: 200
|
|
24
|
+
}; // ScaleFadeIn 放大淡入,缩小淡出
|
|
25
|
+
|
|
26
|
+
export var defaultMotionScaleFadeInProps = {
|
|
27
|
+
show: false,
|
|
28
|
+
showDuration: 300,
|
|
29
|
+
hideDuration: 300,
|
|
30
|
+
onShow: function onShow() {// do nothing.
|
|
31
|
+
},
|
|
32
|
+
onHide: function onHide() {// do nothing.
|
|
33
|
+
},
|
|
34
|
+
delay: 0,
|
|
35
|
+
initScale: 0,
|
|
36
|
+
finalScale: 0
|
|
37
|
+
}; // ScalePullDown 放大淡入下滑淡出
|
|
38
|
+
|
|
39
|
+
export var defaultMotionScalePullDownProps = {
|
|
40
|
+
show: false,
|
|
41
|
+
showDuration: 300,
|
|
42
|
+
hideDuration: 300,
|
|
43
|
+
onShow: function onShow() {// do nothing.
|
|
44
|
+
},
|
|
45
|
+
onHide: function onHide() {// do nothing.
|
|
46
|
+
},
|
|
47
|
+
delay: 0,
|
|
48
|
+
initScale: 0,
|
|
49
|
+
dropHeight: 200
|
|
50
|
+
}; // PushDown 下拉上推
|
|
51
|
+
|
|
52
|
+
export var defaultMotionPushDownProps = {
|
|
53
|
+
show: false,
|
|
54
|
+
showDuration: 300,
|
|
55
|
+
hideDuration: 300,
|
|
56
|
+
onShow: function onShow() {// do nothing.
|
|
57
|
+
},
|
|
58
|
+
onHide: function onHide() {// do nothing.
|
|
59
|
+
},
|
|
60
|
+
delay: 0,
|
|
61
|
+
dropHeight: 200
|
|
62
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// 淡入淡出 Fade
|
|
2
|
+
export var defaultMotionFadeProps = {
|
|
3
|
+
show: false,
|
|
4
|
+
showDuration: 300,
|
|
5
|
+
hideDuration: 300,
|
|
6
|
+
fadeOpacity: 1,
|
|
7
|
+
onShow: function onShow() {// do nothing.
|
|
8
|
+
},
|
|
9
|
+
onHide: function onHide() {// do nothing.
|
|
10
|
+
},
|
|
11
|
+
delay: 0
|
|
12
|
+
}; // 下拉上滑 PullUp
|
|
13
|
+
|
|
14
|
+
export var defaultMotionPullUpProps = {
|
|
15
|
+
show: false,
|
|
16
|
+
showDuration: 300,
|
|
17
|
+
hideDuration: 300,
|
|
18
|
+
onShow: function onShow() {// do nothing.
|
|
19
|
+
},
|
|
20
|
+
onHide: function onHide() {// do nothing.
|
|
21
|
+
},
|
|
22
|
+
delay: 0,
|
|
23
|
+
dropHeight: 200
|
|
24
|
+
}; // ScaleFadeIn 放大淡入,缩小淡出
|
|
25
|
+
|
|
26
|
+
export var defaultMotionScaleFadeInProps = {
|
|
27
|
+
show: false,
|
|
28
|
+
showDuration: 300,
|
|
29
|
+
hideDuration: 300,
|
|
30
|
+
onShow: function onShow() {// do nothing.
|
|
31
|
+
},
|
|
32
|
+
onHide: function onHide() {// do nothing.
|
|
33
|
+
},
|
|
34
|
+
delay: 0,
|
|
35
|
+
initScale: 0,
|
|
36
|
+
finalScale: 0
|
|
37
|
+
}; // ScalePullDown 放大淡入下滑淡出
|
|
38
|
+
|
|
39
|
+
export var defaultMotionScalePullDownProps = {
|
|
40
|
+
show: false,
|
|
41
|
+
showDuration: 300,
|
|
42
|
+
hideDuration: 300,
|
|
43
|
+
onShow: function onShow() {// do nothing.
|
|
44
|
+
},
|
|
45
|
+
onHide: function onHide() {// do nothing.
|
|
46
|
+
},
|
|
47
|
+
delay: 0,
|
|
48
|
+
initScale: 0,
|
|
49
|
+
dropHeight: 200
|
|
50
|
+
}; // PushDown 下拉上推
|
|
51
|
+
|
|
52
|
+
export var defaultMotionPushDownProps = {
|
|
53
|
+
show: false,
|
|
54
|
+
showDuration: 300,
|
|
55
|
+
hideDuration: 300,
|
|
56
|
+
onShow: function onShow() {// do nothing.
|
|
57
|
+
},
|
|
58
|
+
onHide: function onHide() {// do nothing.
|
|
59
|
+
},
|
|
60
|
+
delay: 0,
|
|
61
|
+
dropHeight: 200
|
|
62
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// 淡入淡出 Fade
|
|
2
|
+
export var defaultMotionFadeProps = {
|
|
3
|
+
show: false,
|
|
4
|
+
showDuration: 300,
|
|
5
|
+
hideDuration: 300,
|
|
6
|
+
fadeOpacity: 1,
|
|
7
|
+
onShow: function onShow() {// do nothing.
|
|
8
|
+
},
|
|
9
|
+
onHide: function onHide() {// do nothing.
|
|
10
|
+
},
|
|
11
|
+
delay: 0
|
|
12
|
+
}; // 下拉上滑 PullUp
|
|
13
|
+
|
|
14
|
+
export var defaultMotionPullUpProps = {
|
|
15
|
+
show: false,
|
|
16
|
+
showDuration: 300,
|
|
17
|
+
hideDuration: 300,
|
|
18
|
+
onShow: function onShow() {// do nothing.
|
|
19
|
+
},
|
|
20
|
+
onHide: function onHide() {// do nothing.
|
|
21
|
+
},
|
|
22
|
+
delay: 0,
|
|
23
|
+
dropHeight: 200
|
|
24
|
+
}; // ScaleFadeIn 放大淡入,缩小淡出
|
|
25
|
+
|
|
26
|
+
export var defaultMotionScaleFadeInProps = {
|
|
27
|
+
show: false,
|
|
28
|
+
showDuration: 300,
|
|
29
|
+
hideDuration: 300,
|
|
30
|
+
onShow: function onShow() {// do nothing.
|
|
31
|
+
},
|
|
32
|
+
onHide: function onHide() {// do nothing.
|
|
33
|
+
},
|
|
34
|
+
delay: 0,
|
|
35
|
+
initScale: 0,
|
|
36
|
+
finalScale: 0
|
|
37
|
+
}; // ScalePullDown 放大淡入下滑淡出
|
|
38
|
+
|
|
39
|
+
export var defaultMotionScalePullDownProps = {
|
|
40
|
+
show: false,
|
|
41
|
+
showDuration: 300,
|
|
42
|
+
hideDuration: 300,
|
|
43
|
+
onShow: function onShow() {// do nothing.
|
|
44
|
+
},
|
|
45
|
+
onHide: function onHide() {// do nothing.
|
|
46
|
+
},
|
|
47
|
+
delay: 0,
|
|
48
|
+
initScale: 0,
|
|
49
|
+
dropHeight: 200
|
|
50
|
+
}; // PushDown 下拉上推
|
|
51
|
+
|
|
52
|
+
export var defaultMotionPushDownProps = {
|
|
53
|
+
show: false,
|
|
54
|
+
showDuration: 300,
|
|
55
|
+
hideDuration: 300,
|
|
56
|
+
onShow: function onShow() {// do nothing.
|
|
57
|
+
},
|
|
58
|
+
onHide: function onHide() {// do nothing.
|
|
59
|
+
},
|
|
60
|
+
delay: 0,
|
|
61
|
+
dropHeight: 200
|
|
62
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _assertThisInitialized2=_interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _props=require("./props");var _Modal=_interopRequireDefault(require("../Modal"));var _PickerView=_interopRequireDefault(require("../PickerView"));var _utils=require("../utils");var _jsxFileName="/drone/src/packages/components/src/Picker/Picker.native.tsx";function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=(0,_getPrototypeOf2.default)(Derived),result;if(hasNativeReflectConstruct){var NewTarget=(0,_getPrototypeOf2.default)(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return(0,_possibleConstructorReturn2.default)(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var Picker=function(_React$Component){(0,_inherits2.default)(Picker,_React$Component);var _super=_createSuper(Picker);function Picker(props){var _this;(0,_classCallCheck2.default)(this,Picker);_this=_super.call(this,props);_this._handleCancel=function(){var onCancel=_this.props.onCancel;typeof onCancel==='function'&&onCancel({type:'cancel',origin:null});_this.setState({visible:false});};_this._handleConfirm=function(){var onChange=_this.props.onChange;var changeValue=_this.state.changeValue;typeof onChange==='function'&&onChange({type:'change',value:changeValue,origin:null});_this.setState({visible:false,value:changeValue});};_this._handlePickerChange=function(event){var value=event.value,column=event.column;var _this$props=_this.props,range=_this$props.range,onColumnChange=_this$props.onColumnChange;var isOnly=!(0,_utils.isTwoArray)(range);if(!isOnly){typeof onColumnChange==='function'&&onColumnChange({type:'columnchange',value:value[column],column:column,origin:null});}_this.setState({changeValue:value});};_this.renderTitleView=function(){var _this$props2=_this.props,confirmText=_this$props2.confirmText,cancelText=_this$props2.cancelText;return _react.default.createElement(_reactNative.View,{style:styles.title,__self:(0,_assertThisInitialized2.default)(_this),__source:{fileName:_jsxFileName,lineNumber:92,columnNumber:12}},_react.default.createElement(_reactNative.TouchableOpacity,{style:styles.button,activeOpacity:0.8,onPress:_this._handleCancel,__self:(0,_assertThisInitialized2.default)(_this),__source:{fileName:_jsxFileName,lineNumber:93,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:styles.text,__self:(0,_assertThisInitialized2.default)(_this),__source:{fileName:_jsxFileName,lineNumber:94,columnNumber:11}},cancelText)),_react.default.createElement(_reactNative.TouchableOpacity,{style:styles.button,activeOpacity:0.8,onPress:_this._handleConfirm,__self:(0,_assertThisInitialized2.default)(_this),__source:{fileName:_jsxFileName,lineNumber:96,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:[styles.text,{color:'#007AFF'}],__self:(0,_assertThisInitialized2.default)(_this),__source:{fileName:_jsxFileName,lineNumber:97,columnNumber:11}},confirmText)));};_this.state={visible:false,value:props.value,changeValue:props.value};return _this;}(0,_createClass2.default)(Picker,[{key:"componentDidUpdate",value:function componentDidUpdate(prevProps){if(this.props.value!==prevProps.value){this.setState({value:this.props.value,changeValue:this.props.value});}}},{key:"render",value:function render(){var _this2=this;var _this$props3=this.props,children=_this$props3.children,range=_this$props3.range,disabled=_this$props3.disabled;var _this$state=this.state,visible=_this$state.visible,value=_this$state.value;return _react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return _this2.setState({visible:true});},disabled:disabled,activeOpacity:0.8,__self:this,__source:{fileName:_jsxFileName,lineNumber:115,columnNumber:9}},children),_react.default.createElement(_Modal.default,{show:visible,position:'bottom',__self:this,__source:{fileName:_jsxFileName,lineNumber:120,columnNumber:9}},this.renderTitleView(),_reactNative.Platform.OS==='android'&&_react.default.createElement(_reactNative.View,{style:[{backgroundColor:'#fff',height:2}],__self:this,__source:{fileName:_jsxFileName,lineNumber:125,columnNumber:41}}),_react.default.createElement(_PickerView.default,{range:range,value:value,style:[{backgroundColor:'#fff'}],onChange:this._handlePickerChange,__self:this,__source:{fileName:_jsxFileName,lineNumber:129,columnNumber:11}})));}}]);return Picker;}(_react.default.Component);exports.default=Picker;Picker.displayName='_Picker';Picker.defaultProps=_props.IDefaultPickerProps;var styles=_reactNative.StyleSheet.create({button:{height:54,width:68,alignItems:'center',justifyContent:'center'},title:{flexDirection:'row',justifyContent:'space-between',backgroundColor:'#fff',borderBottomColor:'rgba(0, 0, 0, 0.05)',borderBottomWidth:_reactNative.StyleSheet.hairlineWidth},text:{fontSize:18,color:'#333'}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _assertThisInitialized2=_interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _props=require("./props");var _Modal=_interopRequireDefault(require("../Modal"));var _PickerView=_interopRequireDefault(require("../PickerView"));var _utils=require("../utils");var _jsxFileName="/drone/src/packages/components/src/Picker/Picker.native.tsx";function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=(0,_getPrototypeOf2.default)(Derived),result;if(hasNativeReflectConstruct){var NewTarget=(0,_getPrototypeOf2.default)(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return(0,_possibleConstructorReturn2.default)(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var Picker=function(_React$Component){(0,_inherits2.default)(Picker,_React$Component);var _super=_createSuper(Picker);function Picker(props){var _this;(0,_classCallCheck2.default)(this,Picker);_this=_super.call(this,props);_this._handleCancel=function(){var onCancel=_this.props.onCancel;typeof onCancel==='function'&&onCancel({type:'cancel',origin:null});_this.setState({visible:false});};_this._handleConfirm=function(){var onChange=_this.props.onChange;var changeValue=_this.state.changeValue;typeof onChange==='function'&&onChange({type:'change',value:changeValue,origin:null});_this.setState({visible:false,value:changeValue});};_this._handlePickerChange=function(event){var value=event.value,column=event.column;var _this$props=_this.props,range=_this$props.range,onColumnChange=_this$props.onColumnChange;var isOnly=!(0,_utils.isTwoArray)(range);if(!isOnly){typeof onColumnChange==='function'&&onColumnChange({type:'columnchange',value:value[column],column:column,origin:null});}_this.setState({changeValue:value});};_this.renderTitleView=function(){var _this$props2=_this.props,confirmText=_this$props2.confirmText,cancelText=_this$props2.cancelText;return _react.default.createElement(_reactNative.View,{style:styles.title,__self:(0,_assertThisInitialized2.default)(_this),__source:{fileName:_jsxFileName,lineNumber:92,columnNumber:12}},_react.default.createElement(_reactNative.TouchableOpacity,{style:styles.button,activeOpacity:0.8,onPress:_this._handleCancel,__self:(0,_assertThisInitialized2.default)(_this),__source:{fileName:_jsxFileName,lineNumber:93,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:styles.text,__self:(0,_assertThisInitialized2.default)(_this),__source:{fileName:_jsxFileName,lineNumber:94,columnNumber:11}},cancelText)),_react.default.createElement(_reactNative.TouchableOpacity,{style:styles.button,activeOpacity:0.8,onPress:_this._handleConfirm,__self:(0,_assertThisInitialized2.default)(_this),__source:{fileName:_jsxFileName,lineNumber:96,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:[styles.text,{color:'#007AFF'}],__self:(0,_assertThisInitialized2.default)(_this),__source:{fileName:_jsxFileName,lineNumber:97,columnNumber:11}},confirmText)));};_this.state={visible:false,value:props.value,changeValue:props.value};return _this;}(0,_createClass2.default)(Picker,[{key:"componentDidUpdate",value:function componentDidUpdate(prevProps){if(this.props.value!==prevProps.value){this.setState({value:this.props.value,changeValue:this.props.value});}}},{key:"render",value:function render(){var _this2=this;var _this$props3=this.props,children=_this$props3.children,range=_this$props3.range,disabled=_this$props3.disabled;var _this$state=this.state,visible=_this$state.visible,value=_this$state.value;return _react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return _this2.setState({visible:true});},disabled:disabled,activeOpacity:0.8,__self:this,__source:{fileName:_jsxFileName,lineNumber:115,columnNumber:9}},children),_react.default.createElement(_Modal.default,{show:visible,position:'bottom',__self:this,__source:{fileName:_jsxFileName,lineNumber:120,columnNumber:9}},this.renderTitleView(),_reactNative.Platform.OS==='android'&&_react.default.createElement(_reactNative.View,{style:[{backgroundColor:'#fff',height:2}],__self:this,__source:{fileName:_jsxFileName,lineNumber:125,columnNumber:41}}),_react.default.createElement(_PickerView.default,{range:range,value:value,style:[{backgroundColor:'#fff'}],onChange:this._handlePickerChange,__self:this,__source:{fileName:_jsxFileName,lineNumber:129,columnNumber:11}})));}}]);return Picker;}(_react.default.Component);exports.default=Picker;Picker.displayName='_Picker';Picker.defaultProps=_props.IDefaultPickerProps;var styles=_reactNative.StyleSheet.create({button:{height:54,width:68,alignItems:'center',justifyContent:'center'},title:{flexDirection:'row',justifyContent:'space-between',backgroundColor:'#fff',borderBottomColor:'rgba(0, 0, 0, 0.05)',borderBottomWidth:_reactNative.StyleSheet.hairlineWidth},text:{fontSize:18,color:'#333'}});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
var Picker = function (props) {
|
|
4
|
+
var disabled = props.disabled,
|
|
5
|
+
className = props.className,
|
|
6
|
+
style = props.style;
|
|
7
|
+
return /*#__PURE__*/React.createElement("div", null, "\u6682\u672A\u5B9E\u73B011");
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
Picker.displayName = 'Picker';
|
|
11
|
+
export default Picker;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PickerProps } from './props';
|
|
3
|
+
interface IState {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
value: number | number[];
|
|
6
|
+
changeValue: number | number[];
|
|
7
|
+
}
|
|
8
|
+
export default class Picker extends React.Component<PickerProps, IState> {
|
|
9
|
+
static displayName: string;
|
|
10
|
+
static defaultProps: {
|
|
11
|
+
cancelText: string;
|
|
12
|
+
confirmText: string;
|
|
13
|
+
};
|
|
14
|
+
constructor(props: PickerProps);
|
|
15
|
+
componentDidUpdate(prevProps: Readonly<PickerProps>): void;
|
|
16
|
+
_handleCancel: () => void;
|
|
17
|
+
_handleConfirm: () => void;
|
|
18
|
+
_handlePickerChange: (event: any) => void;
|
|
19
|
+
renderTitleView: () => JSX.Element;
|
|
20
|
+
render(): JSX.Element;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["className", "style", "id", "onChange", "onLongClick", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "onCancel"];
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { inlineStyle, useTouch } from '@ray-js/framework-shared';
|
|
8
|
+
import { Picker as RemaxPicker } from '@ray-js/remax-tuya';
|
|
9
|
+
var countArr = 1;
|
|
10
|
+
|
|
11
|
+
var Picker = function (props) {
|
|
12
|
+
var className = props.className,
|
|
13
|
+
style = props.style,
|
|
14
|
+
id = props.id,
|
|
15
|
+
onChange = props.onChange,
|
|
16
|
+
onLongClick = props.onLongClick,
|
|
17
|
+
onTouchStart = props.onTouchStart,
|
|
18
|
+
onTouchMove = props.onTouchMove,
|
|
19
|
+
onTouchEnd = props.onTouchEnd,
|
|
20
|
+
onTouchCancel = props.onTouchCancel,
|
|
21
|
+
onClick = props.onClick,
|
|
22
|
+
onCancel = props.onCancel,
|
|
23
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
24
|
+
|
|
25
|
+
var _useTouch = useTouch({
|
|
26
|
+
onLongClick: onLongClick,
|
|
27
|
+
onTouchStart: onTouchStart,
|
|
28
|
+
onTouchMove: onTouchMove,
|
|
29
|
+
onTouchEnd: onTouchEnd,
|
|
30
|
+
onTouchCancel: onTouchCancel,
|
|
31
|
+
onClick: onClick
|
|
32
|
+
}),
|
|
33
|
+
_useTouch2 = _slicedToArray(_useTouch, 2),
|
|
34
|
+
touching = _useTouch2[0],
|
|
35
|
+
handlers = _useTouch2[1];
|
|
36
|
+
|
|
37
|
+
var multiarr = function (arr) {
|
|
38
|
+
for (var i = 0; i < arr.length; i++) {
|
|
39
|
+
if (arr[i] instanceof Array) {
|
|
40
|
+
countArr++;
|
|
41
|
+
arr = arr[i];
|
|
42
|
+
multiarr(arr);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return countArr;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
return /*#__PURE__*/React.createElement(RemaxPicker, _extends({
|
|
50
|
+
onChange: function handleChange(e) {
|
|
51
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
52
|
+
type: e.type,
|
|
53
|
+
value: e.detail.value,
|
|
54
|
+
origin: e
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
onCancel: function handleCancel(e) {
|
|
58
|
+
onCancel === null || onCancel === void 0 ? void 0 : onCancel({
|
|
59
|
+
type: e.type,
|
|
60
|
+
origin: e
|
|
61
|
+
});
|
|
62
|
+
},
|
|
63
|
+
style: inlineStyle(style),
|
|
64
|
+
className: clsx(className),
|
|
65
|
+
mode: multiarr(props.range) > 1 ? 'multiSelector' : 'selector'
|
|
66
|
+
}, restProps, handlers), props.children);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export default Picker;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
var Picker = function (props) {
|
|
4
|
+
var disabled = props.disabled,
|
|
5
|
+
className = props.className,
|
|
6
|
+
style = props.style;
|
|
7
|
+
return /*#__PURE__*/React.createElement("div", null, "\u6682\u672A\u5B9E\u73B011");
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
Picker.displayName = 'Picker';
|
|
11
|
+
export default Picker;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Picker as _Picker } from "@remax/wechat/esm/hostComponents/Picker/index";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
+
var _excluded = ["className", "style", "id", "onChange", "onLongClick", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "onCancel"];
|
|
6
|
+
import clsx from 'clsx';
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import { inlineStyle, useTouch } from '@ray-js/framework-shared';
|
|
9
|
+
var countArr = 1;
|
|
10
|
+
|
|
11
|
+
var Picker = function (props) {
|
|
12
|
+
var className = props.className,
|
|
13
|
+
style = props.style,
|
|
14
|
+
id = props.id,
|
|
15
|
+
onChange = props.onChange,
|
|
16
|
+
onLongClick = props.onLongClick,
|
|
17
|
+
onTouchStart = props.onTouchStart,
|
|
18
|
+
onTouchMove = props.onTouchMove,
|
|
19
|
+
onTouchEnd = props.onTouchEnd,
|
|
20
|
+
onTouchCancel = props.onTouchCancel,
|
|
21
|
+
onClick = props.onClick,
|
|
22
|
+
onCancel = props.onCancel,
|
|
23
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
24
|
+
|
|
25
|
+
var _useTouch = useTouch({
|
|
26
|
+
onLongClick: onLongClick,
|
|
27
|
+
onTouchStart: onTouchStart,
|
|
28
|
+
onTouchMove: onTouchMove,
|
|
29
|
+
onTouchEnd: onTouchEnd,
|
|
30
|
+
onTouchCancel: onTouchCancel,
|
|
31
|
+
onClick: onClick
|
|
32
|
+
}),
|
|
33
|
+
_useTouch2 = _slicedToArray(_useTouch, 2),
|
|
34
|
+
touching = _useTouch2[0],
|
|
35
|
+
handlers = _useTouch2[1];
|
|
36
|
+
|
|
37
|
+
var multiarr = function (arr) {
|
|
38
|
+
for (var i = 0; i < arr.length; i++) {
|
|
39
|
+
if (arr[i] instanceof Array) {
|
|
40
|
+
countArr++;
|
|
41
|
+
arr = arr[i];
|
|
42
|
+
multiarr(arr);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return countArr;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
return /*#__PURE__*/React.createElement(_Picker, _extends({
|
|
50
|
+
onChange: function handleChange(e) {
|
|
51
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
52
|
+
type: e.type,
|
|
53
|
+
value: e.detail.value,
|
|
54
|
+
origin: e
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
onCancel: function handleCancel(e) {
|
|
58
|
+
onCancel === null || onCancel === void 0 ? void 0 : onCancel({
|
|
59
|
+
type: e.type,
|
|
60
|
+
origin: e
|
|
61
|
+
});
|
|
62
|
+
},
|
|
63
|
+
style: inlineStyle(style),
|
|
64
|
+
className: clsx(className)
|
|
65
|
+
}, restProps, handlers, {
|
|
66
|
+
mode: multiarr(props.range) > 1 ? 'multiSelector' : 'selector'
|
|
67
|
+
}), props.children);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export default Picker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={};exports.default=void 0;var _Picker=_interopRequireDefault(require("./Picker"));var _props=require("./props");Object.keys(_props).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_props[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _props[key];}});});var _default=_Picker.default;exports.default=_default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={};exports.default=void 0;var _Picker=_interopRequireDefault(require("./Picker"));var _props=require("./props");Object.keys(_props).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_props[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _props[key];}});});var _default=_Picker.default;exports.default=_default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
nav:
|
|
3
|
+
title: 组件
|
|
4
|
+
path: /components
|
|
5
|
+
group:
|
|
6
|
+
title: 选择器组件
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Picker
|
|
10
|
+
|
|
11
|
+
从底部弹起的滚动选择器。
|
|
12
|
+
|
|
13
|
+
## 导入
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import { Picker } from '@ray-js/components';
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 示例代码
|
|
20
|
+
|
|
21
|
+
<code src="./demos/basic.tsx" title="单选" background="#f2f4f6" />
|
|
22
|
+
<code src="./demos/multiSelector.tsx" title="多选" background="#f2f4f6" />
|
|
23
|
+
|
|
24
|
+
## Props
|
|
25
|
+
|
|
26
|
+
| 属性 | 类型 | 默认值 | 必填 | 说明 | 支持平台 |
|
|
27
|
+
| --- | --- | --- | --- | --- | --- |
|
|
28
|
+
| disabled | boolean | false | 否 | 是否禁用 | RN、涂鸦、微信 |
|
|
29
|
+
| range | string[] or string[][] | | 是 | 选择项数据源 | RN、涂鸦、微信 |
|
|
30
|
+
| value | number or number[] | 0 | 否 | 表示选择了 range 中的第几个(下标从 0 开始) | RN、涂鸦、微信 |
|
|
31
|
+
| cancelText | string | 取消 | 否 | 取消文案 | RN、涂鸦、微信 |
|
|
32
|
+
| confirmText | string | 确认 | 否 | 确认文案 | RN、涂鸦、微信 |
|
|
33
|
+
| onChange | func(type: 'change'; value:number or number[];), origin: any;}) | | 否 | 点击触发 | RN、涂鸦、微信 |
|
|
34
|
+
| onCancel | func({ type: 'cancel' }) | | 否 | 取消选择时触发 | RN、涂鸦、微信 |
|
|
35
|
+
| onColumnChange | func({type: 'columnchange'; value: number; column: number;}) | | 否 | 列改变时触发 | RN、涂鸦、微信 |
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});exports.IDefaultPickerProps=void 0;var IDefaultPickerProps={cancelText:'取消',confirmText:'确定'};exports.IDefaultPickerProps=IDefaultPickerProps;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BaseProps } from '../types';
|
|
2
|
+
import { TouchEventHandler } from '@ray-js/framework-shared';
|
|
3
|
+
declare type ChangeEvent = (e: {
|
|
4
|
+
type: 'change';
|
|
5
|
+
value: number | number[];
|
|
6
|
+
origin?: any;
|
|
7
|
+
}) => void;
|
|
8
|
+
declare type CancelEvent = (e: {
|
|
9
|
+
type: 'cancel';
|
|
10
|
+
origin: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
declare type ColumnChangeEvent = (e: {
|
|
13
|
+
type: 'columnchange';
|
|
14
|
+
value: number;
|
|
15
|
+
column: number;
|
|
16
|
+
origin: any;
|
|
17
|
+
}) => void;
|
|
18
|
+
export interface PickerProps extends BaseProps, TouchEventHandler {
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
range: string[] | string[][];
|
|
21
|
+
value?: number[] | number;
|
|
22
|
+
onChange?: ChangeEvent;
|
|
23
|
+
onCancel?: CancelEvent;
|
|
24
|
+
onColumnChange?: ColumnChangeEvent;
|
|
25
|
+
confirmText?: string;
|
|
26
|
+
cancelText?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const IDefaultPickerProps: {
|
|
29
|
+
cancelText: string;
|
|
30
|
+
confirmText: string;
|
|
31
|
+
};
|
|
32
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});exports.IDefaultPickerProps=void 0;var IDefaultPickerProps={cancelText:'取消',confirmText:'确定'};exports.IDefaultPickerProps=IDefaultPickerProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _assertThisInitialized2=_interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var React=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _rayPanelUtils=require("@ray-js/ray-panel-utils");var _utils=require("../utils");var _jsxFileName="/drone/src/packages/components/src/PickerView/PickerView.native.tsx";function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=(0,_getPrototypeOf2.default)(Derived),result;if(hasNativeReflectConstruct){var NewTarget=(0,_getPrototypeOf2.default)(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return(0,_possibleConstructorReturn2.default)(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var width=_rayPanelUtils.RatioUtils.width;var TYRCTPicker=(0,_reactNative.requireNativeComponent)('TYRCTPicker');var WheelPickerView=(0,_reactNative.requireNativeComponent)('TYRCTWheelViewManager');var _Picker=function(_React$Component){(0,_inherits2.default)(_Picker,_React$Component);var _super=_createSuper(_Picker);function _Picker(props){var _this;(0,_classCallCheck2.default)(this,_Picker);_this=_super.call(this,props);_this.getItem=function(){var range=_this.props.range;var isOnly=!(0,_utils.isTwoArray)(range);if(isOnly){return range.map(function(item){return{label:item,value:item};});}return range.map(function(item){return item.map(function(data){return{label:data,value:data};});});};_this.onItemSelected=function(event,isOnly,index){var newIndex=event.nativeEvent.newIndex;var onChange=_this.props.onChange;if(isOnly){_this.setState({selectIdx:newIndex});typeof onChange==='function'&&onChange({type:'change',value:newIndex});}else{var selectIdx=_this.state.selectIdx;var newSelectArr=selectIdx.concat([]);newSelectArr[index]=newIndex;typeof onChange==='function'&&onChange({type:'change',value:newSelectArr,column:index});_this.setState({selectIdx:newSelectArr});}};_this.renderPickerItem=function(item,selectIdx,isOnly,index){var _this$props=_this.props,style=_this$props.style,fontSize=_this$props.fontSize;var items=_this.getItem();var theme={dividerColor:'rgba(0, 0, 0, 0.05)',fontColor:'rgba(0,0,0,0.9)',fontSize:fontSize||isOnly?24:items.length<3?24:20};var length=isOnly?1:items.length;return _reactNative.Platform.OS==='android'?React.createElement(WheelPickerView,{key:index,style:[{width:width/length,height:216},style],items:item,itemTextColor:theme.fontColor,selectedItemTextColor:theme.fontColor,dividerColor:theme.dividerColor,visibleItemCount:5,itemAlign:'center',selectedIndex:selectIdx,textSize:theme.fontSize,loop:false,onChange:function onChange(e){return _this.onItemSelected(e,isOnly,index);},__self:(0,_assertThisInitialized2.default)(_this),__source:{fileName:_jsxFileName,lineNumber:111,columnNumber:40}}):React.createElement(TYRCTPicker,{key:index,style:[{width:width/length,height:216},style],items:item,itemPadding:14,selectedIndex:selectIdx,separatorColor:(0,_reactNative.processColor)(theme.dividerColor),color:(0,_reactNative.processColor)(theme.fontColor),textAlign:1,fontSize:theme.fontSize,fontWeight:'normal',onChange:function onChange(e){return _this.onItemSelected(e,isOnly,index);},__self:(0,_assertThisInitialized2.default)(_this),__source:{fileName:_jsxFileName,lineNumber:114,columnNumber:301}});};_this.state={selectIdx:props.value};return _this;}(0,_createClass2.default)(_Picker,[{key:"componentDidUpdate",value:function componentDidUpdate(prevProps){if(prevProps.value!==this.props.value){this.setState({selectIdx:this.props.value});}}},{key:"render",value:function render(){var _this2=this;var selectIdx=this.state.selectIdx;var items=this.getItem();var isOnly=!(0,_utils.isTwoArray)(items);return isOnly?this.renderPickerItem(items,selectIdx,isOnly,0):React.createElement(_reactNative.View,{style:[{flexDirection:'row',overflow:'hidden'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:126,columnNumber:74}},items.map(function(item,idx){return _this2.renderPickerItem(item,selectIdx[idx],isOnly,idx);}));}}]);return _Picker;}(React.Component);exports.default=_Picker;_Picker.displayName='_PickerView';_Picker.defaultProps={value:0};
|