iview在table组件中设置select组件

render: (h, params) => {
return h('Select', {
                    props:{
                        value: params.row.style,
                    },
                    on: {
                        'on-change':(event) => {
                          console.log(event);
                          self.selectData[params.index].style = event;
                          // self.$refs.selectDataTable.objData[params.index]['style'] = value;
                            // this.data[params.index].volumeType = event;
                        }
                    },
                },
                [
                    h('Option',{
                        props: {
                            value: 'Y'
                        }
                    },'年'),
                    h('Option',{
                        props: {
                            value: 'M'
                        }
                    },'月'),
                    h('Option',{
                        props: {
                            value: 'D'
                        }
                    },'日'),
                    h('Option',{
                        props: {
                            value: 'W'
                        }
                    },'周')
                ]);
}

你可能感兴趣的:(iview)