mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
29 lines
560 B
Vue
29 lines
560 B
Vue
<template>
|
|
<el-scrollbar>
|
|
<div class="scrollbar-flex-content">
|
|
<p v-for="item in 50" :key="item" class="scrollbar-demo-item">
|
|
{{ item }}
|
|
</p>
|
|
</div>
|
|
</el-scrollbar>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.scrollbar-flex-content {
|
|
display: flex;
|
|
}
|
|
.scrollbar-demo-item {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100px;
|
|
height: 50px;
|
|
margin: 10px;
|
|
text-align: center;
|
|
border-radius: 4px;
|
|
background: var(--el-color-danger-light-9);
|
|
color: var(--el-color-danger);
|
|
}
|
|
</style>
|