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

Commit

Permalink
feat: 修改头条小程序的模板适配原生组件
Browse files Browse the repository at this point in the history
  • Loading branch information
Pochodaydayup authored and yesmeck committed Sep 30, 2019
1 parent 99a2cdb commit 3436245
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/remax-cli/templates/toutiao/base.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</block>
</template>

<% for (let component of components) { %>
<% for (let component of components.concat(nativeComponents)) { %>
<%- include('./component.ejs', {
type: component.type,
props: component.props,
Expand Down
4 changes: 2 additions & 2 deletions packages/remax-cli/templates/wechat/base.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</wxs>

<% for (var i = 1; i <= depth; i++) { %>
<%var id = i; %>
<% var id = i; %>
<% for (let component of components) { %>
<%- include('./component.ejs', {
props: component.props,
Expand All @@ -28,4 +28,4 @@
<template name="REMAX_TPL_<%=id%>_CONTAINER" data="{{i: i}}">
<template is="{{'REMAX_TPL_<%=id%>_' + i.type}}" data="{{i: i}}" />
</template>
<% } %>
<% } %>

0 comments on commit 3436245

Please sign in to comment.