Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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