paas-element-front
v1.3.2-alpha-1
Published
每刻paas组件库
Downloads
12
Readme
import React from "react" import { Empty } from “pass-element-front” import "paas-element-front/dist/paas-element-front.min.css"
- 按需加载: 手动加载样式模块 import React from "react" import { Empty } from “paas-element-front” import “paas-element-front/lib/empty/style"
- 按需加载: 通过 babel-plugin-import 实现 // babel babel-plugin-import 插件配置: 创建多个 babel-plugin-import 实例 module.exports = { plugins: [ [ "babel-plugin-import", { "libraryName": “paas-element-front”, "libraryDirectory": "es", "style": true }, 'paas-element-front' ], [ "babel-plugin-import", { "libraryName": "antd", "libraryDirectory": "es", "style": true }, 'antd' ], ] } // 按需引入组件 import React from "react" import { Empty } from "paas-element-front"