工具选择 | 依赖包 | 说明 | 其他 | 是否必须 | 备注 |
---|---|---|---|---|---|
框架 | react | ✅ | |||
JS 语言 | TypeScript | ✅ | |||
CSS 语言 | css-modules + less + postcss | ✅ | |||
JS 编译 | babel | ✅ | |||
模块打包 | webpack 全家桶 | ✅ | |||
单元测试 | jest + enzyme + puppteer + jsdom | ✅ | |||
路由 | react-router | ✅ | |||
数据流 | dva + redux 生态 | ✅ | |||
代码风格 | eslint+prettier | ✅ | |||
JS 压缩 | TerserJS | ✅ | |||
CSS 压缩 | cssnano | ✅ | |||
请求库 | umi-request | ✅ | |||
UI | AntDesign+ AntDesignPro | ✅ | |||
国际化 | react-intl | ✅ | |||
hooks 库 | umi-hooks | ✅ | |||
静态文档 | docz | ✅ | |||
微前端 | qiankun | ✅ | |||
图表库 | antv | ✅ |
#root
方法 src/global.less.ant-select-selection {font-size: 16px
global
方法:global .ant-select-selection {font-size: 16px;}
如果权重不够可以加上!important
className={styles.selection}
.selection {:global {.ant-select-selection {background-color: red !important; //设置颜色}}}
className="select_test"
:global {.select_test {//给该select框加的className.ant-select-selection {background-color: red;}}}