# PmAffix
图钉
# 基础用法

<div style="height:100vh;">
<PmAffix :offsetTop="40">
<el-button type="primary">图钉 (Top 40px)</el-button>
</PmAffix>
</div>
<script>
export default {
}
</script>
# 固定在底部

<div style="height:100vh;">
<PmAffix :offsetBottom="40">
<el-button type="primary">图钉 (Bottom 40px)</el-button>
</PmAffix>
</div>
<script>
export default {
}
</script>
# Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
offsetTop | 上边距 | number | - | 0 |
offsetBottom | 下边距 | number | - | 0 |