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

第三方组件问题 #851

Closed
9188 opened this issue Jan 26, 2018 · 1 comment
Closed

第三方组件问题 #851

9188 opened this issue Jan 26, 2018 · 1 comment
Assignees
Labels

Comments

@9188
Copy link

9188 commented Jan 26, 2018

类似 wepy-com-toast 包, 是一个npm包中只包含一个组件,
请问一个npm里面有多个组件的形式支持吗?

比如我的包cy 目录如下

├── button.wpy
├── toast.wpy
├── package.json

import { button, toast } from 'cy';
//或者
import button from 'cy/button.wpy'

现在两种都不行 😭 总不能一个组件一个包吧

mac的改好了 今天window 电脑上试了下 依然不行

@9188 9188 changed the title 组件问题 第三方组件问题 Jan 26, 2018
@Gcaufy Gcaufy self-assigned this Jan 29, 2018
@Gcaufy Gcaufy added the bug label Jan 29, 2018
Gcaufy added a commit that referenced this issue Jan 29, 2018
@9188 9188 closed this as completed Feb 8, 2018
@9188
Copy link
Author

9188 commented Feb 8, 2018

import button from 'cy/button'
import toast from 'cy/toast'

wepy 1.7.0 已经支持了 👏 开心

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

No branches or pull requests

2 participants