mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
35 lines
410 B
Markdown
35 lines
410 B
Markdown
|
# 标记
|
||
|
```html
|
||
|
<n-slider
|
||
|
v-model="value"
|
||
|
range
|
||
|
:marks="marks"
|
||
|
:step="10"
|
||
|
/>
|
||
|
<n-input-number
|
||
|
size="small"
|
||
|
v-model="value[0]"
|
||
|
/>
|
||
|
<n-input-number
|
||
|
size="small"
|
||
|
v-model="value[1]"
|
||
|
/>
|
||
|
```
|
||
|
```js
|
||
|
export default {
|
||
|
data () {
|
||
|
return {
|
||
|
value: [50, 70],
|
||
|
marks: {
|
||
|
34: '太棒了',
|
||
|
75: '不错'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
```css
|
||
|
.n-input-number {
|
||
|
margin: 0 12px 8px 0;
|
||
|
}
|
||
|
```
|