@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/style.mjs CHANGED
@@ -79,3 +79,4 @@ import './themes/style/index.mjs'
79
79
  import './time-picker/style/index.mjs'
80
80
  import './tooltip/style/index.mjs'
81
81
  import './uploader/style/index.mjs'
82
+ import './watermark/style/index.mjs'
@@ -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);
@@ -0,0 +1,3 @@
1
+ export default {
2
+ '--watermark-content-color': '#ffffff'
3
+ };
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
  }