zxy-basic-component-test
v1.0.8
Published
1. ##### 引入 zxy-basic-component
Downloads
25
Readme
快速开始
引入 zxy-basic-component
从 yarn 或 npm 安装并引入 zxy-basic-component
$ yarn add zxy-basic-component
在vue中使用组件
局部导入组件
import { Pagination } from 'zxy-basic-component'; components: { Pagination }
组件列表
BasicRichText 富文本
Pagination 分页
属性
| 参数 | 说明 | 类型 | 默认值 | | ------------ | -------------------------------- | ------- | ------ | | current | 当前页数 | number | 1 | | pageSize | 每页条数 | number | 10 | | total | 数据总数 | number | 10 | | showLastPage | 是否可以快速跳到尾页(企业控制) | boolean | |
事件
| 事件名称 | 说明 | 回调参数 | | -------- | ------------------------------------------------------------ | ----------------------------------------- | | change | 页码改变的回调,参数是改变后的页码 | Function(page) | | toLast | 尾页的回调,第一个参数是缓存的尾页;第二个参数是收集数据总数和尾页数据的回调。首次点击尾页会触发收集回调,后续再次点击会使用缓存数据。 | Function(cache, () => {recordCount,data}) |