Skip to content

Commit

Permalink
feat: watermark add default style (#1690)
Browse files Browse the repository at this point in the history
* feat: watermark add default style

* feat: fix watermark moveable translate

* feat: fix watermark moveable translate

* feat: fix watermark overflow
  • Loading branch information
carolin913 authored Dec 27, 2023
1 parent 65f2d58 commit c618389
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/watermark/randomMovingStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function randomMovingStyle() {
}%;}
50% {left: ${align === 1 ? leftTopLimit : align === 3 ? rightLimit : 100 - p1}%; top: ${
align === 0 ? bottomLimit : align === 2 ? leftTopLimit : 100 - p1
}%;}
}%; transform: translateX(-100%);}
75% {left: ${align === 0 ? leftTopLimit : align === 2 ? rightLimit : p1}%; top: ${
align === 1 ? leftTopLimit : align === 3 ? bottomLimit : 100 - p1
}%;}
Expand Down
2 changes: 2 additions & 0 deletions style/web/components/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,5 @@
@import "./space/_index.less";

@import "./back-top/_index.less";

@import "./watermark/_index.less";
5 changes: 5 additions & 0 deletions style/web/components/watermark/_index.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "../../base.less";

.@{prefix}-watermark {
position: relative;
}

0 comments on commit c618389

Please sign in to comment.