izk-ui
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

安装命令

npm 安装

  npm i -D izk-ui

yarn 安装

  yarn add -D izk-ui

加载

全局加载

// main.js
import IZKUI from 'izk-ui'
import 'izk-ui/lib/theme-chalk/index.css'
Vue.use(IZKUI)

按需加载

import 单独引入
// main.js
  import { Button } from "izk-ui";
  Vue.use(Button);
借助babel-plugin-component
  npm i -D babel-plugin-component // or yarn add -D babel-plugin-component
  
babel.config.js 添加 plugins
module.exports = {
  presets: ["@vue/cli-plugin-babel/preset"],
  plugins: [
    [
      "component",
      {
        libraryName: "izk-ui",
        styleLibraryName: "theme-chalk"
      }
    ]
  ]
};

TODO

  1. 完善组件库
  2. 优化打包逻辑
  3. 换肤功能

Readme

Keywords

Package Sidebar

Install

npm i izk-ui

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

37.2 kB

Total Files

28

Last publish

Collaborators

  • guoshiwei