test table

This commit is contained in:
Theluyuan 2023-06-28 15:30:16 +08:00
parent 2612c8dfbb
commit e02298f097
4 changed files with 22 additions and 13 deletions

View File

@ -1483,8 +1483,11 @@ const _sfc_main = defineComponent({
function sx(e) {
sxlist.value[e.key] = e.list;
}
watch(sxlist, () => {
console.log("sxlist\u66F4\u65B0");
});
watch([sxlist, () => props.dataSource], () => {
console.log(JSON.stringify(sxlist.value), JSON.stringify(props.dataSource.value));
console.log(JSON.stringify(sxlist.value), JSON.stringify(props.dataSource));
let list = [...props.dataSource];
let endlist = [];
for (let i in sxlist.value) {

View File

@ -19930,8 +19930,11 @@ const _sfc_main$D = defineComponent({
function sx(e) {
sxlist.value[e.key] = e.list;
}
watch(sxlist, () => {
console.log("sxlist\u66F4\u65B0");
});
watch([sxlist, () => props.dataSource], () => {
console.log(JSON.stringify(sxlist.value), JSON.stringify(props.dataSource.value));
console.log(JSON.stringify(sxlist.value), JSON.stringify(props.dataSource));
let list = [...props.dataSource];
let endlist = [];
for (let i in sxlist.value) {

View File

@ -788,11 +788,14 @@ function desc(event: any) {
function sx(e: any) {
sxlist.value[e.key] = e.list;
}
watch(sxlist,()=>{
console.log("sxlist更新")
})
watch(
[sxlist,()=>props.dataSource],
() => {
// tableDataSource
console.log(JSON.stringify(sxlist.value),JSON.stringify(props.dataSource.value))
console.log(JSON.stringify(sxlist.value),JSON.stringify(props.dataSource))
let list: any = [...props.dataSource];
let endlist: any = [];
for (let i in sxlist.value) {

File diff suppressed because one or more lines are too long