上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 30 下一页
摘要: ## 问题 当图表中的 legend 过多的时候,就需要考虑 legend 进行换行,但是换行之后,图例就会无法对齐。 ## 解决 ``` legend: { icon: "rect", width: "80%", itemWidth: 6, itemHeight: 6, bottom: 0, te 阅读全文
posted @ 2023-08-01 12:43 ZerlinM 阅读(1076) 评论(0) 推荐(0)
摘要: 微信小程序中动态设置了echarts的高度,但是canvas变形,并没有重新resize ## 原因 chart获取不到父组件的宽高,小程序里获取宽高用的是 wx.createSelectorQuery() ,echarts里resize的时候,并没有调用这个API,肯定无法重置宽高。 ## 解决 阅读全文
posted @ 2023-08-01 10:58 ZerlinM 阅读(690) 评论(0) 推荐(0)
摘要: ##问题描述 将其他项目导致自己的电脑上运行时,出现以下编译错误。 ``` Execution failed for task ':app:stripDebugDebugSymbols'. > NDK at /Users/ado/Library/Android/sdk/ndk-bundle did 阅读全文
posted @ 2023-07-24 09:27 ZerlinM 阅读(2796) 评论(0) 推荐(0)
摘要: ## 问题描述 使用uni app模板开发微信小程序过程中引入高德地图小程序插件失败, 先看代码: ``` import amap from "@/lib/amap-wx.130.js";//引入高德地图小程序插件 ``` 报错: `SyntaxError: The requested module 阅读全文
posted @ 2023-07-21 09:08 ZerlinM 阅读(1119) 评论(0) 推荐(0)
摘要: ## 问题 今天 echarts 版本更新至5.1.2,发现鼠标悬停在折线图上,折线变粗,这个效果和我的需求相悖,所以想办法去掉此效果 ## 解决 **emphasis** :折线图的高亮状态。 **设置emphasis.lineStyle和折线图本身lineStyle相同即可** ``` let 阅读全文
posted @ 2023-07-11 14:51 ZerlinM 阅读(192) 评论(0) 推荐(0)
摘要: 有对象数组 arr1 和 arr2, 现在 arr2 需要按照 arr1 中的 checkItems 的值来排序 ``` const arr1 = [ {checkItems: 'A'}, {checkItems: 'B'}, {checkItems: 'C'}, ] const arr2 = [ 阅读全文
posted @ 2023-07-11 14:10 ZerlinM 阅读(539) 评论(0) 推荐(0)
摘要: taro微信小程序中使用 [taro-react-echarts](https://www.cnblogs.com/ZerlinM/p/17469148.html) 展示图表数据,因为数据量大,需要使用dataZoom来左右滑动图表。 ## 实现效果 ![](https://img2023.cnbl 阅读全文
posted @ 2023-07-07 15:49 ZerlinM 阅读(678) 评论(1) 推荐(0)
摘要: [官方文档](https://taro-docs.jd.com/docs/redux) 想要在Taro里使用redux,看文档配置了很多次入口文件,每次都是报同一个错误。 `错误:“Provider”表示值,但在此处用作类型。是否指“类型 Provider”?` ![](https://img202 阅读全文
posted @ 2023-06-27 10:45 ZerlinM 阅读(171) 评论(0) 推荐(0)
摘要: 在微信小程序中,scroll-view中使用position:fixed定位的元素会失效,不再相对于根元素来定位,而是相对scroll-view定位。 经过查证,是**由于scroll-view中的 refresherEnabled 导致的fixed失效**。 ## 解决 **前提:**页面有下拉刷 阅读全文
posted @ 2023-06-21 13:34 ZerlinM 阅读(1646) 评论(0) 推荐(0)
摘要: ## 问题 使用taro框架,微信小程序使用 picker-view 时,大部分情况下滑到哪儿选到哪儿,停得很快,没啥大问题。 但是选择第一项或者最后一项时会有选择不到的问题,菜单会有一个反弹和减速,停下得特别慢,导致如果想选第一个和最后一个选项要等2秒以后才能正常选中。 原因是因为小程序官方设定了 阅读全文
posted @ 2023-06-09 16:59 ZerlinM 阅读(679) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 30 下一页