iview、render使用方法


1.<Table size="large" :columns="columns7" :data="labelInput.label" id="appendData"></Table> 

columns7: [
                    {
                        title: 'Address',
                        key: 'address'
                    },
                    {
                        title: 'Action',
                        key: 'action', 
                        render: (h, params) => {
                        	let self = this;
                            return h('div', [
                                h('Input', {
                                    props: {
                                        type: 'text',
                                        size: 'small', 
                                        name: self.labelInput.label[params.index].name,
                                        placeholder:self.labelInput.label[params.index].placeholder,
                                    },
                                    style: {
                                        marginRight: '5px'
                                    },
                                    on: {
                                        'on-change': () => {
                                           this.show(params.index);  
                                        }
                                    }
                                }), 
                   //h('div','btn');  ]) } } ], labelInput:{ label:[ { address: '产品或服务名称', name:'product[0][product_name]', placeholder:'请输入产品或服务名称', addunit:'' }, { address: '规格型号', name:'product[0][specification_model]', placeholder:'请输入规格型号', }, { address: '单价(含税)', name:'product[0][price]', placeholder:'请输入单价(含税)', }, { address: '数量/单位', name:'product[0][unit]', placeholder:'请输入数量/单位', }, { address: '价税合计(含税)', name:'product[0][total]', placeholder:'请输入价税合计(含税)', }, ] }

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM