Skip to content

Commit

Permalink
refactor: 新增request columns属性ts类型说明
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Jan 22, 2021
1 parent af9574e commit 6e27b73
Show file tree
Hide file tree
Showing 4 changed files with 159 additions and 167 deletions.
9 changes: 5 additions & 4 deletions src/component/crud-table/src/CrudTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,12 @@ import {
import { confirm } from '@/utils/confirm';
import SvgIcon from '@/icons/SvgIcon.vue';
import _cloneDeep from 'lodash/cloneDeep';
import { DML } from '@/types/common';
import {
columns, DataSource, DML, Params,
} from '@/types/common';
import GenerateFormDialog from './GenerateFormDialog.vue';
import ProTable from '../../pro-table';


const STATUS = {
CREATE: 0,
UPDATE: 1,
Expand Down Expand Up @@ -150,7 +151,7 @@ export default class CrudTable extends Vue {
selectedRows: any = [];

// 表格结构json,将来可能有多张表
tableConfig = { columns: [] };
tableConfig:columns = { columns: [], name: '', position: '' };

// 表格数据
tableData = [];
Expand Down Expand Up @@ -541,7 +542,7 @@ export default class CrudTable extends Vue {
}


async request(axiosParams) {
async request(axiosParams: Params): Promise<DataSource | undefined> {
// 已加载完成, tree lazy table 局部刷新.
// 懒加载待重构
if (this.lazy) {
Expand Down
Loading

0 comments on commit 6e27b73

Please sign in to comment.