# Fixed顶部或底部固定组件

# 使用教程

点击查看教程

# 使用文档

# 导入

main.js中:

import { cFixed } from 'cpm-ui'
Vue.use(cFixed)
1
2

# 调用

<cFixed>
  <div slot="left"></div>
  正文
  正文
  正文
  <div slot="right"></div>
</cFixed>
1
2
3
4
5
6
7

# 属性props

# 事件Event

# 插槽slot

方法 说明
left header吸顶
right footer吸顶
<cFixed>
  <div slot="left"></div>
  正文
  正文
  正文
  <div slot="right"></div>
</cFixed>
1
2
3
4
5
6
7

# 特别提示

Last Updated: 12/12/2019, 7:37:32 PM

注:因PC端浏览存在最小12px字号的原因,部分视图下文字会显示比较大,手机端访问正常。