Signed-off-by: 1iyc <5212514+liycone@user.noreply.gitee.com>
main
1iyc 18 hours ago
parent 7d306c55ee
commit 6bbd88b817

@ -221,7 +221,6 @@ export default {
},
},
mounted() {
console.log('Received props:', this.$props);
}
}
</script>

@ -91,15 +91,12 @@ export default {
},
mounted() {
this.validateProps();
console.log('Table component received props:', this.$props);
},
methods: {
validateProps() {
if (!Array.isArray(this.columns) || !this.columns.length) {
console.error('Columns prop must be a non-empty array.');
}
if (!Array.isArray(this.rows)) {
console.error('Rows prop must be an array.');
}
},
handleSortChange({prop, order}) {

Loading…
Cancel
Save