Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

关于 import 的问题 #11

Open
liyu001989 opened this issue May 21, 2018 · 3 comments
Open

关于 import 的问题 #11

liyu001989 opened this issue May 21, 2018 · 3 comments

Comments

@liyu001989
Copy link

image

  // import { Switch as ZanSwitch } from 'mpvue-zanui'  
  import ZanSwitch from 'mpvue-zanui/src/components/zan/switch'
  export default {
    components: {
      ZanSwitch
    },

使用 import { Switch as ZanSwitch } from 'mpvue-zanui' 会如上图所示报错,使用下面那样 import 就正常了,求解

@wwb568109135
Copy link

wwb568109135 commented May 23, 2018

ZanSwitch  你调用的例子代码 如何写的?
但是效果是错的,和zanui上的效果是不符合的!

@liyu001989
Copy link
Author

@wwb568109135

使用 import ZanSwitch from 'mpvue-zanui/src/components/zan/switch' 就对了,我的问题是,为什么 import { Switch as ZanSwitch } from 'mpvue-zanui' 这么写会报错

@howyea
Copy link

howyea commented Jun 20, 2018

建议出一个完善的文档,本来想用mpvue-zanui做个demo,但是都不知道怎么引用。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants