【文件属性】:
文件名称:jss-extend:jss的继承插件
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-08 03:49:04
JavaScript
启用继承的JSS插件
该插件实现了自定义extend样式属性。
用法示例
import jss from 'jss'
import extend from 'jss-extend'
jss . use ( extend )
const redContainer = {
background : 'red'
}
const styleSheet = jss . createStyleSheet ( {
container : {
extend : redContainer , // Can be an array of styles
'font-size' : '20px'
}
} )
/**
* For those who use an ES6 transpiler - you can achieve the same
* by using the la
【文件预览】:
jss-extend-master
----history.md(225B)
----.eslintrc(37B)
----webpack.config.js(617B)
----src()
--------index.js(790B)
----.babelrc(35B)
----.npmignore(19B)
----LICENSE(1KB)
----test()
--------index.html(453B)
--------index.js(1KB)
----.gitignore(53B)
----readme.md(2KB)
----package.json(1KB)