张诺
8 天以前 17ba8e005e8f01a0d11c70413a337fe0f1288871
src/components/Table/ETable.vue
@@ -7,6 +7,14 @@
      :show-selection="showSelection"
      :max-height="maxHeight"
      @selection-change="handleSelectionChange"
<<<<<<< HEAD
=======
      @row-click="handleRowClick"
      @row-dblclick="handleRowDblClick"
      @cell-click="handleCellClick"
      :max-width="maxWidth"
      @export="handleExport"
>>>>>>> master
    >
      <el-table-column v-if="showSelection" type="selection" width="55" align="center" />
      <el-table-column v-if="showIndex" label="序号" type="index" width="60" align="center" />
@@ -49,6 +57,30 @@
  import { ElMessage, ElMessageBox } from 'element-plus'
  const props = defineProps({
<<<<<<< HEAD
=======
    // 最大宽度
    maxWidth: {
      type: [String, Number],
      default: 'auto'
    },
    handleCellClick: {
      type: Function,
      default: () => {}
    },
    handleRowClick: {
      type: Function,
      default: () => {}
    },
    handleExport: {
      type: Function,
      default: () => {}
    },
    handleRowDblClick: {
      type: Function,
      default: () => {}
    },
>>>>>>> master
    // 高度
    maxHeight: {
      type: [String, Number],