1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <Table :columns="tableColumns" :data="searchResults" v-if="!!searchResults" stripe border></Table>
tableColumns: [ { title: "订单状态", renderHeader: (h, row) => { return h('Select', { props: { placeholder: '订单状态', value: this.queryData.status }, style: { width: '150px', display: 'inline-block' } }, [ list.map((val) => { return h('Option', { props: { value: val.value, label: val.text }, nativeOn: { click: () => { this.selectOrder(val); } } },val.text) }) ]) }, ]
|