wemark icon indicating copy to clipboard operation
wemark copied to clipboard

有在支付宝小程序成功引入的案例吗?

Open devuser opened this issue 6 years ago • 7 comments

最近在开发支付宝小程序,希望引入本组件,Taro+Markdown

devuser avatar Feb 19 '19 15:02 devuser

没有关注支付宝小程序,欢迎尝试和反馈。

TooBug avatar Feb 20 '19 01:02 TooBug

这里应该就是,看起来是成功了拉拉♪(^∇^*)!就是样式有一点奇怪。。。

图片 图片 图片 图片

Akimotorakiyu avatar Apr 28 '19 09:04 Akimotorakiyu

@SilverLeaves 引入后是否需要做修改,或者引入过程中有哪些需要注意的?可否提供一下,我放到Readme中。

TooBug avatar May 04 '19 23:05 TooBug

需要做修改

阿里小程序的文档真的很坑,鬼知道它在什么地方把很重要的事情一笔带过了。所以一定要抠字眼呀呀呀呀

用来传值的组件属性

props:{}

父子组件的事件绑定

父组件中标签on+大写开头的事件名(小写不知道可以不)

<my-component onEvent="eventHandler">

函数引用会传递到子组件的props中,函数中的this指向仍是父组件

更新数据的生命周期事件

didUpdate(prevProps,prevData){}

标签属性

属性是区分大小写的,事件属性是驼峰命名

<tag onTap a:if a:for a:key a:for-index a:for-item></tag>

文件后缀

.acss .axml

?es6 module?

我是先改成了es6module的导出导入方式的,然后再看的其它问题的。所以,是不是一定要用es6module的导出导入方式,你要试一下。

Akimotorakiyu avatar May 05 '19 01:05 Akimotorakiyu

收到,非常感谢。 @SilverLeaves

TooBug avatar May 05 '19 06:05 TooBug

阿里开发工具更新到0.32.3之后,模拟器上不能显示了 https://github.com/TooBug/wemark/issues/75#issuecomment-494262289

Akimotorakiyu avatar May 21 '19 06:05 Akimotorakiyu

阿里开发工具更新到0.32.3之后,模拟器上不能显示了 #75 (comment) @TooBug @Akimotorakiyu 能否把你适配好的分支分享一下?谢谢,😊

fanzhiri avatar Aug 06 '20 09:08 fanzhiri