mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-05-05 09:46:56 +08:00
fix(form): el-upload类型读取失败导致Table.vue.d.ts丢失
This commit is contained in:
parent
32e86d8167
commit
fab8717fcf
@ -154,7 +154,7 @@
|
|||||||
/* eslint-disable no-param-reassign */
|
/* eslint-disable no-param-reassign */
|
||||||
import { computed, defineComponent, inject, onMounted, PropType, ref, toRefs } from 'vue';
|
import { computed, defineComponent, inject, onMounted, PropType, ref, toRefs } from 'vue';
|
||||||
import { ArrowDown, ArrowUp, Delete, FullScreen, Grid } from '@element-plus/icons';
|
import { ArrowDown, ArrowUp, Delete, FullScreen, Grid } from '@element-plus/icons';
|
||||||
import { ElMessage, ElTable, ElUpload } from 'element-plus';
|
import { ElMessage, ElTable, UploadFile } from 'element-plus';
|
||||||
import { cloneDeep } from 'lodash-es';
|
import { cloneDeep } from 'lodash-es';
|
||||||
import Sortable, { SortableEvent } from 'sortablejs';
|
import Sortable, { SortableEvent } from 'sortablejs';
|
||||||
|
|
||||||
@ -163,23 +163,6 @@ import { asyncLoadJs, sleep } from '@tmagic/utils';
|
|||||||
import { ColumnConfig, FormState, SortProp, TableConfig } from '../schema';
|
import { ColumnConfig, FormState, SortProp, TableConfig } from '../schema';
|
||||||
import { display, initValue } from '../utils/form';
|
import { display, initValue } from '../utils/form';
|
||||||
|
|
||||||
export type UploadStatus = 'ready' | 'uploading' | 'success' | 'fail';
|
|
||||||
|
|
||||||
export interface ElFile extends File {
|
|
||||||
uid: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type UploadFile = {
|
|
||||||
name: string;
|
|
||||||
percentage?: number;
|
|
||||||
status: UploadStatus;
|
|
||||||
size: number;
|
|
||||||
response?: unknown;
|
|
||||||
uid: number;
|
|
||||||
url?: string;
|
|
||||||
raw: ElFile;
|
|
||||||
};
|
|
||||||
|
|
||||||
let loadedAMapJS = false; // 是否加载完js
|
let loadedAMapJS = false; // 是否加载完js
|
||||||
let firstLoadingAMapJS = true; // 否是第一次请求
|
let firstLoadingAMapJS = true; // 否是第一次请求
|
||||||
|
|
||||||
@ -241,7 +224,7 @@ export default defineComponent({
|
|||||||
const mForm = inject<FormState | undefined>('mForm');
|
const mForm = inject<FormState | undefined>('mForm');
|
||||||
|
|
||||||
const elTable = ref<InstanceType<typeof ElTable>>();
|
const elTable = ref<InstanceType<typeof ElTable>>();
|
||||||
const excelBtn = ref<InstanceType<typeof ElUpload>>();
|
const excelBtn = ref<any>();
|
||||||
const mTable = ref<HTMLDivElement>();
|
const mTable = ref<HTMLDivElement>();
|
||||||
|
|
||||||
const pagesize = ref(10);
|
const pagesize = ref(10);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user