@nutui/nutui-react 1.1.0-beta.3 → 1.1.1
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 +20 -0
- package/dist/1x/demo-1.1.1/CSSTransition.js +1 -0
- package/dist/1x/demo-1.1.1/avatar.js +1 -0
- package/dist/1x/demo-1.1.1/bem.js +1 -0
- package/dist/1x/demo-1.1.1/button.js +7 -0
- package/dist/1x/demo-1.1.1/cell.js +1 -0
- package/dist/1x/demo-1.1.1/cellgroup.js +1 -0
- package/dist/1x/demo-1.1.1/demo.css +1 -0
- package/dist/1x/demo-1.1.1/demo.js +1 -0
- package/dist/1x/demo-1.1.1/demo10.css +1 -0
- package/dist/1x/demo-1.1.1/demo10.js +1 -0
- package/dist/1x/demo-1.1.1/demo11.js +1 -0
- package/dist/1x/demo-1.1.1/demo12.js +1 -0
- package/dist/1x/demo-1.1.1/demo13.js +1 -0
- package/dist/1x/demo-1.1.1/demo14.js +1 -0
- package/dist/1x/demo-1.1.1/demo15.js +1 -0
- package/dist/1x/demo-1.1.1/demo16.js +1 -0
- package/dist/1x/demo-1.1.1/demo17.js +1 -0
- package/dist/1x/demo-1.1.1/demo18.js +1 -0
- package/dist/1x/demo-1.1.1/demo19.js +1 -0
- package/dist/1x/demo-1.1.1/demo2.css +1 -0
- package/dist/1x/demo-1.1.1/demo2.js +1 -0
- package/dist/1x/demo-1.1.1/demo20.js +1 -0
- package/dist/1x/demo-1.1.1/demo21.js +1 -0
- package/dist/1x/demo-1.1.1/demo22.js +1 -0
- package/dist/1x/demo-1.1.1/demo23.js +1 -0
- package/dist/1x/demo-1.1.1/demo24.js +7 -0
- package/dist/1x/demo-1.1.1/demo25.js +1 -0
- package/dist/1x/demo-1.1.1/demo26.js +1 -0
- package/dist/1x/demo-1.1.1/demo27.js +1 -0
- package/dist/1x/demo-1.1.1/demo28.js +1 -0
- package/dist/1x/demo-1.1.1/demo29.js +1 -0
- package/dist/1x/demo-1.1.1/demo3.css +1 -0
- package/dist/1x/demo-1.1.1/demo3.js +1 -0
- package/dist/1x/demo-1.1.1/demo30.js +1 -0
- package/dist/1x/demo-1.1.1/demo31.js +4 -0
- package/dist/1x/demo-1.1.1/demo32.js +1 -0
- package/dist/1x/demo-1.1.1/demo33.js +1 -0
- package/dist/1x/demo-1.1.1/demo34.js +1 -0
- package/dist/1x/demo-1.1.1/demo35.js +2 -0
- package/dist/1x/demo-1.1.1/demo36.js +1 -0
- package/dist/1x/demo-1.1.1/demo37.js +1 -0
- package/dist/1x/demo-1.1.1/demo38.js +1 -0
- package/dist/1x/demo-1.1.1/demo39.js +1 -0
- package/dist/1x/demo-1.1.1/demo4.css +1 -0
- package/dist/1x/demo-1.1.1/demo4.js +1 -0
- package/dist/1x/demo-1.1.1/demo40.js +1 -0
- package/dist/1x/demo-1.1.1/demo41.js +1 -0
- package/dist/1x/demo-1.1.1/demo42.js +1 -0
- package/dist/1x/demo-1.1.1/demo43.js +1 -0
- package/dist/1x/demo-1.1.1/demo44.js +1 -0
- package/dist/1x/demo-1.1.1/demo45.js +6 -0
- package/dist/1x/demo-1.1.1/demo46.js +1 -0
- package/dist/1x/demo-1.1.1/demo47.js +1 -0
- package/dist/1x/demo-1.1.1/demo48.js +1 -0
- package/dist/1x/demo-1.1.1/demo5.css +1 -0
- package/dist/1x/demo-1.1.1/demo5.js +1 -0
- package/dist/1x/demo-1.1.1/demo6.css +1 -0
- package/dist/1x/demo-1.1.1/demo6.js +1 -0
- package/dist/1x/demo-1.1.1/demo7.css +1 -0
- package/dist/1x/demo-1.1.1/demo7.js +1 -0
- package/dist/1x/demo-1.1.1/demo8.css +1 -0
- package/dist/1x/demo-1.1.1/demo8.js +1 -0
- package/dist/1x/demo-1.1.1/demo9.css +1 -0
- package/dist/1x/demo-1.1.1/demo9.js +1 -0
- package/dist/1x/demo-1.1.1/drag.js +1 -0
- package/dist/1x/demo-1.1.1/elevator.js +1 -0
- package/dist/1x/demo-1.1.1/icon.js +1 -0
- package/dist/1x/demo-1.1.1/iconfont.ttf +0 -0
- package/dist/1x/demo-1.1.1/iconfont.woff +0 -0
- package/dist/1x/demo-1.1.1/iconfont.woff2 +0 -0
- package/dist/1x/demo-1.1.1/index.js +5 -0
- package/dist/1x/demo-1.1.1/logo-red.png +0 -0
- package/dist/1x/demo-1.1.1/mobile.css +1 -0
- package/dist/1x/demo-1.1.1/mobile.js +1 -0
- package/dist/1x/demo-1.1.1/nutui.react.scss.css +1 -0
- package/dist/1x/demo-1.1.1/nutui.react.scss.js +1 -0
- package/dist/1x/demo-1.1.1/overlay.js +1 -0
- package/dist/1x/demo-1.1.1/picker.js +1 -0
- package/dist/1x/demo-1.1.1/popup.js +1 -0
- package/dist/1x/demo-1.1.1/switch.js +1 -0
- package/dist/1x/demo-1.1.1/toast.js +1 -0
- package/dist/1x/demo-1.1.1/vendor.js +41 -0
- package/dist/1x/demo.html +62 -0
- package/dist/esm/Address.js +11 -11
- package/dist/esm/AnimatingNumbers.js +1 -1
- package/dist/esm/Avatar.js +2 -2
- package/dist/esm/BackTop.js +7 -7
- package/dist/esm/Barrage.js +2 -2
- package/dist/esm/Calendar.js +1 -1
- package/dist/esm/CalendarItem.js +33 -35
- package/dist/esm/Cell.js +4 -4
- package/dist/esm/CircleProgress.js +2 -2
- package/dist/esm/Col.js +4 -3
- package/dist/esm/Collapse.js +3 -3
- package/dist/esm/CollapseItem.js +4 -4
- package/dist/esm/DatePicker/style/css.js +1 -0
- package/dist/esm/DatePicker/style/index.js +1 -0
- package/dist/esm/DatePicker.js +322 -0
- package/dist/esm/Divider.js +1 -1
- package/dist/esm/Drag.js +1 -1
- package/dist/esm/Elevator.js +2 -2
- package/dist/esm/FixedNav.js +3 -3
- package/dist/esm/Infiniteloading.js +5 -5
- package/dist/esm/Input.js +1 -1
- package/dist/esm/InputNumber.js +1 -1
- package/dist/esm/NoticeBar.js +12 -12
- package/dist/esm/Notify.js +7 -7
- package/dist/esm/Overlay.js +3 -3
- package/dist/esm/Pagination.js +10 -10
- package/dist/esm/Picker.js +13 -6
- package/dist/esm/Popover.js +8 -8
- package/dist/esm/Popup.js +7 -5
- package/dist/esm/Price.js +3 -3
- package/dist/esm/Range.js +3 -3
- package/dist/esm/ShortPassword.js +2 -2
- package/dist/esm/Skeleton/style/css.js +1 -0
- package/dist/esm/Skeleton/style/index.js +1 -0
- package/dist/esm/Skeleton.js +102 -0
- package/dist/esm/Step.js +1 -1
- package/dist/esm/Steps.js +1 -1
- package/dist/esm/Swiper.js +2 -2
- package/dist/esm/SwiperItem.js +2 -2
- package/dist/esm/Switch.js +2 -1
- package/dist/esm/TabPane/style/css.js +1 -0
- package/dist/esm/TabPane/style/index.js +1 -0
- package/dist/esm/TabPane.js +33 -0
- package/dist/esm/Tabs/style/css.js +1 -0
- package/dist/esm/Tabs/style/index.js +1 -0
- package/dist/esm/Tabs.js +187 -0
- package/dist/esm/Tag.js +4 -8
- package/dist/esm/TextArea.js +1 -1
- package/dist/esm/Toast.js +11 -7
- package/dist/esm/Uploader.js +3 -3
- package/dist/esm/{date-649fe493.js → date-b4847376.js} +2 -2
- package/dist/esm/nutui-react.es.js +4 -0
- package/dist/esm/{overlay-418bcf84.js → overlay-ed3eb37d.js} +1 -1
- package/dist/esm/types/src/packages/actionsheet/actionsheet.d.ts +20 -0
- package/dist/esm/types/src/packages/actionsheet/index.d.ts +2 -0
- package/dist/esm/types/src/packages/address/address.d.ts +56 -0
- package/dist/esm/types/src/packages/address/customRender.d.ts +18 -0
- package/dist/esm/types/src/packages/address/existRender.d.ts +18 -0
- package/dist/esm/types/src/packages/address/index.d.ts +2 -0
- package/dist/esm/types/src/packages/animatingnumbers/animatingnumbers.d.ts +12 -0
- package/dist/esm/types/src/packages/animatingnumbers/countup.d.ts +11 -0
- package/dist/esm/types/src/packages/animatingnumbers/index.d.ts +2 -0
- package/dist/esm/types/src/packages/avatar/avatar.d.ts +14 -0
- package/dist/esm/types/src/packages/avatar/index.d.ts +2 -0
- package/dist/esm/types/src/packages/backtop/backtop.d.ts +15 -0
- package/dist/esm/types/src/packages/backtop/index.d.ts +2 -0
- package/dist/esm/types/src/packages/badge/badge.d.ts +13 -0
- package/dist/esm/types/src/packages/badge/index.d.ts +2 -0
- package/dist/esm/types/src/packages/barrage/barrage.d.ts +12 -0
- package/dist/esm/types/src/packages/barrage/index.d.ts +2 -0
- package/dist/esm/types/src/packages/button/button.d.ts +20 -0
- package/dist/esm/types/src/packages/button/index.d.ts +2 -0
- package/dist/esm/types/src/packages/calendar/calendar.d.ts +14 -0
- package/dist/esm/types/src/packages/calendar/index.d.ts +2 -0
- package/dist/esm/types/src/packages/calendaritem/calendaritem.d.ts +17 -0
- package/dist/esm/types/src/packages/calendaritem/index.d.ts +2 -0
- package/dist/esm/types/src/packages/cell/cell.d.ts +16 -0
- package/dist/esm/types/src/packages/cell/index.d.ts +2 -0
- package/dist/esm/types/src/packages/cellgroup/cellgroup.d.ts +6 -0
- package/dist/esm/types/src/packages/cellgroup/index.d.ts +2 -0
- package/dist/esm/types/src/packages/checkbox/checkbox.d.ts +15 -0
- package/dist/esm/types/src/packages/checkbox/index.d.ts +2 -0
- package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.d.ts +7 -0
- package/dist/esm/types/src/packages/checkboxgroup/index.d.ts +2 -0
- package/dist/esm/types/src/packages/circleprogress/circleprogress.d.ts +9 -0
- package/dist/esm/types/src/packages/circleprogress/index.d.ts +2 -0
- package/dist/esm/types/src/packages/col/col.d.ts +7 -0
- package/dist/esm/types/src/packages/col/index.d.ts +2 -0
- package/dist/esm/types/src/packages/collapse/collapse.d.ts +11 -0
- package/dist/esm/types/src/packages/collapse/index.d.ts +2 -0
- package/dist/esm/types/src/packages/collapseitem/collapseitem.d.ts +18 -0
- package/dist/esm/types/src/packages/collapseitem/index.d.ts +2 -0
- package/dist/esm/types/src/packages/datepicker/datepicker.d.ts +16 -0
- package/dist/esm/types/src/packages/datepicker/index.d.ts +2 -0
- package/dist/esm/types/src/packages/dialog/Confirm.d.ts +7 -0
- package/dist/esm/types/src/packages/dialog/Content.d.ts +10 -0
- package/dist/esm/types/src/packages/dialog/DialogWrap.d.ts +11 -0
- package/dist/esm/types/src/packages/dialog/DialogWrapper.d.ts +8 -0
- package/dist/esm/types/src/packages/dialog/Mask.d.ts +3 -0
- package/dist/esm/types/src/packages/dialog/config.d.ts +46 -0
- package/dist/esm/types/src/packages/dialog/dialog.d.ts +2 -0
- package/dist/esm/types/src/packages/dialog/index.d.ts +2 -0
- package/dist/esm/types/src/packages/divider/divider.d.ts +9 -0
- package/dist/esm/types/src/packages/divider/index.d.ts +2 -0
- package/dist/esm/types/src/packages/drag/drag.d.ts +14 -0
- package/dist/esm/types/src/packages/drag/index.d.ts +2 -0
- package/dist/esm/types/src/packages/elevator/elevator.d.ts +17 -0
- package/dist/esm/types/src/packages/elevator/index.d.ts +2 -0
- package/dist/esm/types/src/packages/fixednav/fixednav.d.ts +22 -0
- package/dist/esm/types/src/packages/fixednav/index.d.ts +2 -0
- package/dist/esm/types/src/packages/icon/icon.d.ts +12 -0
- package/dist/esm/types/src/packages/icon/index.d.ts +2 -0
- package/dist/esm/types/src/packages/infiniteloading/index.d.ts +2 -0
- package/dist/esm/types/src/packages/infiniteloading/infiniteloading.d.ts +20 -0
- package/dist/esm/types/src/packages/input/index.d.ts +2 -0
- package/dist/esm/types/src/packages/input/input.d.ts +20 -0
- package/dist/esm/types/src/packages/input/util.d.ts +1 -0
- package/dist/esm/types/src/packages/inputnumber/index.d.ts +2 -0
- package/dist/esm/types/src/packages/inputnumber/inputnumber.d.ts +22 -0
- package/dist/esm/types/src/packages/layout/index.d.ts +2 -0
- package/dist/esm/types/src/packages/layout/layout.d.ts +4 -0
- package/dist/esm/types/src/packages/navbar/index.d.ts +2 -0
- package/dist/esm/types/src/packages/navbar/navbar.d.ts +15 -0
- package/dist/esm/types/src/packages/noticebar/index.d.ts +2 -0
- package/dist/esm/types/src/packages/noticebar/noticebar.d.ts +23 -0
- package/dist/esm/types/src/packages/notify/Notification.d.ts +31 -0
- package/dist/esm/types/src/packages/notify/index.d.ts +2 -0
- package/dist/esm/types/src/packages/notify/notify.d.ts +10 -0
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +60 -0
- package/dist/esm/types/src/packages/nutui.react.d.ts +119 -0
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +59 -0
- package/dist/esm/types/src/packages/overlay/index.d.ts +2 -0
- package/dist/esm/types/src/packages/overlay/overlay.d.ts +12 -0
- package/dist/esm/types/src/packages/pagination/index.d.ts +2 -0
- package/dist/esm/types/src/packages/pagination/pagination.d.ts +19 -0
- package/dist/esm/types/src/packages/picker/index.d.ts +2 -0
- package/dist/esm/types/src/packages/picker/picker.d.ts +19 -0
- package/dist/esm/types/src/packages/picker/pickerSlot.d.ts +10 -0
- package/dist/esm/types/src/packages/popover/Trigger.d.ts +21 -0
- package/dist/esm/types/src/packages/popover/index.d.ts +2 -0
- package/dist/esm/types/src/packages/popover/popover.d.ts +13 -0
- package/dist/esm/types/src/packages/popup/index.d.ts +2 -0
- package/dist/esm/types/src/packages/popup/popup.d.ts +23 -0
- package/dist/esm/types/src/packages/price/index.d.ts +2 -0
- package/dist/esm/types/src/packages/price/price.d.ts +11 -0
- package/dist/esm/types/src/packages/radio/context.d.ts +5 -0
- package/dist/esm/types/src/packages/radio/index.d.ts +2 -0
- package/dist/esm/types/src/packages/radio/radio.d.ts +21 -0
- package/dist/esm/types/src/packages/radiogroup/index.d.ts +2 -0
- package/dist/esm/types/src/packages/radiogroup/radiogroup.d.ts +11 -0
- package/dist/esm/types/src/packages/range/index.d.ts +2 -0
- package/dist/esm/types/src/packages/range/range.d.ts +23 -0
- package/dist/esm/types/src/packages/rate/index.d.ts +2 -0
- package/dist/esm/types/src/packages/rate/rate.d.ts +16 -0
- package/dist/esm/types/src/packages/row/UserContext.d.ts +2 -0
- package/dist/esm/types/src/packages/row/index.d.ts +2 -0
- package/dist/esm/types/src/packages/row/row.d.ts +9 -0
- package/dist/esm/types/src/packages/shortpassword/index.d.ts +2 -0
- package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +21 -0
- package/dist/esm/types/src/packages/signature/index.d.ts +2 -0
- package/dist/esm/types/src/packages/signature/signature.d.ts +11 -0
- package/dist/esm/types/src/packages/skeleton/index.d.ts +2 -0
- package/dist/esm/types/src/packages/skeleton/skeleton.d.ts +18 -0
- package/dist/esm/types/src/packages/step/index.d.ts +2 -0
- package/dist/esm/types/src/packages/step/step.d.ts +12 -0
- package/dist/esm/types/src/packages/steps/UserContext.d.ts +2 -0
- package/dist/esm/types/src/packages/steps/index.d.ts +2 -0
- package/dist/esm/types/src/packages/steps/steps.d.ts +9 -0
- package/dist/esm/types/src/packages/swiper/UserContext.d.ts +2 -0
- package/dist/esm/types/src/packages/swiper/index.d.ts +2 -0
- package/dist/esm/types/src/packages/swiper/swiper.d.ts +26 -0
- package/dist/esm/types/src/packages/swiperitem/index.d.ts +2 -0
- package/dist/esm/types/src/packages/swiperitem/swiperitem.d.ts +7 -0
- package/dist/esm/types/src/packages/switch/index.d.ts +2 -0
- package/dist/esm/types/src/packages/switch/switch.d.ts +14 -0
- package/dist/esm/types/src/packages/tabbar/index.d.ts +2 -0
- package/dist/esm/types/src/packages/tabbar/tabbar.d.ts +13 -0
- package/dist/esm/types/src/packages/tabbaritem/index.d.ts +2 -0
- package/dist/esm/types/src/packages/tabbaritem/tabbaritem.d.ts +13 -0
- package/dist/esm/types/src/packages/tabpane/index.d.ts +2 -0
- package/dist/esm/types/src/packages/tabpane/tabpane.d.ts +8 -0
- package/dist/esm/types/src/packages/tabs/index.d.ts +2 -0
- package/dist/esm/types/src/packages/tabs/tabs.d.ts +28 -0
- package/dist/esm/types/src/packages/tag/index.d.ts +2 -0
- package/dist/esm/types/src/packages/tag/tag.d.ts +15 -0
- package/dist/esm/types/src/packages/textarea/index.d.ts +2 -0
- package/dist/esm/types/src/packages/textarea/textarea.d.ts +18 -0
- package/dist/esm/types/src/packages/toast/Notification.d.ts +37 -0
- package/dist/esm/types/src/packages/toast/index.d.ts +2 -0
- package/dist/esm/types/src/packages/toast/toast.d.ts +11 -0
- package/dist/esm/types/src/packages/uploader/index.d.ts +2 -0
- package/dist/esm/types/src/packages/uploader/upload.d.ts +20 -0
- package/dist/esm/types/src/packages/uploader/uploader.d.ts +59 -0
- package/dist/esm/types/src/utils/bem.d.ts +2 -0
- package/dist/esm/types/src/utils/create/bem.d.ts +2 -0
- package/dist/esm/types/src/utils/create/index.d.ts +1 -0
- package/dist/esm/types/src/utils/date.d.ts +49 -0
- package/dist/esm/types/src/utils/index.d.ts +1 -0
- package/dist/esm/types/src/utils/raf.d.ts +2 -0
- package/dist/esm/types/src/utils/useRect/index.d.ts +17 -0
- package/dist/esm/types/src/utils/useTouch/index.d.ts +16 -0
- package/dist/nutui.react.es.js +1153 -535
- package/dist/nutui.react.umd.js +19 -19
- package/dist/packages/datepicker/datepicker.scss +2 -0
- package/dist/packages/skeleton/skeleton.scss +65 -0
- package/dist/packages/tabpane/tabpane.scss +12 -0
- package/dist/packages/tabs/tabs.scss +192 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +4 -0
- package/dist/styles/variables.scss +25 -0
- package/dist/types/address/address.d.ts +1 -1
- package/dist/types/address/existRender.d.ts +1 -1
- package/dist/types/badge/badge.d.ts +1 -1
- package/dist/types/datepicker/datepicker.d.ts +16 -0
- package/dist/types/datepicker/index.d.ts +2 -0
- package/dist/types/nutui.react.d.ts +5 -1
- package/dist/types/signature/signature.d.ts +4 -4
- package/dist/types/skeleton/index.d.ts +2 -0
- package/dist/types/skeleton/skeleton.d.ts +18 -0
- package/dist/types/tabpane/index.d.ts +2 -0
- package/dist/types/tabpane/tabpane.d.ts +8 -0
- package/dist/types/tabs/index.d.ts +2 -0
- package/dist/types/tabs/tabs.d.ts +28 -0
- package/package.json +6 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode, ForwardRefExoticComponent, PropsWithChildren } from 'react';
|
|
2
|
+
export declare type DialogConfigType = {
|
|
3
|
+
prefixCls?: string;
|
|
4
|
+
simple?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export interface DialogProps {
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
visible?: boolean;
|
|
10
|
+
title?: ReactNode;
|
|
11
|
+
content?: ReactNode;
|
|
12
|
+
footer?: ReactNode;
|
|
13
|
+
okText?: ReactNode;
|
|
14
|
+
cancelText?: ReactNode;
|
|
15
|
+
mask?: boolean;
|
|
16
|
+
noOkBtn?: boolean;
|
|
17
|
+
noCancelBtn?: boolean;
|
|
18
|
+
okBtnDisabled?: boolean;
|
|
19
|
+
noFooter?: boolean;
|
|
20
|
+
closeOnClickOverlay?: boolean;
|
|
21
|
+
cancelAutoClose?: boolean;
|
|
22
|
+
textAlign?: any;
|
|
23
|
+
footerDirection?: string;
|
|
24
|
+
lockScroll?: boolean;
|
|
25
|
+
onClosed?: Function;
|
|
26
|
+
onOk?: (e?: MouseEvent) => Promise<any> | void;
|
|
27
|
+
onCancel?: () => void;
|
|
28
|
+
onConfirm?: (e?: MouseEvent) => Promise<any> | void;
|
|
29
|
+
}
|
|
30
|
+
export declare type DialogReturnProps = {
|
|
31
|
+
update: Function;
|
|
32
|
+
close: Function;
|
|
33
|
+
};
|
|
34
|
+
export interface ConfirmProps extends DialogProps {
|
|
35
|
+
content?: ReactNode;
|
|
36
|
+
icon?: ReactNode | null;
|
|
37
|
+
isNotice?: boolean;
|
|
38
|
+
noticeType?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface DialogComponent extends ForwardRefExoticComponent<PropsWithChildren<DialogProps>> {
|
|
41
|
+
confirm: (props: ConfirmProps) => DialogReturnProps;
|
|
42
|
+
alert: (props: ConfirmProps) => DialogReturnProps;
|
|
43
|
+
config: (config: DialogConfigType) => void;
|
|
44
|
+
destroyAll: () => void;
|
|
45
|
+
}
|
|
46
|
+
export declare const destroyList: Array<Function>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface DividerProps {
|
|
3
|
+
contentPosition: string;
|
|
4
|
+
dashed: boolean;
|
|
5
|
+
hairline: boolean;
|
|
6
|
+
styles?: React.CSSProperties;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Divider: FunctionComponent<Partial<DividerProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface DragProps {
|
|
3
|
+
attract: boolean;
|
|
4
|
+
direction: undefined | string;
|
|
5
|
+
boundary: {
|
|
6
|
+
top: number;
|
|
7
|
+
left: number;
|
|
8
|
+
right: number;
|
|
9
|
+
bottom: number;
|
|
10
|
+
};
|
|
11
|
+
className: string;
|
|
12
|
+
style: React.CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
export declare const Drag: FunctionComponent<Partial<DragProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface ElevatorProps {
|
|
3
|
+
height: number | string;
|
|
4
|
+
acceptKey: string;
|
|
5
|
+
indexList: any;
|
|
6
|
+
className: string;
|
|
7
|
+
style: React.CSSProperties;
|
|
8
|
+
clickItem: (key: string, item: ElevatorData) => void;
|
|
9
|
+
clickIndex: (key: string) => void;
|
|
10
|
+
}
|
|
11
|
+
interface ElevatorData {
|
|
12
|
+
name: string;
|
|
13
|
+
id: number | string;
|
|
14
|
+
[key: string]: string | number;
|
|
15
|
+
}
|
|
16
|
+
export declare const Elevator: FunctionComponent<Partial<ElevatorProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { FunctionComponent, HTMLProps } from 'react';
|
|
2
|
+
declare type Direction = 'right' | 'left';
|
|
3
|
+
declare type Position = {
|
|
4
|
+
top?: string;
|
|
5
|
+
bottom?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface FixedNavProps {
|
|
8
|
+
fixednavClass: string;
|
|
9
|
+
visible: boolean;
|
|
10
|
+
overlay: boolean;
|
|
11
|
+
navList: Array<object>;
|
|
12
|
+
activeText: string;
|
|
13
|
+
unActiveText: string;
|
|
14
|
+
position: Position;
|
|
15
|
+
type: Direction;
|
|
16
|
+
onChange: (v: any) => void;
|
|
17
|
+
onSelected: Function;
|
|
18
|
+
slotList: HTMLProps<HTMLElement>;
|
|
19
|
+
slotBtn: HTMLProps<HTMLElement>;
|
|
20
|
+
}
|
|
21
|
+
export declare const FixedNav: FunctionComponent<Partial<FixedNavProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { FunctionComponent, ReactHTML } from 'react';
|
|
2
|
+
interface IconProps {
|
|
3
|
+
name: string;
|
|
4
|
+
size: string | number;
|
|
5
|
+
classPrefix: string;
|
|
6
|
+
color: string;
|
|
7
|
+
tag: keyof ReactHTML;
|
|
8
|
+
click: (e: MouseEvent) => void;
|
|
9
|
+
className: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Icon: FunctionComponent<Partial<IconProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface InfiniteloadingProps {
|
|
3
|
+
hasMore: boolean;
|
|
4
|
+
threshold: number;
|
|
5
|
+
containerId: string;
|
|
6
|
+
useWindow: boolean;
|
|
7
|
+
useCapture: boolean;
|
|
8
|
+
isOpenRefresh: boolean;
|
|
9
|
+
pullIcon: string;
|
|
10
|
+
pullTxt: string;
|
|
11
|
+
loadIcon: string;
|
|
12
|
+
loadTxt: string;
|
|
13
|
+
loadMoreTxt: string;
|
|
14
|
+
className: string;
|
|
15
|
+
style: React.CSSProperties;
|
|
16
|
+
refresh: (param: () => void) => void;
|
|
17
|
+
loadMore: (param: () => void) => void;
|
|
18
|
+
scrollChange: (param: number) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const Infiniteloading: FunctionComponent<Partial<InfiniteloadingProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { CSSProperties, FunctionComponent } from 'react';
|
|
2
|
+
export interface InputProps {
|
|
3
|
+
type: string;
|
|
4
|
+
defaultValue: any;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
label: string;
|
|
7
|
+
requireShow: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
readonly: boolean;
|
|
10
|
+
textAlign: any;
|
|
11
|
+
maxLength: any;
|
|
12
|
+
clearable: boolean;
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
className?: string;
|
|
15
|
+
change?: (value: any, event: Event) => void;
|
|
16
|
+
blur?: (value: any, event: Event) => void;
|
|
17
|
+
focus?: (value: any, event: Event) => void;
|
|
18
|
+
clear?: (value: any, event: Event) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const Input: FunctionComponent<Partial<InputProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { FunctionComponent, ChangeEvent, FocusEvent } from 'react';
|
|
2
|
+
export interface InputNumberProps {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
buttonSize: string | number;
|
|
5
|
+
min: string | number;
|
|
6
|
+
max: string | number;
|
|
7
|
+
inputWidth: string | number;
|
|
8
|
+
readonly: boolean;
|
|
9
|
+
modelValue: string | number;
|
|
10
|
+
step: string | number;
|
|
11
|
+
decimalPlaces: string | number;
|
|
12
|
+
isAsync: boolean;
|
|
13
|
+
className: string;
|
|
14
|
+
style: React.CSSProperties;
|
|
15
|
+
add: (e: MouseEvent) => void;
|
|
16
|
+
reduce: (e: MouseEvent) => void;
|
|
17
|
+
overlimit: (e: MouseEvent) => void;
|
|
18
|
+
blur: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
19
|
+
focus: (e: FocusEvent<HTMLInputElement>) => void;
|
|
20
|
+
change: (param: string | number, e: MouseEvent | ChangeEvent<HTMLInputElement>) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const InputNumber: FunctionComponent<Partial<InputNumberProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface NavBarProps {
|
|
3
|
+
title: string;
|
|
4
|
+
desc: string;
|
|
5
|
+
leftShow: boolean;
|
|
6
|
+
icon: string;
|
|
7
|
+
titIcon: string;
|
|
8
|
+
className: string;
|
|
9
|
+
style: React.CSSProperties;
|
|
10
|
+
onClickTitle: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
11
|
+
onClickIcon: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
12
|
+
onClickBack: (e: React.MouseEvent<HTMLElement>) => void;
|
|
13
|
+
onClickClear: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const NavBar: FunctionComponent<Partial<NavBarProps>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { FunctionComponent, CSSProperties } from 'react';
|
|
2
|
+
export interface NoticeBarProps {
|
|
3
|
+
direction: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
list: any;
|
|
7
|
+
standTime: number;
|
|
8
|
+
complexAm: boolean;
|
|
9
|
+
height: number;
|
|
10
|
+
text: string;
|
|
11
|
+
closeMode: boolean;
|
|
12
|
+
wrapable: boolean;
|
|
13
|
+
leftIcon: string;
|
|
14
|
+
color: string;
|
|
15
|
+
background: string;
|
|
16
|
+
delay: string | number;
|
|
17
|
+
scrollable: boolean;
|
|
18
|
+
speed: number;
|
|
19
|
+
rightIcon?: HTMLElement | any;
|
|
20
|
+
close?: (list?: any) => void;
|
|
21
|
+
click?: (item?: any) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const NoticeBar: FunctionComponent<Partial<NoticeBarProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface NotificationProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
msg: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
duration: number;
|
|
8
|
+
type: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
background?: string;
|
|
11
|
+
customClass: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
onClosed: () => void;
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
}
|
|
16
|
+
interface State {
|
|
17
|
+
show: boolean;
|
|
18
|
+
}
|
|
19
|
+
export default class Notification extends React.PureComponent<NotificationProps, State> {
|
|
20
|
+
private closeTimer;
|
|
21
|
+
static newInstance: (properties: NotificationProps, callback: any) => void;
|
|
22
|
+
constructor(props: NotificationProps);
|
|
23
|
+
close(): void;
|
|
24
|
+
startCloseTimer(): void;
|
|
25
|
+
clearCloseTimer(): void;
|
|
26
|
+
clickCover(): void;
|
|
27
|
+
componentDidMount(): void;
|
|
28
|
+
componentWillUnmount(): void;
|
|
29
|
+
render(): JSX.Element;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
text(msg: string | React.ReactNode, option?: {}): void;
|
|
4
|
+
success(msg: string | React.ReactNode, option?: {}): void;
|
|
5
|
+
primary(msg: string | React.ReactNode, option?: {}): void;
|
|
6
|
+
danger(msg: string | React.ReactNode, option?: {}): void;
|
|
7
|
+
warn(msg: string | React.ReactNode, option?: {}): void;
|
|
8
|
+
hide(): void;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import Avatar from '@/packages/avatar';
|
|
2
|
+
import Button from '@/packages/button';
|
|
3
|
+
import Cell from '@/packages/cell';
|
|
4
|
+
import CellGroup from '@/packages/cellgroup';
|
|
5
|
+
import Icon from '@/packages/icon';
|
|
6
|
+
import Price from '@/packages/price';
|
|
7
|
+
import Overlay from '@/packages/overlay';
|
|
8
|
+
import Divider from '@/packages/divider';
|
|
9
|
+
import Layout from '@/packages/layout';
|
|
10
|
+
import Row from '@/packages/row';
|
|
11
|
+
import Col from '@/packages/col';
|
|
12
|
+
import Toast from '@/packages/toast';
|
|
13
|
+
import Dialog from '@/packages/dialog';
|
|
14
|
+
import Popup from '@/packages/popup';
|
|
15
|
+
import ActionSheet from '@/packages/actionsheet';
|
|
16
|
+
import Picker from '@/packages/picker';
|
|
17
|
+
import Infiniteloading from '@/packages/infiniteloading';
|
|
18
|
+
import Popover from '@/packages/popover';
|
|
19
|
+
import Collapse from '@/packages/collapse';
|
|
20
|
+
import CollapseItem from '@/packages/collapseitem';
|
|
21
|
+
import Range from '@/packages/range';
|
|
22
|
+
import CircleProgress from '@/packages/circleprogress';
|
|
23
|
+
import NoticeBar from '@/packages/noticebar';
|
|
24
|
+
import Notify from '@/packages/notify';
|
|
25
|
+
import Switch from '@/packages/switch';
|
|
26
|
+
import NavBar from '@/packages/navbar';
|
|
27
|
+
import Tabbar from '@/packages/tabbar';
|
|
28
|
+
import TabbarItem from '@/packages/tabbaritem';
|
|
29
|
+
import Elevator from '@/packages/elevator';
|
|
30
|
+
import FixedNav from '@/packages/fixednav';
|
|
31
|
+
import Pagination from '@/packages/pagination';
|
|
32
|
+
import Steps from '@/packages/steps';
|
|
33
|
+
import Step from '@/packages/step';
|
|
34
|
+
import Swiper from '@/packages/swiper';
|
|
35
|
+
import SwiperItem from '@/packages/swiperitem';
|
|
36
|
+
import BackTop from '@/packages/backtop';
|
|
37
|
+
import Tabs from '@/packages/tabs';
|
|
38
|
+
import TabPane from '@/packages/tabpane';
|
|
39
|
+
import Rate from '@/packages/rate';
|
|
40
|
+
import Input from '@/packages/input';
|
|
41
|
+
import TextArea from '@/packages/textarea';
|
|
42
|
+
import InputNumber from '@/packages/inputnumber';
|
|
43
|
+
import ShortPassword from '@/packages/shortpassword';
|
|
44
|
+
import Radio from '@/packages/radio';
|
|
45
|
+
import RadioGroup from '@/packages/radiogroup';
|
|
46
|
+
import Checkbox from '@/packages/checkbox';
|
|
47
|
+
import CheckboxGroup from '@/packages/checkboxgroup';
|
|
48
|
+
import Tag from '@/packages/tag';
|
|
49
|
+
import Badge from '@/packages/badge';
|
|
50
|
+
import Uploader from '@/packages/uploader';
|
|
51
|
+
import Calendar from '@/packages/calendar';
|
|
52
|
+
import CalendarItem from '@/packages/calendaritem';
|
|
53
|
+
import DatePicker from '@/packages/datepicker';
|
|
54
|
+
import Skeleton from '@/packages/skeleton';
|
|
55
|
+
import Address from '@/packages/address';
|
|
56
|
+
import Barrage from '@/packages/barrage';
|
|
57
|
+
import Signature from '@/packages/signature';
|
|
58
|
+
import Drag from '@/packages/drag';
|
|
59
|
+
import AnimatingNumbers from '@/packages/animatingnumbers';
|
|
60
|
+
export { Avatar, Button, Cell, CellGroup, Icon, Price, Overlay, Divider, Layout, Row, Col, Toast, Dialog, Popup, ActionSheet, Picker, Infiniteloading, Popover, Collapse, CollapseItem, Range, CircleProgress, NoticeBar, Notify, Switch, NavBar, Tabbar, TabbarItem, Elevator, FixedNav, Pagination, Steps, Step, Swiper, SwiperItem, BackTop, Tabs, TabPane, Rate, Input, TextArea, InputNumber, ShortPassword, Radio, RadioGroup, Checkbox, CheckboxGroup, Tag, Badge, Uploader, Calendar, CalendarItem, DatePicker, Skeleton, Address, Barrage, Signature, Drag, AnimatingNumbers };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import Avatar from '@/packages/avatar';
|
|
2
|
+
import Button from '@/packages/button';
|
|
3
|
+
import Cell from '@/packages/cell';
|
|
4
|
+
import CellGroup from '@/packages/cellgroup';
|
|
5
|
+
import Icon from '@/packages/icon';
|
|
6
|
+
import Price from '@/packages/price';
|
|
7
|
+
import Overlay from '@/packages/overlay';
|
|
8
|
+
import Divider from '@/packages/divider';
|
|
9
|
+
import Layout from '@/packages/layout';
|
|
10
|
+
import Row from '@/packages/row';
|
|
11
|
+
import Col from '@/packages/col';
|
|
12
|
+
import Toast from '@/packages/toast';
|
|
13
|
+
import Dialog from '@/packages/dialog';
|
|
14
|
+
import Popup from '@/packages/popup';
|
|
15
|
+
import ActionSheet from '@/packages/actionsheet';
|
|
16
|
+
import Picker from '@/packages/picker';
|
|
17
|
+
import Infiniteloading from '@/packages/infiniteloading';
|
|
18
|
+
import Popover from '@/packages/popover';
|
|
19
|
+
import Collapse from '@/packages/collapse';
|
|
20
|
+
import CollapseItem from '@/packages/collapseitem';
|
|
21
|
+
import Range from '@/packages/range';
|
|
22
|
+
import CircleProgress from '@/packages/circleprogress';
|
|
23
|
+
import NoticeBar from '@/packages/noticebar';
|
|
24
|
+
import Notify from '@/packages/notify';
|
|
25
|
+
import Switch from '@/packages/switch';
|
|
26
|
+
import NavBar from '@/packages/navbar';
|
|
27
|
+
import Tabbar from '@/packages/tabbar';
|
|
28
|
+
import TabbarItem from '@/packages/tabbaritem';
|
|
29
|
+
import Elevator from '@/packages/elevator';
|
|
30
|
+
import FixedNav from '@/packages/fixednav';
|
|
31
|
+
import Pagination from '@/packages/pagination';
|
|
32
|
+
import Steps from '@/packages/steps';
|
|
33
|
+
import Step from '@/packages/step';
|
|
34
|
+
import Swiper from '@/packages/swiper';
|
|
35
|
+
import SwiperItem from '@/packages/swiperitem';
|
|
36
|
+
import BackTop from '@/packages/backtop';
|
|
37
|
+
import Tabs from '@/packages/tabs';
|
|
38
|
+
import TabPane from '@/packages/tabpane';
|
|
39
|
+
import Rate from '@/packages/rate';
|
|
40
|
+
import Input from '@/packages/input';
|
|
41
|
+
import TextArea from '@/packages/textarea';
|
|
42
|
+
import InputNumber from '@/packages/inputnumber';
|
|
43
|
+
import ShortPassword from '@/packages/shortpassword';
|
|
44
|
+
import Radio from '@/packages/radio';
|
|
45
|
+
import RadioGroup from '@/packages/radiogroup';
|
|
46
|
+
import Checkbox from '@/packages/checkbox';
|
|
47
|
+
import CheckboxGroup from '@/packages/checkboxgroup';
|
|
48
|
+
import Tag from '@/packages/tag';
|
|
49
|
+
import Badge from '@/packages/badge';
|
|
50
|
+
import Uploader from '@/packages/uploader';
|
|
51
|
+
import Calendar from '@/packages/calendar';
|
|
52
|
+
import CalendarItem from '@/packages/calendaritem';
|
|
53
|
+
import DatePicker from '@/packages/datepicker';
|
|
54
|
+
import Skeleton from '@/packages/skeleton';
|
|
55
|
+
import Address from '@/packages/address';
|
|
56
|
+
import Barrage from '@/packages/barrage';
|
|
57
|
+
import Signature from '@/packages/signature';
|
|
58
|
+
import Drag from '@/packages/drag';
|
|
59
|
+
import AnimatingNumbers from '@/packages/animatingnumbers';
|
|
60
|
+
import '@/packages/avatar/avatar.scss';
|
|
61
|
+
import '@/packages/button/button.scss';
|
|
62
|
+
import '@/packages/cell/cell.scss';
|
|
63
|
+
import '@/packages/cellgroup/cellgroup.scss';
|
|
64
|
+
import '@/packages/icon/icon.scss';
|
|
65
|
+
import '@/packages/price/price.scss';
|
|
66
|
+
import '@/packages/overlay/overlay.scss';
|
|
67
|
+
import '@/packages/divider/divider.scss';
|
|
68
|
+
import '@/packages/layout/layout.scss';
|
|
69
|
+
import '@/packages/row/row.scss';
|
|
70
|
+
import '@/packages/col/col.scss';
|
|
71
|
+
import '@/packages/toast/toast.scss';
|
|
72
|
+
import '@/packages/dialog/dialog.scss';
|
|
73
|
+
import '@/packages/popup/popup.scss';
|
|
74
|
+
import '@/packages/actionsheet/actionsheet.scss';
|
|
75
|
+
import '@/packages/picker/picker.scss';
|
|
76
|
+
import '@/packages/infiniteloading/infiniteloading.scss';
|
|
77
|
+
import '@/packages/popover/popover.scss';
|
|
78
|
+
import '@/packages/collapse/collapse.scss';
|
|
79
|
+
import '@/packages/collapseitem/collapseitem.scss';
|
|
80
|
+
import '@/packages/range/range.scss';
|
|
81
|
+
import '@/packages/circleprogress/circleprogress.scss';
|
|
82
|
+
import '@/packages/noticebar/noticebar.scss';
|
|
83
|
+
import '@/packages/notify/notify.scss';
|
|
84
|
+
import '@/packages/switch/switch.scss';
|
|
85
|
+
import '@/packages/navbar/navbar.scss';
|
|
86
|
+
import '@/packages/tabbar/tabbar.scss';
|
|
87
|
+
import '@/packages/tabbaritem/tabbaritem.scss';
|
|
88
|
+
import '@/packages/elevator/elevator.scss';
|
|
89
|
+
import '@/packages/fixednav/fixednav.scss';
|
|
90
|
+
import '@/packages/pagination/pagination.scss';
|
|
91
|
+
import '@/packages/steps/steps.scss';
|
|
92
|
+
import '@/packages/step/step.scss';
|
|
93
|
+
import '@/packages/swiper/swiper.scss';
|
|
94
|
+
import '@/packages/swiperitem/swiperitem.scss';
|
|
95
|
+
import '@/packages/backtop/backtop.scss';
|
|
96
|
+
import '@/packages/tabs/tabs.scss';
|
|
97
|
+
import '@/packages/tabpane/tabpane.scss';
|
|
98
|
+
import '@/packages/rate/rate.scss';
|
|
99
|
+
import '@/packages/input/input.scss';
|
|
100
|
+
import '@/packages/textarea/textarea.scss';
|
|
101
|
+
import '@/packages/inputnumber/inputnumber.scss';
|
|
102
|
+
import '@/packages/shortpassword/shortpassword.scss';
|
|
103
|
+
import '@/packages/radio/radio.scss';
|
|
104
|
+
import '@/packages/radiogroup/radiogroup.scss';
|
|
105
|
+
import '@/packages/checkbox/checkbox.scss';
|
|
106
|
+
import '@/packages/checkboxgroup/checkboxgroup.scss';
|
|
107
|
+
import '@/packages/tag/tag.scss';
|
|
108
|
+
import '@/packages/badge/badge.scss';
|
|
109
|
+
import '@/packages/uploader/uploader.scss';
|
|
110
|
+
import '@/packages/calendar/calendar.scss';
|
|
111
|
+
import '@/packages/calendaritem/calendaritem.scss';
|
|
112
|
+
import '@/packages/datepicker/datepicker.scss';
|
|
113
|
+
import '@/packages/skeleton/skeleton.scss';
|
|
114
|
+
import '@/packages/address/address.scss';
|
|
115
|
+
import '@/packages/barrage/barrage.scss';
|
|
116
|
+
import '@/packages/signature/signature.scss';
|
|
117
|
+
import '@/packages/drag/drag.scss';
|
|
118
|
+
import '@/packages/animatingnumbers/animatingnumbers.scss';
|
|
119
|
+
export { Avatar, Button, Cell, CellGroup, Icon, Price, Overlay, Divider, Layout, Row, Col, Toast, Dialog, Popup, ActionSheet, Picker, Infiniteloading, Popover, Collapse, CollapseItem, Range, CircleProgress, NoticeBar, Notify, Switch, NavBar, Tabbar, TabbarItem, Elevator, FixedNav, Pagination, Steps, Step, Swiper, SwiperItem, BackTop, Tabs, TabPane, Rate, Input, TextArea, InputNumber, ShortPassword, Radio, RadioGroup, Checkbox, CheckboxGroup, Tag, Badge, Uploader, Calendar, CalendarItem, DatePicker, Skeleton, Address, Barrage, Signature, Drag, AnimatingNumbers };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import '@/packages/avatar/avatar.scss';
|
|
2
|
+
import '@/packages/button/button.scss';
|
|
3
|
+
import '@/packages/cell/cell.scss';
|
|
4
|
+
import '@/packages/cellgroup/cellgroup.scss';
|
|
5
|
+
import '@/packages/icon/icon.scss';
|
|
6
|
+
import '@/packages/price/price.scss';
|
|
7
|
+
import '@/packages/overlay/overlay.scss';
|
|
8
|
+
import '@/packages/divider/divider.scss';
|
|
9
|
+
import '@/packages/layout/layout.scss';
|
|
10
|
+
import '@/packages/row/row.scss';
|
|
11
|
+
import '@/packages/col/col.scss';
|
|
12
|
+
import '@/packages/toast/toast.scss';
|
|
13
|
+
import '@/packages/dialog/dialog.scss';
|
|
14
|
+
import '@/packages/popup/popup.scss';
|
|
15
|
+
import '@/packages/actionsheet/actionsheet.scss';
|
|
16
|
+
import '@/packages/picker/picker.scss';
|
|
17
|
+
import '@/packages/infiniteloading/infiniteloading.scss';
|
|
18
|
+
import '@/packages/popover/popover.scss';
|
|
19
|
+
import '@/packages/collapse/collapse.scss';
|
|
20
|
+
import '@/packages/collapseitem/collapseitem.scss';
|
|
21
|
+
import '@/packages/range/range.scss';
|
|
22
|
+
import '@/packages/circleprogress/circleprogress.scss';
|
|
23
|
+
import '@/packages/noticebar/noticebar.scss';
|
|
24
|
+
import '@/packages/notify/notify.scss';
|
|
25
|
+
import '@/packages/switch/switch.scss';
|
|
26
|
+
import '@/packages/navbar/navbar.scss';
|
|
27
|
+
import '@/packages/tabbar/tabbar.scss';
|
|
28
|
+
import '@/packages/tabbaritem/tabbaritem.scss';
|
|
29
|
+
import '@/packages/elevator/elevator.scss';
|
|
30
|
+
import '@/packages/fixednav/fixednav.scss';
|
|
31
|
+
import '@/packages/pagination/pagination.scss';
|
|
32
|
+
import '@/packages/steps/steps.scss';
|
|
33
|
+
import '@/packages/step/step.scss';
|
|
34
|
+
import '@/packages/swiper/swiper.scss';
|
|
35
|
+
import '@/packages/swiperitem/swiperitem.scss';
|
|
36
|
+
import '@/packages/backtop/backtop.scss';
|
|
37
|
+
import '@/packages/tabs/tabs.scss';
|
|
38
|
+
import '@/packages/tabpane/tabpane.scss';
|
|
39
|
+
import '@/packages/rate/rate.scss';
|
|
40
|
+
import '@/packages/input/input.scss';
|
|
41
|
+
import '@/packages/textarea/textarea.scss';
|
|
42
|
+
import '@/packages/inputnumber/inputnumber.scss';
|
|
43
|
+
import '@/packages/shortpassword/shortpassword.scss';
|
|
44
|
+
import '@/packages/radio/radio.scss';
|
|
45
|
+
import '@/packages/radiogroup/radiogroup.scss';
|
|
46
|
+
import '@/packages/checkbox/checkbox.scss';
|
|
47
|
+
import '@/packages/checkboxgroup/checkboxgroup.scss';
|
|
48
|
+
import '@/packages/tag/tag.scss';
|
|
49
|
+
import '@/packages/badge/badge.scss';
|
|
50
|
+
import '@/packages/uploader/uploader.scss';
|
|
51
|
+
import '@/packages/calendar/calendar.scss';
|
|
52
|
+
import '@/packages/calendaritem/calendaritem.scss';
|
|
53
|
+
import '@/packages/datepicker/datepicker.scss';
|
|
54
|
+
import '@/packages/skeleton/skeleton.scss';
|
|
55
|
+
import '@/packages/address/address.scss';
|
|
56
|
+
import '@/packages/barrage/barrage.scss';
|
|
57
|
+
import '@/packages/signature/signature.scss';
|
|
58
|
+
import '@/packages/drag/drag.scss';
|
|
59
|
+
import '@/packages/animatingnumbers/animatingnumbers.scss';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface OverlayProps {
|
|
3
|
+
zIndex: number;
|
|
4
|
+
duration: number;
|
|
5
|
+
overlayClass: string;
|
|
6
|
+
overlayStyle: React.CSSProperties;
|
|
7
|
+
closeOnClickOverlay: boolean;
|
|
8
|
+
visible: boolean;
|
|
9
|
+
lockScroll: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const defaultOverlayProps: OverlayProps;
|
|
12
|
+
export declare const Overlay: FunctionComponent<Partial<OverlayProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface PaginationProps {
|
|
3
|
+
defaultValue: number;
|
|
4
|
+
modelValue: number;
|
|
5
|
+
mode: 'multi' | 'simple';
|
|
6
|
+
prevText: React.ReactNode;
|
|
7
|
+
nextText: React.ReactNode;
|
|
8
|
+
pageCount: string | number;
|
|
9
|
+
totalItems: string | number;
|
|
10
|
+
itemsPerPage: string | number;
|
|
11
|
+
showPageSize: string | number;
|
|
12
|
+
forceEllipses: boolean;
|
|
13
|
+
pageNodeRender: (page: any) => React.ReactNode;
|
|
14
|
+
onChange: (currPage: number) => void;
|
|
15
|
+
updatecurrent: (currPage: number) => void;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const Pagination: FunctionComponent<Partial<PaginationProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|