@nutui/nutui-react-taro 1.2.2-beta.0 → 1.3.1-beta.0
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/CHANGELOG.md +45 -0
- package/dist/esm/ActionSheet.js +5 -4
- package/dist/esm/Address.js +7 -6
- package/dist/esm/AnimatingNumbers.js +3 -2
- package/dist/esm/Audio/style/index.js +4 -0
- package/dist/esm/Audio.js +18 -0
- package/dist/esm/Avatar.js +3 -3
- package/dist/esm/AvatarGroup.js +4 -4
- package/dist/esm/BackTop.js +3 -3
- package/dist/esm/Badge.js +3 -3
- package/dist/esm/Barrage.js +3 -2
- package/dist/esm/Button.js +3 -3
- package/dist/esm/Calendar/style/index.js +1 -2
- package/dist/esm/Calendar.js +9 -7
- package/dist/esm/CalendarItem.js +5 -5
- package/dist/esm/Card.js +3 -3
- package/dist/esm/Cascader/style/index.js +2 -0
- package/dist/esm/Cascader.js +14 -0
- package/dist/esm/Cell.js +3 -3
- package/dist/esm/Checkbox.js +3 -3
- package/dist/esm/CheckboxGroup.js +2 -2
- package/dist/esm/Col.js +2 -2
- package/dist/esm/Collapse.js +2 -2
- package/dist/esm/CollapseItem.js +3 -3
- package/dist/esm/ConfigProvider.js +3 -3
- package/dist/esm/CountDown.js +4 -4
- package/dist/esm/DatePicker.js +9 -8
- package/dist/esm/Dialog.js +6 -6
- package/dist/esm/Divider.js +2 -2
- package/dist/esm/Drag.js +2 -2
- package/dist/esm/Elevator.js +3 -2
- package/dist/esm/Empty.js +4 -4
- package/dist/esm/FixedNav.js +5 -5
- package/dist/esm/Grid/style/index.js +2 -0
- package/dist/esm/Grid.js +7 -0
- package/dist/esm/GridItem/style/index.js +2 -0
- package/dist/esm/GridItem.js +8 -0
- package/dist/esm/Icon/style/index.js +1 -0
- package/dist/esm/Icon.js +2 -2
- package/dist/esm/ImagePreview/style/index.js +2 -0
- package/dist/esm/ImagePreview.js +15 -0
- package/dist/esm/Infiniteloading.js +5 -5
- package/dist/esm/Input.js +5 -5
- package/dist/esm/InputNumber.js +3 -3
- package/dist/esm/Menu/style/index.js +3 -0
- package/dist/esm/Menu.js +7 -0
- package/dist/esm/MenuItem/style/index.js +3 -0
- package/dist/esm/MenuItem.js +11 -0
- package/dist/esm/NavBar.js +4 -3
- package/dist/esm/NoticeBar.js +4 -3
- package/dist/esm/{Notification-b09c89e8.js → Notification-422905bd.js} +20 -12
- package/dist/esm/Notify.js +3 -2
- package/dist/esm/NumberKeyboard.js +7 -6
- package/dist/esm/Pagination.js +4 -4
- package/dist/esm/Picker.js +9 -8
- package/dist/esm/Popover.js +6 -4
- package/dist/esm/Popup.js +4 -3
- package/dist/esm/Progress.js +3 -3
- package/dist/esm/Radio.js +4 -4
- package/dist/esm/RadioGroup.js +2 -3
- package/dist/esm/Range.js +11 -9
- package/dist/esm/Rate.js +3 -3
- package/dist/esm/Row.js +2 -2
- package/dist/esm/SearchBar.js +5 -5
- package/dist/esm/ShortPassword.js +7 -6
- package/dist/esm/SideNavBar/style/index.js +2 -0
- package/dist/esm/SideNavBar.js +14 -0
- package/dist/esm/SideNavBarItem/style/index.js +2 -0
- package/dist/esm/SideNavBarItem.js +3 -0
- package/dist/esm/Signature.js +6 -6
- package/dist/esm/Skeleton.js +3 -3
- package/dist/esm/Step.js +3 -3
- package/dist/esm/SubSideNavBar/style/index.js +2 -0
- package/dist/esm/SubSideNavBar.js +4 -0
- package/dist/esm/Swipe/style/index.js +2 -0
- package/dist/esm/Swipe.js +7 -0
- package/dist/esm/Swiper.js +3 -2
- package/dist/esm/SwiperItem.js +2 -2
- package/dist/esm/TabPane.js +2 -2
- package/dist/esm/TabbarItem.js +3 -3
- package/dist/esm/Table/style/index.js +2 -0
- package/dist/esm/Table.js +9 -0
- package/dist/esm/Tabs.js +3 -3
- package/dist/esm/Tag.js +3 -3
- package/dist/esm/TextArea.js +4 -4
- package/dist/esm/TimeDetail.js +4 -4
- package/dist/esm/TimePannel.js +4 -4
- package/dist/esm/TimeSelect.js +7 -6
- package/dist/esm/Toast.js +5 -4
- package/dist/esm/Uploader.js +5 -5
- package/dist/esm/VirtualList.js +4 -4
- package/dist/esm/{actionsheet.taro-4ae40ea0.js → actionsheet.taro-f4d407b0.js} +1 -1
- package/dist/esm/{address.taro-82a8fa11.js → address.taro-4765a826.js} +95 -36
- package/dist/esm/{animatingnumbers.taro-cda438cc.js → animatingnumbers.taro-877baa98.js} +20 -15
- package/dist/esm/audio.taro-cd6cc93b.js +292 -0
- package/dist/esm/{avatar.taro-5dafffdc.js → avatar.taro-0a0472fd.js} +1 -2
- package/dist/esm/{avatargroup.taro-a39282b3.js → avatargroup-1ca79066.js} +1 -1
- package/dist/esm/{backtop.taro-65dccd86.js → backtop.taro-0e2e3946.js} +8 -6
- package/dist/esm/{badge.taro-8c001377.js → badge.taro-eeac9de8.js} +5 -5
- package/dist/esm/{barrage.taro-f1139b9c.js → barrage.taro-efac8422.js} +42 -19
- package/dist/esm/{button.taro-90c8bb93.js → button-521a516b.js} +1 -1
- package/dist/esm/{button-9b1f3219.js → button.taro-d5968f9d.js} +1 -1
- package/dist/esm/calendar.taro-1abb1925.js +89 -0
- package/dist/esm/{calendaritem.taro-bbe4a226.js → calendaritem.taro-3c06a809.js} +151 -74
- package/dist/esm/{card.taro-c4f88500.js → card.taro-0861c7b3.js} +2 -2
- package/dist/esm/cascader.taro-31dbc60e.js +786 -0
- package/dist/esm/{cell.taro-8080af48.js → cell.taro-3bb1b0f2.js} +1 -1
- package/dist/esm/{checkbox.taro-7267be92.js → checkbox.taro-6fbc4b3c.js} +55 -10
- package/dist/esm/{checkboxgroup.taro-bc16131f.js → checkboxgroup.taro-3d380042.js} +26 -4
- package/dist/esm/{col.taro-ff3af36f.js → col.taro-2a437387.js} +6 -2
- package/dist/esm/{collapse.taro-5fac953d.js → collapse.taro-72e58ba2.js} +1 -0
- package/dist/esm/{collapseitem.taro-179cf530.js → collapseitem-5556ec54.js} +14 -13
- package/dist/esm/{configprovider-18657611.js → configprovider-9c393a29.js} +1 -1
- package/dist/esm/{configprovider.taro-98343012.js → configprovider.taro-1ff7f150.js} +2 -2
- package/dist/esm/{countdown.taro-cd6a1bd4.js → countdown.taro-b00d0d46.js} +1 -1
- package/dist/esm/{datepicker.taro-f7c8ef80.js → datepicker.taro-e385849d.js} +8 -6
- package/dist/esm/{dialog.taro-57f6fc2e.js → dialog.taro-c80b7b5f.js} +13 -19
- package/dist/esm/{divider.taro-beaec14a.js → divider.taro-5236fe6a.js} +6 -3
- package/dist/esm/{drag.taro-7c0493f8.js → drag.taro-56e8c87a.js} +1 -1
- package/dist/esm/{elevator.taro-e37a3fbb.js → elevator.taro-15b0d8c2.js} +139 -39
- package/dist/esm/{empty.taro-c7ccac8a.js → empty.taro-20b8adac.js} +3 -3
- package/dist/esm/{fixednav.taro-5b473df6.js → fixednav.taro-75e35339.js} +4 -4
- package/dist/esm/grid.taro-7fb43d02.js +90 -0
- package/dist/esm/griditem.taro-8020b409.js +98 -0
- package/dist/esm/{icon-62bd7379.js → icon-8dc4de10.js} +9 -9
- package/dist/esm/{icon.taro-bf130544.js → icon.taro-1d0d4fb7.js} +11 -9
- package/dist/esm/imagepreview.taro-a0ddd8a2.js +813 -0
- package/dist/esm/{infiniteloading.taro-abf15a17.js → infiniteloading.taro-0a86819e.js} +2 -2
- package/dist/esm/input.taro-1d23861d.js +392 -0
- package/dist/esm/{inputnumber.taro-4ec2bfb6.js → inputnumber.taro-75662231.js} +17 -18
- package/dist/esm/menu.taro-03e3b011.js +153 -0
- package/dist/esm/menuitem.taro-56bf3205.js +195 -0
- package/dist/esm/navbar.taro-f2eae6a6.js +123 -0
- package/dist/esm/{noticebar.taro-70193e5e.js → noticebar.taro-1890c693.js} +77 -43
- package/dist/esm/{notify.taro-837a878b.js → notify.taro-22b8f4cd.js} +21 -5
- package/dist/esm/{numberkeyboard.taro-a80cec74.js → numberkeyboard.taro-5d685c76.js} +2 -2
- package/dist/esm/nutui-react.es.js +87 -74
- package/dist/esm/offsetContext-0e3d04b3.js +19 -0
- package/dist/esm/{pagination.taro-abc4a71e.js → pagination.taro-10449c4a.js} +1 -1
- package/dist/esm/{picker.taro-c05b1930.js → picker.taro-216cc3cb.js} +8 -6
- package/dist/esm/{pickerSlot-c8f5343e.js → pickerSlot-f8e4e542.js} +9 -6
- package/dist/esm/{popover.taro-3b06163e.js → popover.taro-9b3da0fa.js} +90 -107
- package/dist/esm/{popup-15922d84.js → popup-67173ec6.js} +55 -31
- package/dist/esm/{popup.taro-897e35fd.js → popup.taro-a89dd3a1.js} +55 -31
- package/dist/esm/{progress.taro-51bcdd4f.js → progress.taro-dd93ac38.js} +1 -1
- package/dist/esm/radio.taro-32cb0172.js +129 -0
- package/dist/esm/{radiogroup.taro-f2401b7a.js → radiogroup-e698d3df.js} +5 -2
- package/dist/esm/{range.taro-41ced357.js → range.taro-fe08c5f4.js} +262 -86
- package/dist/esm/{rate.taro-3d6edec3.js → rate.taro-a0b21714.js} +6 -2
- package/dist/esm/render-4a3856cb.js +32 -0
- package/dist/esm/{row.taro-7afb510a.js → row.taro-cec13a7e.js} +9 -3
- package/dist/esm/{searchbar.taro-b05ef5a8.js → searchbar.taro-450d2f88.js} +2 -2
- package/dist/esm/{shortpassword.taro-aad27ce9.js → shortpassword.taro-08a05360.js} +25 -20
- package/dist/esm/sidenavbar.taro-dd471476.js +65 -0
- package/dist/esm/sidenavbaritem.taro-77e077f4.js +32 -0
- package/dist/esm/{signature.taro-454c5413.js → signature.taro-7cb77bab.js} +2 -2
- package/dist/esm/{skeleton.taro-b2831f6f.js → skeleton.taro-5934c7d7.js} +6 -7
- package/dist/esm/{step.taro-33775bf4.js → step-9a048771.js} +1 -1
- package/dist/esm/subsidenavbar.taro-2c1fcf16.js +94 -0
- package/dist/esm/swipe.taro-dfb9a049.js +264 -0
- package/dist/esm/{swiper.taro-624d2cf2.js → swiper.taro-7a2ef124.js} +39 -14
- package/dist/esm/{swiperitem.taro-984e3ebb.js → swiperitem-d00e7513.js} +1 -15
- package/dist/esm/{tabbaritem.taro-898becb1.js → tabbaritem.taro-a88d3ae7.js} +1 -1
- package/dist/esm/table.taro-305e0317.js +153 -0
- package/dist/esm/{tabpane.taro-24514060.js → tabpane.taro-95aa185b.js} +3 -2
- package/dist/esm/{tabs.taro-56a953f6.js → tabs.taro-d1e85ea5.js} +15 -5
- package/dist/esm/{tag.taro-77cf134f.js → tag.taro-3bbbb557.js} +2 -2
- package/dist/esm/{textarea.taro-5d4efaf0.js → textarea.taro-700b04c2.js} +6 -3
- package/dist/esm/{timedetail.taro-0e31b4a5.js → timedetail.taro-7cc00243.js} +1 -1
- package/dist/esm/{timepannel.taro-2d54b3db.js → timepannel.taro-e24537e4.js} +1 -1
- package/dist/esm/{timeselect.taro-e4c97354.js → timeselect.taro-210fd548.js} +2 -2
- package/dist/esm/{toast.taro-b7ff92f1.js → toast.taro-bb181833.js} +1 -1
- package/dist/esm/{uploader.taro-5fab7e14.js → uploader.taro-f7528535.js} +4 -4
- package/dist/esm/useClientRect-8b7cc406.js +74 -0
- package/dist/esm/{index-31152350.js → useTouch-a2ea68c6.js} +26 -12
- package/dist/esm/{virtuallist.taro-2ff1a5ad.js → virtuallist.taro-ce9619f9.js} +1 -1
- package/dist/esm/{zh-CN-f5124686.js → zh-CN-91090ae2.js} +16 -0
- package/dist/locales/base.d.ts +16 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +17 -1
- package/dist/locales/id-ID.js +17 -1
- package/dist/locales/zh-CN.js +17 -1
- package/dist/locales/zh-TW.js +17 -1
- package/dist/nutui.react.es.js +6306 -3636
- package/dist/nutui.react.umd.js +20243 -33
- package/dist/packages/address/address.scss +9 -2
- package/dist/packages/audio/audio.scss +80 -0
- package/dist/packages/calendar/calendar.scss +57 -36
- package/dist/packages/calendaritem/calendaritem.scss +0 -191
- package/dist/packages/cascader/cascader.scss +69 -0
- package/dist/packages/col/col.scss +6 -6
- package/dist/packages/grid/grid.scss +10 -0
- package/dist/packages/griditem/griditem.scss +103 -0
- package/dist/packages/icon/icon.scss +104 -12
- package/dist/packages/imagepreview/imagepreview.scss +51 -0
- package/dist/packages/menu/menu.scss +72 -0
- package/dist/packages/menuitem/menuitem.scss +90 -0
- package/dist/packages/noticebar/noticebar.scss +31 -15
- package/dist/packages/notify/notify.scss +9 -0
- package/dist/packages/popover/popover.scss +205 -83
- package/dist/packages/popup/popup.scss +1 -1
- package/dist/packages/range/range.scss +141 -13
- package/dist/packages/searchbar/searchbar.scss +1 -0
- package/dist/packages/shortpassword/shortpassword.scss +6 -1
- package/dist/packages/sidenavbar/sidenavbar.scss +69 -0
- package/dist/packages/sidenavbaritem/sidenavbaritem.scss +8 -0
- package/dist/packages/subsidenavbar/subsidenavbar.scss +23 -0
- package/dist/packages/swipe/swipe.scss +33 -0
- package/dist/packages/swiper/swiper.scss +3 -0
- package/dist/packages/table/table.scss +81 -0
- package/dist/packages/textarea/textarea.scss +16 -1
- package/dist/packages/toast/toast.scss +16 -13
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/animation/icon.scss +245 -0
- package/dist/styles/animation/index.scss +1 -0
- package/dist/styles/font/config.json +169 -0
- package/dist/styles/font/demo_index.html +210 -3
- package/dist/styles/font/iconfont.css +39 -3
- package/dist/styles/font/iconfont.js +42 -40
- package/dist/styles/font/iconfont.json +63 -0
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/styles/themes/default.scss +12 -0
- package/dist/styles/variables.scss +101 -21
- package/dist/types/address/address.taro.d.ts +4 -27
- package/dist/types/animatingnumbers/animatingnumbers.taro.d.ts +1 -1
- package/dist/types/animatingnumbers/countup.taro.d.ts +11 -0
- package/dist/types/audio/audio.taro.d.ts +18 -0
- package/dist/types/audio/index.taro.d.ts +2 -0
- package/dist/types/avatargroup/index.taro.d.ts +1 -1
- package/dist/types/backtop/backtop.taro.d.ts +4 -4
- package/dist/types/badge/badge.taro.d.ts +2 -1
- package/dist/types/card/card.taro.d.ts +4 -4
- package/dist/types/cascader/cascader.taro.d.ts +25 -0
- package/dist/types/cascader/cascaderItem.taro.d.ts +25 -0
- package/dist/types/cascader/index.taro.d.ts +2 -0
- package/dist/types/cellgroup/cellgroup.taro.d.ts +1 -0
- package/dist/types/checkbox/checkbox.taro.d.ts +6 -2
- package/dist/types/checkboxgroup/checkboxgroup.taro.d.ts +3 -2
- package/dist/types/col/col.taro.d.ts +4 -1
- package/dist/types/collapse/collapse.taro.d.ts +2 -1
- package/dist/types/collapseitem/index.taro.d.ts +1 -1
- package/dist/types/dialog/dialog.taro.d.ts +2 -1
- package/dist/types/elevator/elevator.taro.d.ts +6 -1
- package/dist/types/fixednav/fixednav.taro.d.ts +5 -5
- package/dist/types/grid/grid.taro.d.ts +16 -0
- package/dist/types/grid/index.taro.d.ts +2 -0
- package/dist/types/griditem/griditem.taro.d.ts +20 -0
- package/dist/types/griditem/index.taro.d.ts +2 -0
- package/dist/types/icon/icon.taro.d.ts +11 -5
- package/dist/types/imagepreview/imagepreview.taro.d.ts +26 -0
- package/dist/types/imagepreview/index.taro.d.ts +2 -0
- package/dist/types/input/input.taro.d.ts +42 -5
- package/dist/types/menu/index.taro.d.ts +2 -0
- package/dist/types/menu/menu.taro.d.ts +12 -0
- package/dist/types/menuitem/index.taro.d.ts +2 -0
- package/dist/types/menuitem/menuitem.taro.d.ts +23 -0
- package/dist/types/navbar/navbar.taro.d.ts +10 -4
- package/dist/types/noticebar/noticebar.taro.d.ts +1 -1
- package/dist/types/notify/notify.taro.d.ts +13 -0
- package/dist/types/nutui.react.d.ts +99 -1
- package/dist/types/picker/picker.taro.d.ts +3 -2
- package/dist/types/popover/popover.taro.d.ts +15 -7
- package/dist/types/popup/popup.taro.d.ts +3 -1
- package/dist/types/radiogroup/index.taro.d.ts +1 -1
- package/dist/types/range/range.taro.d.ts +3 -1
- package/dist/types/row/row.taro.d.ts +4 -1
- package/dist/types/shortpassword/shortpassword.taro.d.ts +3 -3
- package/dist/types/sidenavbar/index.taro.d.ts +2 -0
- package/dist/types/sidenavbar/sidenavbar.taro.d.ts +15 -0
- package/dist/types/sidenavbaritem/index.taro.d.ts +2 -0
- package/dist/types/sidenavbaritem/sidenavbaritem.taro.d.ts +11 -0
- package/dist/types/skeleton/skeleton.taro.d.ts +1 -0
- package/dist/types/step/index.taro.d.ts +1 -1
- package/dist/types/subsidenavbar/index.taro.d.ts +2 -0
- package/dist/types/subsidenavbar/subsidenavbar.taro.d.ts +13 -0
- package/dist/types/swipe/index.taro.d.ts +2 -0
- package/dist/types/swipe/swipe.taro.d.ts +41 -0
- package/dist/types/swiper/swiper.taro.d.ts +1 -0
- package/dist/types/swiperitem/index.taro.d.ts +1 -1
- package/dist/types/tabbar/tabbar.taro.d.ts +1 -0
- package/dist/types/table/index.taro.d.ts +2 -0
- package/dist/types/table/table.taro.d.ts +4 -0
- package/dist/types/tabpane/tabpane.taro.d.ts +3 -1
- package/dist/types/tabs/tabs.taro.d.ts +2 -0
- package/dist/types/tag/tag.taro.d.ts +2 -1
- package/dist/types/toast/toast.taro.d.ts +18 -0
- package/dist/types/virtuallist/virtuallist.taro.d.ts +2 -1
- package/package.json +18 -11
- package/dist/esm/calendar.taro-d3a90861.js +0 -617
- package/dist/esm/context-aa058329.js +0 -6
- package/dist/esm/input.taro-b6927020.js +0 -190
- package/dist/esm/navbar.taro-f2ba2cf4.js +0 -66
- package/dist/esm/radio.taro-923d91bc.js +0 -200
- package/dist/esm/raf-3fbb5f92.js +0 -126
- package/dist/packages/range/custom.scss +0 -9
- package/dist/types/actionsheet/demo.taro.d.ts +0 -6
- package/dist/types/address/demo.taro.d.ts +0 -3
- package/dist/types/animatingnumbers/demo.taro.d.ts +0 -3
- package/dist/types/avatar/demo.taro.d.ts +0 -4
- package/dist/types/avatargroup/avatargroup.taro.d.ts +0 -14
- package/dist/types/backtop/demo.taro.d.ts +0 -3
- package/dist/types/badge/demo.taro.d.ts +0 -3
- package/dist/types/barrage/demo.taro.d.ts +0 -4
- package/dist/types/button/demo.taro.d.ts +0 -3
- package/dist/types/calendar/demo.taro.d.ts +0 -3
- package/dist/types/card/demo.taro.d.ts +0 -3
- package/dist/types/cell/demo.taro.d.ts +0 -3
- package/dist/types/checkbox/demo.taro.d.ts +0 -3
- package/dist/types/circleprogress/demo.taro.d.ts +0 -4
- package/dist/types/collapse/demo.taro.d.ts +0 -3
- package/dist/types/collapseitem/collapseitem.taro.d.ts +0 -18
- package/dist/types/configprovider/demo.taro.d.ts +0 -3
- package/dist/types/countdown/demo.taro.d.ts +0 -3
- package/dist/types/datepicker/demo.taro.d.ts +0 -3
- package/dist/types/dialog/demo.taro.d.ts +0 -3
- package/dist/types/divider/demo.taro.d.ts +0 -3
- package/dist/types/drag/demo.taro.d.ts +0 -3
- package/dist/types/elevator/demo.taro.d.ts +0 -3
- package/dist/types/empty/demo.taro.d.ts +0 -4
- package/dist/types/fixednav/demo.taro.d.ts +0 -3
- package/dist/types/icon/demo.taro.d.ts +0 -3
- package/dist/types/indicator/demo.taro.d.ts +0 -4
- package/dist/types/infiniteloading/demo.taro.d.ts +0 -4
- package/dist/types/input/demo.taro.d.ts +0 -3
- package/dist/types/inputnumber/demo.taro.d.ts +0 -3
- package/dist/types/layout/demo.taro.d.ts +0 -4
- package/dist/types/navbar/demo.taro.d.ts +0 -3
- package/dist/types/noticebar/demo.taro.d.ts +0 -3
- package/dist/types/notify/demo.taro.d.ts +0 -3
- package/dist/types/numberkeyboard/demo.taro.d.ts +0 -3
- package/dist/types/overlay/demo.taro.d.ts +0 -4
- package/dist/types/pagination/demo.taro.d.ts +0 -3
- package/dist/types/picker/demo.taro.d.ts +0 -3
- package/dist/types/popover/demo.taro.d.ts +0 -3
- package/dist/types/popup/demo.taro.d.ts +0 -4
- package/dist/types/price/demo.taro.d.ts +0 -3
- package/dist/types/progress/demo.taro.d.ts +0 -3
- package/dist/types/radio/demo.taro.d.ts +0 -3
- package/dist/types/radiogroup/radiogroup.taro.d.ts +0 -11
- package/dist/types/range/demo.taro.d.ts +0 -3
- package/dist/types/rate/demo.taro.d.ts +0 -3
- package/dist/types/searchbar/demo.taro.d.ts +0 -3
- package/dist/types/shortpassword/demo.taro.d.ts +0 -3
- package/dist/types/signature/demo.taro.d.ts +0 -3
- package/dist/types/skeleton/demo.taro.d.ts +0 -4
- package/dist/types/step/step.taro.d.ts +0 -13
- package/dist/types/steps/demo.taro.d.ts +0 -4
- package/dist/types/swiper/demo.taro.d.ts +0 -4
- package/dist/types/swiperitem/swiperitem.taro.d.ts +0 -7
- package/dist/types/switch/demo.taro.d.ts +0 -3
- package/dist/types/tabbar/demo.taro.d.ts +0 -3
- package/dist/types/tabs/demo.taro.d.ts +0 -3
- package/dist/types/tag/demo.taro.d.ts +0 -3
- package/dist/types/textarea/demo.taro.d.ts +0 -3
- package/dist/types/timedetail/demo.taro.d.ts +0 -3
- package/dist/types/timepannel/demo.taro.d.ts +0 -3
- package/dist/types/timeselect/demo.taro.d.ts +0 -3
- package/dist/types/toast/demo.taro.d.ts +0 -3
- package/dist/types/uploader/demo.taro.d.ts +0 -16
- package/dist/types/virtuallist/demo.taro.d.ts +0 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
declare type GridDirection = 'horizontal' | 'vertical';
|
|
3
|
+
export interface GridItemProps {
|
|
4
|
+
text: string | ReactNode;
|
|
5
|
+
icon: string | ReactNode;
|
|
6
|
+
iconSize?: string | number;
|
|
7
|
+
iconColor?: string;
|
|
8
|
+
parentIconSize?: string | number;
|
|
9
|
+
parentIconColor?: string;
|
|
10
|
+
index: number;
|
|
11
|
+
columnNum: string | number;
|
|
12
|
+
border: boolean;
|
|
13
|
+
gutter: string | number;
|
|
14
|
+
center: boolean;
|
|
15
|
+
square: boolean;
|
|
16
|
+
reverse: boolean;
|
|
17
|
+
direction: GridDirection;
|
|
18
|
+
}
|
|
19
|
+
export declare const GridItem: FunctionComponent<Partial<GridItemProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
20
|
+
export {};
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
interface IconProps {
|
|
1
|
+
import React, { ReactElement, ReactHTML } from 'react';
|
|
2
|
+
export interface IconProps {
|
|
3
3
|
name: string;
|
|
4
4
|
size: string | number;
|
|
5
5
|
classPrefix: string;
|
|
6
6
|
color: string;
|
|
7
7
|
tag: keyof ReactHTML;
|
|
8
|
-
|
|
8
|
+
onClick: (e: MouseEvent) => void;
|
|
9
|
+
fontClassName: string;
|
|
9
10
|
className: string;
|
|
11
|
+
style: React.CSSProperties;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare function Icon<T>(props: Partial<IconProps> & T): ReactElement;
|
|
15
|
+
export declare namespace Icon {
|
|
16
|
+
var defaultProps: IconProps;
|
|
17
|
+
var displayName: string;
|
|
10
18
|
}
|
|
11
|
-
export declare const Icon: FunctionComponent<Partial<IconProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
12
|
-
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FunctionComponent, CSSProperties } from 'react';
|
|
2
|
+
export interface ImagePreviewProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
images: Array<{
|
|
5
|
+
src: string;
|
|
6
|
+
}>;
|
|
7
|
+
videos: Array<{
|
|
8
|
+
source: {
|
|
9
|
+
src: string;
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
options: {
|
|
13
|
+
muted: boolean;
|
|
14
|
+
controls: boolean;
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
show: boolean;
|
|
18
|
+
autoplay: number | string;
|
|
19
|
+
initNo: number;
|
|
20
|
+
contentClose: boolean;
|
|
21
|
+
paginationVisible: boolean;
|
|
22
|
+
style?: CSSProperties;
|
|
23
|
+
paginationColor: string;
|
|
24
|
+
onClose: () => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const ImagePreview: FunctionComponent<Partial<ImagePreviewProps>>;
|
|
@@ -1,20 +1,57 @@
|
|
|
1
|
-
import React, { CSSProperties, FunctionComponent } from 'react';
|
|
1
|
+
import React, { CSSProperties, FunctionComponent, HTMLInputTypeAttribute } from 'react';
|
|
2
|
+
export declare type InputAlignType = 'left' | 'center' | 'right';
|
|
3
|
+
export declare type InputFormatTrigger = 'onChange' | 'onBlur';
|
|
4
|
+
export declare type InputType = HTMLInputTypeAttribute;
|
|
5
|
+
export declare type InputRule = {
|
|
6
|
+
pattern?: RegExp;
|
|
7
|
+
message?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare type ConfirmTextType = 'send' | 'search' | 'next' | 'go' | 'done';
|
|
2
11
|
export interface InputProps {
|
|
3
|
-
type:
|
|
12
|
+
type: InputType;
|
|
4
13
|
defaultValue: any;
|
|
5
14
|
placeholder: string;
|
|
6
15
|
label: string;
|
|
7
|
-
|
|
16
|
+
labelClass: string;
|
|
17
|
+
labelWidth: string | number;
|
|
18
|
+
labelAlign: InputAlignType;
|
|
19
|
+
colon: boolean;
|
|
20
|
+
inputAlign: InputAlignType;
|
|
21
|
+
center: boolean;
|
|
22
|
+
required: boolean;
|
|
8
23
|
disabled: boolean;
|
|
9
24
|
readonly: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
25
|
+
error: boolean;
|
|
26
|
+
maxlength: any;
|
|
27
|
+
leftIcon: string;
|
|
28
|
+
leftIconSize: string | number;
|
|
29
|
+
rightIcon: string;
|
|
30
|
+
rightIconSize: string | number;
|
|
12
31
|
clearable: boolean;
|
|
32
|
+
clearIcon: string;
|
|
33
|
+
clearSize: string | number;
|
|
34
|
+
border: boolean;
|
|
35
|
+
formatTrigger: InputFormatTrigger;
|
|
36
|
+
rules: Array<InputRule>;
|
|
37
|
+
errorMessage: string;
|
|
38
|
+
errorMessageAlign: InputAlignType;
|
|
39
|
+
rows: string | number;
|
|
40
|
+
showWordLimit: boolean;
|
|
41
|
+
autofocus: boolean;
|
|
13
42
|
style?: CSSProperties;
|
|
14
43
|
className?: string;
|
|
44
|
+
slotButton?: React.ReactNode;
|
|
45
|
+
slotInput?: React.ReactNode;
|
|
46
|
+
formatter: (value: string) => void;
|
|
15
47
|
change?: (value: any, event: Event) => void;
|
|
16
48
|
blur?: (value: any, event: Event) => void;
|
|
17
49
|
focus?: (value: any, event: Event) => void;
|
|
18
50
|
clear?: (value: any, event: Event) => void;
|
|
51
|
+
keypress?: (value: any, event: Event) => void;
|
|
52
|
+
clickInput?: (value: any) => void;
|
|
53
|
+
clickLeftIcon?: (value: any) => void;
|
|
54
|
+
clickRightIcon?: (value: any) => void;
|
|
55
|
+
click?: (value: any) => void;
|
|
19
56
|
}
|
|
20
57
|
export declare const Input: FunctionComponent<Partial<InputProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface MenuProps {
|
|
3
|
+
className: string;
|
|
4
|
+
style: React.CSSProperties;
|
|
5
|
+
activeColor: string;
|
|
6
|
+
closeOnClickOverlay: boolean;
|
|
7
|
+
scrollFixed: boolean | string | number;
|
|
8
|
+
lockScroll: boolean;
|
|
9
|
+
titleIcon: string;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const Menu: FunctionComponent<Partial<MenuProps>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface OptionItem {
|
|
3
|
+
text: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
}
|
|
6
|
+
export interface MenuItemProps {
|
|
7
|
+
className: string;
|
|
8
|
+
style: React.CSSProperties;
|
|
9
|
+
title: React.ReactNode;
|
|
10
|
+
options: OptionItem[];
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
columns: number;
|
|
13
|
+
optionsIcon: string;
|
|
14
|
+
direction: string;
|
|
15
|
+
activeTitleClass: string;
|
|
16
|
+
inactiveTitleClass: string;
|
|
17
|
+
fontClassName: string;
|
|
18
|
+
iconClassPrefix: string;
|
|
19
|
+
value: string | number;
|
|
20
|
+
onChange: (event: any) => void;
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare const MenuItem: FunctionComponent<Partial<MenuItemProps>>;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
export interface NavBarProps {
|
|
3
|
-
title: string;
|
|
4
|
-
desc: string;
|
|
5
3
|
leftShow: boolean;
|
|
6
|
-
|
|
4
|
+
title: string;
|
|
7
5
|
titIcon: string;
|
|
6
|
+
leftText: string;
|
|
7
|
+
desc: string;
|
|
8
8
|
className: string;
|
|
9
|
+
fixed: boolean;
|
|
10
|
+
safeAreaInsetTop: boolean;
|
|
11
|
+
border: boolean;
|
|
12
|
+
placeholder: boolean;
|
|
13
|
+
zIndex: number | string;
|
|
9
14
|
style: React.CSSProperties;
|
|
10
15
|
onClickTitle: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
11
16
|
onClickIcon: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
12
17
|
onClickBack: (e: React.MouseEvent<HTMLElement>) => void;
|
|
13
|
-
|
|
18
|
+
onClickRight: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
19
|
+
children?: React.ReactNode;
|
|
14
20
|
}
|
|
15
21
|
export declare const NavBar: FunctionComponent<Partial<NavBarProps>>;
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
export interface NotifyProps {
|
|
3
|
+
id: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
msg: string;
|
|
6
|
+
duration: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
background?: string;
|
|
9
|
+
type: string;
|
|
10
|
+
position: string;
|
|
11
|
+
isWrapTeleport: boolean;
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
onClosed: () => void;
|
|
14
|
+
}
|
|
2
15
|
declare const _default: {
|
|
3
16
|
text(msg: string | React.ReactNode, option?: {}): void;
|
|
4
17
|
success(msg: string | React.ReactNode, option?: {}): void;
|
|
@@ -9,6 +9,8 @@ import Layout from './layout/index.taro';
|
|
|
9
9
|
import Col from './col/index.taro';
|
|
10
10
|
import Row from './row/index.taro';
|
|
11
11
|
import Divider from './divider/index.taro';
|
|
12
|
+
import Grid from './grid/index.taro';
|
|
13
|
+
import GridItem from './griditem/index.taro';
|
|
12
14
|
import NavBar from './navbar/index.taro';
|
|
13
15
|
import FixedNav from './fixednav/index.taro';
|
|
14
16
|
import Tabbar from './tabbar/index.taro';
|
|
@@ -18,6 +20,11 @@ import Pagination from './pagination/index.taro';
|
|
|
18
20
|
import Tabs from './tabs/index.taro';
|
|
19
21
|
import TabPane from './tabpane/index.taro';
|
|
20
22
|
import Indicator from './indicator/index.taro';
|
|
23
|
+
import SideNavBar from './sidenavbar/index.taro';
|
|
24
|
+
import SubSideNavBar from './subsidenavbar/index.taro';
|
|
25
|
+
import SideNavBarItem from './sidenavbaritem/index.taro';
|
|
26
|
+
import Menu from './menu/index.taro';
|
|
27
|
+
import MenuItem from './menuitem/index.taro';
|
|
21
28
|
import Range from './range/index.taro';
|
|
22
29
|
import Calendar from './calendar/index.taro';
|
|
23
30
|
import Checkbox from './checkbox/index.taro';
|
|
@@ -33,6 +40,7 @@ import Picker from './picker/index.taro';
|
|
|
33
40
|
import ShortPassword from './shortpassword/index.taro';
|
|
34
41
|
import TextArea from './textarea/index.taro';
|
|
35
42
|
import Uploader from './uploader/index.taro';
|
|
43
|
+
import Cascader from './cascader/index.taro';
|
|
36
44
|
import SearchBar from './searchbar/index.taro';
|
|
37
45
|
import NumberKeyboard from './numberkeyboard/index.taro';
|
|
38
46
|
import ActionSheet from './actionsheet/index.taro';
|
|
@@ -43,6 +51,7 @@ import Infiniteloading from './infiniteloading/index.taro';
|
|
|
43
51
|
import Notify from './notify/index.taro';
|
|
44
52
|
import Switch from './switch/index.taro';
|
|
45
53
|
import Toast from './toast/index.taro';
|
|
54
|
+
import Swipe from './swipe/index.taro';
|
|
46
55
|
import CircleProgress from './circleprogress/index.taro';
|
|
47
56
|
import NoticeBar from './noticebar/index.taro';
|
|
48
57
|
import Steps from './steps/index.taro';
|
|
@@ -62,8 +71,11 @@ import CollapseItem from './collapseitem/index.taro';
|
|
|
62
71
|
import AnimatingNumbers from './animatingnumbers/index.taro';
|
|
63
72
|
import Empty from './empty/index.taro';
|
|
64
73
|
import VirtualList from './virtuallist/index.taro';
|
|
74
|
+
import Table from './table/index.taro';
|
|
65
75
|
import Video from './video/index.taro';
|
|
66
76
|
import Progress from './progress/index.taro';
|
|
77
|
+
import Audio from './audio/index.taro';
|
|
78
|
+
import ImagePreview from './imagepreview/index.taro';
|
|
67
79
|
import Address from './address/index.taro';
|
|
68
80
|
import Barrage from './barrage/index.taro';
|
|
69
81
|
import Signature from './signature/index.taro';
|
|
@@ -71,4 +83,90 @@ import Card from './card/index.taro';
|
|
|
71
83
|
import TimePannel from './timepannel/index.taro';
|
|
72
84
|
import TimeDetail from './timedetail/index.taro';
|
|
73
85
|
import TimeSelect from './timeselect/index.taro';
|
|
74
|
-
export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Layout, Col, Row, Divider, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, SearchBar, NumberKeyboard, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Video, Progress, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
|
|
86
|
+
export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Layout, Col, Row, Divider, Grid, GridItem, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
|
|
87
|
+
|
|
88
|
+
export type { ButtonProps } from './button/button.taro';
|
|
89
|
+
export type { CellProps } from './cell/cell.taro';
|
|
90
|
+
export type { CellGroupProps } from './cellgroup/cellgroup.taro';
|
|
91
|
+
export type { IconProps } from './icon/icon.taro';
|
|
92
|
+
export type { OverlayProps } from './overlay/overlay.taro';
|
|
93
|
+
export type { PopupProps } from './popup/popup.taro';
|
|
94
|
+
export type { ConfigProviderProps } from './configprovider/configprovider.taro';
|
|
95
|
+
export type { LayoutProps } from './layout/layout.taro';
|
|
96
|
+
export type { ColProps } from './col/col.taro';
|
|
97
|
+
export type { RowProps } from './row/row.taro';
|
|
98
|
+
export type { DividerProps } from './divider/divider.taro';
|
|
99
|
+
export type { GridProps } from './grid/grid.taro';
|
|
100
|
+
export type { GridItemProps } from './griditem/griditem.taro';
|
|
101
|
+
export type { NavBarProps } from './navbar/navbar.taro';
|
|
102
|
+
export type { FixedNavProps } from './fixednav/fixednav.taro';
|
|
103
|
+
export type { TabbarProps } from './tabbar/tabbar.taro';
|
|
104
|
+
export type { TabbarItemProps } from './tabbaritem/tabbaritem.taro';
|
|
105
|
+
export type { ElevatorProps } from './elevator/elevator.taro';
|
|
106
|
+
export type { PaginationProps } from './pagination/pagination.taro';
|
|
107
|
+
export type { TabsProps } from './tabs/tabs.taro';
|
|
108
|
+
export type { TabPaneProps } from './tabpane/tabpane.taro';
|
|
109
|
+
export type { IndicatorProps } from './indicator/indicator.taro';
|
|
110
|
+
export type { SideNavBarProps } from './sidenavbar/sidenavbar.taro';
|
|
111
|
+
export type { SubSideNavBarProps } from './subsidenavbar/subsidenavbar.taro';
|
|
112
|
+
export type { SideNavBarItemProps } from './sidenavbaritem/sidenavbaritem.taro';
|
|
113
|
+
export type { MenuProps } from './menu/menu.taro';
|
|
114
|
+
export type { MenuItemProps } from './menuitem/menuitem.taro';
|
|
115
|
+
export type { RangeProps } from './range/range.taro';
|
|
116
|
+
export type { CalendarProps } from './calendar/calendar.taro';
|
|
117
|
+
export type { CheckboxProps } from './checkbox/checkbox.taro';
|
|
118
|
+
export type { CheckboxGroupProps } from './checkboxgroup/checkboxgroup.taro';
|
|
119
|
+
export type { DatePickerProps } from './datepicker/datepicker.taro';
|
|
120
|
+
export type { InputNumberProps } from './inputnumber/inputnumber.taro';
|
|
121
|
+
export type { InputProps } from './input/input.taro';
|
|
122
|
+
export type { RadioProps } from './radio/radio.taro';
|
|
123
|
+
export type { RadioGroupProps } from './radiogroup/radiogroup.taro';
|
|
124
|
+
export type { RateProps } from './rate/rate.taro';
|
|
125
|
+
export type { CalendarItemProps } from './calendaritem/calendaritem.taro';
|
|
126
|
+
export type { PickerProps } from './picker/picker.taro';
|
|
127
|
+
export type { ShortPasswordProps } from './shortpassword/shortpassword.taro';
|
|
128
|
+
export type { TextAreaProps } from './textarea/textarea.taro';
|
|
129
|
+
export type { UploaderProps } from './uploader/uploader.taro';
|
|
130
|
+
export type { CascaderProps } from './cascader/cascader.taro';
|
|
131
|
+
export type { SearchBarProps } from './searchbar/searchbar.taro';
|
|
132
|
+
export type { NumberKeyboardProps } from './numberkeyboard/numberkeyboard.taro';
|
|
133
|
+
export type { ActionSheetProps } from './actionsheet/actionsheet.taro';
|
|
134
|
+
export type { BackTopProps } from './backtop/backtop.taro';
|
|
135
|
+
export type { DragProps } from './drag/drag.taro';
|
|
136
|
+
export type { DialogProps } from './dialog/dialog.taro';
|
|
137
|
+
export type { InfiniteloadingProps } from './infiniteloading/infiniteloading.taro';
|
|
138
|
+
export type { NotifyProps } from './notify/notify.taro';
|
|
139
|
+
export type { SwitchProps } from './switch/switch.taro';
|
|
140
|
+
export type { ToastProps } from './toast/toast.taro';
|
|
141
|
+
export type { SwipeProps } from './swipe/swipe.taro';
|
|
142
|
+
export type { CircleProgressProps } from './circleprogress/circleprogress.taro';
|
|
143
|
+
export type { NoticeBarProps } from './noticebar/noticebar.taro';
|
|
144
|
+
export type { StepsProps } from './steps/steps.taro';
|
|
145
|
+
export type { StepProps } from './step/step.taro';
|
|
146
|
+
export type { SwiperProps } from './swiper/swiper.taro';
|
|
147
|
+
export type { SwiperItemProps } from './swiperitem/swiperitem.taro';
|
|
148
|
+
export type { AvatarProps } from './avatar/avatar.taro';
|
|
149
|
+
export type { AvatarGroupProps } from './avatargroup/avatargroup.taro';
|
|
150
|
+
export type { PriceProps } from './price/price.taro';
|
|
151
|
+
export type { BadgeProps } from './badge/badge.taro';
|
|
152
|
+
export type { TagProps } from './tag/tag.taro';
|
|
153
|
+
export type { PopoverProps } from './popover/popover.taro';
|
|
154
|
+
export type { SkeletonProps } from './skeleton/skeleton.taro';
|
|
155
|
+
export type { CountDownProps } from './countdown/countdown.taro';
|
|
156
|
+
export type { CollapseProps } from './collapse/collapse.taro';
|
|
157
|
+
export type { CollapseItemProps } from './collapseitem/collapseitem.taro';
|
|
158
|
+
export type { AnimatingNumbersProps } from './animatingnumbers/animatingnumbers.taro';
|
|
159
|
+
export type { EmptyProps } from './empty/empty.taro';
|
|
160
|
+
export type { VirtualListProps } from './virtuallist/virtuallist.taro';
|
|
161
|
+
export type { TableProps } from './table/table.taro';
|
|
162
|
+
export type { VideoProps } from './video/video.taro';
|
|
163
|
+
export type { ProgressProps } from './progress/progress.taro';
|
|
164
|
+
export type { AudioProps } from './audio/audio.taro';
|
|
165
|
+
export type { ImagePreviewProps } from './imagepreview/imagepreview.taro';
|
|
166
|
+
export type { AddressProps } from './address/address.taro';
|
|
167
|
+
export type { BarrageProps } from './barrage/barrage.taro';
|
|
168
|
+
export type { SignatureProps } from './signature/signature.taro';
|
|
169
|
+
export type { CardProps } from './card/card.taro';
|
|
170
|
+
export type { TimePannelProps } from './timepannel/timepannel.taro';
|
|
171
|
+
export type { TimeDetailProps } from './timedetail/timedetail.taro';
|
|
172
|
+
export type { TimeSelectProps } from './timeselect/timeselect.taro';
|
|
@@ -6,7 +6,7 @@ export interface PickerOption {
|
|
|
6
6
|
children?: PickerOption[];
|
|
7
7
|
className?: string | number;
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface PickerProps {
|
|
10
10
|
isVisible: boolean;
|
|
11
11
|
title?: string;
|
|
12
12
|
listData: (PickerOption | PickerOption[])[];
|
|
@@ -14,10 +14,11 @@ export interface IPickerProps {
|
|
|
14
14
|
className?: '';
|
|
15
15
|
style?: React.CSSProperties;
|
|
16
16
|
threeDimensional?: boolean;
|
|
17
|
+
swipeDuration: number | string;
|
|
17
18
|
onConfirm?: (selectedValue: (string | number)[], selectedOptions: PickerOption[]) => void;
|
|
18
19
|
onClose?: (selectedValue: (string | number)[], selectedOptions: PickerOption[]) => void;
|
|
19
20
|
onCloseUpdate?: (selectedValue: (string | number)[], list: PickerOption[], pickerRef: RefObject<HTMLDivElement>) => void;
|
|
20
21
|
onChange?: (index: number, value: (string | number)[], selectedOptions: PickerOption[]) => void;
|
|
21
22
|
}
|
|
22
|
-
declare const Picker: React.ForwardRefExoticComponent<Partial<
|
|
23
|
+
declare const Picker: React.ForwardRefExoticComponent<Partial<PickerProps> & React.RefAttributes<unknown>>;
|
|
23
24
|
export default Picker;
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import React, { CSSProperties, FunctionComponent } from 'react';
|
|
2
|
+
export declare type PopoverTheme = 'light' | 'dark';
|
|
3
|
+
export declare type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
4
|
+
export interface List {
|
|
5
|
+
name: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
2
9
|
export interface PopoverProps {
|
|
3
|
-
list:
|
|
4
|
-
theme:
|
|
5
|
-
location: string;
|
|
10
|
+
list: List[];
|
|
11
|
+
theme: PopoverTheme;
|
|
12
|
+
location: PopoverLocation | string;
|
|
6
13
|
visible: boolean;
|
|
14
|
+
offset: string | number;
|
|
7
15
|
className: string;
|
|
8
16
|
style?: CSSProperties;
|
|
9
|
-
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
onClick: (e: React.MouseEvent) => void;
|
|
19
|
+
onChoose: (item: List, index: number) => void;
|
|
10
20
|
}
|
|
11
|
-
export declare
|
|
12
|
-
export declare type PopoverType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
13
|
-
export declare const Popover: FunctionComponent<Partial<PopoverProps>>;
|
|
21
|
+
export declare const Popover: FunctionComponent<Partial<PopoverProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent, MouseEvent } from 'react';
|
|
2
2
|
import { OverlayProps } from '../overlay/overlay';
|
|
3
|
-
|
|
3
|
+
declare type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
4
|
+
export interface PopupProps extends OverlayProps {
|
|
4
5
|
position: string;
|
|
5
6
|
transition: string;
|
|
6
7
|
style: React.CSSProperties;
|
|
@@ -9,6 +10,7 @@ interface PopupProps extends OverlayProps {
|
|
|
9
10
|
closeIconPosition: string;
|
|
10
11
|
closeIcon: string;
|
|
11
12
|
destroyOnClose: boolean;
|
|
13
|
+
teleport: Teleport;
|
|
12
14
|
overlay: boolean;
|
|
13
15
|
round: boolean;
|
|
14
16
|
onOpen: () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RadioGroup } from './radiogroup
|
|
1
|
+
import { RadioGroup } from './radiogroup';
|
|
2
2
|
export default RadioGroup;
|
|
@@ -15,9 +15,11 @@ export interface RangeProps {
|
|
|
15
15
|
step: number | string;
|
|
16
16
|
modelValue: SliderValue;
|
|
17
17
|
button: React.ReactNode;
|
|
18
|
+
vertical: boolean;
|
|
19
|
+
marks: Record<string, unknown>;
|
|
18
20
|
change?: (value: number) => void;
|
|
19
21
|
dragStart?: () => void;
|
|
20
22
|
dragEnd?: () => void;
|
|
21
23
|
}
|
|
22
|
-
export declare const Range: FunctionComponent<Partial<RangeProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
24
|
+
export declare const Range: FunctionComponent<Partial<RangeProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
23
25
|
export {};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
+
declare type EventType = 'row' | 'col';
|
|
2
3
|
export interface RowProps {
|
|
3
4
|
type: string;
|
|
4
5
|
justify: string;
|
|
5
6
|
align: string;
|
|
6
7
|
wrap: string;
|
|
7
8
|
gutter: string | number;
|
|
9
|
+
onClick: (e: any, type: EventType) => void;
|
|
8
10
|
}
|
|
9
|
-
export declare const Row: FunctionComponent<Partial<RowProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const Row: FunctionComponent<Partial<RowProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
12
|
+
export {};
|
|
@@ -11,11 +11,11 @@ export interface ShortPasswordProps {
|
|
|
11
11
|
length: string | number;
|
|
12
12
|
className: string;
|
|
13
13
|
style?: CSSProperties;
|
|
14
|
-
|
|
14
|
+
onChange: (value: string | number) => void;
|
|
15
15
|
onOk: (value: string | number) => void;
|
|
16
16
|
onCancel: () => void;
|
|
17
17
|
onClose: () => void;
|
|
18
18
|
onTips: () => void;
|
|
19
|
-
|
|
19
|
+
onComplete: (value: string | number) => void;
|
|
20
20
|
}
|
|
21
|
-
export declare const ShortPassword: FunctionComponent<Partial<ShortPasswordProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
21
|
+
export declare const ShortPassword: FunctionComponent<Partial<ShortPasswordProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
declare type NavBarProps = {
|
|
3
|
+
showhead?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export interface SideNavBarProps extends React.HTMLAttributes<HTMLDivElement>, NavBarProps {
|
|
6
|
+
title: string;
|
|
7
|
+
visible: boolean;
|
|
8
|
+
width?: string;
|
|
9
|
+
offset?: number;
|
|
10
|
+
position?: 'left' | 'right';
|
|
11
|
+
handleClose: () => void;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const SideNavBar: FunctionComponent<SideNavBarProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export declare type SideNavBarItemProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
ikey: string | number;
|
|
5
|
+
click?: ({ title, ikey }: {
|
|
6
|
+
title: string;
|
|
7
|
+
ikey: string | number;
|
|
8
|
+
}) => void;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare const SideNavBarItem: FunctionComponent<SideNavBarItemProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Step } from './step
|
|
1
|
+
import { Step } from './step';
|
|
2
2
|
export default Step;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export declare type SubSideNavBarProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
ikey: string | number;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
titleClick?: ({ title, ikey, isShow, }: {
|
|
8
|
+
title: string;
|
|
9
|
+
ikey: string | number;
|
|
10
|
+
isShow: boolean;
|
|
11
|
+
}) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const SubSideNavBar: FunctionComponent<SubSideNavBarProps>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type SwipeSide = 'left' | 'right';
|
|
3
|
+
export declare type SwipePosition = SwipeSide | 'cell' | 'outside';
|
|
4
|
+
export interface SwipeInstance {
|
|
5
|
+
open: (side: SwipeSide) => void;
|
|
6
|
+
close: () => void;
|
|
7
|
+
}
|
|
8
|
+
export interface SwipeProps {
|
|
9
|
+
/** 自定义类名 */
|
|
10
|
+
className: string;
|
|
11
|
+
/** 自定义样式 */
|
|
12
|
+
style: React.CSSProperties;
|
|
13
|
+
/** 标识符,可以在事件参数中获取到 */
|
|
14
|
+
name?: string | number;
|
|
15
|
+
/** 指定左侧滑动区域宽度,单位为px */
|
|
16
|
+
leftWidth?: string | number;
|
|
17
|
+
/** 指定右侧滑动区域宽度,单位为 px */
|
|
18
|
+
rightWidth?: string | number;
|
|
19
|
+
/** 左侧滑动区域的内容 */
|
|
20
|
+
leftAction?: React.ReactNode;
|
|
21
|
+
/** 右侧滑动区域的内容 */
|
|
22
|
+
rightAction?: React.ReactNode;
|
|
23
|
+
/** 关闭前的回调函数,返回 false 可阻止关闭,支持返回 Promise */
|
|
24
|
+
beforeClose?: (position: string) => void;
|
|
25
|
+
/** 是否禁用 */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/** 打开时触发 */
|
|
28
|
+
onOpen?: ({ name, position, }: {
|
|
29
|
+
name: string | number;
|
|
30
|
+
position: SwipeSide;
|
|
31
|
+
}) => void;
|
|
32
|
+
/** 关闭时触发 */
|
|
33
|
+
onClose?: ({ name, position, }: {
|
|
34
|
+
name: string | number;
|
|
35
|
+
position: SwipePosition;
|
|
36
|
+
}) => void;
|
|
37
|
+
/** 点击时触发 */
|
|
38
|
+
onActionClick?: (event: Event, position: SwipePosition) => void;
|
|
39
|
+
children?: React.ReactNode;
|
|
40
|
+
}
|
|
41
|
+
export declare const Swipe: React.ForwardRefExoticComponent<Partial<SwipeProps> & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<SwipeInstance>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SwiperItem } from './swiperitem
|
|
1
|
+
import { SwiperItem } from './swiperitem';
|
|
2
2
|
export default SwiperItem;
|