国产成人精品久久免费动漫-国产成人精品天堂-国产成人精品区在线观看-国产成人精品日本-a级毛片无码免费真人-a级毛片毛片免费观看久潮喷

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

vue時(shí)間線組件的使用方法

瀏覽:2日期:2023-02-15 17:13:33

本文實(shí)例為大家分享了vue時(shí)間線組件的具體實(shí)現(xiàn)代碼,供大家參考,具體內(nèi)容如下

效果

vue時(shí)間線組件的使用方法

vue-時(shí)間線組件(時(shí)間軸組件)代碼

<template> <ul class='timeline-wrapper'><li v-for='t in timelineList' :key='t.id'><div class='timeline-box'> <div class='out-circle'><div class='in-circle'></div> </div> <div class='long-line'></div></div><div class='timeline-content'> <div class='timeline-date'>{{t.date}}</div> <div class='timeline-title'>{{ t.title}}</div> <div class='timeline-desc'>{{ t.content}}</div></div> </li> </ul></template><script type='text/babel'> import Vue from ’vue’ export default Vue.component(’Timeline’,{name: 'Timeline',props: { timelineList: {type: Array,default: () => { return []} }} })</script><style scoped lang='scss'> ul.timeline-wrapper {list-style: none;margin: 0;padding: 0; } /* 時(shí)間線 */ .timeline-item {position: relative;.timeline-box { text-align: center; position: absolute; .out-circle {width: 16px;height: 16px;background: rgba(14, 116, 218, 0.1);box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1);/*opacity: 0.1;*/border-radius: 50%;display: flex;align-items: center;.in-circle { width: 8px; height: 8px; margin: 0 auto; background: rgba(14, 116, 218, 1); border-radius: 50%; box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1);} } .long-line {width: 2px;height: 98px;background: rgba(14, 116, 218, 1);box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1);opacity: 0.1;margin-left: 8px; }}.timeline-content { box-sizing: border-box; margin-left: 20px; height: 106px; padding: 0 0 0 20px; text-align: left; margin-bottom: 30px; .timeline-title {font-size: 14px;word-break: break-all;margin-bottom: 16px;color: #333;font-weight: 500;/*display: inline;*/ } .timeline-date {font-size: 16px;color: #333;font-weight: 500;margin-bottom: 16px; } .timeline-desc {font-size: 14px;color: #999999; }} } .timeline-item:last-of-type .timeline-content {margin-bottom: 0; }</style>

應(yīng)用

// 父組件引用<timeline :timeline-list='dongtai'></timeline>

// 引入組件,記得組件路徑要根據(jù)自己的來(lái)import Timeline from './Timeline';// 在data()返回的對(duì)象里聲明數(shù)組dongtai:[]

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持好吧啦網(wǎng)。

標(biāo)簽: Vue
相關(guān)文章:
主站蜘蛛池模板: 亚洲综合图片人成综合网 | 成人性生免费视频 | 操你.com| 亚洲国产精品ⅴa在线观看 亚洲国产精品aaa一区 | 日本精品一区二区三区在线视频 | 91精品国产福利尤物免费 | 青青操网站 | 九九九热在线精品免费全部 | 日韩精品在线一区二区 | 国产黄色大片网站 | 日韩一级在线播放免费观看 | 国产成人高清精品免费软件 | a毛片免费全部播放完整成 a毛片免费全部在线播放毛 | 女人张开腿给人桶免费视频 | 女人国产香蕉久久精品 | 欧美成年人视频 | 久久福利资源国产精品999 | 久久国产精品-久久精品 | 久久精品国产屋 | 69视频在线观看xxxxx | 免费真实播放国产乱子伦 | 欧美一区=区三区 | 欧美日韩精品在线视频 | 久久免费高清 | 精品免费久久久久国产一区 | 欧美黄网站| 成人网18免费 | 成人黄色免费 | 国产成人综合网在线播放 | 欧美aaa大片| 久艹视频在线观看 | 成年免费观看 | 毛片1级| 国产精品三级在线播放 | 国产精品午夜免费观看网站 | 美女视频黄的免费看网站 | 18video9ex欧美生活片 | 成年人在线视频 | 欧美性色黄大片在线观看 | 日日操夜夜爽 | 日本乱人伦毛片 |