@nutui/nutui-react 1.2.3-beta.4 → 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 +28 -0
- package/dist/esm/Audio/style/index.js +4 -0
- package/dist/esm/Audio.js +293 -0
- package/dist/esm/Avatar.js +7 -5
- package/dist/esm/Calendar/style/index.js +1 -2
- package/dist/esm/Calendar.js +80 -33
- package/dist/esm/CalendarItem.js +440 -238
- package/dist/esm/Cascader/style/index.js +2 -0
- package/dist/esm/Cascader.js +788 -0
- package/dist/esm/CheckboxGroup.js +0 -1
- package/dist/esm/ConfigProvider.js +16 -0
- package/dist/esm/DatePicker.js +37 -6
- package/dist/esm/Dialog.js +9 -16
- package/dist/esm/Drag.js +1 -1
- package/dist/esm/Elevator.js +16 -5
- package/dist/esm/Grid/style/index.js +2 -0
- package/dist/esm/Grid.js +91 -0
- package/dist/esm/GridItem/style/index.js +2 -0
- package/dist/esm/GridItem.js +99 -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 +257 -0
- package/dist/esm/Input.js +8 -2
- package/dist/esm/InputNumber.js +11 -11
- package/dist/esm/Menu/style/index.js +3 -0
- package/dist/esm/Menu.js +153 -0
- package/dist/esm/MenuItem/style/index.js +3 -0
- package/dist/esm/MenuItem.js +197 -0
- package/dist/esm/NoticeBar.js +70 -30
- package/dist/esm/Notify.js +19 -4
- package/dist/esm/Picker.js +9 -4
- package/dist/esm/Popover.js +57 -80
- package/dist/esm/Price.js +14 -3
- package/dist/esm/Progress.js +1 -1
- package/dist/esm/Range.js +11 -48
- package/dist/esm/Swipe/style/index.js +2 -0
- package/dist/esm/Swipe.js +265 -0
- package/dist/esm/Swiper.js +2 -1
- package/dist/esm/TabPane.js +5 -33
- package/dist/esm/TabbarItem.js +1 -1
- package/dist/esm/Tabs.js +6 -196
- package/dist/esm/Tag.js +1 -1
- package/dist/esm/TextArea.js +48 -4
- package/dist/esm/Toast.js +24 -13
- package/dist/esm/Uploader.js +16 -6
- package/dist/esm/{icon-62bd7379.js → icon-8dc4de10.js} +9 -9
- package/dist/esm/nutui-react.es.js +8 -0
- package/dist/esm/render-4a3856cb.js +32 -0
- package/dist/esm/tabpane-c957ab14.js +33 -0
- package/dist/esm/tabs-a48583e9.js +196 -0
- package/dist/esm/useClientRect-839d18c5.js +44 -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 +2639 -768
- package/dist/nutui.react.umd.js +2646 -767
- 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 +2 -2
- package/dist/packages/collapseitem/collapseitem.scss +1 -2
- 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/rate/rate.scss +14 -13
- package/dist/packages/searchbar/searchbar.scss +1 -0
- package/dist/packages/shortpassword/shortpassword.scss +6 -1
- package/dist/packages/swipe/swipe.scss +33 -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 +8 -0
- package/dist/styles/variables.scss +82 -15
- package/dist/types/actionsheet/actionsheet.taro.d.ts +20 -0
- package/dist/types/actionsheet/index.taro.d.ts +2 -0
- package/dist/types/address/address.taro.d.ts +34 -0
- package/dist/types/address/index.taro.d.ts +2 -0
- package/dist/types/animatingnumbers/animatingnumbers.taro.d.ts +12 -0
- package/dist/types/animatingnumbers/countup.taro.d.ts +11 -0
- package/dist/types/animatingnumbers/index.taro.d.ts +2 -0
- package/dist/types/audio/__test__/audio.spec.d.ts +1 -0
- package/dist/types/audio/audio.d.ts +18 -0
- package/dist/types/audio/audio.taro.d.ts +18 -0
- package/dist/types/audio/demo.d.ts +4 -0
- package/dist/types/audio/index.d.ts +2 -0
- package/dist/types/audio/index.taro.d.ts +2 -0
- package/dist/types/avatar/avatar.taro.d.ts +17 -0
- package/dist/types/avatar/index.taro.d.ts +2 -0
- package/dist/types/avatargroup/index.taro.d.ts +2 -0
- package/dist/types/backtop/__test__/backtop.spec.d.ts +1 -0
- package/dist/types/backtop/backtop.taro.d.ts +15 -0
- package/dist/types/backtop/index.taro.d.ts +2 -0
- package/dist/types/badge/badge.taro.d.ts +14 -0
- package/dist/types/badge/index.taro.d.ts +2 -0
- package/dist/types/barrage/barrage.taro.d.ts +12 -0
- package/dist/types/barrage/index.taro.d.ts +2 -0
- package/dist/types/button/button.taro.d.ts +20 -0
- package/dist/types/button/index.taro.d.ts +2 -0
- package/dist/types/calendar/__tests__/calendar.spec.d.ts +1 -0
- package/dist/types/calendar/calendar.d.ts +22 -2
- package/dist/types/calendar/calendar.taro.d.ts +14 -0
- package/dist/types/calendar/demo.d.ts +1 -0
- package/dist/types/calendar/index.taro.d.ts +2 -0
- package/dist/types/calendaritem/calendaritem.d.ts +21 -3
- package/dist/types/calendaritem/calendaritem.taro.d.ts +17 -0
- package/dist/types/calendaritem/index.taro.d.ts +2 -0
- package/dist/types/card/card.taro.d.ts +17 -0
- package/dist/types/card/index.taro.d.ts +2 -0
- package/dist/types/cascader/__tests__/cascader.spec.d.ts +1 -0
- package/dist/types/cascader/cascader.d.ts +25 -0
- package/dist/types/cascader/cascader.taro.d.ts +25 -0
- package/dist/types/cascader/cascaderItem.d.ts +25 -0
- package/dist/types/cascader/cascaderItem.taro.d.ts +25 -0
- package/dist/types/cascader/demo.d.ts +3 -0
- package/dist/types/cascader/helper.d.ts +4 -0
- package/dist/types/cascader/index.d.ts +2 -0
- package/dist/types/cascader/index.taro.d.ts +2 -0
- package/dist/types/cascader/tree.d.ts +12 -0
- package/dist/types/cascader/types.d.ts +28 -0
- package/dist/types/cell/cell.taro.d.ts +20 -0
- package/dist/types/cell/index.taro.d.ts +2 -0
- package/dist/types/cellgroup/cellgroup.taro.d.ts +10 -0
- package/dist/types/cellgroup/index.taro.d.ts +2 -0
- package/dist/types/checkbox/checkbox.d.ts +2 -2
- package/dist/types/checkbox/checkbox.taro.d.ts +19 -0
- package/dist/types/checkbox/index.taro.d.ts +2 -0
- package/dist/types/checkboxgroup/checkboxgroup.d.ts +2 -2
- package/dist/types/checkboxgroup/checkboxgroup.taro.d.ts +8 -0
- package/dist/types/checkboxgroup/index.taro.d.ts +2 -0
- package/dist/types/circleprogress/circleprogress.taro.d.ts +15 -0
- package/dist/types/circleprogress/index.taro.d.ts +2 -0
- package/dist/types/col/col.taro.d.ts +10 -0
- package/dist/types/col/index.taro.d.ts +2 -0
- package/dist/types/collapse/collapse.taro.d.ts +12 -0
- package/dist/types/collapse/index.taro.d.ts +2 -0
- package/dist/types/collapseitem/index.taro.d.ts +2 -0
- package/dist/types/configprovider/configprovider.taro.d.ts +12 -0
- package/dist/types/configprovider/index.taro.d.ts +2 -0
- package/dist/types/countdown/countdown.taro.d.ts +15 -0
- package/dist/types/countdown/index.taro.d.ts +2 -0
- package/dist/types/datepicker/datepicker.taro.d.ts +27 -0
- package/dist/types/datepicker/index.taro.d.ts +2 -0
- package/dist/types/dialog/__test__/dialog.spec.d.ts +1 -0
- package/dist/types/dialog/config.d.ts +3 -3
- package/dist/types/dialog/dialog.d.ts +2 -1
- package/dist/types/dialog/dialog.taro.d.ts +3 -0
- package/dist/types/dialog/index.taro.d.ts +2 -0
- package/dist/types/divider/divider.taro.d.ts +12 -0
- package/dist/types/divider/index.taro.d.ts +2 -0
- package/dist/types/drag/drag.taro.d.ts +14 -0
- package/dist/types/drag/index.taro.d.ts +2 -0
- package/dist/types/elevator/elevator.taro.d.ts +22 -0
- package/dist/types/elevator/index.taro.d.ts +2 -0
- package/dist/types/empty/empty.taro.d.ts +8 -0
- package/dist/types/empty/index.taro.d.ts +2 -0
- package/dist/types/fixednav/fixednav.d.ts +2 -2
- package/dist/types/fixednav/fixednav.taro.d.ts +22 -0
- package/dist/types/fixednav/index.taro.d.ts +2 -0
- package/dist/types/grid/__test__/grid.spec.d.ts +1 -0
- package/dist/types/grid/demo.d.ts +3 -0
- package/dist/types/grid/grid.d.ts +16 -0
- package/dist/types/grid/grid.taro.d.ts +16 -0
- package/dist/types/grid/index.d.ts +2 -0
- package/dist/types/grid/index.taro.d.ts +2 -0
- package/dist/types/griditem/griditem.d.ts +20 -0
- package/dist/types/griditem/griditem.taro.d.ts +20 -0
- package/dist/types/griditem/index.d.ts +2 -0
- package/dist/types/griditem/index.taro.d.ts +2 -0
- package/dist/types/icon/icon.d.ts +10 -5
- package/dist/types/icon/icon.taro.d.ts +18 -0
- package/dist/types/icon/index.taro.d.ts +2 -0
- package/dist/types/imagepreview/__test__/imagepreview.spec.d.ts +1 -0
- package/dist/types/imagepreview/demo.d.ts +3 -0
- package/dist/types/imagepreview/imagepreview.d.ts +26 -0
- package/dist/types/imagepreview/imagepreview.taro.d.ts +26 -0
- package/dist/types/imagepreview/index.d.ts +2 -0
- package/dist/types/imagepreview/index.taro.d.ts +2 -0
- package/dist/types/indicator/index.taro.d.ts +2 -0
- package/dist/types/indicator/indicator.taro.d.ts +10 -0
- package/dist/types/infiniteloading/index.taro.d.ts +2 -0
- package/dist/types/infiniteloading/infiniteloading.taro.d.ts +20 -0
- package/dist/types/input/__test__/input.spec.d.ts +1 -0
- package/dist/types/input/index.taro.d.ts +2 -0
- package/dist/types/input/input.taro.d.ts +57 -0
- package/dist/types/inputnumber/index.taro.d.ts +2 -0
- package/dist/types/inputnumber/inputnumber.taro.d.ts +22 -0
- package/dist/types/layout/index.taro.d.ts +2 -0
- package/dist/types/layout/layout.taro.d.ts +4 -0
- package/dist/types/menu/__test__/menu.spec.d.ts +1 -0
- package/dist/types/menu/demo.d.ts +4 -0
- package/dist/types/menu/index.d.ts +2 -0
- package/dist/types/menu/index.taro.d.ts +2 -0
- package/dist/types/menu/menu.d.ts +12 -0
- package/dist/types/menu/menu.taro.d.ts +12 -0
- package/dist/types/menuitem/index.d.ts +2 -0
- package/dist/types/menuitem/index.taro.d.ts +2 -0
- package/dist/types/menuitem/menuitem.d.ts +23 -0
- package/dist/types/menuitem/menuitem.taro.d.ts +23 -0
- package/dist/types/navbar/index.taro.d.ts +2 -0
- package/dist/types/navbar/navbar.taro.d.ts +21 -0
- package/dist/types/noticebar/demo.d.ts +1 -0
- package/dist/types/noticebar/index.taro.d.ts +2 -0
- package/dist/types/noticebar/noticebar.d.ts +1 -1
- package/dist/types/noticebar/noticebar.taro.d.ts +23 -0
- package/dist/types/notify/Notification.d.ts +8 -7
- package/dist/types/notify/__test__/notify.spec.d.ts +1 -0
- package/dist/types/notify/index.taro.d.ts +2 -0
- package/dist/types/notify/notify.d.ts +13 -0
- package/dist/types/notify/notify.taro.d.ts +23 -0
- package/dist/types/numberkeyboard/index.taro.d.ts +2 -0
- package/dist/types/numberkeyboard/numberkeyboard.taro.d.ts +20 -0
- package/dist/types/nutui.react.d.ts +95 -1
- package/dist/types/overlay/index.taro.d.ts +2 -0
- package/dist/types/overlay/overlay.taro.d.ts +12 -0
- package/dist/types/pagination/index.taro.d.ts +2 -0
- package/dist/types/pagination/pagination.taro.d.ts +19 -0
- package/dist/types/picker/doc.en.d.ts +142 -0
- package/dist/types/picker/index.taro.d.ts +2 -0
- package/dist/types/picker/picker.d.ts +3 -2
- package/dist/types/picker/picker.taro.d.ts +24 -0
- package/dist/types/picker/pickerSlot.d.ts +1 -0
- package/dist/types/popover/__tests__/popover.spec.d.ts +1 -0
- package/dist/types/popover/index.taro.d.ts +2 -0
- package/dist/types/popover/popover.d.ts +14 -7
- package/dist/types/popover/popover.taro.d.ts +21 -0
- package/dist/types/popup/index.taro.d.ts +2 -0
- package/dist/types/popup/popup.d.ts +1 -1
- package/dist/types/popup/popup.taro.d.ts +25 -0
- package/dist/types/price/index.taro.d.ts +2 -0
- package/dist/types/price/price.taro.d.ts +11 -0
- package/dist/types/progress/index.taro.d.ts +2 -0
- package/dist/types/progress/progress.taro.d.ts +26 -0
- package/dist/types/radio/index.taro.d.ts +2 -0
- package/dist/types/radio/radio.taro.d.ts +21 -0
- package/dist/types/radiogroup/index.taro.d.ts +2 -0
- package/dist/types/range/index.taro.d.ts +2 -0
- package/dist/types/range/range.taro.d.ts +25 -0
- package/dist/types/rate/index.taro.d.ts +2 -0
- package/dist/types/rate/rate.taro.d.ts +17 -0
- package/dist/types/row/index.taro.d.ts +2 -0
- package/dist/types/row/row.taro.d.ts +12 -0
- package/dist/types/searchbar/index.taro.d.ts +2 -0
- package/dist/types/searchbar/searchbar.taro.d.ts +60 -0
- package/dist/types/shortpassword/index.taro.d.ts +2 -0
- package/dist/types/shortpassword/shortpassword.taro.d.ts +21 -0
- package/dist/types/sidenavbar/index.taro.d.ts +2 -0
- package/dist/types/sidenavbar/sidenavbar.d.ts +14 -2
- 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.d.ts +10 -2
- package/dist/types/sidenavbaritem/sidenavbaritem.taro.d.ts +11 -0
- package/dist/types/signature/index.taro.d.ts +2 -0
- package/dist/types/signature/signature.taro.d.ts +11 -0
- package/dist/types/skeleton/index.taro.d.ts +2 -0
- package/dist/types/skeleton/skeleton.taro.d.ts +19 -0
- package/dist/types/step/index.taro.d.ts +2 -0
- package/dist/types/steps/index.taro.d.ts +2 -0
- package/dist/types/steps/steps.taro.d.ts +10 -0
- package/dist/types/subsidenavbar/index.taro.d.ts +2 -0
- package/dist/types/subsidenavbar/subsidenavbar.d.ts +13 -3
- package/dist/types/subsidenavbar/subsidenavbar.taro.d.ts +13 -0
- package/dist/types/swipe/__tests__/swipe.spec.d.ts +1 -0
- package/dist/types/swipe/demo.d.ts +3 -0
- package/dist/types/swipe/index.d.ts +2 -0
- package/dist/types/swipe/index.taro.d.ts +2 -0
- package/dist/types/swipe/swipe.d.ts +41 -0
- package/dist/types/swipe/swipe.taro.d.ts +41 -0
- package/dist/types/swiper/index.taro.d.ts +2 -0
- package/dist/types/swiper/swiper.d.ts +1 -2
- package/dist/types/swiper/swiper.taro.d.ts +27 -0
- package/dist/types/swiperitem/index.taro.d.ts +2 -0
- package/dist/types/swiperitem/swiperitem.d.ts +1 -2
- package/dist/types/switch/index.taro.d.ts +2 -0
- package/dist/types/switch/switch.taro.d.ts +14 -0
- package/dist/types/tabbar/index.taro.d.ts +2 -0
- package/dist/types/tabbar/tabbar.taro.d.ts +14 -0
- package/dist/types/tabbaritem/index.taro.d.ts +2 -0
- package/dist/types/tabbaritem/tabbaritem.taro.d.ts +17 -0
- package/dist/types/table/index.taro.d.ts +2 -0
- package/dist/types/table/table.d.ts +2 -1
- package/dist/types/table/table.taro.d.ts +4 -0
- package/dist/types/table/types.d.ts +1 -1
- package/dist/types/tabpane/index.taro.d.ts +2 -0
- package/dist/types/tabpane/tabpane.taro.d.ts +10 -0
- package/dist/types/tabs/index.taro.d.ts +2 -0
- package/dist/types/tabs/tabs.taro.d.ts +30 -0
- package/dist/types/tag/index.taro.d.ts +2 -0
- package/dist/types/tag/tag.taro.d.ts +16 -0
- package/dist/types/textarea/__test__/textarea.spec.d.ts +1 -0
- package/dist/types/textarea/index.taro.d.ts +2 -0
- package/dist/types/textarea/textarea.taro.d.ts +18 -0
- package/dist/types/timedetail/index.taro.d.ts +2 -0
- package/dist/types/timedetail/timedetail.taro.d.ts +13 -0
- package/dist/types/timepannel/index.taro.d.ts +2 -0
- package/dist/types/timepannel/timepannel.taro.d.ts +8 -0
- package/dist/types/timeselect/index.taro.d.ts +2 -0
- package/dist/types/timeselect/timeselect.taro.d.ts +21 -0
- package/dist/types/toast/Notification.d.ts +6 -4
- package/dist/types/toast/__test__/toast.spec.d.ts +1 -0
- package/dist/types/toast/index.taro.d.ts +2 -0
- package/dist/types/toast/toast.d.ts +21 -0
- package/dist/types/toast/toast.taro.d.ts +29 -0
- package/dist/types/uploader/index.taro.d.ts +2 -0
- package/dist/types/uploader/uploader.d.ts +2 -2
- package/dist/types/uploader/uploader.taro.d.ts +68 -0
- package/dist/types/video/index.taro.d.ts +2 -0
- package/dist/types/virtuallist/index.taro.d.ts +2 -0
- package/dist/types/virtuallist/type.d.ts +1 -1
- package/dist/types/virtuallist/virtuallist.d.ts +2 -1
- package/dist/types/virtuallist/virtuallist.taro.d.ts +4 -0
- package/package.json +18 -7
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface SearchBarProps {
|
|
3
|
+
/** 文本值 */
|
|
4
|
+
value?: number | string;
|
|
5
|
+
/** 输入框占位提示文字 */
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
/** 搜索框形状,可选值为 round */
|
|
8
|
+
shape?: 'square' | 'round';
|
|
9
|
+
/** 自定义class名 */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** 是否禁用输入框 */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** 最大输入长度 */
|
|
14
|
+
maxLength?: number;
|
|
15
|
+
/** 是否启用清除图标,点击清除图标后会清空输入框 */
|
|
16
|
+
clearable?: boolean;
|
|
17
|
+
/** 搜索框外部背景色 */
|
|
18
|
+
background?: string;
|
|
19
|
+
/** 搜索框背景色 */
|
|
20
|
+
inputBackground?: string;
|
|
21
|
+
/** 输入框内容对齐方式 */
|
|
22
|
+
align?: string;
|
|
23
|
+
/** 是否将输入框设为只读状态,只读状态下无法输入内容 */
|
|
24
|
+
readOnly?: boolean;
|
|
25
|
+
/** 是否自动聚焦,iOS 系统不支持该属性 */
|
|
26
|
+
autoFocus?: boolean;
|
|
27
|
+
/** 搜索框左侧文本 */
|
|
28
|
+
label?: React.ReactNode;
|
|
29
|
+
/** 输入框内 左icon */
|
|
30
|
+
leftinIcon?: React.ReactNode;
|
|
31
|
+
/** 输入框内 右icon */
|
|
32
|
+
rightinIcon?: React.ReactNode;
|
|
33
|
+
/** 输入框外 左icon */
|
|
34
|
+
leftoutIcon?: React.ReactNode;
|
|
35
|
+
/** 输入框外 右icon */
|
|
36
|
+
rightoutIcon?: React.ReactNode;
|
|
37
|
+
/** 取消按钮文字 */
|
|
38
|
+
actionText?: React.ReactNode;
|
|
39
|
+
/** 确定搜索时触发 */
|
|
40
|
+
onSearch?: (val: string) => void;
|
|
41
|
+
/** 输入框内容变化时触发 */
|
|
42
|
+
onChange?: (value: string, event: Event) => void;
|
|
43
|
+
/** 输入框获得焦点时触发 */
|
|
44
|
+
onFocus?: (value: string, event: Event) => void;
|
|
45
|
+
/** 输入框失去焦点时触发 */
|
|
46
|
+
onBlur?: (value: string, event: Event) => void;
|
|
47
|
+
/** 点击清除按钮后触发 */
|
|
48
|
+
onClear?: (event: Event) => void;
|
|
49
|
+
/** 点击输入区域时触发 */
|
|
50
|
+
onClickInput?: (event: Event) => void;
|
|
51
|
+
/** 点击输入框内左侧图标时触发 */
|
|
52
|
+
onClickLeftinIcon?: (value: string, event: Event) => void;
|
|
53
|
+
/** 点击输入框外左侧图标时触发 */
|
|
54
|
+
onClickLeftoutIcon?: (value: string, event: Event) => void;
|
|
55
|
+
/** 点击输入框内右侧图标时触发 */
|
|
56
|
+
onClickRightinIcon?: (value: string, event: Event) => void;
|
|
57
|
+
/** 点击输入框外右侧图标时触发 */
|
|
58
|
+
onClickRightoutIcon?: (value: string, event: Event) => void;
|
|
59
|
+
}
|
|
60
|
+
export declare const SearchBar: FunctionComponent<Partial<SearchBarProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur'>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { CSSProperties, FunctionComponent } from 'react';
|
|
2
|
+
export interface ShortPasswordProps {
|
|
3
|
+
title: string;
|
|
4
|
+
desc: string;
|
|
5
|
+
tips: string;
|
|
6
|
+
visible: boolean;
|
|
7
|
+
modelValue: string | number;
|
|
8
|
+
errorMsg: string;
|
|
9
|
+
noButton: boolean;
|
|
10
|
+
closeOnClickOverlay: boolean;
|
|
11
|
+
length: string | number;
|
|
12
|
+
className: string;
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
onChange: (value: string | number) => void;
|
|
15
|
+
onOk: (value: string | number) => void;
|
|
16
|
+
onCancel: () => void;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
onTips: () => void;
|
|
19
|
+
onComplete: (value: string | number) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const ShortPassword: FunctionComponent<Partial<ShortPasswordProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
|
|
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
|
+
}
|
|
3
14
|
export declare const SideNavBar: FunctionComponent<SideNavBarProps>;
|
|
15
|
+
export {};
|
|
@@ -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 {};
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
|
|
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
|
+
};
|
|
3
11
|
export declare const SideNavBarItem: FunctionComponent<SideNavBarItemProps>;
|
|
@@ -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>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface SignatureProps {
|
|
3
|
+
type: string;
|
|
4
|
+
lineWidth: number;
|
|
5
|
+
strokeStyle: string;
|
|
6
|
+
unSupportTpl: string;
|
|
7
|
+
className: string;
|
|
8
|
+
confirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
|
|
9
|
+
clear?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Signature: FunctionComponent<Partial<SignatureProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
declare type avatarShape = 'round' | 'square';
|
|
3
|
+
export interface SkeletonProps {
|
|
4
|
+
width: string;
|
|
5
|
+
height: string;
|
|
6
|
+
animated: boolean;
|
|
7
|
+
row: number;
|
|
8
|
+
title: boolean;
|
|
9
|
+
avatar: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
avatarSize: string;
|
|
13
|
+
round: boolean;
|
|
14
|
+
loading: boolean;
|
|
15
|
+
avatarShape: avatarShape;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare const Skeleton: FunctionComponent<Partial<SkeletonProps>>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface StepsProps {
|
|
3
|
+
current: number;
|
|
4
|
+
direction: string;
|
|
5
|
+
progressDot: boolean;
|
|
6
|
+
className: string;
|
|
7
|
+
style: React.CSSProperties;
|
|
8
|
+
clickStep: (index: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const Steps: FunctionComponent<Partial<StepsProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
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,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 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -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>>;
|
|
@@ -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>>;
|
|
@@ -4,7 +4,7 @@ export declare type SwiperRef = {
|
|
|
4
4
|
next: () => void;
|
|
5
5
|
prev: () => void;
|
|
6
6
|
};
|
|
7
|
-
interface SwiperProps {
|
|
7
|
+
export interface SwiperProps {
|
|
8
8
|
width: number | string;
|
|
9
9
|
height: number | string;
|
|
10
10
|
duration: number | string;
|
|
@@ -24,4 +24,3 @@ interface SwiperProps {
|
|
|
24
24
|
onChange?: (currPage: number) => void;
|
|
25
25
|
}
|
|
26
26
|
export declare const Swiper: React.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<SwiperRef>>;
|
|
27
|
-
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type SwiperRef = {
|
|
3
|
+
to: (index: number) => void;
|
|
4
|
+
next: () => void;
|
|
5
|
+
prev: () => void;
|
|
6
|
+
};
|
|
7
|
+
interface SwiperProps {
|
|
8
|
+
width: number | string;
|
|
9
|
+
height: number | string;
|
|
10
|
+
duration: number | string;
|
|
11
|
+
initPage: number | string;
|
|
12
|
+
autoPlay: number | string;
|
|
13
|
+
direction: 'horizontal' | 'vertical';
|
|
14
|
+
paginationColor: string;
|
|
15
|
+
paginationVisible: boolean;
|
|
16
|
+
loop: boolean;
|
|
17
|
+
touchable: boolean;
|
|
18
|
+
isPreventDefault: boolean;
|
|
19
|
+
isStopPropagation: boolean;
|
|
20
|
+
isCenter: boolean;
|
|
21
|
+
className?: string;
|
|
22
|
+
style?: React.CSSProperties;
|
|
23
|
+
pageContent?: React.ReactNode;
|
|
24
|
+
onChange?: (currPage: number) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const Swiper: React.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<SwiperRef>>;
|
|
27
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface SwiperItemProps {
|
|
2
|
+
export interface SwiperItemProps {
|
|
3
3
|
direction?: string;
|
|
4
4
|
size?: 0;
|
|
5
5
|
}
|
|
6
6
|
export declare const SwiperItem: React.ForwardRefExoticComponent<Partial<SwiperItemProps> & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface SwitchProps {
|
|
3
|
+
isAsync: boolean;
|
|
4
|
+
checked: boolean;
|
|
5
|
+
disable: boolean;
|
|
6
|
+
activeColor: string;
|
|
7
|
+
inactiveColor: string;
|
|
8
|
+
activeText: string;
|
|
9
|
+
inactiveText: string;
|
|
10
|
+
className: string;
|
|
11
|
+
style: React.CSSProperties;
|
|
12
|
+
change: (val: boolean, event: React.MouseEvent) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const Switch: FunctionComponent<Partial<SwitchProps>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface TabbarProps {
|
|
3
|
+
visible: number | string;
|
|
4
|
+
bottom: boolean;
|
|
5
|
+
size: string | number;
|
|
6
|
+
unactiveColor: string;
|
|
7
|
+
activeColor: string;
|
|
8
|
+
safeAreaInsetBottom: boolean;
|
|
9
|
+
className: string;
|
|
10
|
+
style: React.CSSProperties;
|
|
11
|
+
tabSwitch: (child: React.ReactElement<any>, active: number) => void;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const Tabbar: FunctionComponent<Partial<TabbarProps>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
export interface TabbarItemProps {
|
|
3
|
+
dot: boolean;
|
|
4
|
+
size: string | number;
|
|
5
|
+
classPrefix: string;
|
|
6
|
+
tabTitle: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
href: string;
|
|
9
|
+
to: any;
|
|
10
|
+
num: string | number;
|
|
11
|
+
active: boolean;
|
|
12
|
+
activeColor: string;
|
|
13
|
+
unactiveColor: string;
|
|
14
|
+
index: number;
|
|
15
|
+
handleClick: (idx: number) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const TabbarItem: FunctionComponent<Partial<TabbarItemProps>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ITableProps } from './types';
|
|
3
|
+
export declare type TableProps = ITableProps;
|
|
3
4
|
export declare const Table: FunctionComponent<Partial<TableProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface TabPaneProps {
|
|
3
|
+
title: string | number;
|
|
4
|
+
paneKey: string | number;
|
|
5
|
+
activeKey: string | number;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
autoHeightClassName: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const TabPane: FunctionComponent<Partial<TabPaneProps>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
declare class Title {
|
|
3
|
+
title: string;
|
|
4
|
+
paneKey: string;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
index: number;
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
9
|
+
export declare type TabsSize = 'large' | 'normal' | 'small';
|
|
10
|
+
export interface TabsProps {
|
|
11
|
+
className: string;
|
|
12
|
+
style: React.CSSProperties;
|
|
13
|
+
value: string | number;
|
|
14
|
+
color: string;
|
|
15
|
+
background: string;
|
|
16
|
+
direction: string;
|
|
17
|
+
type: string;
|
|
18
|
+
titleScroll: boolean;
|
|
19
|
+
ellipsis: boolean;
|
|
20
|
+
animatedTime: number | string;
|
|
21
|
+
titleGutter: number | string;
|
|
22
|
+
size: TabsSize;
|
|
23
|
+
titleNode: () => JSX.Element[];
|
|
24
|
+
onChange: (t: Title) => void;
|
|
25
|
+
onClick: (t: Title) => void;
|
|
26
|
+
autoHeight: boolean;
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export declare const Tabs: FunctionComponent<Partial<TabsProps>>;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface TagProps {
|
|
3
|
+
type: TagType;
|
|
4
|
+
color: string;
|
|
5
|
+
textColor: string;
|
|
6
|
+
plain: boolean;
|
|
7
|
+
round: boolean;
|
|
8
|
+
mark: boolean;
|
|
9
|
+
closeable: boolean;
|
|
10
|
+
prefixCls: string;
|
|
11
|
+
onClick: (e: MouseEvent) => void;
|
|
12
|
+
onClose: (e?: any) => void;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
16
|
+
export declare const Tag: FunctionComponent<Partial<TagProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { FunctionComponent, CSSProperties } from 'react';
|
|
2
|
+
export interface TextAreaProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
defaultValue: string | number | any;
|
|
5
|
+
textAlign?: string | any;
|
|
6
|
+
limitshow?: boolean;
|
|
7
|
+
maxlength?: any;
|
|
8
|
+
rows?: any;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
readonly?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
autosize?: boolean;
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
onChange?: (value: any, event: Event) => void;
|
|
15
|
+
onBlur?: (event: Event) => void;
|
|
16
|
+
onFocus?: (event: Event) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const TextArea: FunctionComponent<Partial<TextAreaProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur' | 'onFocus'>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface TimeType {
|
|
3
|
+
key?: string | number;
|
|
4
|
+
list: string[];
|
|
5
|
+
}
|
|
6
|
+
export interface TimeDetailProps {
|
|
7
|
+
className?: string;
|
|
8
|
+
currentKey: string | number;
|
|
9
|
+
currentTime: TimeType[];
|
|
10
|
+
times: TimeType[];
|
|
11
|
+
select: (time: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const TimeDetail: FunctionComponent<Partial<TimeDetailProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface TimePannelProps {
|
|
3
|
+
date: string;
|
|
4
|
+
curKey: string | number;
|
|
5
|
+
className?: string;
|
|
6
|
+
change: (curKey: string | number) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const TimePannel: FunctionComponent<Partial<TimePannelProps> & React.HTMLAttributes<HTMLDivElement>>;
|