mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 12:48:04 +08:00
32 lines
556 B
Vue
32 lines
556 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>
|
|
<style scoped>
|
|
.slider-demo-block {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.slider-demo-block .el-slider {
|
|
margin-top: 0;
|
|
margin-left: 12px;
|
|
}
|
|
</style>
|