1.0.3 • Published 1 year ago

@codeniu/vue-divider v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

vue-divider vue2 NPM npm

vue-divider is a dependency-free, lightweight vue component. This is a study project, You will learn how to build a npm package from this project. You can also learn some webpack configurations.

Try the demo

How to use?

npm install @codeniu@vue-divider

Example

<template>
  <div>
    <niu-divider />
    <niu-divider>This is a divider</niu-divider>
  </div>
</template>

<script>
  import niuDivider from '@codeniu/vue-divider';
  export default {
    components: { niuDivider },
    data () {
      return { }
    }
  }
</script>

Options

PropertyDescriptiontypedefault
contentp-position文字位置Stringleft
hidden-preset隐藏头部标记Booleanfalse

查看npm包的发布教程

掘金教程