We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d408938 commit 3cc9a7eCopy full SHA for 3cc9a7e
README.md
@@ -1,2 +1,21 @@
1
# cursor-pointer-loader
2
-一个通过html标签属性快速添加指针移入效果的webpack加载器(A loader that quickly adds cursor pointer effects via html tag attributes)
+一个通过html标签属性快速添加指针移入效果的webpack加载器,代替繁琐的增加css,特别是一些没有其他样式的场景(A loader that quickly adds cursor pointer effects via html tag attributes)
3
+
4
+```ruby
5
6
+<div __cursorPointer>this is example , __cursorPointer attributes</div>
7
8
+// will be transform to
9
+<div style='cursor:pointer'></div>
10
11
+// if you have TS , you need increase statement (this is a react example):
12
13
+declare module 'react' {
14
+ interface HTMLAttributes<T> extends DOMAttributes<T> {
15
+ __cursorPointer?: boolean
16
+ }
17
+}
18
19
+```
20
21
+afterwards you can happy coding
0 commit comments