Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

将 wxs 的函数调用转化为小程序字符串 "{{}}" #170

Open
DiamondYuan opened this issue Dec 29, 2023 · 0 comments
Open

将 wxs 的函数调用转化为小程序字符串 "{{}}" #170

DiamondYuan opened this issue Dec 29, 2023 · 0 comments

Comments

@DiamondYuan
Copy link

问题描述?

目前 uniapp 转换到小程序会报错

期望的结果

假设小程序的 axml 是这样的

<import-sjs name="utils" from="./new_file.sjs"></import-sjs>
<view class="content"><image class="helo {{utils.world()}} "></image>

转换后的 uniapp 结果应该是 class="helo {{utils.world()}}"

<image class="helo {{utils.world()}}" ></image>
<script lang="sjs" module='utils' src="./new_file.sjs"></script>

通过这种方式转换,再从 uniapp 转到小程序时, sjs 仍然可以工作。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant