Skip to content

Commit 3cc9a7e

Browse files
committed
feat: ✨ increase readme
1 parent d408938 commit 3cc9a7e

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
11
# cursor-pointer-loader
2-
一个通过html标签属性快速添加指针移入效果的webpack加载器(A loader that quickly adds cursor pointer effects via html tag attributes)
2+
一个通过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

Comments
 (0)