1.monent->dayjs
- 类型问题
Monent->Dayjs
unitOfTime.Base->ManipulateType
- 判断方式
monent()._isAMomentObject ->dayjs() instanceof dayjs
- 值的可变性->不可变性产生的问题
死循环:
由于dayjs数据是不可变性的,date值不会被改变,导致死循环
- 报错
monent('6:00', 'HH:mm') -> dayjs('2023-6-19 6:00', 'HH:mm')
dayjs第一个参数必须为带年份,月份,日期的时间单位
2.css
删除antd.variable.min.css引入,ConfigProvider全局theme引入
更多改动参考ant.design/docs/react/…
3.组件类型
- import type { TableProps } from 'antd/lib/table/Table' ->import { TableProps } from 'antd'
4.node版本
docker镜像node版本不宜过低,需选择16以上版本