从 Vben 迁移
全局样式和配置组件
- 在入口文件,一般为
main.ts
,引入全局样式
ts
import '@aplus-frontend/ui/es/src/theme/reset.css';
TIP
如果你已经引入了@aplus-frontend/antdv
的reset.css
,则不需要再次导入此全局样式
- 在
App.vue
中使用@aplus-frontend/ui
的ConfigProvider
替换@aplus-frontend/antdv
的ConfigProvider
此
ConfigProvider
兼容antdv
的所有 props,并且额外提供了props
用于全局配置业务组件的多语言/组件默认 API/ProTable 基础配置等
组件
ApiSelect
和ApiRadioGroup
的api
属性默认值你现在可以通过ConfigProvider
的api
属性配置- 你可以直接从导入
ApiXXX
组件或者推荐使用Field.ApiXXX
导入这些组件 BasicForm
改名为,请使用ProForm
ApForm
BasicTable
改名为,删除了列设置持久化缓存的功能,请使用ProTable
ApGrid