weex icon indicating copy to clipboard operation
weex copied to clipboard

weex 使用mixin

Open finnome opened this issue 8 years ago • 3 comments

无法使用mixin,build完之后,压根就没有Vue.mixin()相关的调用,如何解决?

finnome avatar Apr 12 '18 02:04 finnome

You can do this! import mixin from '@/mixins/index' export default { mixins: [mixin], data() { return {} } }

linda8167 avatar Apr 12 '18 07:04 linda8167

@linda8167 This works well. But I can't use like this: Vue.mixin()

finnome avatar Apr 12 '18 07:04 finnome

This issue is outdated for a long time and will be closed now. You can create a new one if you still have questions.

Hanks10100 avatar May 16 '21 10:05 Hanks10100