km-card-layout-core 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -3
- package/index.ts +1 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -251,9 +251,7 @@ const buildTextContentStyle = (el, unit) => {
|
|
|
251
251
|
wordBreak: 'break-word',
|
|
252
252
|
lineHeight: ((_b = el.style) === null || _b === void 0 ? void 0 : _b.lineHeight) !== undefined && ((_c = el.style) === null || _c === void 0 ? void 0 : _c.lineHeight) !== null
|
|
253
253
|
? el.style.lineHeight
|
|
254
|
-
: '
|
|
255
|
-
display: 'inline-flex',
|
|
256
|
-
alignItems: 'center',
|
|
254
|
+
: '',
|
|
257
255
|
};
|
|
258
256
|
if (textAlign)
|
|
259
257
|
style.textAlign = textAlign;
|
package/index.ts
CHANGED
|
@@ -295,9 +295,7 @@ const buildTextContentStyle = (el: TextElement, unit: 'px' | 'rpx') => {
|
|
|
295
295
|
lineHeight:
|
|
296
296
|
el.style?.lineHeight !== undefined && el.style?.lineHeight !== null
|
|
297
297
|
? el.style.lineHeight
|
|
298
|
-
: '
|
|
299
|
-
display: 'inline-flex',
|
|
300
|
-
alignItems: 'center',
|
|
298
|
+
: '',
|
|
301
299
|
};
|
|
302
300
|
if (textAlign) style.textAlign = textAlign;
|
|
303
301
|
return styleObjectToString(style, unit);
|
package/package.json
CHANGED