mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
20 lines
428 B
Vue
20 lines
428 B
Vue
<template>
|
|
<el-scrollbar height="400px">
|
|
<p v-for="item in 20" :key="item" class="scrollbar-demo-item">{{ item }}</p>
|
|
</el-scrollbar>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.scrollbar-demo-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 50px;
|
|
margin: 10px;
|
|
text-align: center;
|
|
border-radius: 4px;
|
|
background: var(--el-color-primary-light-9);
|
|
color: var(--el-color-primary);
|
|
}
|
|
</style>
|