0.1.12 • Published 3 years ago

raffle-unit v0.1.12

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

raffle-unit

  • 开发的组件放在 packages 文件夹中,命名大驼峰
  • npm run start 自动生成组件里面及 package 下的 index.js 文件
  • 组件里面必须带有 name 选项
  • examples/views 下面文件为组件使用 demo,里面 title 设置为导航名称
  • 发布
    • npm run start
    • npm run build
    • 更改版本号
    • npm run publish

安装

  • 完整引入
npm install raffle-unit -S

// 入口文件 main.js
import RaffleUnit from 'raffle-unit'
import 'raffle-unit/lib/index/style.css'
Vue.use(RaffleUnit)
  • 按需引入
npm install raffle-unit -S
npm i babel-plugin-import -D

// 入口文件 main.js
import { Turntable } from 'raffle-unit'
Vue.use(Turntable)

// babel-loader option
{
  plugins: [
    [
      "import",
      {
        "libraryName": 'raffle-unit',
        "style": (name) => {
            return `${name}/style.css`;
        }
      }
    ]
  ]
}
0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago