@dcloudio/uni-nvue-styler
Advanced tools
Comparing version 0.0.1-nvue3.3040020220224004 to 0.0.1-nvue3.3040020220225001
@@ -648,3 +648,3 @@ 'use strict'; | ||
var unit = match[1]; | ||
if (!unit) { | ||
if (!unit || unit === 'px') { | ||
return { value: parseFloat(v) }; | ||
@@ -1086,4 +1086,10 @@ } | ||
} | ||
let parentSelector = res[1].trim(); | ||
let curSelector = res[2].trim().substring(1); | ||
let parentSelector = res[1]; | ||
let curSelector = res[2].substring(1); | ||
// .a.b => a.b | ||
const dotIndex = curSelector.indexOf('.'); | ||
if (dotIndex > -1) { | ||
parentSelector += curSelector.substring(dotIndex); | ||
curSelector = curSelector.substring(0, dotIndex); | ||
} | ||
const pseudoIndex = curSelector.indexOf(':'); | ||
@@ -1090,0 +1096,0 @@ if (pseudoIndex > -1) { |
{ | ||
"name": "@dcloudio/uni-nvue-styler", | ||
"version": "0.0.1-nvue3.3040020220224004", | ||
"version": "0.0.1-nvue3.3040020220225001", | ||
"description": "uni-nvue-styler", | ||
@@ -5,0 +5,0 @@ "main": "./dist/uni-nvue-styler.cjs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47166
1378