# Scrollbar

# 优先阅读

# 介绍

lx-scrollbar 目前只有简单的自动拓展高度的功能

# 示例

# 基本使用

<template>
  <div>
    <lx-scrollbar :auto-max-height="true">
      <div class="bg"></div>
    </lx-scrollbar>
  </div>
</template>

<script>
export default {
  data () {
    return {
    }
  },
  methods: {
  }
}
</script>
<style>
.bg {
  height: 100%;
  background: #d8d8d8
}
</style>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Expand Copy

# Attributes

参数 是否必填 说明 类型 默认值
auto-max-height 是否随着窗口的大小变化自动设置框的高度至可视窗口底部 Boolean - false
subtract auto-max-height 的height值 - subtract = height Number - 0
height 固定高度,优先级高于 auto-max-height String '100px' / ’100%‘ -