zhanghl
2025-04-15 bbbee93929c03fe96441eb7a1beea0b1276e7fca
src/components/HxlhTable/index.vue
@@ -26,6 +26,7 @@
            :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"
@@ -35,6 +36,10 @@
            <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>
  </template>
@@ -133,9 +138,22 @@
    default: () => {
    return []
    }
}
},
 expandConfig: {
    type: Object,
    default: () => {
      return {lazy: false}
    }
  },
  subGridOptions: {
    type:Object,
    default :()=>{
      return {}
    }
  }
})
const tableForm = ref([]);
// const url = computed(() => props.src)