1.0.10 • Published 4 years ago

simple-custom-demo v1.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

vue-webpack-simple

  npm i simple-custom-demo

完整引入

import SimpleCustomDemo from './simple-custom-demo'
Vue.use(SimpleCustomDemo)

<custom-button bgcolor="#67c23a" color="#fff">成功</custom-button>
<custom-input v-model="input2" placeholder="请输入信息"></custom-input>

按需引入

import { CustomButton } from 'simple-custom-demo'
Vue.use(CustomButton)

<custom-button bgcolor="#67c23a" color="#fff">成功</custom-button>
  npm i babel-plugin-import -D

编辑 babel.config.js

  plugins: [
    ['import',
      {
        libraryName: 'simple-custom-demo',
        customName(name) {
          return `simple-custom-demo/src/packages/${name}`
        },
      }
    ]
  ]
1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago