Skip to content

一个通过html标签属性快速添加指针移入效果的webpack加载器(A loader that quickly adds cursor pointer effects via html tag attributes)

Notifications You must be signed in to change notification settings

openmind-why/cursor-pointer-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cursor-pointer-loader

一个通过html标签属性快速添加指针移入效果的webpack加载器,代替繁琐的增加css,特别是一些没有其他样式的场景(A loader that quickly adds cursor pointer effects via html tag attributes)

<div __cursorPointer>this is example , __cursorPointer attributes</div>

// will be transform to 
<div style='cursor:pointer'></div>

// if you have TS , you need increase statement (this is a react example):

declare module 'react' {
  interface HTMLAttributes<T> extends DOMAttributes<T> {
    __cursorPointer?: boolean
  }
}

afterwards you can happy coding

About

一个通过html标签属性快速添加指针移入效果的webpack加载器(A loader that quickly adds cursor pointer effects via html tag attributes)

Resources

Stars

Watchers

Forks

Packages

No packages published