| | |
| | | :footer-cell-class-name="footerCellClassName" |
| | | :scroll-x="{enabled: true}" |
| | | :scroll-y="{enabled: true}" |
| | | :expand-config="expandConfig" |
| | | @sort-change="sortChange" |
| | | @page-change="pagerChange" |
| | | @form-submit="findList" |
| | |
| | | > |
| | | <template v-slot:buttons="row"> |
| | | <slot name="buttons" v-bind="row"/> |
| | | </template> |
| | | <template #expandContent="{ row }"> |
| | | <vxe-grid v-bind="subGridOptions" :data="row.subList"> |
| | | </vxe-grid> |
| | | </template> |
| | | </vxe-grid> |
| | | </div> |
| | |
| | | default: () => { |
| | | return [] |
| | | } |
| | | }, |
| | | expandConfig: { |
| | | type: Object, |
| | | default: () => { |
| | | return {lazy: false} |
| | | } |
| | | }, |
| | | subGridOptions: { |
| | | type:Object, |
| | | default :()=>{ |
| | | return {} |
| | | } |
| | | } |
| | | }) |
| | | |
| | | |
| | | const tableForm = ref([]); |
| | | |
| | | // const url = computed(() => props.src) |