2.0.1 • Published 1 year ago

ui-lib-2020 v2.0.1

Weekly downloads
56
License
ISC
Repository
github
Last release
1 year ago

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"
      ],
    ],
  };
2.0.1

1 year ago

2.0.0

1 year ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago