ng-yunzai-mobile
Version:
1. 修改wechat.micro.ts
63 lines (62 loc) • 1.97 kB
TypeScript
import { EventEmitter, OnInit } from '@angular/core';
import { ToastService } from "ng-zorro-antd-mobile";
import { BaseClient } from "../../client/base.client";
import { UploadService } from "./upload.service";
import { MatDialog } from "@angular/material/dialog";
import { FileCarouselService } from "../yz-file-carousel/file-carousel.service";
import { FileShowService } from "../yz-file-show/file-show.service";
export declare class YzUploadFileComponent implements OnInit {
private _toast;
private client;
private uploadService;
private fileCarouselService;
private fileShowService;
dialog: MatDialog;
type: number;
disabled: boolean;
fileList: Array<fileModel>;
confirmFile: EventEmitter<Array<fileModel>>;
pageLoading: boolean;
showType: ShowType;
rightBtnArr: {
text: string;
onPress: () => void;
className: string;
style: {
backgroundColor: string;
color: string;
};
}[];
deleteItem: {
id: any;
index: any;
};
constructor(_toast: ToastService, client: BaseClient, uploadService: UploadService, fileCarouselService: FileCarouselService, fileShowService: FileShowService, dialog: MatDialog);
ngOnInit(): void;
upload(): void;
uploadFileStart(file: any): void;
isAllImg(): void;
deleteFile(): void;
deleteFileBySquare(id: any, index: any): void;
deleteFileBySwipe(id: any, index: any): void;
viewImgFile(item: any, index: number): void;
viewOtherFile(item: any): void;
}
export declare class fileModel {
id: string;
filename: string;
length: number;
chunkSize: number;
uploadDate: Date;
md5: string;
type: string;
duration: any;
storeType: string;
storeInfo: string;
url: string;
bgUrl: string;
}
export declare enum ShowType {
LIST = "list",
SQUARE = "square"
}