Skip to content

Commit f68c436

Browse files
committed
perf(alita): 依次R相关逻辑
1 parent 6edfa68 commit f68c436

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"weixin",
1818
"redux"
1919
],
20-
"version": "1.2.2",
20+
"version": "1.2.3-beta.1",
2121
"description": "首个ReactNative转微信小程序引擎",
2222
"main": "./lib/index.js",
2323
"scripts": {

src/tran/geneAllTemplate.js

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ export default function(ast, info) {
6666

6767
if(!isBindElement(jsxOp)) {
6868
jsxOp.attributes.push(
69-
t.jsxAttribute(t.jsxIdentifier('R'), t.stringLiteral(`{{${diuuKey}R}}`)),
7069
t.jsxAttribute(t.jsxIdentifier('wx:if'), t.stringLiteral(`{{${diuuKey}style !== false}}`)),
7170
)
7271
}

src/tran/geneWxml.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function geneAllOutComp(outComp, filepath) {
116116
const wxmlAst = [];
117117
wxmlAst.push(t.jsxText(`<import src="./${temppath}"/>`))
118118
wxmlAst.push(t.jsxText("\n"));
119-
wxmlAst.push(t.jsxText(`<template wx:if="{{(_r && _r.tempName) || (R && R.tempName)}}" is="{{_r.tempName || R.tempName}}" data="{{...(_r || R)}}"/>`))
119+
wxmlAst.push(t.jsxText(`<template wx:if="{{(_r && _r.tempName)}}" is="{{_r.tempName}}" data="{{..._r}}"/>`))
120120
let tmpWxmlAst = t.jsxElement(
121121
t.jsxOpeningElement(
122122
t.jsxIdentifier("InnerTmpOpeningElement"),

0 commit comments

Comments
 (0)