Compare commits
2 Commits
bc97e8a305
...
36f68f7174
| Author | SHA1 | Date | |
|---|---|---|---|
| 36f68f7174 | |||
| 8c8c874a25 |
@ -3,11 +3,17 @@
|
|||||||
## Description
|
## Description
|
||||||
vue2 ruler tool
|
vue2 ruler tool
|
||||||
|
|
||||||
|
## Feature
|
||||||
|
- dynamic size
|
||||||
|
- mouse events(click, move)
|
||||||
|
- orientation switch(horizontal, vertical)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
```
|
```
|
||||||
npm install dsw-ruler
|
npm install dsw-ruler
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Usage
|
||||||
### Template
|
### Template
|
||||||
```
|
```
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<DswRuler class="horizontal" :minNum="-107" :maxNum="num" @move="callback" @click="callback"></DswRuler>
|
<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">
|
<div class="btn">
|
||||||
<button @click="sub">-</button>
|
<button @click="sub">-</button>
|
||||||
<button @click="add">+</button>
|
<button @click="add">+</button>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user