From da406aa0ed0ab92d8dd7d6700a49465c5d765ea8 Mon Sep 17 00:00:00 2001 From: robin Date: Sun, 30 Apr 2023 01:44:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=A3=B0=E6=98=8E=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-ui/types/base.d.ts | 4 +++- packages/taro-ui/types/calendar.d.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/taro-ui/types/base.d.ts b/packages/taro-ui/types/base.d.ts index aa67a882f..0f894d597 100644 --- a/packages/taro-ui/types/base.d.ts +++ b/packages/taro-ui/types/base.d.ts @@ -1,9 +1,11 @@ -import { CSSProperties } from 'react' +import { CSSProperties, ReactNode } from 'react' export interface AtComponent { className?: string customStyle?: string | CSSProperties + + children?: ReactNode } export interface AtIconBaseProps2 extends AtComponent { diff --git a/packages/taro-ui/types/calendar.d.ts b/packages/taro-ui/types/calendar.d.ts index 2bc8d322d..eb2fed377 100644 --- a/packages/taro-ui/types/calendar.d.ts +++ b/packages/taro-ui/types/calendar.d.ts @@ -3,7 +3,7 @@ import { BaseEvent } from '@tarojs/components/types/common' // #region Calendar declare namespace Calendar { - export type DateArg = string | number | Date + export type DateArg = string | number export type classNameType = | string @@ -181,7 +181,7 @@ export interface AtCalendarControllerProps { onSelectDate: (e: BaseEvent) => void } -export interface AtCalendarControllerState {} +export interface AtCalendarControllerState { } // #endregion // #region AtCalendarBody