【文件属性】:
文件名称:jss-props-sort:使规则道具彼此延伸而不是覆盖
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-10 21:57:40
JavaScript
使规则道具彼此延伸而不是覆盖。
受本地人的启发。 使用此插件,较具体的属性将不会被较具体的属性覆盖。
export default {
button : {
borderLeft : '1px solid red' ,
border : '3px solid green'
}
}
. jss-0 {
border : 3 px solid green;
border-left : 1 px solid red;
}
看一下目录。
注册插件
var jss = require ( 'jss' )
var propsSort = require ( 'jss-props-sort' )
jss . use ( propsSort )
运行测试
在本地
npm i
open test/local.html
来自github
【文件预览】:
jss-props-sort-master
----index.js(439B)
----package.json(716B)
----x-package.json5(958B)
----readme.md(766B)
----test()
--------index.js(487B)
--------local.html(470B)
--------index.html(530B)
----LICENSE(1KB)
----dist()
--------index.js(1KB)
----examples()
--------simple()
--------index.html(289B)
----.gitignore(96B)
----Makefile(242B)
----history.md(87B)
----bower.json(596B)