Files
barter-app/uni_modules/lime-f2/changelog.md
2021-09-14 17:22:04 +08:00

161 lines
6.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 0.5.42021-07-09
- chore: 统一命名规范,无须主动引入组件
## [代码示例站点1](https://limeui.qcoon.cn/#/f2-example)
## [代码示例站点2](http://liangei.gitee.io/limeui/#/f2-example)
## 0.5.32021-06-14
- fix: 修复 头条系小程序 2d 报 JSON.stringify 的问题
- fix: 修复 H5 动画不触发问题
- chore: F2 版本更新至 3.8.9
## 0.5.22021-05-19
- fix: 修复 微信小程序 PC 不显示问题
## [代码示例http://liangei.gitee.io/limeui/#/f2-example](http://liangei.gitee.io/limeui/#/f2-example)
## 0.5.12021-05-14
- feat: props 增加 `isDisableScroll` ,触摸图表时是否禁止页面滚动
- feat: props 增加 `webviewStyles` webview 的样式, 仅nvue有效
## 0.5.02021-05-13
- docs: 插件用到了css 预编译器 [stylus](https://ext.dcloud.net.cn/plugin?name=compile-stylus) 请安装它
## [代码示例http://liangei.gitee.io/limeui/#/f2-example](http://liangei.gitee.io/limeui/#/f2-example)
## 0.4.92021-05-12
- fix: 修复 百度平台 多个图表时 只生效一个的bug
## 0.4.82021-05-10
- feat: 增加 `destroy` 方法,用于销毁实例
- feat: 增加 `canvasToTempFilePath` 方法,用于生成图片
```js
this.$refs.chart.canvasToTempFilePath({success: res => {
console.log('tempFilePath:', res.tempFilePath)
}})
```
## [代码示例http://liangei.gitee.io/limeui/#/f2-example](http://liangei.gitee.io/limeui/#/f2-example)
## 0.4.72021-05-10
- chore: F2 版本更新至 3.8.7
## 0.4.62021-05-05
- docs: nvue 使用文档更新
## [代码示例http://liangei.gitee.io/limeui/#/f2-example](http://liangei.gitee.io/limeui/#/f2-example)
## 0.4.5.72021-04-30
- chore: nvue 增强 支持 console.log 输出到控制台方便调试
- docs: nvue 使用文档更新不再需要声明F2
## 0.4.5.62021-04-29
- fix: nvue 修复打包后 函数字符串被压缩无效的问题
- 若发现打包依然无效可使用直接返回字符串
```js
this.$refs.chart.init(config => {
return `
const chart = new F2.Chart(config);
chart.source(data);
chart
.interval()
.position('genre*sold')
.color('genre');
chart.render();
return chart;
`
},{data});
```
- chore: 新增支持词云能力头条小程序需要1.78.0后
## [代码示例http://liangei.gitee.io/limeui/#/f2-example](http://liangei.gitee.io/limeui/#/f2-example)
## 0.4.5.52021-04-25
- fix: 修复新版谷歌浏览器(90.0.4430.85) 报 `transform ` 的问题
## 0.4.5.42021-04-23
- fix: 修复支付宝小程序尺寸问题
## [代码示例http://liangei.gitee.io/limeui/#/f2-example](http://liangei.gitee.io/limeui/#/f2-example)
## 0.4.5.32021-04-22
- chore: 删除多余console.log
## 0.4.5.22021-04-21
- chore: 修复字节颜色报错的问题。
## 0.4.5.12021-04-18
- chore: 增加默认尺寸 **300 x 300** , 当父级没有尺寸时启用。
- 由于 F2 **云图** 依赖的 `@antv/data-set` 只支持H5创建Canvas所以暂时只有 H5 支持。
- 由于 F2 对绘制地图 不佳,故地图示例南海诸岛使用图片。
## [代码示例http://liangei.gitee.io/limeui/#/f2-example](http://liangei.gitee.io/limeui/#/f2-example)
## 0.4.52021-04-16
- fix: 修复 app-vue 字体固定问题
- fix: 修复 h5 app-vue 画多边形尺寸过大
- fix: 修复 初始化 func 问题
- docs: 增加 矩形式树图 示例
- 由于 F2 **云图** 依赖的 `@antv/data-set` 只支持H5创建Canvas所以暂时只有 H5 支持。
## 0.4.4.12021-04-16
- chore: 更改 `webview` 地址
## 0.4.42021-04-16
- chore: `nvue` 增加 chart.$emit 事件,主要用于图表交互,接收动作事件数据。
```html
<l-f2 @change="onChange" />
```
```js
chart.tooltip({
onChange: (ev) => {
chart.$emit('change', ev)
}
})
```
## [代码示例http://liangei.gitee.io/limeui/#/f2-example](http://liangei.gitee.io/limeui/#/f2-example)
## 0.4.3.12021-04-14
- docs: 更新官网上的代码示例!复制粘贴即用
## [代码示例 http://liangei.gitee.io/limeui/#/f2-example](http://liangei.gitee.io/limeui/#/f2-example)
## 0.4.32021-04-13
- chore: 增加`onInit`的属性函数,直接向图表传递初始化函数
```html
<l-f2 :onInit="onInitChart" />
```
```js
export default {
data: ()=>({
onInitChart: config => {
const chart = new F2.Chart(config);
const data = [
{ value: 63.4, city: 'New York', date: '2011-10-01' },
{ value: 62.7, city: 'Alaska', date: '2011-10-01' },
{ value: 72.2, city: 'Austin', date: '2011-10-01' },
{ value: 58, city: 'New York', date: '2011-10-02' },
{ value: 59.9, city: 'Alaska', date: '2011-10-02' },
{ value: 67.7, city: 'Austin', date: '2011-10-02' },
{ value: 53.3, city: 'New York', date: '2011-10-03' },
{ value: 59.1, city: 'Alaska', date: '2011-10-03' },
{ value: 69.4, city: 'Austin', date: '2011-10-03' },
];
chart.source(data, {
date: {
range: [0, 1],
type: 'timeCat',
mask: 'MM-DD'
},
value: {
max: 300,
tickCount: 4
}
});
chart.area().position('date*value').color('city').adjust('stack');
chart.line().position('date*value').color('city').adjust('stack');
chart.render();
// 注意需要把chart return 出来
return chart;
}
})
}
```
## 0.4.22021-04-09
- chore: `nvue` webview 改为网络地址
## 0.4.12021-04-09
- chore: `redraw(callback)` 更名为 `reset(callback)`
- fix: 修复 `nvue` 某些情况下无法传递函数字符串
- feat: 增加 `nvue` 下使用 `insertCss` 给节点设置 style
## 0.4.02021-04-08
- chore: antv F2 version 更新到 `3.8.6`
- feat: `f2-all`,`f2-simple`等文件,默认只提供`f2.min.js`,如果需要`f2-all`或`f2-simple`可去码云下载按自已需要引入!
- fix: 修复钉钉小程序measureText undefined的问题
- fix: 修复小程序因`hammer`引用报错
## 0.3.02021-04-06
- feat: `redraw(callback)` 方法重绘
- feat: `clear()` 方法清空图表
- feat: `changeData(data)` 方法更新图表,需要传数据
- feat: `repaint()` 方法更新图表:`source` 数据源 更新后,在需要的时候调用
- feat: `source` 数据源 和 `is-auto-play` 开启自动更新,配置这两个参数只要 `source` 数据源更新,就会更新图表
## 0.2.22021-04-05
- fix: 修复微信小程序缺少`Transform`报错问题
## 0.2.12021-04-04
- chore: 考虑到不是所有人需要 `nvue`,所以 `webview` 改为网络路径 , 当然你也可以把html下载放置到项目根目录的`hybrid`文件夹下
## 0.2.02021-04-04
- chore: 基于 `webview` 实现兼容 `nvue`
## 0.1.02021-04-02
- chore: 第一次上传,基本全端兼容,使用方法与官网一致。