Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

[需求]导出组件类型 #369

Closed
yesmeck opened this issue Nov 18, 2019 · 2 comments · Fixed by #394
Closed

[需求]导出组件类型 #369

yesmeck opened this issue Nov 18, 2019 · 2 comments · Fixed by #394
Labels
feature good first issue Good for newcomers

Comments

@yesmeck
Copy link
Member

yesmeck commented Nov 18, 2019

支持组件类型的导出,方便二次封装:

import { Button, ButtonProps } from 'remax/alipay';

interface Props extends ButtonProps {
   color: string;
}

const MyButton: React.FC<Props> = () => {
  ...
}
@yesmeck yesmeck added feature good first issue Good for newcomers labels Nov 18, 2019
@Darmody
Copy link
Contributor

Darmody commented Nov 21, 2019

import { ButtonProps } from "remax/esm/adapters/wechat/components/Button";

目前是可以这么导出的

@yesmeck
Copy link
Member Author

yesmeck commented Nov 21, 2019

依赖包的路径不好

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants