linwenxin 1 rok temu
rodzic
commit
64ec3a49ab
3 zmienionych plików z 9 dodań i 5 usunięć
  1. 3 3
      package-lock.json
  2. 1 1
      package.json
  3. 5 1
      src/components/template/template-page-1.vue

+ 3 - 3
package-lock.json

@@ -4716,9 +4716,9 @@
       "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ=="
     },
     "@zjlib/element-plugins": {
-      "version": "2.13.20",
-      "resolved": "http://121.41.110.30:4873/@zjlib%2felement-plugins/-/element-plugins-2.13.20.tgz",
-      "integrity": "sha512-qHa59hdy7sIvmv3oMl7J0tzQPOR6B3e1HNZWHdo2alcyVqwnoT9xawYqabNhQJwH+Hfy22slJmjM00hlqIMQtw==",
+      "version": "2.13.22",
+      "resolved": "http://121.41.110.30:4873/@zjlib%2felement-plugins/-/element-plugins-2.13.22.tgz",
+      "integrity": "sha512-cY+c9usrrWNpI6In4ZIxD9AryGWwflRZ2mFgAF/HXFu7gUA7rkYjZjBZ8YIh3iNlr2y8dWtpXUyegwXy6ATM8w==",
       "requires": {
         "@turf/turf": "^6.5.0",
         "@vuemap/vue-amap": "^0.1.12",

+ 1 - 1
package.json

@@ -18,7 +18,7 @@
     "@turf/turf": "^6.5.0",
     "@vue-office/excel": "^1.3.0",
     "@vue/composition-api": "^1.7.1",
-    "@zjlib/element-plugins": "^2.13.20",
+    "@zjlib/element-plugins": "^2.13.22",
     "@zjlib/element-ui2": "^1.0.3",
     "axios": "0.18.1",
     "chatgpt": "^4.1.2",

+ 5 - 1
src/components/template/template-page-1.vue

@@ -8,7 +8,7 @@
       :tableEvents="{ ...defaultTableEvents, ...tableEvents }"
       :tableAttributes="{ ...defaultTableAttributes, ...tableAttributes }" :ellipsis="ellipsis" :pageSizes="pageSizes"
       @columnWidthChange="columnWidthChange" @columnListChange="columnListChange" :screeningAnalysis="screeningAnalysis"
-      :filterMethod="filterMethod" :moreParameters="moreParameters">
+      :filterMethod="filterMethod" :sortMethod="sortMethod" :moreParameters="moreParameters">
       <template slot="more-search">
         <slot name="moreSearch"></slot>
       </template>
@@ -133,6 +133,10 @@ export default {
         return row[column['property']] === value
       }
     },
+    sortMethod: {
+      type: Function,
+      default: undefined
+    },
     pageSizes: {
       type: Array,
       default: () => [15, 30, 50, 100, 150, 200],