国产精品美女久久久浪潮AV,国产精品三级一二三区,久久精品国产一区二区小说 ,依依成人影视国产精品,全部无卡免费的毛片在线看,日本一区二区三深夜不卡,国产精品女同一区二区久久,国产精品夜色一区二区三区

        Vue 組件封裝之 Result 結(jié)果頁

        2020-10-21    前端達(dá)人

        一、Result 結(jié)果頁

        組件說明:

        實(shí)現(xiàn) Result 結(jié)果頁。

        效果展示:
        在這里插入圖片描述

        實(shí)現(xiàn)的功能:

        1. 提交或者操作完成之后,進(jìn)入一個成功或者失敗的結(jié)果頁。
        2. 包含成功或者失敗的狀態(tài)插圖。
        3. 包含成功或者失敗的文案表述(標(biāo)題及詳情)。
        4. 包含取消(推出應(yīng)用)和確定(繼續(xù)填寫)兩個按鈕。

        二、使用案例

        <template> <div> <el-result :item="item" @on-cancel="cancel" @on-submit="submit" /> </div> </template> <script> export default { name: "Result", data(){ return{ item: { title: '提交成功', submitText:"繼續(xù)填寫", cancelText:"退出應(yīng)用", status:"success" }, } }, created(){ let item = this.$route && this.$route.query; if(item.status==='fail'){ this.item = { title: '提交失敗,請聯(lián)系開發(fā)人員', submitText:"重新填寫", cancelText:"退出應(yīng)用", status:"fail" } } }, methods:{ cancel(){ dd.biz.navigation.close({ onSuccess : function(result) { /*result結(jié)構(gòu)
                     {}
                     */ }, onFail : function(err) {} }) }, submit(){ this.$router.go(-1) } } } </script>  
        
        • 1
        • 2
        • 3
        • 4
        • 5
        • 6
        • 7
        • 8
        • 9
        • 10
        • 11
        • 12
        • 13
        • 14
        • 15
        • 16
        • 17
        • 18
        • 19
        • 20
        • 21
        • 22
        • 23
        • 24
        • 43
        • 44
        • 45
        • 46
        • 47
        • 48
        • 49
        • 50

        三、API 使用指南

        屬性 說明 類型 默認(rèn)值
        item 頁面展示的靜態(tài)內(nèi)容集合 Array []
        title 描述標(biāo)題 String
        submitText 提交按鈕文本 String
        cancelText 取消按鈕文本 String
        status 輸入值字段 String
        on-cancel 取消按鈕事件 Function
        on-submit 提交按鈕事件 Function

        四、源代碼

        Result.vue
        文件路徑:share/result/Result.vue

        <template> <div class="cm-tx-c cm-mt-08 cm-p-02"> <el-image :src="item.status==='success'?successBg:failBg" style="width: 250px" > <div slot="placeholder" class="image-slot"> 圖片加載中<span class="dot">...</span> </div> </el-image> <div :class="item.status==='success'?'success-title':'fail-title'">{{item.title}}</div> <div>{{item.describe}}</div> <div class="cm-flex cm-jc-sa"> <div  @click="cancel()" class="cm-btn-cancel">{{item.cancelText}}</div> <div  @click="submit()" class="cm-btn-submit">{{item.submitText}}</div> </div> </div> </template> <script> import successBg from '../images/result-success.png'; import failBg from '../images/result-fail.png'; export default { name: "ElResult", data(){ return{ successBg, failBg } }, props:{ item:{ type:Object, default:{} } }, created(){ }, methods:{ cancel(){ this.$emit('on-cancel',''); }, submit(){ this.$emit('on-submit',''); } } } </script> <style scoped> .success-title{ padding: 0.4rem; font-size: 0.35rem; color:#15bc83; } .fail-title{ padding: 0.4rem; font-size: 0.35rem; color:#f25643; } </style> 6
        
        
        
        
        
        
        
        
        轉(zhuǎn)載 作者: 2020-10-19 09:24:19 分類專欄: # Vue通用組件封裝
        
        

        日歷

        鏈接

        個人資料

        存檔

        主站蜘蛛池模板: 天堂а√在线最新版在线| 精品国产一区二区三区香蕉| 亚洲欧美日韩高清一区| 亚洲av日韩av制服丝袜| 肃北| 富川| 真人自慰试看120秒| 人妻少妇不满足中文字幕| 男女18禁啪啪无遮挡网站| 国产成人亚洲精品无码h在线| 芒康县| 欧美国产日韩久久mv| 国产精品无码av天天爽播放器| 国产对白国语对白| 一炕四女被窝交换啪啪| 国产av天堂亚洲国产av麻豆| 哦┅┅快┅┅用力啊┅┅村妇| 男女18禁啪啪无遮挡网站| 免费中文字幕日韩欧美| 我和闺蜜在ktv被八人伦| 久久乐国产精品亚洲综合| 日本丰满岳乱妇在线观看| 一边摸一边抽搐一进一出口述| 少妇高潮惨叫久久久久久电影| 欧美牲交a欧美牲交aⅴ| 欧美黑人又粗又硬xxxxx喷水| 国产熟妇搡bbbb搡bbbb搡| 最近日本字幕mv高清在线电影| 亚洲天堂国产v| 欧洲熟妇色xxxxx| 中文字幕丰满伦子无码| 国产精品igao视频网| 99在线视频 | 传媒| 始兴县| 国产精品爽爽v在线观看无码| 99久e在线精品视频在线| 亚洲精品一线二线三线区别| 国产做国产爱免费视频| 四川丰满女人毛茸茸| 休宁县| 国产成人精品一区二区视频|