Skip to content

Commit f10a49e

Browse files
committed
feat(Watermark): support style and customStyle props
1 parent c41729a commit f10a49e

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

packages/components/watermark/watermark.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
@import '../common/style/base.less';
22

3+
.@{prefix}-watermark {
4+
position: relative;
5+
overflow: hidden;
6+
width: 100%;
7+
}
8+
39
@keyframes watermark {
410
0% {
511
left: var(--watermark-left-0);

packages/components/watermark/watermark.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<wxs module="_" src="../common/utils.wxs" />
22

3-
<view style="position: relative; overflow: hidden; width: 100%">
3+
<view class="{{classPrefix}} class {{prefix}}-class" style="{{_._style([style, customStyle])}}">
44
<block wx:if="{{content}}">{{content}}</block>
55
<slot name="content" />
66
<slot />

0 commit comments

Comments
 (0)