@nutui/nutui-react 2.6.18 → 2.6.19
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 +24 -12
- package/dist/esm/ActionSheet.js +2 -1
- package/dist/esm/AnimatingNumbers.js +2 -2
- package/dist/esm/AvatarCropper.js +11 -19
- package/dist/esm/CalendarItem.js +5 -9
- package/dist/esm/DatePicker.js +1 -1
- package/dist/esm/Dialog.js +4 -4
- package/dist/esm/InputNumber.js +1 -5
- package/dist/esm/Layout.js +1 -3
- package/dist/esm/Pagination.js +4 -8
- package/dist/esm/cascader2.js +3 -0
- package/dist/esm/menuitem2.js +2 -1
- package/dist/esm/merge-props.js +16 -0
- package/dist/esm/overlay2.js +3 -7
- package/dist/esm/popup2.js +4 -4
- 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 +52 -41
- package/dist/nutui.react.umd.js +52 -41
- package/dist/packages/elevator/elevator.scss +1 -2
- package/dist/packages/popover/popover.scss +3 -3
- package/dist/packages/tabs/tabs.scss +3 -3
- package/dist/packages/uploader/uploader.scss +1 -2
- package/dist/types/index.d.ts +196 -196
- package/dist/types/packages/actionsheet/actionsheet.d.ts +2 -2
- package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +2 -2
- package/dist/types/packages/address/address.d.ts +2 -2
- package/dist/types/packages/address/address.taro.d.ts +2 -2
- package/dist/types/packages/address/customRender.d.ts +2 -2
- package/dist/types/packages/address/customRender.taro.d.ts +2 -2
- package/dist/types/packages/address/existRender.d.ts +1 -1
- package/dist/types/packages/address/existRender.taro.d.ts +1 -1
- package/dist/types/packages/animate/animate.d.ts +1 -1
- package/dist/types/packages/animate/animate.taro.d.ts +1 -1
- package/dist/types/packages/animatingnumbers/animatingnumbers.d.ts +2 -2
- package/dist/types/packages/animatingnumbers/animatingnumbers.taro.d.ts +2 -2
- package/dist/types/packages/audio/audio.d.ts +1 -2
- package/dist/types/packages/audio/audio.taro.d.ts +1 -1
- package/dist/types/packages/avatar/avatar.d.ts +2 -3
- package/dist/types/packages/avatar/avatar.taro.d.ts +2 -3
- package/dist/types/packages/avatarcropper/avatarcropper.d.ts +1 -1
- package/dist/types/packages/avatarcropper/avatarcropper.taro.d.ts +1 -1
- package/dist/types/packages/avatargroup/avatargroup.d.ts +1 -1
- package/dist/types/packages/avatargroup/avatargroup.taro.d.ts +1 -1
- package/dist/types/packages/avatargroup/context.d.ts +1 -1
- package/dist/types/packages/backtop/backtop.d.ts +1 -2
- package/dist/types/packages/backtop/backtop.taro.d.ts +1 -2
- package/dist/types/packages/barrage/barrage.d.ts +1 -1
- package/dist/types/packages/barrage/barrage.taro.d.ts +1 -1
- package/dist/types/packages/button/button.d.ts +1 -2
- package/dist/types/packages/button/button.taro.d.ts +1 -2
- package/dist/types/packages/calendar/calendar.d.ts +2 -2
- package/dist/types/packages/calendar/calendar.taro.d.ts +2 -2
- package/dist/types/packages/calendarcard/calendarcard.d.ts +2 -2
- package/dist/types/packages/calendarcard/calendarcard.taro.d.ts +2 -2
- package/dist/types/packages/calendaritem/calendaritem.d.ts +2 -2
- package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +2 -2
- package/dist/types/packages/card/card.d.ts +1 -1
- package/dist/types/packages/card/card.taro.d.ts +1 -1
- package/dist/types/packages/cascader/cascader.d.ts +2 -2
- package/dist/types/packages/cascader/cascader.taro.d.ts +2 -2
- package/dist/types/packages/cell/cell.d.ts +2 -2
- package/dist/types/packages/cell/cell.taro.d.ts +2 -2
- package/dist/types/packages/cellgroup/context.d.ts +1 -1
- package/dist/types/packages/checkbox/checkbox.d.ts +3 -3
- package/dist/types/packages/checkbox/checkbox.taro.d.ts +3 -3
- package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +3 -3
- package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +3 -3
- package/dist/types/packages/checkboxgroup/context.d.ts +1 -1
- package/dist/types/packages/circleprogress/circleprogress.d.ts +1 -1
- package/dist/types/packages/circleprogress/circleprogress.taro.d.ts +1 -1
- package/dist/types/packages/col/col.d.ts +1 -2
- package/dist/types/packages/col/col.taro.d.ts +1 -2
- package/dist/types/packages/collapse/collapse.d.ts +1 -1
- package/dist/types/packages/collapse/collapse.taro.d.ts +1 -1
- package/dist/types/packages/collapse/context.d.ts +1 -1
- package/dist/types/packages/collapseitem/collapseitem.d.ts +1 -1
- package/dist/types/packages/collapseitem/collapseitem.taro.d.ts +1 -1
- package/dist/types/packages/configprovider/configprovider.d.ts +1 -1
- package/dist/types/packages/configprovider/configprovider.taro.d.ts +1 -1
- package/dist/types/packages/countdown/countdown.d.ts +1 -1
- package/dist/types/packages/countdown/countdown.taro.d.ts +1 -1
- package/dist/types/packages/datepicker/datepicker.d.ts +2 -2
- package/dist/types/packages/datepicker/datepicker.taro.d.ts +2 -2
- package/dist/types/packages/dialog/config.d.ts +1 -2
- package/dist/types/packages/dialog/dialogwrap.d.ts +2 -2
- package/dist/types/packages/divider/divider.d.ts +1 -1
- package/dist/types/packages/divider/divider.taro.d.ts +1 -1
- package/dist/types/packages/drag/drag.d.ts +1 -1
- package/dist/types/packages/drag/drag.taro.d.ts +1 -1
- package/dist/types/packages/elevator/elevator.d.ts +1 -1
- package/dist/types/packages/elevator/elevator.taro.d.ts +1 -1
- package/dist/types/packages/ellipsis/ellipsis.d.ts +1 -1
- package/dist/types/packages/ellipsis/ellipsis.taro.d.ts +1 -1
- package/dist/types/packages/empty/empty.d.ts +2 -2
- package/dist/types/packages/empty/empty.taro.d.ts +2 -2
- package/dist/types/packages/fixednav/fixednav.d.ts +2 -2
- package/dist/types/packages/fixednav/fixednav.taro.d.ts +2 -2
- package/dist/types/packages/form/context.d.ts +1 -1
- package/dist/types/packages/form/form.d.ts +2 -2
- package/dist/types/packages/form/form.taro.d.ts +2 -2
- package/dist/types/packages/form/index.d.ts +2 -2
- package/dist/types/packages/form/index.taro.d.ts +2 -2
- package/dist/types/packages/formitem/formitem.d.ts +1 -1
- package/dist/types/packages/formitem/formitem.taro.d.ts +1 -1
- package/dist/types/packages/grid/grid.context.d.ts +1 -1
- package/dist/types/packages/grid/grid.d.ts +1 -1
- package/dist/types/packages/grid/grid.taro.context.d.ts +1 -1
- package/dist/types/packages/grid/grid.taro.d.ts +1 -1
- package/dist/types/packages/griditem/griditem.d.ts +1 -1
- package/dist/types/packages/griditem/griditem.taro.d.ts +1 -1
- package/dist/types/packages/image/image.d.ts +1 -1
- package/dist/types/packages/indicator/indicator.d.ts +1 -1
- package/dist/types/packages/indicator/indicator.taro.d.ts +1 -1
- package/dist/types/packages/infiniteloading/infiniteloading.d.ts +1 -1
- package/dist/types/packages/infiniteloading/infiniteloading.taro.d.ts +1 -1
- package/dist/types/packages/input/input.d.ts +1 -1
- package/dist/types/packages/input/input.taro.d.ts +1 -1
- package/dist/types/packages/inputnumber/inputnumber.d.ts +1 -1
- package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +1 -1
- package/dist/types/packages/layout/layout.d.ts +1 -1
- package/dist/types/packages/layout/layout.taro.d.ts +1 -1
- package/dist/types/packages/loading/loading.d.ts +1 -1
- package/dist/types/packages/loading/loading.taro.d.ts +1 -1
- package/dist/types/packages/menu/menu.d.ts +2 -2
- package/dist/types/packages/menu/menu.taro.d.ts +2 -2
- package/dist/types/packages/menuitem/menuitem.d.ts +1 -1
- package/dist/types/packages/menuitem/menuitem.taro.d.ts +1 -1
- package/dist/types/packages/navbar/navbar.d.ts +1 -1
- package/dist/types/packages/navbar/navbar.taro.d.ts +1 -1
- package/dist/types/packages/noticebar/noticebar.d.ts +1 -1
- package/dist/types/packages/noticebar/noticebar.taro.d.ts +1 -1
- package/dist/types/packages/notify/Notification.d.ts +1 -1
- package/dist/types/packages/notify/index.d.ts +1 -1
- package/dist/types/packages/notify/notify.d.ts +1 -1
- package/dist/types/packages/numberkeyboard/numberkeyboard.d.ts +2 -2
- package/dist/types/packages/numberkeyboard/numberkeyboard.taro.d.ts +2 -2
- package/dist/types/packages/nutui.react.d.ts +196 -196
- package/dist/types/packages/nutui.react.taro.d.ts +196 -196
- package/dist/types/packages/nutui.taro.react.build.d.ts +196 -196
- package/dist/types/packages/overlay/overlay.d.ts +1 -1
- package/dist/types/packages/overlay/overlay.taro.d.ts +1 -1
- package/dist/types/packages/pagination/pagination.d.ts +1 -1
- package/dist/types/packages/pagination/pagination.taro.d.ts +1 -1
- package/dist/types/packages/picker/index.d.ts +1 -1
- package/dist/types/packages/picker/index.taro.d.ts +1 -1
- package/dist/types/packages/picker/picker.d.ts +2 -2
- package/dist/types/packages/picker/picker.taro.d.ts +2 -2
- package/dist/types/packages/picker/pickerpanel.d.ts +1 -1
- package/dist/types/packages/picker/pickerpanel.taro.d.ts +1 -1
- package/dist/types/packages/popover/popover.d.ts +2 -2
- package/dist/types/packages/popover/popover.taro.d.ts +2 -2
- package/dist/types/packages/popup/popup.d.ts +2 -2
- package/dist/types/packages/popup/popup.taro.d.ts +2 -2
- package/dist/types/packages/progress/progress.d.ts +1 -1
- package/dist/types/packages/progress/progress.taro.d.ts +1 -1
- package/dist/types/packages/radio/radio.d.ts +3 -3
- package/dist/types/packages/radio/radio.taro.d.ts +3 -3
- package/dist/types/packages/radiogroup/context.d.ts +1 -1
- package/dist/types/packages/radiogroup/radiogroup.d.ts +1 -1
- package/dist/types/packages/radiogroup/radiogroup.taro.d.ts +1 -1
- package/dist/types/packages/range/range.d.ts +1 -1
- package/dist/types/packages/range/range.taro.d.ts +1 -1
- package/dist/types/packages/rate/rate.d.ts +1 -1
- package/dist/types/packages/rate/rate.taro.d.ts +1 -1
- package/dist/types/packages/row/UserContext.d.ts +1 -1
- package/dist/types/packages/row/row.d.ts +1 -2
- package/dist/types/packages/row/row.taro.d.ts +1 -2
- package/dist/types/packages/searchbar/searchbar.d.ts +1 -2
- package/dist/types/packages/searchbar/searchbar.taro.d.ts +1 -2
- package/dist/types/packages/shortpassword/shortpassword.d.ts +2 -2
- package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +2 -2
- package/dist/types/packages/sidenavbar/context.d.ts +1 -1
- package/dist/types/packages/sidenavbar/sidenavbar.d.ts +1 -1
- package/dist/types/packages/sidenavbar/sidenavbar.taro.d.ts +1 -1
- package/dist/types/packages/sidenavbaritem/sidenavbaritem.d.ts +1 -1
- package/dist/types/packages/sidenavbaritem/sidenavbaritem.taro.d.ts +1 -1
- package/dist/types/packages/signature/signature.d.ts +1 -1
- package/dist/types/packages/signature/signature.taro.d.ts +1 -1
- package/dist/types/packages/space/space.d.ts +1 -1
- package/dist/types/packages/space/space.taro.d.ts +1 -1
- package/dist/types/packages/step/step.d.ts +1 -1
- package/dist/types/packages/step/step.taro.d.ts +1 -1
- package/dist/types/packages/steps/context.d.ts +1 -1
- package/dist/types/packages/steps/steps.d.ts +1 -1
- package/dist/types/packages/steps/steps.taro.d.ts +1 -1
- package/dist/types/packages/sticky/sticky.d.ts +1 -1
- package/dist/types/packages/sticky/sticky.taro.d.ts +1 -1
- package/dist/types/packages/subsidenavbar/subsidenavbar.d.ts +1 -1
- package/dist/types/packages/subsidenavbar/subsidenavbar.taro.d.ts +1 -1
- package/dist/types/packages/swipe/swipe.d.ts +1 -2
- package/dist/types/packages/swipe/swipe.taro.d.ts +1 -2
- package/dist/types/packages/swiper/context.d.ts +1 -1
- package/dist/types/packages/swiper/effects/default.d.ts +1 -1
- package/dist/types/packages/swiper/effects/focus.d.ts +1 -1
- package/dist/types/packages/swiper/index.d.ts +3 -3
- package/dist/types/packages/swiper/index.taro.d.ts +2 -2
- package/dist/types/packages/swiper/swiper.d.ts +2 -2
- package/dist/types/packages/swiper/swiper.taro.d.ts +1 -1
- package/dist/types/packages/swiperitem/swiperitem.d.ts +1 -1
- package/dist/types/packages/switch/switch.d.ts +1 -1
- package/dist/types/packages/switch/switch.taro.d.ts +1 -1
- package/dist/types/packages/tabbar/context.d.ts +1 -1
- package/dist/types/packages/tabbar/tabbar.d.ts +1 -1
- package/dist/types/packages/tabbar/tabbar.taro.d.ts +1 -1
- package/dist/types/packages/table/table.d.ts +1 -1
- package/dist/types/packages/table/table.taro.d.ts +1 -1
- package/dist/types/packages/table/types.d.ts +1 -1
- package/dist/types/packages/tabpane/tabpane.d.ts +1 -1
- package/dist/types/packages/tabpane/tabpane.taro.d.ts +1 -1
- package/dist/types/packages/tabs/tabs.d.ts +2 -2
- package/dist/types/packages/tabs/tabs.taro.d.ts +2 -2
- package/dist/types/packages/tag/tag.d.ts +1 -2
- package/dist/types/packages/tag/tag.taro.d.ts +1 -2
- package/dist/types/packages/textarea/textarea.d.ts +1 -2
- package/dist/types/packages/timedetail/timedetail.d.ts +2 -2
- package/dist/types/packages/timedetail/timedetail.taro.d.ts +2 -2
- package/dist/types/packages/toast/Notification.d.ts +1 -1
- package/dist/types/packages/toast/index.d.ts +1 -1
- package/dist/types/packages/toast/toast.d.ts +1 -1
- package/dist/types/packages/toast/toast.taro.d.ts +1 -1
- package/dist/types/packages/tour/tour.d.ts +2 -3
- package/dist/types/packages/tour/tour.taro.d.ts +2 -3
- package/dist/types/packages/trendarrow/trendarrow.d.ts +1 -1
- package/dist/types/packages/trendarrow/trendarrow.taro.d.ts +1 -1
- package/dist/types/packages/uploader/preview.d.ts +1 -1
- package/dist/types/packages/uploader/preview.taro.d.ts +1 -1
- package/dist/types/packages/uploader/uploader.d.ts +1 -1
- package/dist/types/packages/uploader/uploader.taro.d.ts +2 -2
- package/dist/types/packages/video/video.d.ts +1 -1
- package/dist/types/packages/virtuallist/virtuallist.d.ts +1 -1
- package/dist/types/packages/watermark/watermark.d.ts +1 -1
- package/dist/types/packages/watermark/watermark.taro.d.ts +1 -1
- package/dist/types/utils/merge-props.d.ts +9 -5
- package/dist/types/utils/render.d.ts +1 -1
- package/dist/types/utils/typings.d.ts +1 -1
- package/dist/types/utils/use-lock-scoll-taro.d.ts +1 -1
- package/dist/types/utils/use-touch.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { MouseEvent } from 'react';
|
|
1
|
+
import { default as React, MouseEvent } from 'react';
|
|
3
2
|
import { BasicComponent } from '../../utils/typings';
|
|
4
3
|
export type ButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
5
4
|
export type ButtonSize = 'xlarge' | 'large' | 'normal' | 'small' | 'mini';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { MouseEvent } from 'react';
|
|
1
|
+
import { default as React, MouseEvent } from 'react';
|
|
3
2
|
import { ButtonProps as MiniProgramButtonProps } from '@tarojs/components';
|
|
4
3
|
import { BasicComponent } from '../../utils/typings';
|
|
5
4
|
type OmitMiniProgramButtonProps = Omit<MiniProgramButtonProps, 'size' | 'type' | 'onClick' | 'style'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { CalendarDay, CalendarType, CalendarRef } from './types';
|
|
3
3
|
export interface CalendarProps {
|
|
4
4
|
/**
|
|
5
5
|
* 类型,日期选择'single',区间选择'range'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { CalendarDay, CalendarType, CalendarRef } from './types';
|
|
3
3
|
export interface CalendarProps {
|
|
4
4
|
type?: CalendarType;
|
|
5
5
|
autoBackfill?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import
|
|
3
|
+
import { CalendarCardDay, CalendarCardMonth, CalendarCardRef, CalendarCardValue } from './types';
|
|
4
4
|
export interface CalendarCardProps extends BasicComponent {
|
|
5
5
|
/**
|
|
6
6
|
* 类型,单个日期 single,多个日期 multiple,日期范围 range,周选择 week
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import
|
|
3
|
+
import { CalendarCardDay, CalendarCardMonth, CalendarCardRef, CalendarCardValue } from './types';
|
|
4
4
|
export interface CalendarCardProps extends BasicComponent {
|
|
5
5
|
type: 'single' | 'multiple' | 'range' | 'week';
|
|
6
6
|
value?: CalendarCardValue;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import { PopupProps } from '
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { PopupProps } from '../popup/index';
|
|
3
3
|
import { CalendarDay, CalendarValue, CalendarType } from '../calendar/types';
|
|
4
4
|
type CalendarRef = {
|
|
5
5
|
scrollToDate: (date: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import { PopupProps } from '
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { PopupProps } from '../popup/index.taro';
|
|
3
3
|
import { CalendarDay, CalendarValue, CalendarType } from '../calendar/types';
|
|
4
4
|
type CalendarRef = {
|
|
5
5
|
scrollToDate: (date: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import { PopupProps } from '
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { PopupProps } from '../popup/popup';
|
|
3
3
|
import { CascaderOption, CascaderValue, CascaderOptionKey } from './types';
|
|
4
4
|
export interface CascaderProps extends Pick<PopupProps, 'className' | 'style' | 'closeIcon' | 'closeable' | 'title' | 'left' | 'closeIconPosition' | 'onClose'> {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import { PopupProps } from '
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { PopupProps } from '../popup/popup.taro';
|
|
3
3
|
import { CascaderOption, CascaderValue, CascaderOptionKey } from './types';
|
|
4
4
|
export interface CascaderProps extends Pick<PopupProps, 'className' | 'style' | 'closeIcon' | 'closeable' | 'title' | 'left' | 'closeIconPosition' | 'onClose'> {
|
|
5
5
|
popup: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import CellGroup from '
|
|
3
|
+
import { default as CellGroup } from '../cellgroup';
|
|
4
4
|
export interface CellProps extends BasicComponent {
|
|
5
5
|
/**
|
|
6
6
|
* 标题
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import { CellGroup } from '
|
|
3
|
+
import { CellGroup } from '../cellgroup/cellgroup.taro';
|
|
4
4
|
export interface CellProps extends BasicComponent {
|
|
5
5
|
title: ReactNode;
|
|
6
6
|
description: ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import CheckboxGroup from '
|
|
1
|
+
import { default as React, FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { default as CheckboxGroup } from '../checkboxgroup';
|
|
3
3
|
import { BasicComponent } from '../../utils/typings';
|
|
4
|
-
import { CheckboxLabelPosition } from '
|
|
4
|
+
import { CheckboxLabelPosition } from '../checkboxgroup/types';
|
|
5
5
|
export type CheckboxShape = 'button' | 'round';
|
|
6
6
|
export interface CheckboxProps extends BasicComponent {
|
|
7
7
|
checked: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import CheckboxGroup from '
|
|
1
|
+
import { default as React, FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { default as CheckboxGroup } from '../checkboxgroup/index.taro';
|
|
3
3
|
import { BasicComponent } from '../../utils/typings';
|
|
4
|
-
import { CheckboxLabelPosition } from '
|
|
4
|
+
import { CheckboxLabelPosition } from '../checkboxgroup/types';
|
|
5
5
|
export type CheckboxShape = 'button' | 'round';
|
|
6
6
|
export interface CheckboxProps extends BasicComponent {
|
|
7
7
|
checked: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RadioGroupOption } from '
|
|
3
|
-
import { CheckboxDirection, CheckboxLabelPosition, CheckboxLimit } from '
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RadioGroupOption } from '../radiogroup/types';
|
|
3
|
+
import { CheckboxDirection, CheckboxLabelPosition, CheckboxLimit } from './types';
|
|
4
4
|
export interface CheckboxGroupProps {
|
|
5
5
|
/**
|
|
6
6
|
* 是否禁用选择,将用于其下的全部复选框
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RadioGroupOption } from '
|
|
3
|
-
import { CheckboxDirection, CheckboxLabelPosition, CheckboxLimit } from '
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RadioGroupOption } from '../radiogroup/types';
|
|
3
|
+
import { CheckboxDirection, CheckboxLabelPosition, CheckboxLimit } from './types';
|
|
4
4
|
export interface CheckboxGroupProps {
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
value?: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CheckboxLimit, CheckboxLabelPosition } from './types';
|
|
2
|
-
declare const CheckboxGroupContext: import(
|
|
2
|
+
declare const CheckboxGroupContext: import('react').Context<{
|
|
3
3
|
labelPosition: CheckboxLabelPosition;
|
|
4
4
|
disabled: boolean | undefined;
|
|
5
5
|
list: boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import type { MouseEvent } from 'react';
|
|
1
|
+
import { default as React, FunctionComponent, MouseEvent } from 'react';
|
|
3
2
|
import { BasicComponent } from '../../utils/typings';
|
|
4
3
|
export type ColEventType = 'row' | 'col';
|
|
5
4
|
export interface ColProps extends BasicComponent {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import type { MouseEvent } from 'react';
|
|
1
|
+
import { default as React, FunctionComponent, MouseEvent } from 'react';
|
|
3
2
|
import { BasicComponent } from '../../utils/typings';
|
|
4
3
|
export type ColEventType = 'row' | 'col';
|
|
5
4
|
export interface ColProps extends BasicComponent {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import CollapseItem from '../collapseitem';
|
|
3
|
+
import { default as CollapseItem } from '../collapseitem';
|
|
4
4
|
export type CollapseActiveName = Array<string> | string;
|
|
5
5
|
export interface CollapseProps extends BasicComponent {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import CollapseItem from '../collapseitem/index.taro';
|
|
3
|
+
import { default as CollapseItem } from '../collapseitem/index.taro';
|
|
4
4
|
export type CollapseActiveName = Array<string> | string;
|
|
5
5
|
export interface CollapseProps extends BasicComponent {
|
|
6
6
|
activeName: CollapseActiveName;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
export interface CollapseItemProps extends BasicComponent {
|
|
4
4
|
title: ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
import { BaseLang } from '../../locales/base';
|
|
4
|
-
import
|
|
4
|
+
import { NutCSSVariables } from './types';
|
|
5
5
|
export interface ConfigProviderProps extends BasicComponent {
|
|
6
6
|
/**
|
|
7
7
|
* 设置多语言包
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
import { BaseLang } from '../../locales/base';
|
|
4
|
-
import
|
|
4
|
+
import { NutCSSVariables } from './types';
|
|
5
5
|
export interface ConfigProviderProps extends BasicComponent {
|
|
6
6
|
locale: BaseLang;
|
|
7
7
|
direction?: ConfigProviderDirection;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import { PickerOption, PickerProps } from '
|
|
1
|
+
import { default as React, FunctionComponent } from 'react';
|
|
2
|
+
import { PickerOption, PickerProps } from '../picker/index';
|
|
3
3
|
import { BasicComponent } from '../../utils/typings';
|
|
4
4
|
export interface DatePickerProps extends BasicComponent {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import { PickerOption, PickerProps } from '
|
|
1
|
+
import { default as React, FunctionComponent } from 'react';
|
|
2
|
+
import { PickerOption, PickerProps } from '../picker/index.taro';
|
|
3
3
|
import { BasicComponent } from '../../utils/typings';
|
|
4
4
|
export interface DatePickerProps extends BasicComponent {
|
|
5
5
|
value?: Date;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ReactNode, ForwardRefExoticComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import type { MouseEvent } from 'react';
|
|
1
|
+
import { ReactNode, ForwardRefExoticComponent, PropsWithChildren, MouseEvent } from 'react';
|
|
3
2
|
import { BasicComponent } from '../../utils/typings';
|
|
4
3
|
export type DialogConfigType = {
|
|
5
4
|
prefixCls?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import { OverlayProps } from '
|
|
1
|
+
import { default as React, FunctionComponent, HTMLAttributes } from 'react';
|
|
2
|
+
import { OverlayProps } from '../overlay/overlay';
|
|
3
3
|
interface DialogWrapProps extends OverlayProps {
|
|
4
4
|
visible: boolean;
|
|
5
5
|
overlay: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
export type DividerContentPosition = 'left' | 'center' | 'right';
|
|
4
4
|
export type DividerDirection = 'horizontal' | 'vertical';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
export type DividerContentPosition = 'left' | 'center' | 'right';
|
|
4
4
|
export type DividerDirection = 'horizontal' | 'vertical';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
export declare const elevatorContext: React.Context<ElevatorData>;
|
|
4
4
|
export interface ElevatorProps extends BasicComponent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
export declare const elevatorContext: React.Context<ElevatorData>;
|
|
4
4
|
export interface ElevatorProps extends BasicComponent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
export type EllipsisDirection = 'start' | 'end' | 'middle';
|
|
4
4
|
export interface EllipsisProps extends BasicComponent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
export type EllipsisDirection = 'start' | 'end' | 'middle';
|
|
4
4
|
export interface EllipsisProps extends BasicComponent {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import { EmptyAction } from '
|
|
3
|
+
import { EmptyAction } from './index';
|
|
4
4
|
export interface EmptyProps extends BasicComponent {
|
|
5
5
|
/**
|
|
6
6
|
* 图片,支持传入图片 URL
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import
|
|
3
|
+
import { EmptyAction } from './types';
|
|
4
4
|
export interface EmptyProps extends BasicComponent {
|
|
5
5
|
image?: ReactNode;
|
|
6
6
|
imageSize: number | string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent, MouseEvent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import { FixedNavType, FixedNavItem, FixedNavPosition } from '
|
|
3
|
+
import { FixedNavType, FixedNavItem, FixedNavPosition } from './types';
|
|
4
4
|
export interface FixedNavProps extends BasicComponent {
|
|
5
5
|
/**
|
|
6
6
|
* 是否打开
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent, MouseEvent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import { FixedNavType, FixedNavItem, FixedNavPosition } from '
|
|
3
|
+
import { FixedNavType, FixedNavItem, FixedNavPosition } from './types';
|
|
4
4
|
export interface FixedNavProps extends BasicComponent {
|
|
5
5
|
visible: boolean;
|
|
6
6
|
overlay: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import { FormInstance } from '
|
|
3
|
+
import { FormInstance } from './types';
|
|
4
4
|
export interface FormProps extends BasicComponent {
|
|
5
5
|
/**
|
|
6
6
|
* 表单底部区域,一般放置确认和重置按钮
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import { FormInstance } from '
|
|
3
|
+
import { FormInstance } from './types';
|
|
4
4
|
export interface FormProps extends BasicComponent {
|
|
5
5
|
footer: ReactNode;
|
|
6
6
|
initialValues: any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
import { FormProps } from './form';
|
|
3
3
|
import { FormItem } from '../formitem/formitem';
|
|
4
4
|
import { FormInstance } from './types';
|
|
5
|
-
import { useForm } from '
|
|
5
|
+
import { useForm } from './useform';
|
|
6
6
|
export type { FormItemRuleWithoutValidator, FormInstance, FormFieldEntity, } from './types';
|
|
7
7
|
type CompoundedComponent = React.ForwardRefExoticComponent<Partial<FormProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & React.RefAttributes<FormInstance>> & {
|
|
8
8
|
Item: typeof FormItem;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
import { FormProps } from './form.taro';
|
|
3
3
|
import { FormItem } from '../formitem/formitem.taro';
|
|
4
4
|
import { FormInstance } from './types';
|
|
5
|
-
import { useForm } from '
|
|
5
|
+
import { useForm } from './useform.taro';
|
|
6
6
|
export type { FormItemRuleWithoutValidator, FormInstance, FormFieldEntity, } from './types';
|
|
7
7
|
type CompoundedComponent = React.ForwardRefExoticComponent<Partial<FormProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & React.RefAttributes<FormInstance>> & {
|
|
8
8
|
Item: typeof FormItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, CSSProperties, FunctionComponent } from 'react';
|
|
2
2
|
import { GridItem, GridItemProps } from '../griditem/griditem';
|
|
3
3
|
export type GridDirection = 'horizontal' | 'vertical';
|
|
4
4
|
export interface GridProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, CSSProperties, FunctionComponent } from 'react';
|
|
2
2
|
import { GridItem, GridItemProps } from '../griditem/griditem.taro';
|
|
3
3
|
export type GridDirection = 'horizontal' | 'vertical';
|
|
4
4
|
export interface GridProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
type GridDirection = 'horizontal' | 'vertical';
|
|
4
4
|
export interface GridItemProps extends BasicComponent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
type GridDirection = 'horizontal' | 'vertical';
|
|
4
4
|
export interface GridItemProps extends BasicComponent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
import { InfiniteLoadingType } from './types';
|
|
4
4
|
export interface InfiniteLoadingProps extends BasicComponent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { ScrollViewProps } from '@tarojs/components';
|
|
3
3
|
import { BasicComponent } from '../../utils/typings';
|
|
4
4
|
import { InfiniteLoadingType } from './types';
|