element-plus/docs/examples/slider/sizes.vue
kooriookami b33fed911b
feat(components): [el-slider] slider add size prop (#5091)
* feat: slider add size

* feat: update

* feat: update

* feat: update
2022-01-07 15:44:43 +08:00

22 lines
397 B
Vue

<template>
<el-slider v-model="value" show-input size="large"></el-slider>
<el-slider v-model="value" show-input></el-slider>
<el-slider v-model="value" show-input size="small"></el-slider>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
const value = ref(0)
</script>
<style scoped>
.el-slider {
margin-top: 20px;
}
.el-slider:first-child {
margin-top: 0;
}
</style>