README
vc-align
Align Ui Component for Vue
安装 Install
npm install vc-align
组件属性 props
name | type | default | description |
---|---|---|---|
align-set | Object | 对齐方式配置, https://github.com/yiminghe/dom-align | |
target | function():HTMLElement | function(){return window;} | 对齐目标 |
onAlign | function(source:HTMLElement, align:Object) | 对齐事件后进行回调 | |
monitorWindowResize | Boolean | false | 调整窗口大小是是否重新对齐 |
monitorBufferTime | Number | resize的时候,重新对齐延迟时间 |
运行及构建步骤 run&build steps
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
For detailed explanation on how things work, checkout the guide and docs for vue-loader.