提交 117d5757 编写于 作者: Q qiang

fix: 解决开启treeShaking后animation属性实现的问题

上级 3ecbc789
......@@ -37,12 +37,14 @@ module.exports = function updateComponents(tags) {
tagName = capitalize(camelize(tagName))
return `${tagName}.name = 'VUni${tagName}'
${tagName}.mixins = ${tagName}.mixins ? [].concat(baseMixin, ${tagName}.mixins) : [baseMixin]
${tagName}.mixins.push(animation)
Vue.component(${tagName}.name,${tagName})`
}).join('\n')
const content = `
import Vue from 'vue'
import baseMixin from 'uni-mixins/base'
import animation from 'uni-mixins/animation'
${importsStr}
${componentsStr}
`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册