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

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

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

Loading…
Cancel
Save