| | |
| | | fontSize: 'default' |
| | | }; |
| | | }, |
| | | emits: ['search', 'cellClick', 'tablePaste'], |
| | | emits: ['search', 'cellClick', 'tablePaste', 'sortChange'], |
| | | watch: { |
| | | currentPage(nValue, oValue) { |
| | | if (nValue != oValue) { |
| | |
| | | handlePaste(event) { |
| | | this.$emit('tablePaste', event); |
| | | }, |
| | | doLayout(){ |
| | | doLayout() { |
| | | this.$refs.tableRef.doLayout(); |
| | | }, |
| | | handleSortChange({column, prop, order }){ |
| | | |
| | | handleSortChange({ column, prop, order }) { |
| | | this.$emit('sortChange', { column, prop, order }); |
| | | }, |
| | | clearSort(){ |
| | | this.$refs.tableRef.clearSort(); |
| | | } |
| | | }, |
| | | mounted() { |