-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from Xavier9896/main
chore: 条码自动增加宽度优化调整;模版中心预览图片资源调整
- Loading branch information
Showing
17 changed files
with
90 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,15 @@ | |
* @Author: 54xavier | ||
* @LastEditors: [email protected] | ||
* @Date: 2023-02-28 14:00:03 | ||
* @LastEditTime: 2023-08-08 19:32:55 | ||
* @LastEditTime: 2024-05-13 23:39:39 | ||
*/ | ||
export const name = "Echarts实现"; | ||
export const desc = "通过HTML元素实现Echarts-svg"; | ||
export const author = "54xavier"; | ||
export const link = "https://ccsimple.gitee.io/vue-plugin-hiprint/"; | ||
// url 或者 base64 或者 require('../../../assets/logo.png') | ||
export const preview = | ||
"https://gitee.com/CcSimple/vue-plugin-hiprint/raw/main/res/template6.png"; | ||
"/static/template6.png"; | ||
function getRandomInt({ min = 10, max = 200 }) { | ||
return Math.floor(Math.random() * (max - min + 1)) + min; | ||
} | ||
|
@@ -197,12 +197,24 @@ export const json = { | |
options: { | ||
left: 12, | ||
top: 460, | ||
height: 12, | ||
height: 45, | ||
width: 418, | ||
title: | ||
"说明:此处模版以一个不可见 html 元素加载 echarts ,故第一次打开无法显示预览,但后续的 print api 能够正常显示,你可以在你的项目中全局加载 echarts 依赖,保证设计、预览时能加载到 echarts 依赖,即可删除用于引入依赖的html元素。使用 print2 需要在 electron-hiprint 项目渲染层中添加该依赖,否则客户端首次打印都无法正常渲染 echarts", | ||
}, | ||
printElementType: { title: "说明", type: "text" }, | ||
printElementType: { title: "说明", type: "longText" }, | ||
}, | ||
{ | ||
options: { | ||
left: 12, | ||
top: 505, | ||
height: 24, | ||
width: 418, | ||
color: "#FF0000", | ||
title: | ||
"注意:Echarts 默认开启 动画,请在 option 中配置 animation 为 false,否则打印时因为动画会导致只显示动画第一帧", | ||
}, | ||
printElementType: { title: "注意", type: "longText" }, | ||
}, | ||
], | ||
paperNumberLeft: 565.5, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters