1.0.6 • Published 4 years ago

wx-custom-component v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

#欢迎使用微信小程序wx-custom-component通用组件库 ##wx-custom-component的安装

属性类型默认必填说明
showBooleanfalse默认为关闭选择器,当为true时,打开选择器
bindchangeeventhandlevalue 改变时触发 change 事件,event.detail = {value}
bindconfirmeventhandle点击确认按钮时触发,event.detail = {value: value}
bindpickstarteventhandle当滚动选择开始时候触发事件
bindpickendeventhandle当滚动选择结束时候触发事件

JS代码

	page({
		data:{
			show:false
		},
		onOpen(){
			this.setData({
				show:true
			})
		},
		onChange(val){
			console.log(val)
		},
		onconfirm(val){
			console.log(val)
		},
		onStart(val){
			console.log(val)
		},
		onEnd(val){
			console.log(val)
		}
	})
<view bindtap="onOpen">打开</view>

<picker-date-time show="{{show}}"
         bindchange="onChange" 
         bindconfirm="onconfirm"
         bindpickstart="onStart"
         bindpicksend="onEnd"
         ></picker-date-time>
源码地址 https://github.com/chenbingweb/wx-custom
联系我

markdown

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago