|
|
@ -49,7 +49,14 @@ const props = defineProps({ |
|
|
|
const tableComputed = computed(() => { |
|
|
|
const table = <any>[]; |
|
|
|
let tmp = <any>[]; |
|
|
|
props.info.forEach((item, index) => { |
|
|
|
props.info.forEach((item: any, index) => { |
|
|
|
if (item['format']) { |
|
|
|
try { |
|
|
|
item.value = item.format(item.value); |
|
|
|
} catch (error) { |
|
|
|
console.error('w-info-panel format error!'); |
|
|
|
} |
|
|
|
} |
|
|
|
if (tmp.length < props.columnNum) { |
|
|
|
tmp.push(item); |
|
|
|
} else { |
|
|
|