babel-plugin-jsx icon indicating copy to clipboard operation
babel-plugin-jsx copied to clipboard

Problems of prop type checking for TSX components

Open LostAsk opened this issue 3 years ago • 1 comments

如题,tsx编译时,已经定义出来的props属性,在setup函数中 引用会 提示类型检查错误... image

另外:如何在tsx中定义 css/less, 并在tsx中引用/使用?

另外:在vscode中,在 自定义.vue如何引用 tsx文件。。。 image

LostAsk avatar Jul 05 '21 03:07 LostAsk

另外1: vue 官方有提供 CSS Modules,可直接在 tsx/jsx 中使用

import styles from './xxx.module.less';

// tsx   <div class={styles.xxx} />

另外2: 你有导出 demo_tsx 吗?

export { demo_tsx };

sendya avatar Jul 12 '21 09:07 sendya