iview列表中添加下拉框

					{
					title:'选择',
					key:'pic',

						render: (h, params) => {
							return h('Select', {
										props: {
											value: params.row.applyResult,
										},
										style: {
											width: "100%"
										},
										on: {
											'on-change': (event) => {
												console.log(event)
												console.log(this.data2[params.index].age)

											}
										},
									},
									[
										h('Option', {
											props: {
												value: '1'
											}
										}, '选择1'),
										h('Option', {
											props: {
												value: '2'
											}
										}, '选择2')
									]);
						}
					},

  

 

posted @ 2019-08-01 16:39  拼一个属于自己的未来  阅读(1790)  评论(0编辑  收藏  举报