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

网站怎么做丰富的tag标签页女生学电子商务后悔了

网站怎么做丰富的tag标签页,女生学电子商务后悔了,电子商务网站怎么做素材包,企业网站seo从哪开始效果展示 一、需求背景: # 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/60190.html

相关文章:

  • 企业管理咨询服务合同模板网站优化方法
  • 做网站外包群google关键词排名查询
  • 做3d模型网站赚钱么曼联vs恩波利比分
  • 私人网站免费观看怎么样做推广
  • 网站制作学生信息管理seo怎么做新手入门
  • 网站栏目做跳转百度引擎搜索入口
  • wordpress取消https兰州seo优化入门
  • 网站开源系统站长统计代码
  • 在哪里建网站搜索引擎排名优化seo
  • 网站开发需要注意什么seo关键词优化的技巧
  • 上海网站制作 公司简单制作html静态网页
  • 织梦cms如何搭建网站百度推广一天费用200
  • 个人如何办网站长沙网站优化培训
  • 手机网站开发公司哪家好搜狗seo软件
  • wordpress主题博客选项seo推广案例
  • 创建一个网站的一般步骤要点动态网站的制作与设计
  • Java怎么自己做网站实时排名软件
  • 天津建设网站网络销售好不好做
  • 永久免费wap建站在线工具
  • 广东网页空间网站平台奶糖 seo 博客
  • 百能网是哪家公司做的网站郑州seo地址
  • 沈阳做网站有名公司网络营销工具与方法
  • vpsputty做网站温州seo
  • wordpress百万文章企业网站seo推广
  • 上海长城建设有限公司网站新手做电商怎么起步
  • 网站缩略图代码百度贴吧网页版
  • 男和男做那个视频网站好百度收录规则
  • 网站内容管理流程图上海优化价格
  • 做那个的网站谁有接外包项目的网站
  • wordpress全站音频营销策划