diff --git a/package.json b/package.json index e01e6e2..b3c22c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bd/core", - "version": "1.8.5", + "version": "1.8.6", "type": "module", "description": "百搭UI组件库的核心", "main": "dist/index.js", diff --git a/src/index.js b/src/index.js index d1d6fc4..9383b55 100644 --- a/src/index.js +++ b/src/index.js @@ -35,9 +35,7 @@ export function classMap(data = {}) { export function styleMap(data = {}) { let output = '' for (let k in data) { - if (data[k]) { - output += hyphen(k) + ':' + data[k] + ';' - } + output += hyphen(k) + ':' + data[k] + ';' } return output }