视频DEMO
在这里插入图片描述

功能

Props

/**
*@params customConfig:是否启用自定义配置项
*@params gridHeight 组件自定义高度
*@params toolbarButton 工具按钮
*@params operteButton 操作列按钮
*@params queryApi grid 请求api
*@params extraQueryParams 默认请求参数
*@params needWatchToQuery 联动表格监听extraQueryParams 再请求
*/

使用

<template>
  <div>
   <Grid
      ref="gridRef"
      :columns="tableColumn"
      :toolbar-button="toolbarButtonConfig"
      :operte-button="operateButtonConfig"
      :query-api="omsOrder"
      :extra-query-params="extraQueryParams"
      @click-fall-back="clickFallBack"
      @query-options="queryHeaderOptions()"
    />
  </div>
</template>
<script setup lang="ts">
const gridRef = ref<ComponentRef | null>(null)
const clickFallBack = (btn: string, row?: any)=>{}
</script>

在这里插入图片描述

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注