@varlet/ui 2.13.6 → 2.14.0
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/index.bundle.mjs +9 -3
- package/es/index.mjs +8 -3
- package/es/style.css +1 -1
- package/es/style.mjs +1 -0
- package/es/themes/dark/index.mjs +2 -1
- package/es/themes/dark/watermark.mjs +3 -0
- package/es/utils/jest.mjs +16 -0
- package/es/varlet.esm.js +4717 -4480
- package/es/watermark/Watermark.mjs +163 -0
- package/es/watermark/WatermarkSfc.css +0 -0
- package/es/watermark/index.mjs +5 -0
- package/es/watermark/props.mjs +57 -0
- package/es/watermark/style/index.mjs +2 -0
- package/es/watermark/watermark.css +1 -0
- package/highlight/web-types.en-US.json +144 -2
- package/highlight/web-types.zh-CN.json +130 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +1517 -1225
- package/package.json +6 -6
- package/types/index.d.ts +2 -0
- package/types/watermark.d.ts +40 -0
- package/umd/varlet.js +5 -5
package/es/style.mjs
CHANGED
package/es/themes/dark/index.mjs
CHANGED
|
@@ -37,6 +37,7 @@ import link from './link.mjs';
|
|
|
37
37
|
import progress from './progress.mjs';
|
|
38
38
|
import option from './option.mjs';
|
|
39
39
|
import countdown from './countdown.mjs';
|
|
40
|
+
import watermark from './watermark.mjs';
|
|
40
41
|
export default _extends({
|
|
41
42
|
// common
|
|
42
43
|
'--color-body': '#1e1e1e',
|
|
@@ -48,4 +49,4 @@ export default _extends({
|
|
|
48
49
|
'--color-danger': '#ef5350',
|
|
49
50
|
'--color-disabled': '#404040',
|
|
50
51
|
'--color-text-disabled': '#757575'
|
|
51
|
-
}, button, cell, card, timePicker, datePicker, skeleton, tabs, tab, popup, dialog, actionSheet, chip, badge, uploader, collapse, pullRefresh, switchThemes, steps, pagination, table, fieldDecorator, select, radio, checkbox, divider, picker, appBar, bottomNavigation, bottomNavigationItem, menu, result, breadcrumb, paper, avatar, link, progress, option, countdown);
|
|
52
|
+
}, button, cell, card, timePicker, datePicker, skeleton, tabs, tab, popup, dialog, actionSheet, chip, badge, uploader, collapse, pullRefresh, switchThemes, steps, pagination, table, fieldDecorator, select, radio, checkbox, divider, picker, appBar, bottomNavigation, bottomNavigationItem, menu, result, breadcrumb, paper, avatar, link, progress, option, countdown, watermark);
|
package/es/utils/jest.mjs
CHANGED
|
@@ -239,4 +239,20 @@ export function mockUserAgent(userAgent) {
|
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
|
+
}
|
|
243
|
+
export function mockCanvas() {
|
|
244
|
+
Object.defineProperties(HTMLCanvasElement.prototype, {
|
|
245
|
+
getContext: {
|
|
246
|
+
value() {
|
|
247
|
+
return {
|
|
248
|
+
drawImage() {}
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
toDataURL: {
|
|
253
|
+
value() {
|
|
254
|
+
return 'mock data url';
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
});
|
|
242
258
|
}
|