<picker  class="width-100" mode="multiSelector" :range="timeList" :value="timesIndex" @change="bindTimeChange">			
	<view>
		{{timeList[0][timesIndex[0]]}}:{{timeList[1][timesIndex[1]]}}
	</view>
</picker>


data(){
    return{
	timeList: [['01','02','03','04','05','06','07','08','09','10'],['00','10','20','30','40','50','60']],
	timesIndex: [0,0]
	}
},

methods:{
	bindTimeChange(e){
	console.log('picker发送选择改变,携带值为', e.target.value)
	this.timesIndex = e.target.value
	},
}

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐