当前位置: 首页 > news >正文

新手学做网站手机深圳百度竞价推广

新手学做网站手机,深圳百度竞价推广,网站替换图片怎么做,安平县哪家做网站效果展示 一、需求背景: # vue3 项目涉及很多图表加载、表格加载 #考虑手写一个动态加载组件 二、实现思路 通过一个加载状态变量,通过v-if判断,加载状态的变量等于哪一个,动态加载组件内部就显示的哪一块组件。 三、实现效果…

效果展示

一、需求背景:

# vue3 项目涉及很多图表加载、表格加载 #考虑手写一个动态加载组件

二、实现思路

通过一个加载状态变量,通过v-if判断,加载状态的变量等于哪一个,动态加载组件内部就显示的哪一块组件。

三、实现效果

四、代码

(一)、封装组件

<template><view class="loadding_contaniers" v-if="loadState == 1"><view class="loading_img"><image src="@/static/images/smartCabin/loadingImg/isLoading_bg.png" /></view><view class="imgTitle">加载中<text id="dot">...</text></view></view><view class="loadding_contaniers" v-else-if="loadState == 2"><view class="loading_img"><image src="@/static/images/smartCabin/loadingImg/isErr_bg.png" /></view><view class="imgTitle">请求失败,请重新加载!</view></view><view class="loadding_contaniers" v-else-if="loadState == 3"><view class="loading_img"><image src="@/static/images/smartCabin/loadingImg/isNone_bg.png" /><!-- <image:src="getAssetsFile(props.noticeTip == '暂无数据'? `smartCabin/loadingImg/isNone_bg.png`: `smartCabin/loadingImg/isErr_bg2.png`)"/> --></view><view class="imgTitle">{{ noticeTip }}</view></view><view class="loadding_sucess" v-else><slot> </slot></view>
</template><script>
export default {props: {// 1:加载中 2:加载失败 3:暂无数据 4:加载成功loadState: Number,noticeTip: {type: String,default: "暂无数据",},},
};
</script><style lang="scss">
.loadding_contaniers {width: 100%;height: 100%;display: flex;flex-direction: column;align-items: center;justify-content: center;.loading_img {image {width: 260rpx;height: 260rpx;}}.imgTitle {flex: 1;height: 0;color: #757575;#dot {display: inline-block;width: 1.5em;vertical-align: bottom;overflow: hidden;animation: dotting 0.5s infinite step-start;}@keyframes dotting {0% {width: 0;margin-right: 1.5em;}33% {width: 0.5em;margin-right: 1em;}66% {width: 1em;margin-right: 0.5em;}100% {width: 1.5em;margin-right: 0;}}}
}
.loadding_sucess {width: 100%;height: 100%;display: flex;justify-content: center;align-items: center;
}
</style>

 (二)、组件传参

h5使用

<LoaddING :loadState="4" :noticeTip="'当loadState是成功的时候'"><view class="myContent"><imagesrc="@/static/images/energy/elePower/receiving_power.png"/></view>
</LoaddING>

web端使用 

<LoaddING :loadState="data.isFinish" :noticeTip="data.isTips"><!-- 插槽组件 --><ewClickLine:yAxisUnit="echartData2.unit":seriesColor="echartData2.color":legend="{ show: true, x: '80%' }":seriesName="echartData2.name":seriesType="echartData2.chartSeriesType":xAxisValue="echartData2.lineXAxisValue":nums="echartData2.lineNums"></ewClickLine>
</LoaddING>

http://www.yidumall.com/news/14788.html

相关文章:

  • 域名之后怎么做网站营销推广活动策划
  • b站推广首页如何做一个自己的网页
  • 商城类网站网站媒体推广方案
  • 动态网页设计网站网络营销是指
  • 上海专业的网站建设公司排名廊坊网站
  • 成都爱品阅网络科技有限公司多地优化完善疫情防控措施
  • 安徽网站优化怎么做百度 营销中心
  • 南京高端网站设计百度seo词条优化
  • 做网站是什么软件广州今日头条新闻最新
  • 金华专业做网站学生网页制作成品
  • 家里的电脑ip做网站长沙百度百科
  • 岳阳网站优化公司长沙推广公司
  • 徐州建站推广seo排名哪家有名
  • 网站建设遇到问题解决方案南昌seo专业团队
  • 代做标书网站值得收藏的五个搜索引擎
  • 在线做家装设计的网站免费建站软件
  • 一级a做爰片免费网站 视频灰色推广
  • 自制响应式网站九江seo优化
  • 做木箱的网站西安seo排名优化推广价格
  • 秦皇岛网站定制哪家好口碑营销的模式
  • 怎么看别人网站是怎么做的seo每日工作内容
  • 网站服务建设跨境电商平台
  • 国美的网站做的怎么样58网络推广
  • 多合一建网站广告公司网上接单平台
  • 创建全国文明城市手抄报内容seo运营是什么意思
  • 男直接做的视频网站百度网址导航
  • 界面设计优秀的网站有哪些有哪些可以免费推广的平台
  • 自己建网站可以赚钱吗网络推广公司运营
  • 网站做3年3年包括什么sem广告
  • 哪些网站可以做外贸军事新闻俄乌最新消息