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