forked from didi/mand-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Ruler):add new component (didi#382)
- Loading branch information
1 parent
42a3043
commit bb71db5
Showing
12 changed files
with
601 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: Ruler | ||
preview: https://didi.github.io/mand-mobile/examples/#/ruler | ||
--- | ||
|
||
Sliding selection | ||
|
||
### Import | ||
|
||
```javascript | ||
import { Ruler } from 'mand-mobile' | ||
|
||
Vue.component(Ruler.name, Ruler) | ||
``` | ||
|
||
### Code Examples | ||
<!-- DEMO --> | ||
|
||
### API | ||
|
||
#### [Ruler] Props | ||
|Props | Description | Type | Default | Note| | ||
|----|-----|------|------|------| | ||
|v-model|current value|Number|0|-| | ||
|scope|ruler scope|Number[]|[0, 100]|-| | ||
|step|each large distance of the scale|Number|10|-| | ||
|unit|scale each small distance|Number|1|-| | ||
|min|minimum|Number|0|-| | ||
|max|maximum|Number|100|-| | ||
|
||
#### [Ruler] Events | ||
|
||
##### @change(currentValue) | ||
Change value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: Ruler 刻度尺 | ||
preview: https://didi.github.io/mand-mobile/examples/#/ruler | ||
--- | ||
|
||
滑动选择 | ||
|
||
### 引入 | ||
|
||
```javascript | ||
import { Ruler } from 'mand-mobile' | ||
|
||
Vue.component(Ruler.name, Ruler) | ||
``` | ||
|
||
### 代码演示 | ||
<!-- DEMO --> | ||
|
||
### API | ||
|
||
#### [Ruler] Props | ||
|属性 | 说明 | 类型 | 默认值 | 备注 | | ||
|----|-----|------|------|------| | ||
|v-model|双向绑定的值|Number|0|-| | ||
|scope|刻度尺范围|Number[]|[0, 100]|-| | ||
|step|刻度尺每一大格步数|Number|10|-| | ||
|unit|刻度尺每一小格步数|Number|1|-| | ||
|min|最小可滑动位置|Number|0|-| | ||
|max|最大可滑动位置|Number|100|-| | ||
|
||
#### [Ruler] Events | ||
|
||
##### @change(currentValue) | ||
值发生变化事件 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default { | ||
"name": "ruler", | ||
"text": "刻度尺", | ||
"category": "form", | ||
"description": "刻度尺", | ||
"author": "supergaojian <[email protected]>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.