Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

单组件使用失败,无法引用Notification, Dialog and Message组件 #82

Closed
aqbjteddy opened this issue Dec 27, 2017 · 2 comments
Closed

Comments

@aqbjteddy
Copy link

Steps to reproduce

按照官方示例 https://at-ui.github.io/at-ui/#/zh/docs/quickstart 引用单个组件,以下只有LoadingBar in exports,其它三个没办法以 import 方式从at-ui引用

import {
  Notification,
  Message,
  LoadingBar,
  Dialog
} from 'at-ui'

  Vue.prototype.$Notify = Notification // null
  Vue.prototype.$Loading = LoadingBar
  Vue.prototype.$Modal = Dialog // null
  Vue.prototype.$Message = Message // null

我看了下,源代码里没有把那三个加到exports里面

Which browser?

AT-UI: 1.3.1

What is expected?

可以引用到Notification、Dialog、Message组件

What is actually happening?

  Vue.prototype.$Notify = Notification // null
  Vue.prototype.$Loading = LoadingBar
  Vue.prototype.$Modal = Dialog // null
  Vue.prototype.$Message = Message // null

Reproduction Link

不需要

@koppthe
Copy link
Member

koppthe commented Dec 28, 2017

已经有同学提了 PR,只是还没有发版本

@koppthe
Copy link
Member

koppthe commented Jan 30, 2018

#67

@koppthe koppthe closed this as completed Jan 30, 2018
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

No branches or pull requests

2 participants