@leevan/jtui 2.0.52 → 2.0.54-beta.1
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.
- package/examples/tableTest/table-ptbg.vue +6 -1
- package/lib/jtui.common.js +483 -129
- package/lib/jtui.css +1 -1
- package/lib/jtui.umd.js +483 -129
- package/lib/jtui.umd.min.js +3 -3
- package/package.json +1 -1
- package/packages/jt-table/components/edit-components/EditInput.vue +211 -0
- package/packages/jt-table/components/edit-components/EditSelect.vue +178 -0
- package/packages/jt-table/components/tableColumn.vue +104 -7
- package/packages/jt-table/data2.js +10918 -640
- package/packages/jt-table/index.vue +17 -19
|
@@ -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>
|