labull-framework 1.0.3 → 1.1.0
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/magic-block.js +2167 -2037
- package/dist/style.css +1 -1
- package/dist/types/magic-block-dialogs.d.ts +5 -1
- package/dist/types/magic-block-localfs.d.ts +4 -1
- package/package.json +1 -1
|
@@ -31,6 +31,10 @@ export interface DialogOptions {
|
|
|
31
31
|
fields: DialogField[];
|
|
32
32
|
buttons: DialogButton[];
|
|
33
33
|
html: string;
|
|
34
|
+
/**
|
|
35
|
+
* 自带 HTML 型的尺寸 = **弹窗文档的视口**(iframe 的内容盒),不是面板:面板再包一圈平台的装裱
|
|
36
|
+
* (padding / border)。1.0.x 里它是面板尺寸 —— 1.1 起改成文档视口,见 `MagicBlockDialogs.vue` 的 `frameStyle`。
|
|
37
|
+
*/
|
|
34
38
|
size: {
|
|
35
39
|
width: string;
|
|
36
40
|
height: string;
|
|
@@ -48,7 +52,7 @@ export interface DialogResult {
|
|
|
48
52
|
export interface DialogFrameHandlers {
|
|
49
53
|
/** 用户在这一篇里做了选择(`magicBlock.done(payload)`)。 */
|
|
50
54
|
onDone: (payload: unknown) => void;
|
|
51
|
-
/**
|
|
55
|
+
/** 这一篇**自己报上来的高度**:正文区(iframe)按它定高(见 `MagicBlockDialogs.vue` 的 `frameStyle`)。 */
|
|
52
56
|
onHeight: (height: number) => void;
|
|
53
57
|
}
|
|
54
58
|
/** 排队中的一个弹窗(宿主侧)。 */
|
|
@@ -248,5 +248,8 @@ export declare function assertFrameworkPackage(files: Record<string, string>, ru
|
|
|
248
248
|
* 自己能做什么(这一句里带着"多大 / 上限多少")。
|
|
249
249
|
* 🔴 形状与顺序**一个字都没变**:并发只影响快慢,`folders` / `failures` 仍与后端那套判据
|
|
250
250
|
* 逐条对齐(见 `walk` / `readFiles` 那两段)。
|
|
251
|
+
* 🔴 `onProgress(files)`:**每处理完一个文件**报一次(跳过 / 读不了的也算)。
|
|
252
|
+
* 它是给"读回"那条路的进度条用的:本地扫描这一段没有"一共多少个文件"这个分母
|
|
253
|
+
* (得先把整棵树走一遍才知道),所以调用方只拿它显示"已经读了多少个",百分比留给后端那一半。
|
|
251
254
|
*/
|
|
252
|
-
export declare function scanDirectory(dir: LocalDir, rules: ScanRules): Promise<ScanUpload>;
|
|
255
|
+
export declare function scanDirectory(dir: LocalDir, rules: ScanRules, onProgress?: (files: number) => void): Promise<ScanUpload>;
|