layui/example/docs/zh-CN/components/slider.md

43 lines
459 B
Markdown
Raw Normal View History

::: demo
<template>
2021-12-15 21:24:40 +08:00
<lay-slider v-model="value"></lay-slider>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
2021-12-15 21:24:40 +08:00
const value = ref(50)
return {
2021-12-15 21:24:40 +08:00
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>
:::