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

添加对vue filters过滤器的支持 #45

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

shilin8805
Copy link

抽取.vue文件script标签内的filters属性以及mixins方式引入的公共filters文件,并编译成wxs文件;需配合mpvue-template-compiler使用,在生成wxml文件时引入编译的wxs文件,从而实现vue filters的功能。

@anchengjian
Copy link
Member

很棒!

@anchengjian
Copy link
Member

我还有几点疑问:
1、wxs没有 vue component 的 scope,是否会有问题?
2、这个 PR 支持的场景有哪些,能否给个测试的 Demo 啥的?

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

Successfully merging this pull request may close these issues.

2 participants