@mptw/skylens-ui 1.4.58 → 1.4.59
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.
|
@@ -40,7 +40,6 @@ import {
|
|
|
40
40
|
ga4ev,
|
|
41
41
|
} from "~ui/utils";
|
|
42
42
|
import type IDateRange from "~ui/interface/IDateRange";
|
|
43
|
-
import watermarkImg from "images/commons/watermark.svg";
|
|
44
43
|
|
|
45
44
|
// http://www.excelcodex.com/2012/06/worksheets-naming-conventions/
|
|
46
45
|
function safeSheetName(name: string) {
|
|
@@ -110,7 +109,7 @@ export default defineComponent({
|
|
|
110
109
|
},
|
|
111
110
|
customStyle: {
|
|
112
111
|
type: Object as PropType<Partial<CSSStyleDeclaration>>,
|
|
113
|
-
default: () => {},
|
|
112
|
+
default: () => { },
|
|
114
113
|
},
|
|
115
114
|
evCategory: {
|
|
116
115
|
type: String,
|
|
@@ -138,6 +137,7 @@ export default defineComponent({
|
|
|
138
137
|
let clickSubscriber: Subscription | null = null;
|
|
139
138
|
let popperInstance: PopperInstance | null = null;
|
|
140
139
|
|
|
140
|
+
const watermarkImg = computed(() => '/assets/images/commons/watermark.svg')
|
|
141
141
|
const styleOption = computed(() => {
|
|
142
142
|
return Object.assign({}, DEFAULT_STYLE, customStyle.value);
|
|
143
143
|
});
|
|
@@ -280,7 +280,7 @@ export default defineComponent({
|
|
|
280
280
|
if (padding.value) dataURL = await addPadding(dataURL, padding.value);
|
|
281
281
|
if (dateRanges.value?.length > 0)
|
|
282
282
|
dataURL = await addDateRanges(dataURL, [...dateRanges.value].reverse());
|
|
283
|
-
if (watermark.value) dataURL = await addWatermark(dataURL, watermarkImg);
|
|
283
|
+
if (watermark.value) dataURL = await addWatermark(dataURL, watermarkImg.value);
|
|
284
284
|
downloadURL(dataURL, `${fileName.value}.png`);
|
|
285
285
|
}
|
|
286
286
|
|
package/package.json
CHANGED
|
File without changes
|