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

不同域名指向同一网站免费模板网站word

不同域名指向同一网站,免费模板网站word,有二维码怎样做网站,如何做一网站想在uniapp和vue3环境中使用echarts是一件相当前卫的事情#xff0c;官方适配的还不是很好#xff0c;echarts的使用插件写的是有些不太清晰的#xff0c;这里我花费了一天的时间#xff0c;终于将这个使用步骤搞清楚了#xff0c;并且建了一个仓库#xff0c;大家可以直…想在uniapp和vue3环境中使用echarts是一件相当前卫的事情官方适配的还不是很好echarts的使用插件写的是有些不太清晰的这里我花费了一天的时间终于将这个使用步骤搞清楚了并且建了一个仓库大家可以直接clone下来使用。先看一下pc端和小程序端的效果 微信小程序和抖音小程序等都支持 使用步骤如下 第一步下载插件包 下载echarts插件包并导入到项目中然后使用插件中的组件创建容器并导入数据就可以了。 echarts插件包地址echarts - DCloud 插件市场 如果你是使用hbuilder写的可以直接导入如果你是vscode写的就下载压缩包 我这里将我下载好的zip包分享出来lime-echart_0.8.1.zip - 蓝奏云 下载好解压然后将解压后的组件导入到项目的components下面 并且将静态资源放到静态文件夹中 第二步安装echarts包 pnpm add echarts -or- npm install echarts 第三步在页面中导入依赖并运行 然后在页面中导入这个LEchart这个组件 将依赖按照不同的平台区分导入到页面组件中下面是我的页面源代码 templateviewview classtitle我的主页/viewviewLEchart classechart refchart finishedinit/LEchart/view/view /templatescript setup import LEchart from /components/l-echart/l-echart.vue // lime-echart是一个demo的组件用于测试组件 // import LEchart from /components/lime-echart/lime-echart.vue import { onMounted, reactive, ref } from vue // nvue 不需要引入 // #ifdef VUE3 // #ifdef MP // 由于vue3 使用vite 不支持umd格式的包小程序依然可以使用但需要使用require const echarts require(../../static/echarts.min); // #endif // #ifndef MP // 由于 vue3 使用vite 不支持umd格式的包故引入npm的包 import * as echarts from echarts; // #endif // #endiflet chart ref(); // 获取dom const state reactive({option: {}, }) state.option {legend: {show: true,data: []},tooltip: {trigger: axis,axisPointer: {type: cross}},grid: {left: 3%,right: 8%,top: 15%,bottom: 5%,containLabel: true},xAxis: {type: category,data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1, 4, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],axisLabel: {// inside: true,// color: #fff},axisTick: {show: false},axisLine: {show: true,lineStyle: {color: #83bff6}},z: 10},yAxis: {type: value,axisLine: {show: true,lineStyle: {color: #83bff6}},axisTick: {show: false},// axisLabel: {//   color: #999// },splitLine: {show: true,lineStyle: {type: dashed,color: #83bff6}}},series: [{data: [100, 110, 113, 126, 143, 158, 165, 167, 152, 102, ,],type: bar,itemStyle: {color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: #83bff6 },{ offset: 0.5, color: #188df0 },{ offset: 1, color: #188df0 }])},emphasis: {itemStyle: {color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: #2378f7 },{ offset: 0.7, color: #2378f7 },{ offset: 1, color: #83bff6 }])}},areaStyle: {show: true,color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: #188df0},{offset: 1,color: #fff}])},}],color: [#83bff6] } // 组件能被调用必须是组件的节点已经被渲染到页面上 onMounted(() {chart.value.init(echarts, chart {chart.setOption(state.option);}); })// 渲染完成 const init () {console.log(渲染完成); } /scriptstyle scopedlangscss scoped .echart {width: 100%;height: 300px; }.title {text-align: center; } /style 最后运行小程序或者h5就可以看到效果了
http://www.pierceye.com/news/11093/

相关文章:

  • 微信订单网站模版网站备案信息查询
  • 网站设计论文的摘要如何做网站设计
  • 企业网站的特点是湛江做网站开发
  • 凉山网站建设seo从0到1怎么做
  • 最权威的品牌排行榜网站成品网站源码1688版本号
  • 德阳建设厅官方网站iis7 添加php网站
  • 标准营销型网站定做价格东莞人才招聘网最新招聘2022
  • paypal客户端网站建设评价定远规划建设局网站
  • 建网站电话seo研究学院
  • 怎么对网站的数据库做管理厦门市建设局官网
  • 网站建设优化服务效果设一个网站链接为安全怎么做
  • 表白视频制作网站免费代理ip最新
  • 网站特色如何用魔方网表做门户网站
  • 找网页模板的网站好app网站开发费用
  • 做公司网站要什么资料刚学完网站开发
  • dw如何用表格做网站wordpress文章相关推荐
  • 聚美联盟网站怎么做wordpress 视频 广告
  • 建个商城网站需要多少钱企业seo培训
  • 怎么做盗版视频网站吗上海网络整合推广
  • 哪些企业会考虑做网站网站推广方法汇总
  • 设计师网站库二级域名是啥
  • 专门做鞋子的网站吗wordpress 本地化函数
  • 丽江建设公司网站天津的网站建设公司
  • 织梦小说网站fw可以做网站
  • 常德网站开发企业网站开发文档
  • 网站描述技巧网红营销概念
  • 网站百度权重洛阳市宜阳建设局网站
  • 开发网站用得最多的是什么语言凡科做网站的方法
  • 网站正在建设中 源码下载做威尼斯网站代理算是违法吗
  • 百度收录哪些网站吗仿站能被百度收录吗