jd-opensource / jd-opensource/taro-ui

3.0.0-alpha.3 calendar 类型缺失

Open
#1,145 4 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

**问题描述**

3.0.0-alpha.3 的包中,`types/index.d.ts` 缺少 `calendar` 的 `Props` 类型

**复现步骤**

```js
// types/index.d.ts
import { ComponentClass } from 'react'
import { Props } from '../src/components/calendar/interface' // 由于包中不包含 `src` 目录,导致该类型引入失败

export { default as AtActionSheet, AtActionSheetItem } from './action-sheet'
export { default as AtActivityIndicator } from './activity-indicator'
export { default as AtAvatar } from './avatar'
export { default as AtBadge } from './badge'
export { default as AtButton } from './button'
export { default as AtCard } from './card'
```

**期望行为**

正确的类型声明/引用

**报错信息**

**系统信息**

Taro UI 版本 [3.0.0-alpha.3]

**补充信息**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.