@dongmingzhixiu/vuexir-compiler 0.7.4 → 0.7.5
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/codegen/compose.js
CHANGED
|
@@ -1436,7 +1436,8 @@ function emitNodeInner(node, ctx, depth, loop, useParamModifier = false, parentS
|
|
|
1436
1436
|
return out;
|
|
1437
1437
|
}
|
|
1438
1438
|
case 'button': {
|
|
1439
|
-
const
|
|
1439
|
+
const flex = p.flex !== undefined ? flexModifier(p, ctx) : '';
|
|
1440
|
+
const chain = modChain([...stretchModifiers(parentStretch, node), ...sizeModifiers(p, ctx), flex, ...absM(p), ...clipModifiers(p), ...visualModifiers(p), ...borderModifiers(p), ...paddingModifiers(p), ...alphaArr, ...transformModifiers(p)], pad + ' ');
|
|
1440
1441
|
// R108:动态按钮文案(props.bind)优先;Kotlin 里用字符串模板插值
|
|
1441
1442
|
const label = p.bind !== undefined ? String(p.bind) : (p.label ?? '');
|
|
1442
1443
|
const click = kotlinClickAction(p, ctx, loop);
|
package/dist/transform/vue2ir.js
CHANGED
|
@@ -2369,9 +2369,9 @@ function walkElement(node, classProps, comboRules, scopedRules, pseudoRules, war
|
|
|
2369
2369
|
mapping = { type: 'group' };
|
|
2370
2370
|
if (mapping.type === 'text' && content.length === 0 && ['i', 'span', 'b'].includes(node.tag))
|
|
2371
2371
|
mapping = { type: 'spacer' };
|
|
2372
|
-
// R108:button
|
|
2372
|
+
// R108:button 文案使用 label/bind,保留作为父容器子项的 flex。
|
|
2373
2373
|
if (mapping.type === 'button') {
|
|
2374
|
-
const badProps = ['flexDirection', 'justifyContent', 'alignItems', 'gap', '
|
|
2374
|
+
const badProps = ['flexDirection', 'justifyContent', 'alignItems', 'gap', 'textAlign', 'lineHeight', 'lineHeightMultiplier', 'overflow', 'clip'];
|
|
2375
2375
|
for (const k of badProps)
|
|
2376
2376
|
delete props[k];
|
|
2377
2377
|
}
|