impex icon indicating copy to clipboard operation
impex copied to clipboard

是否会增加快速把<tag>转换成 [component] 的方法或者指令?

Open twobear opened this issue 9 years ago • 1 comments

开发时,遇到 一个组件里边要控制的子元素颇多。子元素转换为component写了很多的$template,感觉挺浪费的。不知有什么解决方法?

twobear avatar Feb 21 '16 10:02 twobear

新版本多了一个onBeforeCompile回调,可以获取模版代码,修改后再编译。这里你就可以不用写成子组件,直接控制。看看能不能帮到你

MrSoya avatar Apr 25 '16 10:04 MrSoya