antd 4.19.4 版本
// 这样没有问题
import {Button} from ‘antd’
console.log(Button)
// 这样就报错
import * as antd from ‘antd’
console.log(antd)
antd 4.19.4 版本
// 这样没有问题
import {Button} from ‘antd’
console.log(Button)
// 这样就报错
import * as antd from ‘antd’
console.log(antd)
2 回答2.7k 阅读✓ 已解决
1 回答1.7k 阅读✓ 已解决
4 回答1.7k 阅读✓ 已解决
2 回答2.5k 阅读✓ 已解决
1 回答2.6k 阅读✓ 已解决
2 回答1.6k 阅读✓ 已解决
1 回答1.4k 阅读✓ 已解决