Browse Source

perf: 适配最新版 `pure-table` 的 `api`

xiaoxian521 2 years ago
parent
commit
638a95a4af

+ 1 - 1
src/views/pure-table/base/radio.vue

@@ -37,7 +37,7 @@ const columns: TableColumnList = [
       :data="tableData"
       :columns="columns"
       highlight-current-row
-      @current-change="handleCurrentChange"
+      @page-current-change="handleCurrentChange"
     />
     <div style="margin-top: 20px">
       <el-button @click="setCurrent(tableData[1])">Select second row</el-button>

+ 2 - 2
src/views/pure-table/high/page/index.vue

@@ -66,8 +66,8 @@ const {
       "
       :columns="columns"
       :pagination="pagination"
-      @size-change="onSizeChange"
-      @current-change="onCurrentChange"
+      @page-size-change="onSizeChange"
+      @page-current-change="onCurrentChange"
     />
   </div>
 </template>

+ 2 - 2
src/views/system/role/index.vue

@@ -109,8 +109,8 @@ const {
             color: 'var(--el-text-color-primary)'
           }"
           @selection-change="handleSelectionChange"
-          @size-change="handleSizeChange"
-          @current-change="handleCurrentChange"
+          @page-size-change="handleSizeChange"
+          @page-current-change="handleCurrentChange"
         >
           <template #operation="{ row }">
             <el-button

+ 2 - 2
src/views/system/user/index.vue

@@ -111,8 +111,8 @@ const {
               color: 'var(--el-text-color-primary)'
             }"
             @selection-change="handleSelectionChange"
-            @size-change="handleSizeChange"
-            @current-change="handleCurrentChange"
+            @page-size-change="handleSizeChange"
+            @page-current-change="handleCurrentChange"
           >
             <template #operation="{ row }">
               <el-button