@nutui/nutui-react-taro 1.4.0 → 1.4.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 +13 -0
- package/dist/esm/Audio.js +3 -3
- package/dist/esm/Icon/style/index.js +1 -2
- package/dist/esm/ImagePreview.js +3 -3
- package/dist/esm/Input.js +2 -2
- package/dist/esm/Range.js +2 -2
- package/dist/esm/Swiper.js +2 -2
- package/dist/esm/{audio.taro-c94fc58b.js → audio.taro-20890c93.js} +1 -1
- package/dist/esm/{imagepreview.taro-69d47ab0.js → imagepreview.taro-68e776f5.js} +1 -1
- package/dist/esm/{input.taro-eef88020.js → input.taro-65db24c3.js} +3 -3
- package/dist/esm/nutui-react.es.js +5 -5
- package/dist/esm/{range.taro-3e610b5c.js → range.taro-4cbe2469.js} +1 -4
- package/dist/esm/{swiper.taro-f314d67a.js → swiper.taro-852f6615.js} +8 -4
- package/dist/esm/types/src/packages/actionsheet/actionsheet.d.ts +1 -1
- package/dist/esm/types/src/packages/actionsheet/actionsheet.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/animate/type.d.ts +2 -2
- package/dist/esm/types/src/packages/animatingnumbers/animatingnumbers.d.ts +1 -1
- package/dist/esm/types/src/packages/animatingnumbers/animatingnumbers.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/avatar/avatar.d.ts +1 -1
- package/dist/esm/types/src/packages/avatar/avatar.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/badge/badge.d.ts +1 -1
- package/dist/esm/types/src/packages/badge/badge.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/button/button.d.ts +3 -3
- package/dist/esm/types/src/packages/button/button.taro.d.ts +4 -4
- package/dist/esm/types/src/packages/calendar/calendar.d.ts +1 -1
- package/dist/esm/types/src/packages/calendaritem/calendaritem.d.ts +2 -2
- package/dist/esm/types/src/packages/calendaritem/calendaritem.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/cascader/types.d.ts +1 -1
- package/dist/esm/types/src/packages/col/col.d.ts +1 -1
- package/dist/esm/types/src/packages/col/col.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/Mask.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/config.d.ts +2 -2
- package/dist/esm/types/src/packages/dialog/dialog.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/dialog.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/divider/divider.d.ts +2 -2
- package/dist/esm/types/src/packages/divider/divider.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/ellipsis/ellipsis.d.ts +1 -1
- package/dist/esm/types/src/packages/ellipsis/ellipsis.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/fixednav/fixednav.d.ts +2 -2
- package/dist/esm/types/src/packages/fixednav/fixednav.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/form/types.d.ts +2 -2
- package/dist/esm/types/src/packages/formitem/formitem.d.ts +2 -2
- package/dist/esm/types/src/packages/formitem/formitem.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/formitem/types.d.ts +2 -2
- package/dist/esm/types/src/packages/grid/grid.d.ts +1 -1
- package/dist/esm/types/src/packages/grid/grid.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/griditem/griditem.d.ts +1 -1
- package/dist/esm/types/src/packages/griditem/griditem.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/image/image.d.ts +2 -2
- package/dist/esm/types/src/packages/image/image.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/input/input.d.ts +5 -5
- package/dist/esm/types/src/packages/input/input.taro.d.ts +5 -5
- 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 +1 -1
- package/dist/esm/types/src/packages/popup/popup.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/progress/progress.d.ts +2 -2
- package/dist/esm/types/src/packages/progress/progress.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/pulltorefresh/pulltorefresh.d.ts +1 -1
- package/dist/esm/types/src/packages/pulltorefresh/pulltorefresh.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/radio/radio.d.ts +2 -2
- package/dist/esm/types/src/packages/radio/radio.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/radiogroup/radiogroup.d.ts +2 -2
- package/dist/esm/types/src/packages/radiogroup/radiogroup.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/range/range.d.ts +1 -2
- package/dist/esm/types/src/packages/range/range.taro.d.ts +1 -2
- package/dist/esm/types/src/packages/row/row.d.ts +1 -1
- package/dist/esm/types/src/packages/row/row.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/sidenavbar/sidenavbar.d.ts +1 -1
- package/dist/esm/types/src/packages/sidenavbar/sidenavbar.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/sidenavbar/type.d.ts +3 -3
- package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.d.ts +1 -1
- package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/skeleton/skeleton.d.ts +1 -1
- package/dist/esm/types/src/packages/skeleton/skeleton.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.d.ts +1 -1
- package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/swipe/swipe.d.ts +2 -2
- package/dist/esm/types/src/packages/swipe/swipe.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/swiper/swiper.d.ts +2 -1
- package/dist/esm/types/src/packages/swiper/swiper.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/table/table.d.ts +1 -1
- package/dist/esm/types/src/packages/table/table.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/tabs/tabs.d.ts +1 -1
- package/dist/esm/types/src/packages/tabs/tabs.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/tag/tag.d.ts +1 -1
- package/dist/esm/types/src/packages/tag/tag.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/uploader/uploader.d.ts +2 -2
- package/dist/esm/types/src/packages/uploader/uploader.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/virtuallist/type.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/virtuallist.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/virtuallist.taro.d.ts +1 -1
- package/dist/esm/types/src/utils/get-scroll-parent.d.ts +1 -1
- package/dist/esm/types/src/utils/render.d.ts +1 -1
- package/dist/esm/types/src/utils/useTouch.d.ts +1 -1
- package/dist/esm/types/src/utils/useWatch.d.ts +2 -2
- 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/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 +89 -77
- package/dist/nutui.react.umd.js +89 -77
- package/dist/packages/input/input.scss +15 -0
- package/dist/packages/searchbar/searchbar.scss +6 -13
- package/dist/packages/swiper/swiper.scss +0 -3
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +1 -0
- package/dist/styles/variables.scss +8 -4
- package/dist/types/index.d.ts +55 -55
- package/package.json +2 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { CSSProperties, FunctionComponent, HTMLInputTypeAttribute } from 'react';
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
3
|
+
export type InputAlignType = 'left' | 'center' | 'right';
|
|
4
|
+
export type InputFormatTrigger = 'onChange' | 'onBlur';
|
|
5
|
+
export type InputType = HTMLInputTypeAttribute;
|
|
6
|
+
export type InputRule = {
|
|
7
7
|
pattern?: RegExp;
|
|
8
8
|
message?: string;
|
|
9
9
|
required?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type ConfirmTextType = 'send' | 'search' | 'next' | 'go' | 'done';
|
|
12
12
|
export interface InputProps extends BasicComponent {
|
|
13
13
|
type: InputType;
|
|
14
14
|
name: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { CSSProperties, FunctionComponent, HTMLInputTypeAttribute } from 'react';
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
3
|
+
export type InputAlignType = 'left' | 'center' | 'right';
|
|
4
|
+
export type InputFormatTrigger = 'onChange' | 'onBlur';
|
|
5
|
+
export type InputType = HTMLInputTypeAttribute;
|
|
6
|
+
export type InputRule = {
|
|
7
7
|
pattern?: RegExp;
|
|
8
8
|
message?: string;
|
|
9
9
|
required?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type ConfirmTextType = 'send' | 'search' | 'next' | 'go' | 'done';
|
|
12
12
|
export interface InputProps extends BasicComponent {
|
|
13
13
|
type: InputType;
|
|
14
14
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { CSSProperties, FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type PopoverTheme = 'light' | 'dark';
|
|
4
|
+
export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
5
5
|
export interface List {
|
|
6
6
|
name: string;
|
|
7
7
|
icon?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { CSSProperties, FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type PopoverTheme = 'light' | 'dark';
|
|
4
|
+
export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
5
5
|
export interface List {
|
|
6
6
|
name: string;
|
|
7
7
|
icon?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent, MouseEvent } from 'react';
|
|
2
2
|
import { OverlayProps } from '@/packages/overlay/overlay';
|
|
3
3
|
import { BasicComponent } from '@/utils/typings';
|
|
4
|
-
|
|
4
|
+
type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
5
5
|
export interface PopupProps extends OverlayProps, BasicComponent {
|
|
6
6
|
position: string;
|
|
7
7
|
transition: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent, MouseEvent } from 'react';
|
|
2
2
|
import { OverlayProps } from '@/packages/overlay/overlay.taro';
|
|
3
3
|
import { BasicComponent } from '@/utils/typings';
|
|
4
|
-
|
|
4
|
+
type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
5
5
|
export interface PopupProps extends OverlayProps, BasicComponent {
|
|
6
6
|
position: string;
|
|
7
7
|
transition: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent, CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type ProgressSize = 'small' | 'base' | 'large';
|
|
4
|
+
export type TextType = 'icon' | 'text';
|
|
5
5
|
export interface ProgressProps extends BasicComponent {
|
|
6
6
|
className: string;
|
|
7
7
|
style: CSSProperties;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent, CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type ProgressSize = 'small' | 'base' | 'large';
|
|
4
|
+
export type TextType = 'icon' | 'text';
|
|
5
5
|
export interface ProgressProps extends BasicComponent {
|
|
6
6
|
className: string;
|
|
7
7
|
style: CSSProperties;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
|
|
3
3
|
export interface PullToRefreshProps {
|
|
4
4
|
className: string;
|
|
5
5
|
style: React.CSSProperties;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
|
|
3
3
|
export interface PullToRefreshProps {
|
|
4
4
|
className: string;
|
|
5
5
|
style: React.CSSProperties;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { FunctionComponent, MouseEventHandler } from 'react';
|
|
2
2
|
import RadioGroup from '@/packages/radiogroup';
|
|
3
3
|
import { BasicComponent } from '@/utils/typings';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type Shape = 'button' | 'round';
|
|
5
|
+
type Position = 'right' | 'left';
|
|
6
6
|
export interface RadioProps extends BasicComponent {
|
|
7
7
|
className: string;
|
|
8
8
|
style: React.CSSProperties;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { FunctionComponent, MouseEventHandler } from 'react';
|
|
2
2
|
import RadioGroup from '@/packages/radiogroup/index.taro';
|
|
3
3
|
import { BasicComponent } from '@/utils/typings';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type Shape = 'button' | 'round';
|
|
5
|
+
type Position = 'right' | 'left';
|
|
6
6
|
export interface RadioProps extends BasicComponent {
|
|
7
7
|
className: string;
|
|
8
8
|
style: React.CSSProperties;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RadioGroupOptionType } from './type';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type Position = 'left' | 'right';
|
|
4
|
+
type Direction = 'horizontal' | 'vertical';
|
|
5
5
|
export interface RadioGroupProps {
|
|
6
6
|
value: string | number | boolean | null;
|
|
7
7
|
textPosition: Position;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RadioGroupOptionType } from './type';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type Position = 'left' | 'right';
|
|
4
|
+
type Direction = 'horizontal' | 'vertical';
|
|
5
5
|
export interface RadioGroupProps {
|
|
6
6
|
value: string | number | boolean | null;
|
|
7
7
|
textPosition: Position;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent, CSSProperties } from 'react';
|
|
2
|
-
|
|
2
|
+
type SliderValue = number | number[];
|
|
3
3
|
export interface RangeProps {
|
|
4
4
|
className: string;
|
|
5
5
|
style: CSSProperties;
|
|
@@ -20,7 +20,6 @@ export interface RangeProps {
|
|
|
20
20
|
button: React.ReactNode;
|
|
21
21
|
vertical: boolean;
|
|
22
22
|
marks: Record<string, unknown>;
|
|
23
|
-
change?: (value: number) => void;
|
|
24
23
|
dragStart?: () => void;
|
|
25
24
|
dragEnd?: () => void;
|
|
26
25
|
onChange?: (value: number) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent, CSSProperties } from 'react';
|
|
2
|
-
|
|
2
|
+
type SliderValue = number | number[];
|
|
3
3
|
export interface RangeProps {
|
|
4
4
|
className: string;
|
|
5
5
|
style: CSSProperties;
|
|
@@ -20,7 +20,6 @@ export interface RangeProps {
|
|
|
20
20
|
button: React.ReactNode;
|
|
21
21
|
vertical: boolean;
|
|
22
22
|
marks: Record<string, unknown>;
|
|
23
|
-
change?: (value: number) => void;
|
|
24
23
|
dragStart?: () => void;
|
|
25
24
|
dragEnd?: () => void;
|
|
26
25
|
onChange?: (value: number) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type NavBarProps = {
|
|
3
3
|
showhead?: boolean;
|
|
4
4
|
};
|
|
5
5
|
export interface SideNavBarProps extends React.HTMLAttributes<HTMLDivElement>, NavBarProps {
|
|
@@ -11,7 +11,7 @@ export interface SideNavBarProps extends React.HTMLAttributes<HTMLDivElement>, N
|
|
|
11
11
|
handleClose: () => void;
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type SideNavBarItemProps = {
|
|
15
15
|
title: string;
|
|
16
16
|
ikey: string | number;
|
|
17
17
|
click?: ({ title, ikey }: {
|
|
@@ -20,7 +20,7 @@ export declare type SideNavBarItemProps = {
|
|
|
20
20
|
}) => void;
|
|
21
21
|
children?: React.ReactNode;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type SubNavBarProps = {
|
|
24
24
|
title: string;
|
|
25
25
|
ikey: string | number;
|
|
26
26
|
open?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type SwipeSide = 'left' | 'right';
|
|
3
|
+
export type SwipePosition = SwipeSide | 'cell' | 'outside';
|
|
4
4
|
export interface SwipeInstance {
|
|
5
5
|
open: (side: SwipeSide) => void;
|
|
6
6
|
close: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type SwipeSide = 'left' | 'right';
|
|
3
|
+
export type SwipePosition = SwipeSide | 'cell' | 'outside';
|
|
4
4
|
export interface SwipeInstance {
|
|
5
5
|
open: (side: SwipeSide) => void;
|
|
6
6
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type SwiperRef = {
|
|
3
3
|
to: (index: number) => void;
|
|
4
4
|
next: () => void;
|
|
5
5
|
prev: () => void;
|
|
@@ -12,6 +12,7 @@ export interface SwiperProps {
|
|
|
12
12
|
autoPlay: number | string;
|
|
13
13
|
direction: 'horizontal' | 'vertical';
|
|
14
14
|
paginationColor: string;
|
|
15
|
+
paginationBgColor: string;
|
|
15
16
|
paginationVisible: boolean;
|
|
16
17
|
loop: boolean;
|
|
17
18
|
touchable: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type SwiperRef = {
|
|
3
3
|
to: (index: number) => void;
|
|
4
4
|
next: () => void;
|
|
5
5
|
prev: () => void;
|
|
@@ -12,6 +12,7 @@ export interface SwiperProps {
|
|
|
12
12
|
autoPlay: number | string;
|
|
13
13
|
direction: 'horizontal' | 'vertical';
|
|
14
14
|
paginationColor: string;
|
|
15
|
+
paginationBgColor: string;
|
|
15
16
|
paginationVisible: boolean;
|
|
16
17
|
loop: boolean;
|
|
17
18
|
touchable: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicTableProps } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type TableProps = BasicTableProps;
|
|
4
4
|
export declare const Table: FunctionComponent<Partial<TableProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicTableProps } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type TableProps = BasicTableProps;
|
|
4
4
|
export declare const Table: FunctionComponent<Partial<TableProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -7,7 +7,7 @@ declare class Title {
|
|
|
7
7
|
index: number;
|
|
8
8
|
constructor();
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type TabsSize = 'large' | 'normal' | 'small';
|
|
11
11
|
export interface TabsProps extends BasicComponent {
|
|
12
12
|
className: string;
|
|
13
13
|
style: React.CSSProperties;
|
|
@@ -7,7 +7,7 @@ declare class Title {
|
|
|
7
7
|
index: number;
|
|
8
8
|
constructor();
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type TabsSize = 'large' | 'normal' | 'small';
|
|
11
11
|
export interface TabsProps extends BasicComponent {
|
|
12
12
|
className: string;
|
|
13
13
|
style: React.CSSProperties;
|
|
@@ -13,5 +13,5 @@ export interface TagProps extends BasicComponent {
|
|
|
13
13
|
onClose: (e?: any) => void;
|
|
14
14
|
children?: React.ReactNode;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
17
17
|
export declare const Tag: FunctionComponent<Partial<TagProps>>;
|
|
@@ -13,5 +13,5 @@ export interface TagProps extends BasicComponent {
|
|
|
13
13
|
onClose: (e?: any) => void;
|
|
14
14
|
children?: React.ReactNode;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
17
17
|
export declare const Tag: FunctionComponent<Partial<TagProps>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UploadOptions } from './upload';
|
|
3
|
-
export
|
|
3
|
+
export type FileType<T> = {
|
|
4
4
|
[key: string]: T;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type FileItemStatus = 'ready' | 'uploading' | 'success' | 'error' | 'removed';
|
|
7
7
|
import { BasicComponent } from '@/utils/typings';
|
|
8
8
|
export interface UploaderProps extends BasicComponent {
|
|
9
9
|
url: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Taro from '@tarojs/taro';
|
|
3
3
|
import { UploadOptions } from './upload';
|
|
4
|
-
export
|
|
4
|
+
export type FileType<T> = {
|
|
5
5
|
[key: string]: T;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type FileItemStatus = 'ready' | 'uploading' | 'success' | 'error' | 'removed';
|
|
8
8
|
/** 图片的尺寸 */
|
|
9
9
|
interface sizeType {
|
|
10
10
|
/** 原图 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicVirtualListProps } from './type';
|
|
3
|
-
export
|
|
3
|
+
export type VirtualListProps = BasicVirtualListProps;
|
|
4
4
|
export declare const VirtualList: FunctionComponent<VirtualListProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicVirtualListProps } from './type';
|
|
3
|
-
export
|
|
3
|
+
export type VirtualListProps = BasicVirtualListProps;
|
|
4
4
|
export declare const VirtualList: FunctionComponent<VirtualListProps & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import type { Root } from 'react-dom/client';
|
|
3
3
|
declare const MARK = "__nutui_react_root__";
|
|
4
|
-
|
|
4
|
+
type ContainerType = (Element | DocumentFragment) & {
|
|
5
5
|
[MARK]?: Root;
|
|
6
6
|
};
|
|
7
7
|
export declare function render(node: ReactElement, container: ContainerType): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type Callback<T> = (prev: T | undefined) => void;
|
|
2
|
+
type Config = {
|
|
3
3
|
immediate: boolean;
|
|
4
4
|
};
|
|
5
5
|
declare function useWatch<T>(dep: T, callback: Callback<T>, config?: Config): () => void;
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED