1.0.3 • Published 1 year ago
@codeniu/vue-divider v1.0.3
vue-divider
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 |