Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
perf(alipay): 优化支付宝渲染层性能
Browse files Browse the repository at this point in the history
  • Loading branch information
Darmody committed Jan 14, 2020
1 parent e888e52 commit 5d3e936
Show file tree
Hide file tree
Showing 73 changed files with 2,268 additions and 2,477 deletions.
1 change: 0 additions & 1 deletion packages/remax-alipay/src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const plugin: RemaxNodePluginConstructor = () => {
},
ejs: {
page: path.join(EJS_TPL_ROOT, 'page.ejs'),
jsHelper: path.join(EJS_TPL_ROOT, 'helper.js'),
},
},
hostComponents,
Expand Down
113 changes: 0 additions & 113 deletions packages/remax-alipay/templates/helper.js

This file was deleted.

5 changes: 2 additions & 3 deletions packages/remax-alipay/templates/page.ejs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<import-sjs name="helper" from="<%= jsHelper %>" />
<template is="REMAX_TPL" data="{{tree: helper.reduce(action)}}" />
<template is="REMAX_TPL" data="{{ root: root }}" />

<template name="REMAX_TPL">
<block a:for="{{tree.root.children}}" a:key="{{item.id}}">
<block a:for="{{root.children}}" a:key="{{item.id}}">
<template is="REMAX_TPL_1_CONTAINER" data="{{item: item}}" />
</block>
</template>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<import-sjs name="helper" from="./packageA_pages/index.js_helper.sjs" />
<template is="REMAX_TPL" data="{{tree: helper.reduce(action)}}" />
<template is="REMAX_TPL" data="{{ root: root }}" />

<template name="REMAX_TPL">
<block a:for="{{tree.root.children}}" a:key="{{item.id}}">
<block a:for="{{root.children}}" a:key="{{item.id}}">
<template is="REMAX_TPL_1_CONTAINER" data="{{item: item}}" />
</block>
</template>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<import-sjs name="helper" from="./pages_index.js_helper.sjs" />
<template is="REMAX_TPL" data="{{tree: helper.reduce(action)}}" />
<template is="REMAX_TPL" data="{{ root: root }}" />

<template name="REMAX_TPL">
<block a:for="{{tree.root.children}}" a:key="{{item.id}}">
<block a:for="{{root.children}}" a:key="{{item.id}}">
<template is="REMAX_TPL_1_CONTAINER" data="{{item: item}}" />
</block>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
Object.defineProperty(exports, '__esModule', { value: true });

var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.js');
require('../npm/remax/esm/Platform.js');
require('../npm/remax/esm/render.js');
var React = require('react');
require('../npm/remax/esm/createAppConfig.js');
require('../npm/remax/esm/createHostComponent.js');
require('../npm/remax/esm/Platform.js');
var createPageConfig = require('../npm/remax/esm/createPageConfig.js');
require('../npm/remax/esm/index.js');
var runtime = require('../npm/regenerator-runtime/runtime.js');
Expand Down

This file was deleted.

Loading

0 comments on commit 5d3e936

Please sign in to comment.