@nutui/nutui-react 2.0.0-beta.1 → 2.0.0-beta.2
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 +12 -0
- package/dist/esm/ActionSheet.js +2 -2
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Calendar.js +8 -6
- package/dist/esm/CalendarItem.js +288 -291
- package/dist/esm/ConfigProvider.js +6 -483
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/Elevator.js +4 -4
- package/dist/esm/Menu.js +0 -1
- package/dist/esm/NavBar.js +2 -2
- package/dist/esm/NoticeBar.js +2 -2
- package/dist/esm/NumberKeyboard.js +2 -2
- package/dist/esm/Popover.js +6 -7
- package/dist/esm/SearchBar.js +2 -2
- package/dist/esm/ShortPassword.js +4 -4
- package/dist/esm/TrendArrow.js +11 -11
- package/dist/esm/Uploader.js +4 -4
- package/dist/esm/VirtualList.js +3 -8
- package/dist/esm/cascader2.js +2 -2
- package/dist/esm/configprovider2.js +486 -0
- package/dist/esm/date.js +103 -2
- package/dist/esm/nutui-react.es.js +30 -30
- package/dist/esm/popup2.js +5 -5
- package/dist/esm/types/src/packages/calendar/calendar.d.ts +4 -6
- package/dist/esm/types/src/packages/calendar/calendar.taro.d.ts +4 -6
- package/dist/esm/types/src/packages/calendar/type.d.ts +13 -0
- package/dist/esm/types/src/packages/calendar/utils.d.ts +8 -0
- package/dist/esm/types/src/packages/calendaritem/calendaritem.d.ts +25 -27
- package/dist/esm/types/src/packages/calendaritem/calendaritem.taro.d.ts +26 -28
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/elevator/elevator.d.ts +2 -2
- package/dist/esm/types/src/packages/elevator/elevator.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/navbar/demo.d.ts +1 -0
- package/dist/esm/types/src/packages/navbar/demo.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/navbar/navbar.d.ts +1 -1
- package/dist/esm/types/src/packages/navbar/navbar.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/noticebar/noticebar.d.ts +1 -1
- package/dist/esm/types/src/packages/noticebar/noticebar.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +3 -3
- package/dist/esm/types/src/packages/nutui.react.d.ts +5 -5
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +2 -2
- package/dist/esm/types/src/packages/nutui.react.taro.d.ts +5 -5
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +2 -2
- package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +3 -3
- package/dist/esm/types/src/packages/popover/popover.d.ts +2 -2
- package/dist/esm/types/src/packages/popover/popover.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/popup/popup.d.ts +2 -2
- package/dist/esm/types/src/packages/popup/popup.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +1 -1
- package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/trendarrow/trendarrow.d.ts +3 -3
- package/dist/esm/types/src/packages/trendarrow/trendarrow.taro.d.ts +3 -3
- package/dist/esm/types/src/packages/uploader/uploader.d.ts +1 -1
- package/dist/esm/types/src/packages/uploader/uploader.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/virtuallist.d.ts +2 -2
- package/dist/esm/types/src/packages/virtuallist/virtuallist.taro.d.ts +2 -2
- package/dist/esm/types/src/utils/date.d.ts +19 -3
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +788 -700
- package/dist/nutui.react.umd.js +788 -700
- package/dist/packages/calendar/calendar.scss +4 -0
- package/dist/packages/dialog/dialog.scss +1 -1
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/themes/default.scss +2 -2
- package/dist/styles/variables-jmapp.scss +2 -2
- package/dist/styles/variables.scss +2 -2
- package/dist/types/index.d.ts +3 -3
- package/dist/types/packages/calendar/calendar.d.ts +8 -6
- package/dist/types/packages/calendar/type.d.ts +13 -0
- package/dist/types/packages/calendar/utils.d.ts +8 -0
- package/dist/types/packages/calendaritem/calendaritem.d.ts +25 -27
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/elevator/elevator.d.ts +2 -2
- package/dist/types/packages/navbar/navbar.d.ts +1 -1
- package/dist/types/packages/noticebar/noticebar.d.ts +1 -1
- package/dist/types/packages/popover/popover.d.ts +2 -2
- package/dist/types/packages/popup/popup.d.ts +2 -2
- package/dist/types/packages/searchbar/searchbar.d.ts +1 -1
- package/dist/types/packages/trendarrow/trendarrow.d.ts +3 -3
- package/dist/types/packages/uploader/uploader.d.ts +1 -1
- package/dist/types/packages/virtuallist/virtuallist.d.ts +2 -2
- package/dist/types/utils/date.d.ts +19 -3
- package/package.json +1 -1
|
@@ -56,10 +56,10 @@ import InfiniteLoading from '@/packages/infiniteloading';
|
|
|
56
56
|
import NoticeBar from '@/packages/noticebar';
|
|
57
57
|
import Notify from '@/packages/notify';
|
|
58
58
|
import Popover from '@/packages/popover';
|
|
59
|
+
import Popup from '@/packages/popup';
|
|
59
60
|
import PullToRefresh from '@/packages/pulltorefresh';
|
|
60
61
|
import Skeleton from '@/packages/skeleton';
|
|
61
62
|
import Swipe from '@/packages/swipe';
|
|
62
|
-
import Popup from '@/packages/popup';
|
|
63
63
|
import Toast from '@/packages/toast';
|
|
64
64
|
import Animate from '@/packages/animate';
|
|
65
65
|
import AnimatingNumbers from '@/packages/animatingnumbers';
|
|
@@ -73,7 +73,6 @@ import CountDown from '@/packages/countdown';
|
|
|
73
73
|
import Ellipsis from '@/packages/ellipsis';
|
|
74
74
|
import ImagePreview from '@/packages/imagepreview';
|
|
75
75
|
import Indicator from '@/packages/indicator';
|
|
76
|
-
import VirtualList from '@/packages/virtuallist';
|
|
77
76
|
import Pagination from '@/packages/pagination';
|
|
78
77
|
import Price from '@/packages/price';
|
|
79
78
|
import Progress from '@/packages/progress';
|
|
@@ -84,6 +83,7 @@ import SwiperItem from '@/packages/swiperitem';
|
|
|
84
83
|
import Table from '@/packages/table';
|
|
85
84
|
import Tag from '@/packages/tag';
|
|
86
85
|
import Video from '@/packages/video';
|
|
86
|
+
import VirtualList from '@/packages/virtuallist';
|
|
87
87
|
import Barrage from '@/packages/barrage';
|
|
88
88
|
import Card from '@/packages/card';
|
|
89
89
|
import TimeDetail from '@/packages/timedetail';
|
|
@@ -148,10 +148,10 @@ import '@/packages/infiniteloading/infiniteloading.scss';
|
|
|
148
148
|
import '@/packages/noticebar/noticebar.scss';
|
|
149
149
|
import '@/packages/notify/notify.scss';
|
|
150
150
|
import '@/packages/popover/popover.scss';
|
|
151
|
+
import '@/packages/popup/popup.scss';
|
|
151
152
|
import '@/packages/pulltorefresh/pulltorefresh.scss';
|
|
152
153
|
import '@/packages/skeleton/skeleton.scss';
|
|
153
154
|
import '@/packages/swipe/swipe.scss';
|
|
154
|
-
import '@/packages/popup/popup.scss';
|
|
155
155
|
import '@/packages/toast/toast.scss';
|
|
156
156
|
import '@/packages/animate/animate.scss';
|
|
157
157
|
import '@/packages/animatingnumbers/animatingnumbers.scss';
|
|
@@ -165,7 +165,6 @@ import '@/packages/countdown/countdown.scss';
|
|
|
165
165
|
import '@/packages/ellipsis/ellipsis.scss';
|
|
166
166
|
import '@/packages/imagepreview/imagepreview.scss';
|
|
167
167
|
import '@/packages/indicator/indicator.scss';
|
|
168
|
-
import '@/packages/virtuallist/virtuallist.scss';
|
|
169
168
|
import '@/packages/pagination/pagination.scss';
|
|
170
169
|
import '@/packages/price/price.scss';
|
|
171
170
|
import '@/packages/progress/progress.scss';
|
|
@@ -176,10 +175,11 @@ import '@/packages/swiperitem/swiperitem.scss';
|
|
|
176
175
|
import '@/packages/table/table.scss';
|
|
177
176
|
import '@/packages/tag/tag.scss';
|
|
178
177
|
import '@/packages/video/video.scss';
|
|
178
|
+
import '@/packages/virtuallist/virtuallist.scss';
|
|
179
179
|
import '@/packages/barrage/barrage.scss';
|
|
180
180
|
import '@/packages/card/card.scss';
|
|
181
181
|
import '@/packages/timedetail/timedetail.scss';
|
|
182
182
|
import '@/packages/timeselect/timeselect.scss';
|
|
183
183
|
import '@/packages/trendarrow/trendarrow.scss';
|
|
184
184
|
import '@/packages/watermark/watermark.scss';
|
|
185
|
-
export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Col, Divider, Grid, GridItem, Layout, Row, Sticky, BackTop, Elevator, FixedNav, NavBar, SideNavBar, SideNavBarItem, SubSideNavBar, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, Cascader, Checkbox, CheckboxGroup, DatePicker, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, InfiniteLoading, NoticeBar, Notify, Popover, PullToRefresh, Skeleton, Swipe,
|
|
185
|
+
export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Col, Divider, Grid, GridItem, Layout, Row, Sticky, BackTop, Elevator, FixedNav, NavBar, SideNavBar, SideNavBarItem, SubSideNavBar, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, Cascader, Checkbox, CheckboxGroup, DatePicker, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, InfiniteLoading, NoticeBar, Notify, Popover, Popup, PullToRefresh, Skeleton, Swipe, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, Pagination, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Video, VirtualList, Barrage, Card, TimeDetail, TimeSelect, TrendArrow, WaterMark };
|
|
@@ -56,10 +56,10 @@ import '@/packages/infiniteloading/infiniteloading.scss';
|
|
|
56
56
|
import '@/packages/noticebar/noticebar.scss';
|
|
57
57
|
import '@/packages/notify/notify.scss';
|
|
58
58
|
import '@/packages/popover/popover.scss';
|
|
59
|
+
import '@/packages/popup/popup.scss';
|
|
59
60
|
import '@/packages/pulltorefresh/pulltorefresh.scss';
|
|
60
61
|
import '@/packages/skeleton/skeleton.scss';
|
|
61
62
|
import '@/packages/swipe/swipe.scss';
|
|
62
|
-
import '@/packages/popup/popup.scss';
|
|
63
63
|
import '@/packages/toast/toast.scss';
|
|
64
64
|
import '@/packages/animate/animate.scss';
|
|
65
65
|
import '@/packages/animatingnumbers/animatingnumbers.scss';
|
|
@@ -73,7 +73,6 @@ import '@/packages/countdown/countdown.scss';
|
|
|
73
73
|
import '@/packages/ellipsis/ellipsis.scss';
|
|
74
74
|
import '@/packages/imagepreview/imagepreview.scss';
|
|
75
75
|
import '@/packages/indicator/indicator.scss';
|
|
76
|
-
import '@/packages/virtuallist/virtuallist.scss';
|
|
77
76
|
import '@/packages/pagination/pagination.scss';
|
|
78
77
|
import '@/packages/price/price.scss';
|
|
79
78
|
import '@/packages/progress/progress.scss';
|
|
@@ -84,6 +83,7 @@ import '@/packages/swiperitem/swiperitem.scss';
|
|
|
84
83
|
import '@/packages/table/table.scss';
|
|
85
84
|
import '@/packages/tag/tag.scss';
|
|
86
85
|
import '@/packages/video/video.scss';
|
|
86
|
+
import '@/packages/virtuallist/virtuallist.scss';
|
|
87
87
|
import '@/packages/barrage/barrage.scss';
|
|
88
88
|
import '@/packages/card/card.scss';
|
|
89
89
|
import '@/packages/timedetail/timedetail.scss';
|
|
@@ -56,10 +56,10 @@ import InfiniteLoading from '@/packages/infiniteloading/index.taro';
|
|
|
56
56
|
import NoticeBar from '@/packages/noticebar/index.taro';
|
|
57
57
|
import Notify from '@/packages/notify/index.taro';
|
|
58
58
|
import Popover from '@/packages/popover/index.taro';
|
|
59
|
+
import Popup from '@/packages/popup/index.taro';
|
|
59
60
|
import PullToRefresh from '@/packages/pulltorefresh/index.taro';
|
|
60
61
|
import Skeleton from '@/packages/skeleton/index.taro';
|
|
61
62
|
import Swipe from '@/packages/swipe/index.taro';
|
|
62
|
-
import Popup from '@/packages/popup/index.taro';
|
|
63
63
|
import Toast from '@/packages/toast/index.taro';
|
|
64
64
|
import Animate from '@/packages/animate/index.taro';
|
|
65
65
|
import AnimatingNumbers from '@/packages/animatingnumbers/index.taro';
|
|
@@ -73,7 +73,6 @@ import CountDown from '@/packages/countdown/index.taro';
|
|
|
73
73
|
import Ellipsis from '@/packages/ellipsis/index.taro';
|
|
74
74
|
import ImagePreview from '@/packages/imagepreview/index.taro';
|
|
75
75
|
import Indicator from '@/packages/indicator/index.taro';
|
|
76
|
-
import VirtualList from '@/packages/virtuallist/index.taro';
|
|
77
76
|
import Pagination from '@/packages/pagination/index.taro';
|
|
78
77
|
import Price from '@/packages/price/index.taro';
|
|
79
78
|
import Progress from '@/packages/progress/index.taro';
|
|
@@ -84,6 +83,7 @@ import SwiperItem from '@/packages/swiperitem/index.taro';
|
|
|
84
83
|
import Table from '@/packages/table/index.taro';
|
|
85
84
|
import Tag from '@/packages/tag/index.taro';
|
|
86
85
|
import Video from '@/packages/video/index.taro';
|
|
86
|
+
import VirtualList from '@/packages/virtuallist/index.taro';
|
|
87
87
|
import Barrage from '@/packages/barrage/index.taro';
|
|
88
88
|
import Card from '@/packages/card/index.taro';
|
|
89
89
|
import TimeDetail from '@/packages/timedetail/index.taro';
|
|
@@ -148,10 +148,10 @@ import '@/packages/infiniteloading/infiniteloading.scss';
|
|
|
148
148
|
import '@/packages/noticebar/noticebar.scss';
|
|
149
149
|
import '@/packages/notify/notify.scss';
|
|
150
150
|
import '@/packages/popover/popover.scss';
|
|
151
|
+
import '@/packages/popup/popup.scss';
|
|
151
152
|
import '@/packages/pulltorefresh/pulltorefresh.scss';
|
|
152
153
|
import '@/packages/skeleton/skeleton.scss';
|
|
153
154
|
import '@/packages/swipe/swipe.scss';
|
|
154
|
-
import '@/packages/popup/popup.scss';
|
|
155
155
|
import '@/packages/toast/toast.scss';
|
|
156
156
|
import '@/packages/animate/animate.scss';
|
|
157
157
|
import '@/packages/animatingnumbers/animatingnumbers.scss';
|
|
@@ -165,7 +165,6 @@ import '@/packages/countdown/countdown.scss';
|
|
|
165
165
|
import '@/packages/ellipsis/ellipsis.scss';
|
|
166
166
|
import '@/packages/imagepreview/imagepreview.scss';
|
|
167
167
|
import '@/packages/indicator/indicator.scss';
|
|
168
|
-
import '@/packages/virtuallist/virtuallist.scss';
|
|
169
168
|
import '@/packages/pagination/pagination.scss';
|
|
170
169
|
import '@/packages/price/price.scss';
|
|
171
170
|
import '@/packages/progress/progress.scss';
|
|
@@ -176,10 +175,11 @@ import '@/packages/swiperitem/swiperitem.scss';
|
|
|
176
175
|
import '@/packages/table/table.scss';
|
|
177
176
|
import '@/packages/tag/tag.scss';
|
|
178
177
|
import '@/packages/video/video.scss';
|
|
178
|
+
import '@/packages/virtuallist/virtuallist.scss';
|
|
179
179
|
import '@/packages/barrage/barrage.scss';
|
|
180
180
|
import '@/packages/card/card.scss';
|
|
181
181
|
import '@/packages/timedetail/timedetail.scss';
|
|
182
182
|
import '@/packages/timeselect/timeselect.scss';
|
|
183
183
|
import '@/packages/trendarrow/trendarrow.scss';
|
|
184
184
|
import '@/packages/watermark/watermark.scss';
|
|
185
|
-
export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Col, Divider, Grid, GridItem, Layout, Row, Sticky, BackTop, Elevator, FixedNav, NavBar, SideNavBar, SideNavBarItem, SubSideNavBar, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, Cascader, Checkbox, CheckboxGroup, DatePicker, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, InfiniteLoading, NoticeBar, Notify, Popover, PullToRefresh, Skeleton, Swipe,
|
|
185
|
+
export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Col, Divider, Grid, GridItem, Layout, Row, Sticky, BackTop, Elevator, FixedNav, NavBar, SideNavBar, SideNavBarItem, SubSideNavBar, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, Cascader, Checkbox, CheckboxGroup, DatePicker, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, InfiniteLoading, NoticeBar, Notify, Popover, Popup, PullToRefresh, Skeleton, Swipe, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, Pagination, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Video, VirtualList, Barrage, Card, TimeDetail, TimeSelect, TrendArrow, WaterMark };
|
|
@@ -56,10 +56,10 @@ import '@/packages/infiniteloading/infiniteloading.scss';
|
|
|
56
56
|
import '@/packages/noticebar/noticebar.scss';
|
|
57
57
|
import '@/packages/notify/notify.scss';
|
|
58
58
|
import '@/packages/popover/popover.scss';
|
|
59
|
+
import '@/packages/popup/popup.scss';
|
|
59
60
|
import '@/packages/pulltorefresh/pulltorefresh.scss';
|
|
60
61
|
import '@/packages/skeleton/skeleton.scss';
|
|
61
62
|
import '@/packages/swipe/swipe.scss';
|
|
62
|
-
import '@/packages/popup/popup.scss';
|
|
63
63
|
import '@/packages/toast/toast.scss';
|
|
64
64
|
import '@/packages/animate/animate.scss';
|
|
65
65
|
import '@/packages/animatingnumbers/animatingnumbers.scss';
|
|
@@ -73,7 +73,6 @@ import '@/packages/countdown/countdown.scss';
|
|
|
73
73
|
import '@/packages/ellipsis/ellipsis.scss';
|
|
74
74
|
import '@/packages/imagepreview/imagepreview.scss';
|
|
75
75
|
import '@/packages/indicator/indicator.scss';
|
|
76
|
-
import '@/packages/virtuallist/virtuallist.scss';
|
|
77
76
|
import '@/packages/pagination/pagination.scss';
|
|
78
77
|
import '@/packages/price/price.scss';
|
|
79
78
|
import '@/packages/progress/progress.scss';
|
|
@@ -84,6 +83,7 @@ import '@/packages/swiperitem/swiperitem.scss';
|
|
|
84
83
|
import '@/packages/table/table.scss';
|
|
85
84
|
import '@/packages/tag/tag.scss';
|
|
86
85
|
import '@/packages/video/video.scss';
|
|
86
|
+
import '@/packages/virtuallist/virtuallist.scss';
|
|
87
87
|
import '@/packages/barrage/barrage.scss';
|
|
88
88
|
import '@/packages/card/card.scss';
|
|
89
89
|
import '@/packages/timedetail/timedetail.scss';
|
|
@@ -56,10 +56,10 @@ import InfiniteLoading from '@/packages/infiniteloading/index.taro';
|
|
|
56
56
|
import NoticeBar from '@/packages/noticebar/index.taro';
|
|
57
57
|
import Notify from '@/packages/notify/index.taro';
|
|
58
58
|
import Popover from '@/packages/popover/index.taro';
|
|
59
|
+
import Popup from '@/packages/popup/index.taro';
|
|
59
60
|
import PullToRefresh from '@/packages/pulltorefresh/index.taro';
|
|
60
61
|
import Skeleton from '@/packages/skeleton/index.taro';
|
|
61
62
|
import Swipe from '@/packages/swipe/index.taro';
|
|
62
|
-
import Popup from '@/packages/popup/index.taro';
|
|
63
63
|
import Toast from '@/packages/toast/index.taro';
|
|
64
64
|
import Animate from '@/packages/animate/index.taro';
|
|
65
65
|
import AnimatingNumbers from '@/packages/animatingnumbers/index.taro';
|
|
@@ -73,7 +73,6 @@ import CountDown from '@/packages/countdown/index.taro';
|
|
|
73
73
|
import Ellipsis from '@/packages/ellipsis/index.taro';
|
|
74
74
|
import ImagePreview from '@/packages/imagepreview/index.taro';
|
|
75
75
|
import Indicator from '@/packages/indicator/index.taro';
|
|
76
|
-
import VirtualList from '@/packages/virtuallist/index.taro';
|
|
77
76
|
import Pagination from '@/packages/pagination/index.taro';
|
|
78
77
|
import Price from '@/packages/price/index.taro';
|
|
79
78
|
import Progress from '@/packages/progress/index.taro';
|
|
@@ -84,10 +83,11 @@ import SwiperItem from '@/packages/swiperitem/index.taro';
|
|
|
84
83
|
import Table from '@/packages/table/index.taro';
|
|
85
84
|
import Tag from '@/packages/tag/index.taro';
|
|
86
85
|
import Video from '@/packages/video/index.taro';
|
|
86
|
+
import VirtualList from '@/packages/virtuallist/index.taro';
|
|
87
87
|
import Barrage from '@/packages/barrage/index.taro';
|
|
88
88
|
import Card from '@/packages/card/index.taro';
|
|
89
89
|
import TimeDetail from '@/packages/timedetail/index.taro';
|
|
90
90
|
import TimeSelect from '@/packages/timeselect/index.taro';
|
|
91
91
|
import TrendArrow from '@/packages/trendarrow/index.taro';
|
|
92
92
|
import WaterMark from '@/packages/watermark/index.taro';
|
|
93
|
-
export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Col, Divider, Grid, GridItem, Layout, Row, Sticky, BackTop, Elevator, FixedNav, NavBar, SideNavBar, SideNavBarItem, SubSideNavBar, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, Cascader, Checkbox, CheckboxGroup, DatePicker, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, InfiniteLoading, NoticeBar, Notify, Popover, PullToRefresh, Skeleton, Swipe,
|
|
93
|
+
export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Col, Divider, Grid, GridItem, Layout, Row, Sticky, BackTop, Elevator, FixedNav, NavBar, SideNavBar, SideNavBarItem, SubSideNavBar, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, Cascader, Checkbox, CheckboxGroup, DatePicker, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, InfiniteLoading, NoticeBar, Notify, Popover, Popup, PullToRefresh, Skeleton, Swipe, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, Pagination, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Video, VirtualList, Barrage, Card, TimeDetail, TimeSelect, TrendArrow, WaterMark };
|
|
@@ -15,8 +15,8 @@ export interface PopoverProps extends PopupProps {
|
|
|
15
15
|
offset: string[] | number[];
|
|
16
16
|
targetId: string;
|
|
17
17
|
showArrow: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
closeOnOutsideClick: boolean;
|
|
19
|
+
closeOnActionClick: boolean;
|
|
20
20
|
children?: React.ReactNode;
|
|
21
21
|
onClick: () => void;
|
|
22
22
|
onOpen: () => void;
|
|
@@ -15,8 +15,8 @@ export interface PopoverProps extends PopupProps {
|
|
|
15
15
|
offset: string[] | number[];
|
|
16
16
|
targetId: string;
|
|
17
17
|
showArrow: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
closeOnOutsideClick: boolean;
|
|
19
|
+
closeOnActionClick: boolean;
|
|
20
20
|
children?: React.ReactNode;
|
|
21
21
|
onClick: () => void;
|
|
22
22
|
onOpen: () => void;
|
|
@@ -17,8 +17,8 @@ export interface PopupProps extends OverlayProps {
|
|
|
17
17
|
round: boolean;
|
|
18
18
|
onOpen: () => void;
|
|
19
19
|
onClose: () => void;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
onOverlayClick: (e: MouseEvent) => boolean | void;
|
|
21
|
+
onCloseIconClick: (e: MouseEvent) => boolean | void;
|
|
22
22
|
}
|
|
23
23
|
export declare const Popup: FunctionComponent<Partial<PopupProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>>;
|
|
24
24
|
export {};
|
|
@@ -18,8 +18,8 @@ export interface PopupProps extends OverlayProps {
|
|
|
18
18
|
round: boolean;
|
|
19
19
|
onOpen: () => void;
|
|
20
20
|
onClose: () => void;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
onOverlayClick: (e: ITouchEvent) => boolean | void;
|
|
22
|
+
onCloseIconClick: (e: ITouchEvent) => boolean | void;
|
|
23
23
|
}
|
|
24
24
|
export declare const Popup: FunctionComponent<Partial<PopupProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick' | 'title'>>;
|
|
25
25
|
export {};
|
|
@@ -32,6 +32,6 @@ export interface SearchBarProps extends BasicComponent {
|
|
|
32
32
|
/** 点击清除按钮后触发 */
|
|
33
33
|
onClear?: (event: Event) => void;
|
|
34
34
|
/** 点击输入区域时触发 */
|
|
35
|
-
|
|
35
|
+
onInputClick?: (event: Event) => void;
|
|
36
36
|
}
|
|
37
37
|
export declare const SearchBar: FunctionComponent<Partial<SearchBarProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur'>>;
|
|
@@ -32,6 +32,6 @@ export interface SearchBarProps extends BasicComponent {
|
|
|
32
32
|
/** 点击清除按钮后触发 */
|
|
33
33
|
onClear?: (event: Event) => void;
|
|
34
34
|
/** 点击输入区域时触发 */
|
|
35
|
-
|
|
35
|
+
onInputClick?: (event: Event) => void;
|
|
36
36
|
}
|
|
37
37
|
export declare const SearchBar: FunctionComponent<Partial<SearchBarProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur'>>;
|
|
@@ -5,12 +5,12 @@ export interface TrendArrowProps extends BasicComponent {
|
|
|
5
5
|
digits: number;
|
|
6
6
|
symbol: boolean;
|
|
7
7
|
zero: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
left: boolean;
|
|
9
|
+
sync: boolean;
|
|
10
10
|
color: string;
|
|
11
11
|
riseColor: string;
|
|
12
12
|
dropColor: string;
|
|
13
13
|
riseIcon: React.ReactNode;
|
|
14
|
-
|
|
14
|
+
dropIcon: React.ReactNode;
|
|
15
15
|
}
|
|
16
16
|
export declare const TrendArrow: FunctionComponent<Partial<TrendArrowProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -5,12 +5,12 @@ export interface TrendArrowProps extends BasicComponent {
|
|
|
5
5
|
digits: number;
|
|
6
6
|
symbol: boolean;
|
|
7
7
|
zero: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
left: boolean;
|
|
9
|
+
sync: boolean;
|
|
10
10
|
color: string;
|
|
11
11
|
riseColor: string;
|
|
12
12
|
dropColor: string;
|
|
13
13
|
riseIcon: React.ReactNode;
|
|
14
|
-
|
|
14
|
+
dropIcon: React.ReactNode;
|
|
15
15
|
}
|
|
16
16
|
export declare const TrendArrow: FunctionComponent<Partial<TrendArrowProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -12,7 +12,7 @@ export interface UploaderProps extends BasicComponent {
|
|
|
12
12
|
defaultValue?: FileType<React.ReactNode>[];
|
|
13
13
|
value?: FileType<string>[];
|
|
14
14
|
previewType: 'picture' | 'list';
|
|
15
|
-
|
|
15
|
+
fit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
16
16
|
uploadIcon?: React.ReactNode;
|
|
17
17
|
uploadLabel?: React.ReactNode;
|
|
18
18
|
name: string;
|
|
@@ -38,7 +38,7 @@ export interface UploaderProps extends BasicComponent {
|
|
|
38
38
|
defaultValue?: FileType<React.ReactNode>[];
|
|
39
39
|
value?: FileType<string>[];
|
|
40
40
|
previewType: 'picture' | 'list';
|
|
41
|
-
|
|
41
|
+
fit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
42
42
|
uploadIcon?: React.ReactNode;
|
|
43
43
|
uploadLabel?: React.ReactNode;
|
|
44
44
|
name: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import type { Data } from './type';
|
|
3
3
|
import { BasicComponent } from '@/utils/typings';
|
|
4
4
|
export interface VirtualListProps extends BasicComponent {
|
|
5
5
|
list: Array<Data>;
|
|
6
6
|
containerHeight: number;
|
|
7
|
-
|
|
7
|
+
itemRender: (data: any, dataIndex: number, index: number) => ReactNode;
|
|
8
8
|
itemHeight: number;
|
|
9
9
|
itemEqual: boolean;
|
|
10
10
|
direction: 'vertical' | 'horizontal';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { Data } from './type';
|
|
3
3
|
import { BasicComponent } from '@/utils/typings';
|
|
4
4
|
export interface VirtualListProps extends BasicComponent {
|
|
5
5
|
list: Array<Data>;
|
|
6
6
|
containerHeight: number;
|
|
7
|
-
|
|
7
|
+
itemRender: (data: any, dataIndex: number, index: number) => ReactNode;
|
|
8
8
|
itemHeight: number;
|
|
9
9
|
itemEqual: boolean;
|
|
10
10
|
overscan: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const Utils: {
|
|
1
|
+
export declare const Utils: {
|
|
2
2
|
/**
|
|
3
3
|
* 是否为闫年
|
|
4
4
|
* @return {Boolse} true|false
|
|
@@ -10,7 +10,7 @@ declare const Utils: {
|
|
|
10
10
|
*/
|
|
11
11
|
getWhatDay(year: number, month: number, day: number): string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* 返回上一个月在当前面板中的天数
|
|
14
14
|
* @return {Number}
|
|
15
15
|
*/
|
|
16
16
|
getMonthPreDay(year: number, month: number): number;
|
|
@@ -45,5 +45,21 @@ declare const Utils: {
|
|
|
45
45
|
* @return {Boolean}
|
|
46
46
|
*/
|
|
47
47
|
isEqual(date1: string | undefined, date2: string): boolean;
|
|
48
|
+
getMonthWeek(year: string, month: string, date: string, firstDayOfWeek?: number): number;
|
|
49
|
+
getYearWeek(year: string, month: string, date: string, firstDayOfWeek?: number): number;
|
|
50
|
+
getWeekDate(year: string, month: string, date: string, firstDayOfWeek?: number): string[];
|
|
51
|
+
formatResultDate(date: string): string[];
|
|
48
52
|
};
|
|
49
|
-
export
|
|
53
|
+
export declare const getCurrMonthData: (type: string, year: number, month: number) => (string | number)[];
|
|
54
|
+
export declare const getDaysStatus: (type: string, year: number, month: number) => {
|
|
55
|
+
day: number;
|
|
56
|
+
type: string;
|
|
57
|
+
year: number;
|
|
58
|
+
month: number;
|
|
59
|
+
}[];
|
|
60
|
+
export declare const getPreMonthDates: (type: string, year: number, month: number, firstDayOfWeek: number) => {
|
|
61
|
+
day: number;
|
|
62
|
+
type: string;
|
|
63
|
+
preYear: number;
|
|
64
|
+
preMonth: number;
|
|
65
|
+
}[];
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED