使用方式
已在全局引入,不用在页面引入
在 template 中使用组件
一个页面只允许使用一个
<template><view><page title="修改资料"></page></view></template>
属性
| 属性名 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| title | String | ‘’ | 页面标题 |
| headbor | Boolean | true | 页头底边框 |
| bgClass | String | bgf8f8f8 | 页面滚动区背景色, class名来的,一般会设为白底的页面 bgClass=”bg-white” |
| titleClass | String | bg-white | 页头背景色, class名来的, 例如:titleBgColor=”bg-blue” |
| isBack | Boolean | true | 是否有返回按钮 |
slot 插槽
slot=”right” 页头右边
slot=”top” 固定在顶部
slot=”bottom” 固定在底部
**
事件
@scrolltolower 滚动到底部
@scroll 滚动
**
