labull-framework 1.0.4 → 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 +85 -85
- package/dist/style.css +1 -1
- package/dist/types/magic-block-dialogs.d.ts +5 -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
|
/** 排队中的一个弹窗(宿主侧)。 */
|