File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,24 @@ window.addEventListener('load', () => {
65
65
========================================================================================== */
66
66
67
67
let isFound = false ;
68
+ for ( let k = 0 ; k < lightWindCssConfig . proprieties . light . length ; k ++ ) {
69
+ if ( isFound )
70
+ break ;
71
+ if ( classParams [ classParams . length - 1 ] . split ( '-' ) [ 0 ] == lightWindCssConfig . proprieties . light [ k ] . name ) {
72
+ let value = classParams [ classParams . length - 1 ] . split ( '-' ) [ 1 ]
73
+ for ( let l = 2 ; l < classParams [ classParams . length - 1 ] . split ( '-' ) . length ; l ++ ) {
74
+ value += classParams [ classParams . length - 1 ] . split ( '-' ) [ l ]
75
+ }
76
+ value = value . substr ( 1 , value . length - 2 )
77
+
78
+ lightWindCssConfig . proprieties . light [ k ] . proprieties . forEach ( el => {
79
+ styleStr += `${ el } : ${ value } ;`
80
+ } )
81
+
82
+ isFound = true ;
83
+ }
84
+ }
85
+
68
86
for ( let k = 0 ; k < lightWindCssConfig . proprieties . global . length ; k ++ ) {
69
87
if ( isFound )
70
88
break ;
You can’t perform that action at this time.
0 commit comments