@codeniu/vue-divider

1.0.3 • Public • Published

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

Property Description type default
contentp-position 文字位置 String left
hidden-preset 隐藏头部标记 Boolean false

查看npm包的发布教程

掘金教程

Package Sidebar

Install

npm i @codeniu/vue-divider

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

56.1 kB

Total Files

12

Last publish

Collaborators

  • codeniu