1. 二维码的参数可以直接设固定值,
2. SpreadJS支持形状迷你图
3. 形状可以直接转base64
- var shape = sheet.shapes.add("rectangle", GC.Spread.Sheets.Shapes.AutoShapeType.rectangle, 800, 800, 500, 500);
- // switch to picture fill
- var style = shape.style();
- style.fill = { src: '' };
- shape.style(style);
- // bind sparkline formula to picture fill source.
- shape.setFormula('style.fill.src', '=BC_QRCODE("1233","#000","#FFF","L",2,"auto","auto",FALSE,0,,"UTF-8",,,,)')
- shape.toImageSrc()
复制代码 |