修复stypeMap传值为0的bug

pull/1/head 1.8.6
yutent 2023-04-07 11:25:34 +08:00
parent 878e469a1a
commit 7adf718231
2 changed files with 2 additions and 4 deletions

View File

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

View File

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