Skip to content

从 Vben 迁移

全局样式和配置组件

  • 在入口文件,一般为main.ts,引入全局样式
ts
import '@aplus-frontend/ui/es/src/theme/reset.css';

TIP

如果你已经引入了@aplus-frontend/antdvreset.css,则不需要再次导入此全局样式

  • App.vue中使用@aplus-frontend/uiConfigProvider替换@aplus-frontend/antdvConfigProvider

ConfigProvider兼容antdv的所有 props,并且额外提供了props用于全局配置业务组件的多语言/组件默认 API/ProTable 基础配置等

组件

  • ApiSelectApiRadioGroupapi属性默认值你现在可以通过ConfigProviderapi属性配置
  • 你可以直接从导入ApiXXX组件或者推荐使用Field.ApiXXX导入这些组件
  • BasicForm改名为ProForm,请使用ApForm
  • BasicTable改名为ProTable,删除了列设置持久化缓存的功能,请使用ApGrid