1.0.1 • Published 3 years ago
@ued_fpi/theme-template v1.0.1
使用教程: 该使用教程仅适用于基于fpi-cli创建的项目。其他项目视情况修改。
- 修改
babel.config.js
module.exports = {
presets: ['@vue/cli-plugin-babel/preset'],
plugins: [
[
'component',
{
libraryName: '@ued_fpi/element-ui',
style: false,
// styleLibraryName: 'theme-chalk',
},
],
],
}
- 引入
@ued_fpi/theme-template
yarn add @ued_fpi/theme-template
- 在
main.js
中添加以下代码
import { loadTheme } from '@ued_fpi/theme-template'
loadTheme()
- 使用模板
- 引入模板
import ThemeTemplate from '@ued_fpi/theme-template'
正常注册组件即可