pull/1/head 1.8.7
yutent 2023-04-07 16:29:54 +08:00
parent 7adf718231
commit 948c4e08c6
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@bd/core",
"version": "1.8.6",
"version": "1.8.7",
"type": "module",
"description": "百搭UI组件库的核心",
"main": "dist/index.js",

View File

@ -35,7 +35,9 @@ export function classMap(data = {}) {
export function styleMap(data = {}) {
let output = ''
for (let k in data) {
output += hyphen(k) + ':' + data[k] + ';'
if (data[k] || data[k] === 0) {
output += hyphen(k) + ':' + data[k] + ';'
}
}
return output
}