clickgo 5.9.1 → 5.10.1
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/dist/app/demo.cga +0 -0
- package/dist/control/common.cgc +0 -0
- package/dist/control/jodit.cgc +0 -0
- package/dist/control/waterfall.cgc +0 -0
- package/dist/index.js +1 -1
- package/dist/lib/form.d.ts +19 -1
- package/doc/clickgo-rag.md +254 -75
- package/package.json +1 -1
package/dist/lib/form.d.ts
CHANGED
|
@@ -528,10 +528,17 @@ export declare function create<T extends AbstractForm>(current: lCore.TCurrent,
|
|
|
528
528
|
}): Promise<T>;
|
|
529
529
|
/**
|
|
530
530
|
* --- 显示一个 dialog ---
|
|
531
|
-
* @param current
|
|
531
|
+
* @param current 当前任务
|
|
532
532
|
* @param opt 选项或者一段文字
|
|
533
533
|
*/
|
|
534
534
|
export declare function dialog(current: lCore.TCurrent, opt: string | IFormDialogOptions): Promise<string>;
|
|
535
|
+
/**
|
|
536
|
+
* --- 显示一个验证码窗口 ---
|
|
537
|
+
* @param current 当前任务
|
|
538
|
+
* @param opt 选项
|
|
539
|
+
* @returns 验证是否通过
|
|
540
|
+
*/
|
|
541
|
+
export declare function captcha(current: lCore.TCurrent, opt: IFormCaptchaOptions): Promise<false | lControl.ICaptchaResultEvent>;
|
|
535
542
|
/**
|
|
536
543
|
* --- 显示一个 confirm ---
|
|
537
544
|
* @param current 当前任务 id
|
|
@@ -661,6 +668,10 @@ export interface IFormDialogOptions {
|
|
|
661
668
|
'data': Record<string, any>;
|
|
662
669
|
'methods': Record<string, (...param: any) => any>;
|
|
663
670
|
}, e: IFormDialogSelectEvent, button: string) => void;
|
|
671
|
+
/**
|
|
672
|
+
* --- 窗体挂载完成事件 ---
|
|
673
|
+
*/
|
|
674
|
+
'onMounted'?: () => void | Promise<void>;
|
|
664
675
|
}
|
|
665
676
|
export interface IFormDialogSelectEvent extends lControl.ICustomEvent {
|
|
666
677
|
'detail': {
|
|
@@ -673,6 +684,13 @@ export interface IFormConfirmOptions {
|
|
|
673
684
|
'content': string;
|
|
674
685
|
'cancel'?: boolean;
|
|
675
686
|
}
|
|
687
|
+
/** --- 显示验证码选项 --- */
|
|
688
|
+
export interface IFormCaptchaOptions {
|
|
689
|
+
/** --- 验证码服务商 --- */
|
|
690
|
+
'factory': 'tc' | 'cf';
|
|
691
|
+
/** --- 验证码 key --- */
|
|
692
|
+
'akey': string;
|
|
693
|
+
}
|
|
676
694
|
/** --- Prompt 选项 --- */
|
|
677
695
|
export interface IFormPromptOptions {
|
|
678
696
|
/** --- 标题 --- */
|