yc-vep-ui 0.3.43 → 0.3.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Message 消息提示组件
3
+ * 原生实现,兼容 Chrome 和 Firefox 浏览器
4
+ */
5
+ export type MessageType = 'success' | 'warning' | 'info' | 'error';
6
+ export interface IMessageOptions {
7
+ message: string;
8
+ type?: MessageType;
9
+ /** 显示时长(毫秒),0 表示永不自动关闭,默认 3000 */
10
+ duration?: number;
11
+ showClose?: boolean;
12
+ onClose?: () => void;
13
+ }
14
+ interface MessageFn {
15
+ (options: IMessageOptions | string): {
16
+ close: () => Promise<void>;
17
+ };
18
+ success: (message: string, options?: Omit<IMessageOptions, 'message' | 'type'>) => {
19
+ close: () => Promise<void>;
20
+ };
21
+ warning: (message: string, options?: Omit<IMessageOptions, 'message' | 'type'>) => {
22
+ close: () => Promise<void>;
23
+ };
24
+ error: (message: string, options?: Omit<IMessageOptions, 'message' | 'type'>) => {
25
+ close: () => Promise<void>;
26
+ };
27
+ info: (message: string, options?: Omit<IMessageOptions, 'message' | 'type'>) => {
28
+ close: () => Promise<void>;
29
+ };
30
+ closeAll: () => Promise<void>;
31
+ }
32
+ declare const Message: MessageFn;
33
+ export default Message;
34
+ export { Message };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Message 组件类型定义
3
+ */
4
+ export type MessageType = 'success' | 'warning' | 'info' | 'error';
5
+ export interface IMessageOptions {
6
+ /** 消息内容 */
7
+ message: string;
8
+ /** 消息类型 */
9
+ type?: MessageType;
10
+ /** 显示时长(ms),设为 0 则不自动关闭 */
11
+ duration?: number;
12
+ /** 是否显示关闭按钮 */
13
+ showClose?: boolean;
14
+ /** 关闭时的回调函数 */
15
+ onClose?: () => void;
16
+ }
17
+ export interface IMessage {
18
+ (options: IMessageOptions | string): IMessageInstance;
19
+ }
20
+ export interface IMessageInstance {
21
+ /** 关闭当前消息 */
22
+ close: () => Promise<void>;
23
+ }
@@ -7,17 +7,17 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
7
7
  change: (...args: any[]) => void;
8
8
  error: (...args: any[]) => void;
9
9
  "update:modelValue": (...args: any[]) => void;
10
+ remove: (...args: any[]) => void;
10
11
  "update:fileList": (...args: any[]) => void;
11
12
  exceed: (...args: any[]) => void;
12
- remove: (...args: any[]) => void;
13
13
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
14
  onSuccess?: ((...args: any[]) => any) | undefined;
15
15
  onChange?: ((...args: any[]) => any) | undefined;
16
16
  onError?: ((...args: any[]) => any) | undefined;
17
17
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
18
+ onRemove?: ((...args: any[]) => any) | undefined;
18
19
  "onUpdate:fileList"?: ((...args: any[]) => any) | undefined;
19
20
  onExceed?: ((...args: any[]) => any) | undefined;
20
- onRemove?: ((...args: any[]) => any) | undefined;
21
21
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
22
22
  uploadInstance: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<IUploadProps> & Readonly<{
23
23
  "onUpdate:fileList"?: ((...args: any[]) => any) | undefined;
@@ -10,3 +10,4 @@ export * as UiDialog from './Dialog/index.vue';
10
10
  export * as UiStaffSelect from './StaffSelect/index.vue';
11
11
  export * as UiUpload from './Upload/index.vue';
12
12
  export * as YcApproval from './YcApproval/index.vue';
13
+ export * as YcMessage from './Message/index.ts';