Skip to content

Commit

Permalink
fix: 更新 modal 的 axml
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondYuan committed Jan 10, 2024
1 parent b6c8586 commit 225c37a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions compiled/alipay/src/Modal/index.axml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,7 @@
</view>
</view>
<view
a:elif="{{ utils.getDirection(
primaryButtonText,
secondaryButtonText,
cancelButtonText,
type
) === 'horizontal' }}"
a:elif="{{ utils.getDirection(primaryButtonText, secondaryButtonText, cancelButtonText, type) === 'horizontal' }}"
class="ant-modal-body-footer-horizontal">
<view
a:if="{{ cancelButtonText }}"
Expand Down
2 changes: 1 addition & 1 deletion scripts/tsxml/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export function transformJSXElement(ctx: ITransformContext) {
ctx.extends(ctx.node.consequent, {
[isElse ? ctx.elseif() : ctx.if()]: ctx
.extends(ctx.node.test)
.toAxmlExpression(),
.toAxmlExpression(true),
})
),
transformJSXElement(
Expand Down

0 comments on commit 225c37a

Please sign in to comment.