tsx文件的模板 与js区别,需要定义数据类型(tsx 就是 使用 typescript 书写 jsx) import React from 'react'; import styles from './index.less'; interface Props { } interface State { } class WorkOrder <