From 7adf718231c4e4f5112cde9bee6278ef6e43d1d7 Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 7 Apr 2023 11:25:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DstypeMap=E4=BC=A0=E5=80=BC?= =?UTF-8?q?=E4=B8=BA0=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/index.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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 }