1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- export default function() {
- return {
- props: {
- tableLoading: {
- type: Boolean,
- default: false,
- },
- beforeOpen: Function,
- beforeClose: Function,
- uploadBefore: Function,
- uploadAfter: Function,
- rowClassName: Function,
- spanMethod: Function,
- summaryMethod: Function,
- data: {
- type: Array,
- default: () => []
- },
- },
- methods: {
- refreshChange(params) {
- this.$emit('refresh-change', params);
- },
- searchReset() {
- this.$emit('search-reset');
- },
- sizeChange(val) {
- this.$emit('size-change', val);
- },
- dateChange(val) {
- this.$emit('date-change', val);
- },
- currentChange(val) {
- this.$emit('current-change', val);
- },
- currentRowChange(currentRow, oldCurrentRow) {
- this.$emit('current-row-change', currentRow, oldCurrentRow);
- },
- selectionChange(val) {
- this.$emit('selection-change', val);
- },
- sortChange(val) {
- this.$emit('sort-change', val);
- },
- searchChange(val) {
- this.$emit('search-change', val);
- },
- rowDblclick(row, event) {
- this.$emit('row-dblclick', row, event);
- },
- rowClick(row, event, column) {
- this.$emit('row-click', row, event, column);
- },
- rowDel(row, index) {
- this.$emit('row-del', row, index);
- },
- rowSave(row, done, loading) {
- this.$emit('row-save', row, done, loading);
- },
- rowUpdate(row, index, done, loading) {
- this.$emit('row-update', row, index, done, loading);
- },
- rowAdd() {
- this.$refs.crud.rowAdd();
- },
- rowEdit(row, index) {
- this.$refs.crud.rowEdit(row, index);
- }
- }
- }
- }
|