@dfsj/echarts
Version:
专业的水文曲线组件或构造函数以及通用的echart二次封装图表
12 lines (10 loc) • 659 B
JavaScript
/**
*
* @dfsj/echarts: 专业的水文曲线组件或构造函数以及通用的echart二次封装图表
* 版本: v4.0.0-alpha.9
* 作者:yangbo <1747837358@qq.com>
* 日期:2026-07-10 17:09:23
*
*
*/
var o={name:"图表图片",suffix:".png",pixelRatio:2,backgroundColor:"#fff"};function n(n){return{downloadImg:function(e){var a=Object.assign({},o,e),t="function"==typeof n?n():n,i=null==t?void 0:t.getDataURL({pixelRatio:a.pixelRatio,backgroundColor:a.backgroundColor}),r=document.createElement("a");r.download=a.name+a.suffix,r.href=i,document.body.appendChild(r),r.click(),r.remove()}}}export{n as useDownLoad};