-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
关于引入第三方组件问题 #1035
Comments
理论上是可以的。。具体是哪个库。我去测试一下看看。 |
可以用下面这个库试试 npm i cyw --save <loadings />
import loadings from 'cyw/Loading'
this.$invoke('loadings', 'show')
this.$invoke('loadings', 'hide') |
同问,也卡在这个地方了 |
看了你的组件库目录结构,按照vue的组件开发思路,不是应该有个index.js文件里导出么?例如: // index.js 组件导出文件
import Button from 'path/to/button'
import Dialog from 'path/to/dialog'
export {
Button,
Dialog
} 使用方式: // page.wpy
<template>
<Button></Button>
</template>
<script>
import wepy from 'wepy'
import { Button } from 'path/to/uikit'
export default class Page extends wepy.page {
commponets = {
Button
}
}
</script> 我遇到的问题是这样引入第三方组件,执行 截图@Gcaufy 还望抽空能帮忙解答一下,谢谢! |
请问你的问题解决了吗 我自己的多项目共用模块 也是这个问题找不到文件 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
类似 wepy-com-toast 包, 是一个
npm
包中只包含一个组件,请问一个npm里面有多个组件的形式支持吗?
比如我的包cy 目录如下
├── button.wpy
├── toast.wpy
├── package.json
mac
上没问题window
上面依然报错 说找不到 'cy/button'The text was updated successfully, but these errors were encountered: