ui-lib-2020
v2.0.1
Published
Component library based on Vue. js.
Downloads
2
Readme
ui-lib-2020
A packaged component for testing
usAge
import MyLib from 'my-lib'
Vue.use(MyLib)
<my-button>按钮组件</my-button>
<my-input v-model="value">按钮组件</my-input>
<p>{{ value }}</p>
data() {
return {
value: '',
};
},
or
import { Button , Input } from 'my-lib'
Vue.use(Button)
Vue.use(Input)
// babel.config.js
module.exports = {
presets: ["@babel/preset-env"],
plugins: [
[
"component",
{
libDir: "lib",
root: 'my-lib',
libraryName: "my-lib",
styleLibrary: {
name: "lib-style",
base: false,
},
},
"my-lib"
],
],
};