美文网首页
iview 部分用法

iview 部分用法

作者: zlf_j | 来源:发表于2021-07-13 09:10 被阅读0次

Cascader

<Cascader v-model="category" v-if="clinicLexiconWords"
         :data="clinicLexiconWords" placeholder="请选择话术分类"
          trigger="hover" filterable change-on-select
          @on-change="(value, selectedData) => selectChange(value, selectedData)"></Cascader>

Scroll

<Scroll :on-reach-bottom="handleReachBottom" 
                :distance-to-edge="Number(10)"
                loading-text="更多内容加载中..."
                :height="scrollHeight">
            <Card dis-hover v-for="(item, index) in checkList" :key="index">
                <p>{{item.name}}</p>
                <p>{{item.content}}</p>
            </Card>
</Scroll>
handleReachBottom () {
            return new Promise(resolve => {
                setTimeout(() => {
                    this.page++
                    this.getList(this.page)
                    resolve();
                }, 2000);
            });
        }

https://ithelp.ithome.com.tw/articles/10208999
https://blog.csdn.net/weixin_30596735/article/details/96721974

form表单验证

<DatePicker format="yyyy-MM-dd" type="date" v-model="date" 
@on-change="search.date = formatDate(date);getMovePraiseList(1);" placeholder="日期"></DatePicker>

loading

<Button :loading="addLoading" @click.native="boastAdd('AddForm')">新建</Button>

https://www.jianshu.com/p/f3fb912ee857

相关文章

网友评论

      本文标题:iview 部分用法

      本文链接:https://www.haomeiwen.com/subject/scyrpltx.html