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

67 lines
797 B
Markdown
Raw Normal View History

::: demo
<template>
2021-12-26 11:13:15 +08:00
<lay-slider v-model="value1" :disabled="false"></lay-slider>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
2021-12-17 20:52:45 +08:00
const value1 = ref(50)
return {
2021-12-17 20:52:45 +08:00
value1
}
}
}
</script>
:::
::: demo
<template>
2021-12-19 20:25:05 +08:00
<lay-slider v-model="value2" :vertical="vertical" :disabled="true"></lay-slider>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
const vertical = ref(true)
2021-12-17 20:52:45 +08:00
const value2 = ref(10)
return {
2021-12-17 20:52:45 +08:00
vertical,
value2
}
}
}
</script>
2021-12-16 17:57:59 +08:00
:::
2021-12-26 11:13:15 +08:00
::: demo
<tempalte>
<lay-slider v-model="value3" :range="true"></lay-slider>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
const value3 = ref(50)
return {
value1
}
}
}
</script>
:::