km-card-layout-core 0.1.9 → 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 -5
- package/index.ts +1 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -232,8 +232,6 @@ const buildWrapperStyle = (el, unit) => {
|
|
|
232
232
|
height: (0, exports.addUnit)(abs.height, unit),
|
|
233
233
|
zIndex: abs.zIndex,
|
|
234
234
|
boxSizing: 'border-box',
|
|
235
|
-
display: 'flex',
|
|
236
|
-
alignItems: 'center',
|
|
237
235
|
}, unit);
|
|
238
236
|
};
|
|
239
237
|
const buildPanelContentStyle = (el, unit) => (0, exports.styleObjectToString)({
|
|
@@ -253,9 +251,7 @@ const buildTextContentStyle = (el, unit) => {
|
|
|
253
251
|
wordBreak: 'break-word',
|
|
254
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
|
|
255
253
|
? el.style.lineHeight
|
|
256
|
-
: '
|
|
257
|
-
display: 'inline-flex',
|
|
258
|
-
alignItems: 'center',
|
|
254
|
+
: '',
|
|
259
255
|
};
|
|
260
256
|
if (textAlign)
|
|
261
257
|
style.textAlign = textAlign;
|
package/index.ts
CHANGED
|
@@ -265,8 +265,6 @@ const buildWrapperStyle = (el: CardElement, unit: 'px' | 'rpx'): string => {
|
|
|
265
265
|
height: addUnit(abs.height, unit),
|
|
266
266
|
zIndex: abs.zIndex,
|
|
267
267
|
boxSizing: 'border-box',
|
|
268
|
-
display: 'flex',
|
|
269
|
-
alignItems: 'center',
|
|
270
268
|
},
|
|
271
269
|
unit
|
|
272
270
|
);
|
|
@@ -297,9 +295,7 @@ const buildTextContentStyle = (el: TextElement, unit: 'px' | 'rpx') => {
|
|
|
297
295
|
lineHeight:
|
|
298
296
|
el.style?.lineHeight !== undefined && el.style?.lineHeight !== null
|
|
299
297
|
? el.style.lineHeight
|
|
300
|
-
: '
|
|
301
|
-
display: 'inline-flex',
|
|
302
|
-
alignItems: 'center',
|
|
298
|
+
: '',
|
|
303
299
|
};
|
|
304
300
|
if (textAlign) style.textAlign = textAlign;
|
|
305
301
|
return styleObjectToString(style, unit);
|
package/package.json
CHANGED