Compare commits

...

2 Commits

Author SHA1 Message Date
ivo
36f68f7174 修改说明页面 2022-05-22 17:47:24 +08:00
ivo
8c8c874a25 修改组件id冲突bug 2022-05-22 14:24:51 +08:00
2 changed files with 7 additions and 1 deletions

View File

@ -3,11 +3,17 @@
## Description
vue2 ruler tool
## Feature
- dynamic size
- mouse events(click, move)
- orientation switch(horizontal, vertical)
## Installation
```
npm install dsw-ruler
```
### Usage
### Template
```
<template>

View File

@ -1,7 +1,7 @@
<template>
<div id="app">
<DswRuler class="horizontal" :minNum="-107" :maxNum="num" @move="callback" @click="callback"></DswRuler>
<DswRuler class="vertical" :orientation="1" :minNum="-107" :maxNum="150"></DswRuler>
<DswRuler class="vertical" :orientation="1" :minNum="-107" :maxNum="150" @move="callback" @click="callback"></DswRuler>
<div class="btn">
<button @click="sub">-</button>
<button @click="add">+</button>