payload: {"action":"closed","issue":{"url":"https://api.github.com/repos/NervJS/taro/issues/2989","repository_url":"https://api.github.com/repos/NervJS/taro","labels_url":"https://api.github.com/repos/NervJS/taro/issues/2989/labels{/name}","comments_url":"https://api.github.com/repos/NervJS/taro/issues/2989/comments","events_url":"https://api.github.com/repos/NervJS/taro/issues/2989/events","html_url":"https://github.com/NervJS/taro/issues/2989","id":441609616,"node_id":"MDU6SXNzdWU0NDE2MDk2MTY=","number":2989,"title":"tsx 报错","user":{"login":"misszoessmile","id":35720631,"node_id":"MDQ6VXNlcjM1NzIwNjMx","avatar_url":"https://avatars1.githubusercontent.com/u/35720631?v=4","gravatar_id":"","url":"https://api.github.com/users/misszoessmile","html_url":"https://github.com/misszoessmile","followers_url":"https://api.github.com/users/misszoessmile/followers","following_url":"https://api.github.com/users/misszoessmile/following{/other_user}","gists_url":"https://api.github.com/users/misszoessmile/gists{/gist_id}","starred_url":"https://api.github.com/users/misszoessmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misszoessmile/subscriptions","organizations_url":"https://api.github.com/users/misszoessmile/orgs","repos_url":"https://api.github.com/users/misszoessmile/repos","events_url":"https://api.github.com/users/misszoessmile/events{/privacy}","received_events_url":"https://api.github.com/users/misszoessmile/received_events","type":"User","site_admin":false},"labels":[{"id":1109533556,"node_id":"MDU6TGFiZWwxMTA5NTMzNTU2","url":"https://api.github.com/repos/NervJS/taro/labels/answered","name":"answered","color":"5319e7","default":false},{"id":894439810,"node_id":"MDU6TGFiZWw4OTQ0Mzk4MTA=","url":"https://api.github.com/repos/NervJS/taro/labels/question","name":"question","color":"d876e3","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-05-08T08:18:41Z","updated_at":"2019-05-08T10:19:33Z","closed_at":"2019-05-08T10:19:33Z","author_association":"NONE","body":"**问题描述**\r\n根据taro官方文档搭建myApp项目，进行开发的时候遇到父组件给子组件传值时编辑器飘红报错，但是传值可以成功，报错信息见下面截图。\r\n\r\n**复现步骤**\r\n[复现问题的步骤]\r\n1. 新建test.tsx文件\r\n2. 新建line.tsx组件，并在test.tsx组件引用\r\n3. Scroll down to '....'\r\n4. See error\r\n\r\n父组件代码：\r\n```js\r\nimport Taro, { Component } from '@tarojs/taro';\r\nimport { View, Text, Button } from '@tarojs/components';\r\nimport Line from '../line/line'\r\nclass Demo extends Component {\r\n    componentWillMount() { }\r\n    componentDidMount() { }\r\n    componentWillReceiveProps(nextProps, nextContext) { }\r\n    componentWillUnmount() { }\r\n    componentDidShow() { }\r\n    componentDidHide() { }\r\n    componentDidCatchError() { }\r\n    componentDidNotFound() { }\r\n    render() {\r\n        return (\r\n            <View>\r\n                <Line name=\"12\" />\r\n            </View>\r\n        );\r\n    }\r\n}\r\nexport default Demo;\r\n```\r\n子组件代码：\r\n ```js\r\n\r\nimport Taro, { Component } from '@tarojs/taro'\r\nimport { View } from '@tarojs/components'\r\nimport { AtListItem } from 'taro-ui'\r\nimport './line.scss'\r\n\r\nclass Line extends Component {\r\n    componentWillMount() { }\r\n    componentDidMount() { }\r\n    componentWillUnmount() { }\r\n    componentDidShow() { }\r\n    componentDidHide() { }\r\n\r\n    render() {\r\n        return (\r\n            <View className='wrap-line'>\r\n                <AtListItem title={this.props.name} extraText='详细信息' />\r\n            </View>\r\n        )\r\n    }\r\n}\r\nexport default Line\r\n```\r\n\r\n**期望行为**\r\n编辑器提示错误，不影响功能实现，影响开发体验，期望帮忙解决，谢谢！\r\n\r\n**报错信息**\r\n当给子组件传参时父组件在vscode中提示错误：\r\nType '{ name: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Line> & Readonly<{}> & Readonly<{ children?: any; }>'.\r\n  Property 'name' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Line> & Readonly<{}> & Readonly<{ children?: any; }>'.ts(2322)\r\n错误如图：\r\n![image](https://user-images.githubusercontent.com/35720631/57359000-325edc00-71a9-11e9-9145-b9ccdf43e800.png)\r\n\r\n子组件能获取到值，但同样提示错误：\r\nProperty 'name' does not exist on type 'Readonly<{}> & Readonly<{ children?: any; }>'.\r\n错误如图：\r\n![image](https://user-images.githubusercontent.com/35720631/57359118-718d2d00-71a9-11e9-93af-c3d78e052593.png)\r\n\r\n**系统信息**\r\n\r\n👽 Taro v1.2.26\r\n  Taro CLI 1.2.26 environment info:\r\n    System:\r\n      OS: Windows 10\r\n    Binaries:\r\n      Node: 10.15.3 - D:\\Program Files\\nodejs\\node.EXE\r\n      Yarn: 1.13.0 - C:\\Program Files (x86)\\Yarn\\bin\\yarn.CMD\r\n      npm: 6.4.1 - D:\\Program Files\\nodejs\\npm.CMD\r\n\r\n"}}
other: {"actor":{"display_login":"yuche"}}