layui/example/docs/zh-CN/components/slider.md
2021-12-16 17:57:59 +08:00

46 lines
476 B
Markdown

::: demo
<template>
<lay-slider v-model="value"></lay-slider>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
const value = ref(50)
return {
value
}
}
}
</script>
:::
::: demo
<template>
<lay-slider :vertical="vertical"></lay-slider>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
const vertical = ref(true)
return {
vertical
}
}
}
</script>
:::
::: comment
:::