yuang-framework-ui-pc 1.1.8 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/ele-admin-layout/index.js +41 -138
- package/es/ele-config-provider/index.js +0 -6
- package/es/ele-data-table/util.js +1 -1
- package/es/ele-drawer/index.d.ts +2 -2
- package/es/ele-loading/index.js +1 -6
- package/es/ele-modal/index.d.ts +2 -2
- package/es/ele-pagination/index.d.ts +2 -0
- package/es/ele-pagination/props.d.ts +1 -0
- package/es/ele-pro-table/index.d.ts +7 -4
- package/es/ele-pro-table/index.js +50 -32
- package/es/ele-pro-table/types.d.ts +11 -3
- package/es/ele-pro-table/util.js +0 -1
- package/es/ele-virtual-table/index.d.ts +11 -0
- package/es/ele-virtual-table/props.d.ts +5 -0
- package/es/ele-watermark/index.js +3 -15
- package/lib/ele-admin-layout/index.cjs +41 -138
- package/lib/ele-config-provider/index.cjs +0 -6
- package/lib/ele-data-table/util.cjs +1 -1
- package/lib/ele-drawer/index.d.ts +2 -2
- package/lib/ele-loading/index.cjs +1 -6
- package/lib/ele-modal/index.d.ts +2 -2
- package/lib/ele-pagination/index.d.ts +2 -0
- package/lib/ele-pagination/props.d.ts +1 -0
- package/lib/ele-pro-table/index.cjs +48 -30
- package/lib/ele-pro-table/index.d.ts +7 -4
- package/lib/ele-pro-table/types.d.ts +11 -3
- package/lib/ele-pro-table/util.cjs +0 -1
- package/lib/ele-virtual-table/index.d.ts +11 -0
- package/lib/ele-virtual-table/props.d.ts +5 -0
- package/lib/ele-watermark/index.cjs +3 -15
- package/package.json +2 -2
|
@@ -96,9 +96,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
96
96
|
};
|
|
97
97
|
const fillTexts = (ctx, drawX, drawY, drawWidth, drawHeight) => {
|
|
98
98
|
const ratio = util.getPixelRatio();
|
|
99
|
-
const { color, fontSize, fontStyle, fontWeight, fontFamily } = util.getFont(
|
|
100
|
-
props2.font
|
|
101
|
-
);
|
|
99
|
+
const { color, fontSize, fontStyle, fontWeight, fontFamily } = util.getFont(props2.font);
|
|
102
100
|
const mergedFontSize = fontSize * ratio;
|
|
103
101
|
ctx.font = `${fontStyle} normal ${fontWeight} ${mergedFontSize}px/${drawHeight}px ${fontFamily}`;
|
|
104
102
|
ctx.fillStyle = color;
|
|
@@ -108,11 +106,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
108
106
|
const content = props2.content;
|
|
109
107
|
const contents = Array.isArray(content) ? content : [content];
|
|
110
108
|
contents.forEach((item, index2) => {
|
|
111
|
-
ctx.fillText(
|
|
112
|
-
item ?? "",
|
|
113
|
-
drawX,
|
|
114
|
-
drawY + index2 * (mergedFontSize + props2.lineGap * ratio)
|
|
115
|
-
);
|
|
109
|
+
ctx.fillText(item ?? "", drawX, drawY + index2 * (mergedFontSize + props2.lineGap * ratio));
|
|
116
110
|
});
|
|
117
111
|
};
|
|
118
112
|
const render = () => {
|
|
@@ -156,13 +150,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
156
150
|
ctx.drawImage(img, drawX, drawY, drawWidth, drawHeight);
|
|
157
151
|
ctx.restore();
|
|
158
152
|
util.rotateWatermark(ctx, alternateRotateX, alternateRotateY, rotate);
|
|
159
|
-
ctx.drawImage(
|
|
160
|
-
img,
|
|
161
|
-
alternateDrawX,
|
|
162
|
-
alternateDrawY,
|
|
163
|
-
drawWidth,
|
|
164
|
-
drawHeight
|
|
165
|
-
);
|
|
153
|
+
ctx.drawImage(img, alternateDrawX, alternateDrawY, drawWidth, drawHeight);
|
|
166
154
|
updateStyle(canvas.toDataURL(), `${(gapX + markWidth) * SIZE}px`);
|
|
167
155
|
};
|
|
168
156
|
img.crossOrigin = "anonymous";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yuang-framework-ui-pc",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite --host --config vite.global.ts --mode dev",
|
|
@@ -188,6 +188,6 @@
|
|
|
188
188
|
"repository": "",
|
|
189
189
|
"license": "",
|
|
190
190
|
"dependencies": {
|
|
191
|
-
"yuang-framework-ui-common": "^1.0.
|
|
191
|
+
"yuang-framework-ui-common": "^1.0.40"
|
|
192
192
|
}
|
|
193
193
|
}
|