1 Star 0 Fork 7

yankaics / zanui-weapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 814 Bytes
一键复制 编辑 原始数据 按行查看 历史
Yao 提交于 2017-12-23 14:45 . 新增使用文档 (#88)

Loadmore 加载

使用指南

在 app.wxss 中引入组件库所有样式

@import "path/to/zanui-weapp/dist/index.wxss";

在需要使用的页面里引入组件库模板

<import src="path/to/zanui-weapp/dist/loadmore/index.wxml" />

<!-- 直接使用 zan-loadmore 模板,并且直接传入设置值 -->
<template is="zan-loadmore" data="{{ loading: true }}"></template>

代码演示

loadmore 支持三种状态,loading, nodata, nomore。传入指定的值即可显示

<!-- 加载更多 -->
<template is="zan-loadmore" data="{{ loading: true }}"></template>
<!-- 没有可以显示的数据 -->
<template is="zan-loadmore" data="{{ nodata: true }}"></template>
<!-- 没有更多的数据了 -->
<template is="zan-loadmore" data="{{ nomore: true }}"></template>
JavaScript
1
https://gitee.com/yankaics/zanui-weapp.git
git@gitee.com:yankaics/zanui-weapp.git
yankaics
zanui-weapp
zanui-weapp
master

搜索帮助