mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
28 lines
319 B
Markdown
28 lines
319 B
Markdown
|
# Mark
|
||
|
```html
|
||
|
<n-slider
|
||
|
v-model="value"
|
||
|
range
|
||
|
:marks="marks"
|
||
|
:step="10"
|
||
|
/>
|
||
|
<n-input-number
|
||
|
v-model="value[0]"
|
||
|
/>
|
||
|
<n-input-number
|
||
|
v-model="value[1]"
|
||
|
/>
|
||
|
```
|
||
|
```js
|
||
|
export default {
|
||
|
data () {
|
||
|
return {
|
||
|
value: [50, 70],
|
||
|
marks: {
|
||
|
34: 'Amazing',
|
||
|
75: 'Good'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
```
|