1
lzhe
2024-09-26 7d59e8e2c727dd49d9552a8febc2af47c5b95a69
src/components/scTable/index.vue
@@ -4,16 +4,16 @@
 * @Author: sakuya
 * @Date: 2021年11月29日21:51:15
 * @LastEditors: Sneed
 * @LastEditTime: 2024-05-12 13:00:03
 * @LastEditTime: 2024-05-12 13:35:21
-->
<template>
   <div class="scTable" :style="{ 'height': _height }" ref="scTableMain" v-loading="loading">
      <div class="scTable-table" :style="{ 'height': _table_height }">
         <el-table v-bind="$attrs" :data="tableData" :row-key="rowKey" :key="toggleIndex" ref="scTable"
            :height="height == 'auto' ? null : '100%'" :size="config.size" :border="config.border" :stripe="config.stripe"
            :summary-method="remoteSummary ? remoteSummaryMethod : summaryMethod" @sort-change="sortChange"
            @filter-change="filterChange">
            :height="height == 'auto' ? null : '100%'" :size="config.size" :border="config.border"
            :stripe="config.stripe" :summary-method="remoteSummary ? remoteSummaryMethod : summaryMethod"
            @sort-change="sortChange" @filter-change="filterChange">
            <slot></slot>
            <template v-for="(item, index) in userColumn" :key="index">
               <el-table-column v-if="!item.hide" :column-key="item.prop" :label="item.label" :prop="item.prop"
@@ -200,7 +200,7 @@
            var res = await this.apiObj.get(reqData);
         } catch (error) {
            this.loading = false;
            this.emptyText = error.statusText;
            this.emptyText = error?.statusText;
            return false;
         }
         try {