@daxiangme/form-vue 0.1.4 → 0.1.5

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/README.md CHANGED
@@ -133,6 +133,8 @@ function handleSubmit(projection: DesignerSubmissionProjection) {
133
133
 
134
134
  弹窗和抽屉在运行态使用真实 Element Plus 外壳。组件默认消费 Element Plus CSS Variables,深色模式直接跟随宿主的 `html.dark`。
135
135
 
136
+ 新建文档默认标签位于顶部且左对齐。圆角取值是 `THEME` 或 0~32 的 4 的倍数像素:`THEME` 跟随宿主 `--el-border-radius-base`;旧档位 `NONE` / `SMALL` / `BASE` / `LARGE` 解码为 0 / 4 / 8 / 12。自定义像素会写入 `--daxiang-form-container-radius` 等变量,而不是空的档位 class。
137
+
136
138
  ![表单运行预览](https://raw.githubusercontent.com/daxiangme/form-builder/v0.1.1/docs/assets/screenshots/runtime-preview.png)
137
139
 
138
140
  ![Element Plus 深色主题](https://raw.githubusercontent.com/daxiangme/form-builder/v0.1.1/docs/assets/screenshots/dark-theme.png)
package/dist/index.d.ts CHANGED
@@ -18,6 +18,7 @@ import { DesignerFieldId } from '@daxiangme/form-core';
18
18
  import { DesignerInitialDataModel } from '@daxiangme/form-core';
19
19
  import { DesignerLayoutNode } from '@daxiangme/form-core';
20
20
  import { DesignerOverlayModule } from '@daxiangme/form-core';
21
+ import { DesignerRadiusValue } from '@daxiangme/form-core';
21
22
  import { DesignerRuntimeAdapters } from '@daxiangme/form-core';
22
23
  import { DesignerRuntimeMode } from '@daxiangme/form-core';
23
24
  import { DesignerRuntimeValueStore } from '@daxiangme/form-core';
@@ -151,6 +152,7 @@ onClosed?: (() => any) | undefined;
151
152
  }>, {
152
153
  title: string;
153
154
  dialogClass: string;
155
+ radius: DesignerRadiusValue;
154
156
  width: string | number;
155
157
  maxHeight: string | number;
156
158
  loading: boolean;
@@ -205,6 +207,8 @@ declare type __VLS_Props_4 = {
205
207
  modelValue: boolean;
206
208
  title?: string;
207
209
  dialogClass?: string;
210
+ /** 弹窗外壳圆角;`THEME` 跟随宿主 `--el-border-radius-base`。 */
211
+ radius?: DesignerRadiusValue;
208
212
  width?: string | number;
209
213
  maxHeight?: string | number;
210
214
  loading?: boolean;
@@ -405,16 +409,16 @@ export declare const FormModalShell: __VLS_WithTemplateSlots_2<typeof __VLS_comp
405
409
 
406
410
  export declare const FormRenderer: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
407
411
  "update:modelValue": (value: DesignerRuntimeValueStore) => any;
408
- submit: (projection: DesignerSubmissionProjection) => any;
409
412
  reset: (value: DesignerRuntimeValueStore) => any;
413
+ submit: (projection: DesignerSubmissionProjection) => any;
410
414
  "runtime-warning": (message: string) => any;
411
415
  action: (action: "SUBMIT" | "RESET" | "PRINT") => any;
412
416
  "overlay-closed": () => any;
413
417
  "overlay-open-failed": (message: string) => any;
414
418
  }, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
415
419
  "onUpdate:modelValue"?: ((value: DesignerRuntimeValueStore) => any) | undefined;
416
- onSubmit?: ((projection: DesignerSubmissionProjection) => any) | undefined;
417
420
  onReset?: ((value: DesignerRuntimeValueStore) => any) | undefined;
421
+ onSubmit?: ((projection: DesignerSubmissionProjection) => any) | undefined;
418
422
  "onRuntime-warning"?: ((message: string) => any) | undefined;
419
423
  onAction?: ((action: "SUBMIT" | "RESET" | "PRINT") => any) | undefined;
420
424
  "onOverlay-closed"?: (() => any) | undefined;