|
|
|
@ -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}) {
|
|
|
|
|