zoukankan      html  css  js  c++  java
  • "数据加载提示"组件:<loadmore> —— 快应用组件库H-UI

    <import name="loadmore" src="../Common/ui/h-ui/feedback/c_loadmore"></import>
    <template>
        <div class="container">
            <loadmore></loadmore>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    

    <import name="loadmore" src="../Common/ui/h-ui/feedback/c_loadmore"></import>
    <template>
        <div class="container">
            <loadmore></loadmore>
            <loadmore loading-status="loading"></loadmore>
            <loadmore loading-status="noMore"></loadmore>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    

    <import name="loadmore" src="../Common/ui/h-ui/feedback/c_loadmore"></import>
    <template>
        <div class="container">
            <loadmore more-text="加载更多数据"></loadmore>
            <loadmore loading-text="正在加载,请稍后" loading-status="loading"></loadmore>
            <loadmore no-more-text="没有数据了!" loading-status="noMore"></loadmore>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    

    <import name="loadmore" src="../Common/ui/h-ui/feedback/c_loadmore"></import>
    <template>
        <div class="container">
            <loadmore loading-status="{{loadingStatus}}" onclick="handleClick"></loadmore>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                loadingStatus: 'more'
            },
            handleClick() {
                this.loadingStatus = 'loading'
                // 模拟异步请求数据
                setTimeout(() => {
                    // 没有更多了
                    this.loadingStatus = 'noMore'
                }, 2000)
            }
        }
    </script>
    

    扫码体验

  • 相关阅读:
    logic:iterate用法教程
    js实现页面跳转的几种方式
    MyEclipse快捷键两篇文章
    hibernate.cfg.xml配置
    DispatchAction功能用法
    第一个Spring程序
    BeanUtils.copyProperties与PropertyUtils.copyProperties用法及区别
    【Struts1.2总结】strutsconfig.xml配置
    java中equals和==的区别
    开发Struts程序的两篇文章
  • 原文地址:https://www.cnblogs.com/cloud-dev/p/shu-ju-jia-zai-ti-shizu-jianltloadmoregt--kuai-yin.html
Copyright © 2011-2022 走看看