TalkingData / iview-weapp

一套高质量的微信小程序 UI 组件库
https://weapp.iviewui.com
Other
6.57k stars 1.17k forks source link

请给一个在 wepy 中使用的例子。。谢谢 #3

Open cielu opened 6 years ago

cielu commented 6 years ago

请给一个在 wepy 中使用的例子。。谢谢

BuptStEve commented 6 years ago

大兄弟不妨看看这个?https://github.com/TalkingData/iview-weapp/pull/7

826327700 commented 6 years ago

wepy貌似没办法用,首先i-button这种横线命名就不行... 我在试图改造成wepy的,但似乎涉及button组件的地方,难度有点大,改完之后与原版差异很大,估计不好用

826327700 commented 6 years ago

还是希望官方有空出一个wepy版的或者mpvue版的

7-SHENG commented 6 years ago

export default class Index extends wepy.page { config = { navigationBarTitleText: 'test', usingComponents: { 'i-button': '../components/iview/button/index' } }

引入一下就好了啊

afacode commented 6 years ago

我用的有赞UI config = { 'navigationBarTitleText': 'test', 'usingComponents': { 'zan-button': '../static/btn/index' } } src/static 放官方的组件

iview也是类似的

1533987417 commented 6 years ago

usingComponent为什么会找不到组件???什么原因

anonymous-qsh commented 6 years ago

把node_modules/iview-weapp/dist文件夹下所有的东西拷贝到/src/components/iview-weapp/文件夹下然后就可以了.

jardenliu commented 5 years ago

可以看一下我这个插件 https://github.com/jardenliu/wepy-plugin-iview.git

dengying3939 commented 5 years ago

export default class Index extends wepy.page { config = { navigationBarTitleText: 'test', usingComponents: { 'i-button': '../components/iview/button/index' } }

引入一下就好了啊

但是在commponent中不能引入iview组件,因为weopy的components没有config配置,不能使用usingComponents,又不能使用import引入