@farris/x-ui 0.4.0 → 0.4.2
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.
- package/confirm-dialog/index.d.ts +1 -0
- package/confirm-dialog/src/confirm-dialog.service.d.ts +32 -0
- package/farris.x-ui.esm.js +3233 -3181
- package/farris.x-ui.umd.cjs +39 -39
- package/index.css +1 -1
- package/package.json +1 -1
- package/popover/src/popover.component.d.ts +3 -0
- package/popover/src/popover.props.d.ts +7 -0
|
@@ -2,6 +2,7 @@ import { Plugin } from '../../vue';
|
|
|
2
2
|
import { default as FXConfirmDialog } from '../../src/confirm-dialog.component';
|
|
3
3
|
|
|
4
4
|
export * from '../../src/confirm-dialog.props';
|
|
5
|
+
export * from '../../src/confirm-dialog.service';
|
|
5
6
|
export { FXConfirmDialog };
|
|
6
7
|
declare const _default: typeof FXConfirmDialog & Plugin;
|
|
7
8
|
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { VNode } from '../../../vue';
|
|
2
|
+
import { ConfirmDialogIconType } from '../../../confirm-dialog.props';
|
|
3
|
+
|
|
4
|
+
/** 服务式调用确认弹窗的选项 */
|
|
5
|
+
export interface ConfirmDialogServiceOptions {
|
|
6
|
+
/** 弹窗标题 */
|
|
7
|
+
title?: string | VNode;
|
|
8
|
+
/** 弹窗描述 */
|
|
9
|
+
description?: string | VNode;
|
|
10
|
+
/** 取消按钮文案 */
|
|
11
|
+
cancelText?: string;
|
|
12
|
+
/** 确认按钮文案 */
|
|
13
|
+
confirmText?: string;
|
|
14
|
+
/** 是否允许点击遮罩关闭 */
|
|
15
|
+
closeOnMask?: boolean;
|
|
16
|
+
/** 是否显示按钮区域分割线 */
|
|
17
|
+
showDivider?: boolean;
|
|
18
|
+
/** 图标类型 */
|
|
19
|
+
iconType?: ConfirmDialogIconType;
|
|
20
|
+
}
|
|
21
|
+
/** 确认弹窗用户操作结果 */
|
|
22
|
+
export type ConfirmDialogResult = 'confirm' | 'cancel';
|
|
23
|
+
/**
|
|
24
|
+
* 以服务方式打开确认弹窗
|
|
25
|
+
* @param options 弹窗配置
|
|
26
|
+
* @returns Promise,resolve 'confirm' 或 'cancel'
|
|
27
|
+
*/
|
|
28
|
+
export declare function openFXConfirmDialog(options: ConfirmDialogServiceOptions): Promise<ConfirmDialogResult>;
|
|
29
|
+
/**
|
|
30
|
+
* 强制关闭当前通过服务方式打开的确认弹窗
|
|
31
|
+
*/
|
|
32
|
+
export declare function closeFXConfirmDialog(): void;
|