@leevan/jtui 2.0.52 → 2.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,6 +9,7 @@
9
9
  <el-button size="mini" @click="clearData">清空数据</el-button>
10
10
  <el-button size="mini" @click="radioSelect">单选选中</el-button>
11
11
  <el-button size="mini" @click="checkboxSelect">多选选中</el-button>
12
+ <el-button size="mini" @click="getEditData">编辑数据</el-button>
12
13
  <el-switch
13
14
  v-model="isTool"
14
15
  active-color="#13ce66"
@@ -274,8 +275,12 @@ import { data1 ,data0} from '../data2';
274
275
  checkboxSelect(){
275
276
  const fullData = this.$refs.tablePtbg.jtTable().getTableData().fullData
276
277
  this.$refs.tablePtbg.setCheckboxRow(fullData[0], true);
278
+ },
279
+ //获取编辑数据
280
+ getEditData(){
281
+ const editData = this.$refs.tablePtbg.getEditData();
282
+ console.log(editData);
277
283
  }
278
-
279
284
  }
280
285
  }
281
286
  </script>