mirror of https://github.com/halo-dev/halo-admin
18 lines
367 B
TypeScript
18 lines
367 B
TypeScript
import type { Attachment } from "@halo-dev/api-client";
|
|
import type { Component } from "vue";
|
|
|
|
export type AttachmentLike =
|
|
| Attachment
|
|
| string
|
|
| {
|
|
url: string;
|
|
type: string;
|
|
};
|
|
|
|
export interface AttachmentSelectProvider {
|
|
id: string;
|
|
label: string;
|
|
component: Component | string;
|
|
callback?: (attachments: AttachmentLike[]) => void;
|
|
}
|