@nutui/nutui-react 2.0.0-alpha.13 → 2.0.0-alpha.15
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 +30 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Avatar.js +1 -1
- package/dist/esm/AvatarGroup.js +1 -1
- package/dist/esm/Barrage/style/style.css +1 -1
- package/dist/esm/Barrage.js +23 -24
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Card/style/style.css +1 -1
- package/dist/esm/Card.js +35 -22
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/CircleProgress.js +1 -1
- package/dist/esm/ConfigProvider.js +1 -1
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/InfiniteLoading/style/style.css +1 -0
- package/dist/esm/{Infiniteloading.js → InfiniteLoading.js} +25 -37
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Picker.js +37 -40
- package/dist/esm/Popover/style/index.js +1 -1
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popover.js +214 -166
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/SideNavBar.js +17 -15
- package/dist/esm/SideNavBarItem/style/style.css +1 -1
- package/dist/esm/SideNavBarItem.js +5 -4
- package/dist/esm/Signature/style/index.js +1 -1
- package/dist/esm/Signature/style/style.css +1 -1
- package/dist/esm/Signature.js +27 -35
- package/dist/esm/Step.js +1 -1
- package/dist/esm/Steps.js +1 -1
- package/dist/esm/SubSideNavBar/style/style.css +1 -1
- package/dist/esm/SubSideNavBar.js +12 -12
- package/dist/esm/Swiper.js +1 -1
- package/dist/esm/SwiperItem.js +1 -1
- package/dist/esm/Tag/style/style.css +1 -1
- package/dist/esm/Tag.js +26 -30
- package/dist/esm/TextArea/style/style.css +1 -1
- package/dist/esm/TimeDetail/style/style.css +1 -1
- package/dist/esm/TimeDetail.js +39 -41
- package/dist/esm/TimeSelect/style/index.js +0 -1
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/TimeSelect.js +91 -114
- package/dist/esm/context.js +16 -2
- package/dist/esm/context2.js +2 -2
- package/dist/esm/context4.js +5 -0
- package/dist/esm/index.js +11 -2
- package/dist/esm/nutui-react.es.js +8 -10
- package/dist/esm/types/src/locales/base.d.ts +1 -1
- package/dist/esm/types/src/packages/barrage/barrage.d.ts +6 -7
- package/dist/esm/types/src/packages/barrage/barrage.taro.d.ts +6 -7
- package/dist/esm/types/src/packages/barrage/index.d.ts +1 -0
- package/dist/esm/types/src/packages/barrage/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/button/button.d.ts +1 -0
- package/dist/esm/types/src/packages/card/card.d.ts +8 -9
- package/dist/esm/types/src/packages/card/card.taro.d.ts +8 -9
- package/dist/esm/types/src/packages/card/index.d.ts +1 -0
- package/dist/esm/types/src/packages/card/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/imagepreview/imagepreview.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/infiniteloading/demo.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/infiniteloading/index.d.ts +3 -2
- package/dist/esm/types/src/packages/infiniteloading/index.taro.d.ts +3 -2
- package/dist/esm/types/src/packages/infiniteloading/infiniteloading.d.ts +9 -14
- package/dist/esm/types/src/packages/infiniteloading/infiniteloading.taro.d.ts +8 -12
- package/dist/esm/types/src/packages/input/input.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/menu/menu.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +2 -3
- package/dist/esm/types/src/packages/nutui.react.d.ts +2 -4
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +0 -1
- package/dist/esm/types/src/packages/nutui.react.taro.d.ts +1 -3
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +0 -1
- package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +1 -2
- package/dist/esm/types/src/packages/picker/doc.en.d.ts +9 -9
- package/dist/esm/types/src/packages/popover/demo.d.ts +3 -2
- package/dist/esm/types/src/packages/popover/demo.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/popover/index.d.ts +1 -0
- package/dist/esm/types/src/packages/popover/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/popover/popover.d.ts +20 -9
- package/dist/esm/types/src/packages/popover/popover.taro.d.ts +20 -10
- package/dist/esm/types/src/packages/sidenavbar/index.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbar/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbar/sidenavbar.d.ts +5 -9
- package/dist/esm/types/src/packages/sidenavbar/sidenavbar.taro.d.ts +5 -9
- package/dist/esm/types/src/packages/sidenavbaritem/index.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbaritem/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.d.ts +3 -3
- package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.taro.d.ts +3 -3
- package/dist/esm/types/src/packages/signature/index.d.ts +1 -0
- package/dist/esm/types/src/packages/signature/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/signature/signature.d.ts +10 -8
- package/dist/esm/types/src/packages/signature/signature.taro.d.ts +7 -12
- package/dist/esm/types/src/packages/subsidenavbar/index.d.ts +1 -0
- package/dist/esm/types/src/packages/subsidenavbar/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.d.ts +3 -3
- package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.taro.d.ts +3 -3
- package/dist/esm/types/src/packages/tag/index.d.ts +1 -0
- package/dist/esm/types/src/packages/tag/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/tag/tag.d.ts +4 -6
- package/dist/esm/types/src/packages/tag/tag.taro.d.ts +4 -6
- package/dist/esm/types/src/packages/timedetail/index.d.ts +1 -2
- package/dist/esm/types/src/packages/timedetail/timedetail.d.ts +9 -11
- package/dist/esm/types/src/packages/timedetail/timedetail.taro.d.ts +9 -11
- package/dist/esm/types/src/packages/timeselect/demo.taro.d.ts +0 -4
- package/dist/esm/types/src/packages/timeselect/index.d.ts +1 -0
- package/dist/esm/types/src/packages/timeselect/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/timeselect/timeselect.d.ts +25 -20
- package/dist/esm/types/src/packages/timeselect/timeselect.taro.d.ts +25 -20
- package/dist/esm/types/src/utils/index.d.ts +1 -0
- package/dist/esm/types/src/utils/use-click-away.d.ts +3 -0
- package/dist/locales/base.d.ts +1 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +2 -2
- package/dist/locales/id-ID.js +2 -2
- package/dist/locales/tr-TR.js +2 -2
- package/dist/locales/zh-CN.js +2 -2
- package/dist/locales/zh-TW.js +2 -2
- package/dist/locales/zh-UG.js +2 -2
- package/dist/nutui.react.es.js +909 -820
- package/dist/nutui.react.umd.js +909 -820
- package/dist/packages/barrage/barrage.scss +0 -13
- package/dist/packages/card/card.scss +8 -14
- package/dist/packages/infiniteloading/infiniteloading.scss +2 -25
- package/dist/packages/popover/popover.scss +158 -230
- package/dist/packages/popup/popup.scss +36 -0
- package/dist/packages/sidenavbar/sidenavbar.scss +10 -16
- package/dist/packages/sidenavbaritem/sidenavbaritem.scss +7 -19
- package/dist/packages/signature/signature.scss +1 -18
- package/dist/packages/subsidenavbar/subsidenavbar.scss +10 -19
- package/dist/packages/tag/tag.scss +10 -17
- package/dist/packages/timedetail/timedetail.scss +12 -37
- package/dist/packages/timeselect/timeselect.scss +15 -44
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/themes/default.scss +0 -1
- package/dist/styles/variables-jmapp.scss +85 -144
- package/dist/styles/variables.scss +96 -155
- package/dist/types/index.d.ts +2 -3
- package/dist/types/locales/base.d.ts +1 -1
- package/dist/types/packages/barrage/barrage.d.ts +32 -9
- package/dist/types/packages/barrage/index.d.ts +1 -0
- package/dist/types/packages/button/button.d.ts +1 -0
- package/dist/types/packages/card/card.d.ts +57 -14
- package/dist/types/packages/card/index.d.ts +1 -0
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/infiniteloading/index.d.ts +3 -2
- package/dist/types/packages/infiniteloading/infiniteloading.d.ts +57 -18
- package/dist/types/packages/popover/index.d.ts +1 -0
- package/dist/types/packages/popover/popover.d.ts +99 -12
- package/dist/types/packages/sidenavbar/index.d.ts +1 -0
- package/dist/types/packages/sidenavbar/sidenavbar.d.ts +33 -13
- package/dist/types/packages/sidenavbaritem/index.d.ts +1 -0
- package/dist/types/packages/sidenavbaritem/sidenavbaritem.d.ts +3 -3
- package/dist/types/packages/signature/index.d.ts +1 -0
- package/dist/types/packages/signature/signature.d.ts +38 -12
- package/dist/types/packages/subsidenavbar/index.d.ts +1 -0
- package/dist/types/packages/subsidenavbar/subsidenavbar.d.ts +3 -3
- package/dist/types/packages/tag/index.d.ts +1 -0
- package/dist/types/packages/tag/tag.d.ts +52 -14
- package/dist/types/packages/timedetail/index.d.ts +1 -2
- package/dist/types/packages/timedetail/timedetail.d.ts +9 -11
- package/dist/types/packages/timeselect/index.d.ts +1 -0
- package/dist/types/packages/timeselect/timeselect.d.ts +62 -21
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/use-click-away.d.ts +3 -0
- package/package.json +1 -1
- package/dist/esm/Infiniteloading/style/style.css +0 -1
- package/dist/esm/TimePannel/style/css.js +0 -1
- package/dist/esm/TimePannel/style/index.js +0 -2
- package/dist/esm/TimePannel/style/style.css +0 -1
- package/dist/esm/TimePannel.js +0 -47
- package/dist/esm/offsetContext.js +0 -19
- package/dist/esm/types/src/packages/popover/Trigger.d.ts +0 -19
- package/dist/esm/types/src/packages/sidenavbar/type.d.ts +0 -34
- package/dist/esm/types/src/packages/timedetail/demo.d.ts +0 -3
- package/dist/esm/types/src/packages/timedetail/demo.taro.d.ts +0 -3
- package/dist/esm/types/src/packages/timepannel/demo.d.ts +0 -3
- package/dist/esm/types/src/packages/timepannel/demo.taro.d.ts +0 -3
- package/dist/esm/types/src/packages/timepannel/index.d.ts +0 -2
- package/dist/esm/types/src/packages/timepannel/index.taro.d.ts +0 -2
- package/dist/esm/types/src/packages/timepannel/timepannel.d.ts +0 -8
- package/dist/esm/types/src/packages/timepannel/timepannel.taro.d.ts +0 -8
- package/dist/packages/timepannel/timepannel.scss +0 -17
- package/dist/types/packages/popover/Trigger.d.ts +0 -19
- package/dist/types/packages/timepannel/index.d.ts +0 -2
- package/dist/types/packages/timepannel/timepannel.d.ts +0 -8
- /package/dist/esm/{Infiniteloading → InfiniteLoading}/style/css.js +0 -0
- /package/dist/esm/{Infiniteloading → InfiniteLoading}/style/index.js +0 -0
- /package/dist/esm/types/src/packages/sidenavbar/{offsetContext.d.ts → context.d.ts} +0 -0
- /package/dist/types/packages/sidenavbar/{offsetContext.d.ts → context.d.ts} +0 -0
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { InfiniteLoading } from './infiniteloading';
|
|
2
|
+
export type { InfiniteLoadingProps } from './infiniteloading';
|
|
3
|
+
export default InfiniteLoading;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { InfiniteLoading } from './infiniteloading.taro';
|
|
2
|
+
export type { InfiniteLoadingProps } from './infiniteloading.taro';
|
|
3
|
+
export default InfiniteLoading;
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
|
-
export interface
|
|
3
|
+
export interface InfiniteLoadingProps extends BasicComponent {
|
|
4
4
|
hasMore: boolean;
|
|
5
5
|
threshold: number;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
loadIcon: ReactNode;
|
|
13
|
-
loadingText: string;
|
|
14
|
-
loadMoreText: string;
|
|
15
|
-
className: string;
|
|
16
|
-
style: React.CSSProperties;
|
|
6
|
+
target: string;
|
|
7
|
+
capture: boolean;
|
|
8
|
+
pullRefresh: boolean;
|
|
9
|
+
pullingText: ReactNode;
|
|
10
|
+
loadingText: ReactNode;
|
|
11
|
+
loadMoreText: ReactNode;
|
|
17
12
|
onRefresh: (param: () => void) => void;
|
|
18
13
|
onLoadMore: (param: () => void) => void;
|
|
19
|
-
|
|
14
|
+
onScroll: (param: number) => void;
|
|
20
15
|
}
|
|
21
|
-
export declare const
|
|
16
|
+
export declare const InfiniteLoading: FunctionComponent<Partial<InfiniteLoadingProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onScroll'>>;
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
|
-
export interface
|
|
3
|
+
export interface InfiniteLoadingProps extends BasicComponent {
|
|
4
4
|
hasMore: boolean;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
loadIcon: ReactNode;
|
|
11
|
-
loadingText: string;
|
|
5
|
+
threshold: number;
|
|
6
|
+
target: string;
|
|
7
|
+
pullRefresh: boolean;
|
|
8
|
+
pullingText: ReactNode;
|
|
9
|
+
loadingText: ReactNode;
|
|
12
10
|
loadMoreText: string;
|
|
13
|
-
className: string;
|
|
14
|
-
style: React.CSSProperties;
|
|
15
11
|
onRefresh: (param: () => void) => void;
|
|
16
12
|
onLoadMore: (param: () => void) => void;
|
|
17
|
-
|
|
13
|
+
onScroll: (param: number) => void;
|
|
18
14
|
}
|
|
19
|
-
export declare const
|
|
15
|
+
export declare const InfiniteLoading: FunctionComponent<Partial<InfiniteLoadingProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onScroll'>>;
|
|
@@ -26,4 +26,4 @@ export interface InputProps extends BasicComponent {
|
|
|
26
26
|
onClear?: (value: string) => void;
|
|
27
27
|
onClick?: (e: ITouchEvent) => void;
|
|
28
28
|
}
|
|
29
|
-
export declare const Input: React.ForwardRefExoticComponent<Partial<InputProps> & Partial<Omit<TaroInputProps, "type" | "ref" | "onFocus" | "onBlur">> & React.RefAttributes<unknown>>;
|
|
29
|
+
export declare const Input: React.ForwardRefExoticComponent<Partial<InputProps> & Partial<Omit<TaroInputProps, "type" | "ref" | "onFocus" | "onBlur" | "password" | "maxlength">> & React.RefAttributes<unknown>>;
|
|
@@ -2,7 +2,7 @@ import React, { FunctionComponent } from 'react';
|
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
3
|
export interface MenuProps extends BasicComponent {
|
|
4
4
|
activeColor: string;
|
|
5
|
-
|
|
5
|
+
closeOnOverlayClick: boolean;
|
|
6
6
|
scrollFixed: boolean | string | number;
|
|
7
7
|
lockScroll: boolean;
|
|
8
8
|
icon: React.ReactNode;
|
|
@@ -52,7 +52,7 @@ import Badge from '@/packages/badge';
|
|
|
52
52
|
import Dialog from '@/packages/dialog';
|
|
53
53
|
import Drag from '@/packages/drag';
|
|
54
54
|
import Empty from '@/packages/empty';
|
|
55
|
-
import
|
|
55
|
+
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';
|
|
@@ -87,8 +87,7 @@ import Video from '@/packages/video';
|
|
|
87
87
|
import Barrage from '@/packages/barrage';
|
|
88
88
|
import Card from '@/packages/card';
|
|
89
89
|
import TimeDetail from '@/packages/timedetail';
|
|
90
|
-
import TimePannel from '@/packages/timepannel';
|
|
91
90
|
import TimeSelect from '@/packages/timeselect';
|
|
92
91
|
import TrendArrow from '@/packages/trendarrow';
|
|
93
92
|
import WaterMark from '@/packages/watermark';
|
|
94
|
-
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,
|
|
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, Popup, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, VirtualList, Pagination, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Video, Barrage, Card, TimeDetail, TimeSelect, TrendArrow, WaterMark };
|
|
@@ -52,7 +52,7 @@ import Badge from '@/packages/badge';
|
|
|
52
52
|
import Dialog from '@/packages/dialog';
|
|
53
53
|
import Drag from '@/packages/drag';
|
|
54
54
|
import Empty from '@/packages/empty';
|
|
55
|
-
import
|
|
55
|
+
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';
|
|
@@ -87,7 +87,6 @@ import Video from '@/packages/video';
|
|
|
87
87
|
import Barrage from '@/packages/barrage';
|
|
88
88
|
import Card from '@/packages/card';
|
|
89
89
|
import TimeDetail from '@/packages/timedetail';
|
|
90
|
-
import TimePannel from '@/packages/timepannel';
|
|
91
90
|
import TimeSelect from '@/packages/timeselect';
|
|
92
91
|
import TrendArrow from '@/packages/trendarrow';
|
|
93
92
|
import WaterMark from '@/packages/watermark';
|
|
@@ -180,8 +179,7 @@ import '@/packages/video/video.scss';
|
|
|
180
179
|
import '@/packages/barrage/barrage.scss';
|
|
181
180
|
import '@/packages/card/card.scss';
|
|
182
181
|
import '@/packages/timedetail/timedetail.scss';
|
|
183
|
-
import '@/packages/timepannel/timepannel.scss';
|
|
184
182
|
import '@/packages/timeselect/timeselect.scss';
|
|
185
183
|
import '@/packages/trendarrow/trendarrow.scss';
|
|
186
184
|
import '@/packages/watermark/watermark.scss';
|
|
187
|
-
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,
|
|
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, Popup, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, VirtualList, Pagination, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Video, Barrage, Card, TimeDetail, TimeSelect, TrendArrow, WaterMark };
|
|
@@ -87,7 +87,6 @@ import '@/packages/video/video.scss';
|
|
|
87
87
|
import '@/packages/barrage/barrage.scss';
|
|
88
88
|
import '@/packages/card/card.scss';
|
|
89
89
|
import '@/packages/timedetail/timedetail.scss';
|
|
90
|
-
import '@/packages/timepannel/timepannel.scss';
|
|
91
90
|
import '@/packages/timeselect/timeselect.scss';
|
|
92
91
|
import '@/packages/trendarrow/trendarrow.scss';
|
|
93
92
|
import '@/packages/watermark/watermark.scss';
|
|
@@ -87,7 +87,6 @@ import Video from '@/packages/video/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
|
-
import TimePannel from '@/packages/timepannel/index.taro';
|
|
91
90
|
import TimeSelect from '@/packages/timeselect/index.taro';
|
|
92
91
|
import TrendArrow from '@/packages/trendarrow/index.taro';
|
|
93
92
|
import WaterMark from '@/packages/watermark/index.taro';
|
|
@@ -180,8 +179,7 @@ import '@/packages/video/video.scss';
|
|
|
180
179
|
import '@/packages/barrage/barrage.scss';
|
|
181
180
|
import '@/packages/card/card.scss';
|
|
182
181
|
import '@/packages/timedetail/timedetail.scss';
|
|
183
|
-
import '@/packages/timepannel/timepannel.scss';
|
|
184
182
|
import '@/packages/timeselect/timeselect.scss';
|
|
185
183
|
import '@/packages/trendarrow/trendarrow.scss';
|
|
186
184
|
import '@/packages/watermark/watermark.scss';
|
|
187
|
-
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, Popup, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, VirtualList, Pagination, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Video, Barrage, Card, TimeDetail,
|
|
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, Popup, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, VirtualList, Pagination, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Video, Barrage, Card, TimeDetail, TimeSelect, TrendArrow, WaterMark };
|
|
@@ -87,7 +87,6 @@ import '@/packages/video/video.scss';
|
|
|
87
87
|
import '@/packages/barrage/barrage.scss';
|
|
88
88
|
import '@/packages/card/card.scss';
|
|
89
89
|
import '@/packages/timedetail/timedetail.scss';
|
|
90
|
-
import '@/packages/timepannel/timepannel.scss';
|
|
91
90
|
import '@/packages/timeselect/timeselect.scss';
|
|
92
91
|
import '@/packages/trendarrow/trendarrow.scss';
|
|
93
92
|
import '@/packages/watermark/watermark.scss';
|
|
@@ -87,8 +87,7 @@ import Video from '@/packages/video/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
|
-
import TimePannel from '@/packages/timepannel/index.taro';
|
|
91
90
|
import TimeSelect from '@/packages/timeselect/index.taro';
|
|
92
91
|
import TrendArrow from '@/packages/trendarrow/index.taro';
|
|
93
92
|
import WaterMark from '@/packages/watermark/index.taro';
|
|
94
|
-
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, Popup, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, VirtualList, Pagination, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Video, Barrage, Card, TimeDetail,
|
|
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, Popup, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, VirtualList, Pagination, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Video, Barrage, Card, TimeDetail, TimeSelect, TrendArrow, WaterMark };
|
|
@@ -25,12 +25,12 @@ export declare const Internation: {
|
|
|
25
25
|
zangZu: string;
|
|
26
26
|
beiJing: string;
|
|
27
27
|
lianYunGang: string;
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
wuhan: string;
|
|
29
|
+
yangzhou: string;
|
|
30
30
|
daQing: string;
|
|
31
31
|
suiHua: string;
|
|
32
32
|
weiFang: string;
|
|
33
|
-
|
|
33
|
+
shijiazhuang: string;
|
|
34
34
|
wlmq: string;
|
|
35
35
|
hangZhou: string;
|
|
36
36
|
chaoYang: string;
|
|
@@ -71,12 +71,12 @@ export declare const Internation: {
|
|
|
71
71
|
zangZu: string;
|
|
72
72
|
beiJing: string;
|
|
73
73
|
lianYunGang: string;
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
wuhan: string;
|
|
75
|
+
yangzhou: string;
|
|
76
76
|
daQing: string;
|
|
77
77
|
suiHua: string;
|
|
78
78
|
weiFang: string;
|
|
79
|
-
|
|
79
|
+
shijiazhuang: string;
|
|
80
80
|
wlmq: string;
|
|
81
81
|
hangZhou: string;
|
|
82
82
|
chaoYang: string;
|
|
@@ -118,12 +118,12 @@ export declare const Internation: {
|
|
|
118
118
|
zangZu: string;
|
|
119
119
|
beiJing: string;
|
|
120
120
|
lianYunGang: string;
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
wuhan: string;
|
|
122
|
+
yangzhou: string;
|
|
123
123
|
daQing: string;
|
|
124
124
|
suiHua: string;
|
|
125
125
|
weiFang: string;
|
|
126
|
-
|
|
126
|
+
shijiazhuang: string;
|
|
127
127
|
wlmq: string;
|
|
128
128
|
hangZhou: string;
|
|
129
129
|
chaoYang: string;
|
|
@@ -1,22 +1,33 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
|
-
export type PopoverTheme = 'light' | 'dark';
|
|
4
3
|
export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
5
4
|
export interface List {
|
|
5
|
+
key?: string;
|
|
6
6
|
name: string;
|
|
7
7
|
icon?: React.ReactNode;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
className?: string;
|
|
9
10
|
}
|
|
10
11
|
export interface PopoverProps extends BasicComponent {
|
|
11
12
|
list: List[];
|
|
12
|
-
theme: PopoverTheme;
|
|
13
13
|
location: PopoverLocation | string;
|
|
14
14
|
visible: boolean;
|
|
15
|
-
offset: string | number;
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
offset: string[] | number[];
|
|
16
|
+
targetId: string;
|
|
17
|
+
background: string;
|
|
18
|
+
color: string;
|
|
19
|
+
showArrow: boolean;
|
|
20
|
+
duration: string | number;
|
|
21
|
+
overlay: boolean;
|
|
22
|
+
overlayClassName: string;
|
|
23
|
+
overlayStyle: React.CSSProperties;
|
|
24
|
+
closeOnClickOutside: boolean;
|
|
25
|
+
closeOnClickAction: boolean;
|
|
26
|
+
closeOnOverlayClick: boolean;
|
|
18
27
|
children?: React.ReactNode;
|
|
19
|
-
onClick: (
|
|
20
|
-
|
|
28
|
+
onClick: () => void;
|
|
29
|
+
onOpen: () => void;
|
|
30
|
+
onClose: () => void;
|
|
31
|
+
onSelect: (item: List, index: number) => void;
|
|
21
32
|
}
|
|
22
|
-
export declare const Popover: FunctionComponent<Partial<PopoverProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
33
|
+
export declare const Popover: FunctionComponent<Partial<PopoverProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'>>;
|
|
@@ -1,23 +1,33 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import { ITouchEvent } from '@tarojs/components';
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
3
2
|
import { BasicComponent } from '@/utils/typings';
|
|
4
|
-
export type PopoverTheme = 'light' | 'dark';
|
|
5
3
|
export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
6
4
|
export interface List {
|
|
5
|
+
key?: string;
|
|
7
6
|
name: string;
|
|
8
7
|
icon?: React.ReactNode;
|
|
9
8
|
disabled?: boolean;
|
|
9
|
+
className?: string;
|
|
10
10
|
}
|
|
11
11
|
export interface PopoverProps extends BasicComponent {
|
|
12
12
|
list: List[];
|
|
13
|
-
theme: PopoverTheme;
|
|
14
13
|
location: PopoverLocation | string;
|
|
15
14
|
visible: boolean;
|
|
16
|
-
offset: string | number;
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
offset: string[] | number[];
|
|
16
|
+
targetId: string;
|
|
17
|
+
background: string;
|
|
18
|
+
color: string;
|
|
19
|
+
showArrow: boolean;
|
|
20
|
+
duration: string | number;
|
|
21
|
+
overlay: boolean;
|
|
22
|
+
overlayClassName: string;
|
|
23
|
+
overlayStyle: React.CSSProperties;
|
|
24
|
+
closeOnClickOutside: boolean;
|
|
25
|
+
closeOnClickAction: boolean;
|
|
26
|
+
closeOnOverlayClick: boolean;
|
|
19
27
|
children?: React.ReactNode;
|
|
20
|
-
onClick: (
|
|
21
|
-
|
|
28
|
+
onClick: () => void;
|
|
29
|
+
onOpen: () => void;
|
|
30
|
+
onClose: () => void;
|
|
31
|
+
onSelect: (item: List, index: number) => void;
|
|
22
32
|
}
|
|
23
|
-
export declare const Popover: FunctionComponent<Partial<PopoverProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
33
|
+
export declare const Popover: FunctionComponent<Partial<PopoverProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'>>;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export interface SideNavBarProps extends React.HTMLAttributes<HTMLDivElement>, NavBarProps {
|
|
6
|
-
title: string;
|
|
1
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface SideNavBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>, BasicComponent {
|
|
4
|
+
title: ReactNode;
|
|
7
5
|
visible: boolean;
|
|
8
6
|
width?: string;
|
|
9
|
-
|
|
7
|
+
indent?: number;
|
|
10
8
|
position?: 'left' | 'right';
|
|
11
9
|
onClose: () => void;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
10
|
}
|
|
14
11
|
export declare const SideNavBar: FunctionComponent<SideNavBarProps>;
|
|
15
|
-
export {};
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export interface SideNavBarProps extends React.HTMLAttributes<HTMLDivElement>, NavBarProps {
|
|
6
|
-
title: string;
|
|
1
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface SideNavBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>, BasicComponent {
|
|
4
|
+
title: ReactNode;
|
|
7
5
|
visible: boolean;
|
|
8
6
|
width?: string;
|
|
9
|
-
|
|
7
|
+
indent?: number;
|
|
10
8
|
position?: 'left' | 'right';
|
|
11
9
|
onClose: () => void;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
10
|
}
|
|
14
11
|
export declare const SideNavBar: FunctionComponent<SideNavBarProps>;
|
|
15
|
-
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
export type SideNavBarItemProps = {
|
|
3
3
|
title: string;
|
|
4
|
-
|
|
5
|
-
onClick?: ({ title,
|
|
4
|
+
value: string | number;
|
|
5
|
+
onClick?: ({ title, value, }: {
|
|
6
6
|
title: string;
|
|
7
|
-
|
|
7
|
+
value: string | number;
|
|
8
8
|
}) => void;
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
export type SideNavBarItemProps = {
|
|
3
3
|
title: string;
|
|
4
|
-
|
|
5
|
-
onClick?: ({ title,
|
|
4
|
+
value: string | number;
|
|
5
|
+
onClick?: ({ title, value, }: {
|
|
6
6
|
title: string;
|
|
7
|
-
|
|
7
|
+
value: string | number;
|
|
8
8
|
}) => void;
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface FileType {
|
|
4
|
+
jpg: string;
|
|
5
|
+
png: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SignatureProps extends BasicComponent {
|
|
8
|
+
type: keyof FileType;
|
|
4
9
|
lineWidth: number;
|
|
5
10
|
strokeStyle: string;
|
|
6
|
-
|
|
7
|
-
className: string;
|
|
8
|
-
confirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
|
|
9
|
-
clear?: () => void;
|
|
11
|
+
unsupported: ReactNode;
|
|
10
12
|
onConfirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
|
|
11
13
|
onClear?: () => void;
|
|
12
14
|
}
|
|
13
|
-
export declare const Signature:
|
|
15
|
+
export declare const Signature: React.ForwardRefExoticComponent<Partial<SignatureProps> & React.RefAttributes<unknown>>;
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import React
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
jpg:
|
|
5
|
-
|
|
6
|
-
png: any;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface FileType {
|
|
4
|
+
jpg: string;
|
|
5
|
+
png: string;
|
|
7
6
|
}
|
|
8
|
-
export interface SignatureProps {
|
|
7
|
+
export interface SignatureProps extends BasicComponent {
|
|
9
8
|
canvasId: string;
|
|
10
9
|
type: keyof FileType;
|
|
11
10
|
lineWidth: number;
|
|
12
11
|
strokeStyle: string;
|
|
13
12
|
unSupportTpl: string;
|
|
14
|
-
className: string;
|
|
15
|
-
confirm?: (dataurl: string) => void;
|
|
16
|
-
clear?: () => void;
|
|
17
13
|
onConfirm?: (dataurl: string) => void;
|
|
18
14
|
onClear?: () => void;
|
|
19
15
|
}
|
|
20
|
-
export declare const Signature:
|
|
21
|
-
export {};
|
|
16
|
+
export declare const Signature: React.ForwardRefExoticComponent<Partial<SignatureProps> & React.RefAttributes<unknown>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
export type SubSideNavBarProps = {
|
|
3
3
|
title: string;
|
|
4
|
-
|
|
4
|
+
value: string | number;
|
|
5
5
|
open?: boolean;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
|
-
onClick?: ({ title,
|
|
7
|
+
onClick?: ({ title, value, isShow, }: {
|
|
8
8
|
title: string;
|
|
9
|
-
|
|
9
|
+
value: string | number;
|
|
10
10
|
isShow: boolean;
|
|
11
11
|
}) => void;
|
|
12
12
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
export type SubSideNavBarProps = {
|
|
3
3
|
title: string;
|
|
4
|
-
|
|
4
|
+
value: string | number;
|
|
5
5
|
open?: boolean;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
|
-
onClick?: ({ title,
|
|
7
|
+
onClick?: ({ title, value, isShow, }: {
|
|
8
8
|
title: string;
|
|
9
|
-
|
|
9
|
+
value: string | number;
|
|
10
10
|
isShow: boolean;
|
|
11
11
|
}) => void;
|
|
12
12
|
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
3
4
|
export interface TagProps extends BasicComponent {
|
|
4
5
|
type: TagType;
|
|
6
|
+
background: string;
|
|
5
7
|
color: string;
|
|
6
|
-
textColor: string;
|
|
7
8
|
plain: boolean;
|
|
8
9
|
round: boolean;
|
|
9
10
|
mark: boolean;
|
|
10
11
|
closeable: boolean;
|
|
11
|
-
closeIcon:
|
|
12
|
-
prefixCls: string;
|
|
12
|
+
closeIcon: ReactNode;
|
|
13
13
|
onClick: (e: MouseEvent) => void;
|
|
14
14
|
onClose: (e?: any) => void;
|
|
15
|
-
children?: React.ReactNode;
|
|
16
15
|
}
|
|
17
|
-
export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
18
16
|
export declare const Tag: FunctionComponent<Partial<TagProps>>;
|