Browse Source

Update vue-rc.2

qingwei.li 9 years ago
parent
commit
cae2767cda
2 changed files with 8 additions and 8 deletions
  1. 7 7
      examples/docs/table.md
  2. 1 1
      package.json

+ 7 - 7
examples/docs/table.md

@@ -85,9 +85,9 @@
         this.singleSelection = val;
       },
 
-      // handleMultipleSelectionChange(val) {
-      //   this.multipleSelection = val;
-      // }
+      handleMultipleSelectionChange(val) {
+        this.multipleSelection = val;
+      }
     },
 
     watch: {
@@ -95,9 +95,9 @@
         console.log('selection: ', val);
       },
 
-      // multipleSelection(val) {
-      //   console.log('selection: ', val);
-      // }
+      multipleSelection(val) {
+        console.log('selection: ', val);
+      }
     }
   };
 </script>
@@ -488,7 +488,7 @@
 
 ## 多选
 
-<el-table :data="tableData3" selection-mode="multiple" style="width: 520px">
+<el-table :data="tableData3" selection-mode="multiple" style="width: 520px" @selectionchange="handleMultipleSelectionChange">
   <el-table-column type="selection" width="50"></el-table-column>
   <el-table-column inline-template property="date" label="日期" width="120">
     <div>{{ row.date }}</div>

+ 1 - 1
package.json

@@ -46,7 +46,7 @@
     "q": "^1.4.1",
     "uppercamelcase": "^1.1.0",
     "vue-loader": "^9.3.2",
-    "vue": "^2.0.0-rc.1",
+    "vue": "^2.0.0-rc.2",
     "vue-markdown-loader": "^0.4.0",
     "vue-popup": "^0.2.2",
     "vue-router": "^2.0.0-beta.2"