-
-
Notifications
You must be signed in to change notification settings - Fork 51.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: New Component Watermark #39064
Conversation
43d7e39
to
5d3e7aa
Compare
Codecov ReportBase: 100.00% // Head: 100.00% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## feature #39064 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 550 552 +2
Lines 9431 9563 +132
Branches 2681 2713 +32
==========================================
+ Hits 9431 9563 +132
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
38ae83f
to
46d566b
Compare
46d566b
to
6a74fac
Compare
* docs: add watermark docs * docs: add watermark demo * test: add watermark test * test: add watermark snapshot * chore: add jest-canvas-mock
6a74fac
to
de556f0
Compare
9c218b1
to
601316a
Compare
* docs: update docs * docs: update demo * test: update snapshot
601316a
to
6a159d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
完成度好高
用 shadow dom 实现是不是更不容易被样式覆盖? |
shadow dom 是样式隔离的吧? |
shadow 有样式隔离,MutationObserver 能否监听 shadow DOM 的变化,这个我再研究下,先列为代办项。 |
|
刚看了下,Shadow DOM 在是需要挂载在一个插槽(dom)下的,这个插槽还是可以被样式覆盖。 |
最外层, 也就是 |
把主要内容包在里层, 外层当容器, 任由其控制, 没办法. |
是的 |
🎉🎉🎉 |
盲水印我的理解它就是透明度更低的水印内容。 |
对,网页背景水印只有盲水印,暗水印是针对原图做的。 |
如果需要明、盲都支持呢?要2个content 吗 |
这种场景会很多吗,如果不多可以包两个 ,或者采用 image 的形式 |
包2个可行。image 的话无法服务端动态配置。 |
嗯嗯,现在初期阶段api精简一点 |
走错仓库啦 |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge