@daxiangme/form-vue 0.1.1 → 0.1.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/README.md +8 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +5975 -5830
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,6 +8,14 @@
|
|
|
8
8
|
|
|
9
9
|
## 安装
|
|
10
10
|
|
|
11
|
+
已有 Vue 3 和 Element Plus 的应用只需要安装主包:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pnpm add @daxiangme/form-vue
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
主包要求 Vue `^3.5.0` 和 Element Plus `^2.11.0`。新建工程或尚未安装这两个 Peer Dependencies 时,可以一次性安装:
|
|
18
|
+
|
|
11
19
|
```bash
|
|
12
20
|
pnpm add @daxiangme/form-vue vue element-plus
|
|
13
21
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -2,15 +2,19 @@ import { ComponentOptionsMixin } from 'vue';
|
|
|
2
2
|
import { ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { ComputedRef } from 'vue';
|
|
4
4
|
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
5
|
+
import { createDefaultDesignerFieldBehavior } from '@daxiangme/form-core';
|
|
5
6
|
import { createDemoDesignerDocument } from '@daxiangme/form-core';
|
|
6
7
|
import { createEmptyDesignerDocument } from '@daxiangme/form-core';
|
|
7
8
|
import { decodeDesignerDocument } from '@daxiangme/form-core';
|
|
8
9
|
import { DefineComponent } from 'vue';
|
|
10
|
+
import { DesignerAppearance } from '@daxiangme/form-core';
|
|
9
11
|
import { DesignerDevice } from '@daxiangme/form-core';
|
|
10
12
|
import { DesignerDiagnostic } from '@daxiangme/form-core';
|
|
11
13
|
import { DesignerDocument } from '@daxiangme/form-core';
|
|
12
14
|
import { DesignerDocumentDecodeResult } from '@daxiangme/form-core';
|
|
13
15
|
import { DesignerDropTarget } from '@daxiangme/form-core';
|
|
16
|
+
import { DesignerField } from '@daxiangme/form-core';
|
|
17
|
+
import { DesignerFieldId } from '@daxiangme/form-core';
|
|
14
18
|
import { DesignerInitialDataModel } from '@daxiangme/form-core';
|
|
15
19
|
import { DesignerLayoutNode } from '@daxiangme/form-core';
|
|
16
20
|
import { DesignerOverlayModule } from '@daxiangme/form-core';
|
|
@@ -20,6 +24,10 @@ import { DesignerRuntimeValueStore } from '@daxiangme/form-core';
|
|
|
20
24
|
import { DesignerSubmissionProjection } from '@daxiangme/form-core';
|
|
21
25
|
import { DesignerValidationResult } from '@daxiangme/form-core';
|
|
22
26
|
import { diagnoseDesignerDocument } from '@daxiangme/form-core';
|
|
27
|
+
import { FormDesignerCatalogs } from '@daxiangme/form-core';
|
|
28
|
+
import { FormDesignerHostCapabilities } from '@daxiangme/form-core';
|
|
29
|
+
import { FormFieldAccessLevel } from '@daxiangme/form-core';
|
|
30
|
+
import { FormFieldAccessMap } from '@daxiangme/form-core';
|
|
23
31
|
import { FormRuntimeAdapterContext } from '@daxiangme/form-core';
|
|
24
32
|
import { FormRuntimeAdapters } from '@daxiangme/form-core';
|
|
25
33
|
import { GlobalComponents } from 'vue';
|
|
@@ -166,6 +174,7 @@ flushContentVertical: boolean;
|
|
|
166
174
|
declare type __VLS_Props = {
|
|
167
175
|
modelValue: DesignerDocument;
|
|
168
176
|
initialDataModel?: DesignerInitialDataModel;
|
|
177
|
+
catalogs?: FormDesignerCatalogs;
|
|
169
178
|
adapters?: DesignerRuntimeAdapters;
|
|
170
179
|
adapterContext?: FormRuntimeAdapterContext;
|
|
171
180
|
/** @deprecated 请使用 adapters。 */
|
|
@@ -176,6 +185,7 @@ declare type __VLS_Props_2 = {
|
|
|
176
185
|
document: DesignerDocument;
|
|
177
186
|
modelValue?: DesignerRuntimeValueStore;
|
|
178
187
|
mode?: Exclude<DesignerRuntimeMode, 'DESIGN'>;
|
|
188
|
+
fieldAccess?: FormFieldAccessMap;
|
|
179
189
|
device?: DesignerDevice;
|
|
180
190
|
adapters?: DesignerRuntimeAdapters;
|
|
181
191
|
adapterContext?: FormRuntimeAdapterContext;
|
|
@@ -332,6 +342,8 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
|
332
342
|
};
|
|
333
343
|
};
|
|
334
344
|
|
|
345
|
+
export { createDefaultDesignerFieldBehavior }
|
|
346
|
+
|
|
335
347
|
export { createDemoDesignerDocument }
|
|
336
348
|
|
|
337
349
|
export { createEmptyDesignerDocument }
|
|
@@ -346,6 +358,8 @@ export default DaxiangFormVue;
|
|
|
346
358
|
|
|
347
359
|
export { decodeDesignerDocument }
|
|
348
360
|
|
|
361
|
+
export { DesignerAppearance }
|
|
362
|
+
|
|
349
363
|
/** 设计画布的受控视口档位。 */
|
|
350
364
|
export declare type DesignerCanvasViewportPreset = 'FIT' | 'PC_1920' | 'PC_1440' | 'PC_1280' | 'PC_1024' | 'MOBILE_440' | 'MOBILE_375';
|
|
351
365
|
|
|
@@ -355,6 +369,14 @@ export { DesignerDocument }
|
|
|
355
369
|
|
|
356
370
|
export { DesignerDocumentDecodeResult }
|
|
357
371
|
|
|
372
|
+
export { DesignerField }
|
|
373
|
+
|
|
374
|
+
export { DesignerFieldId }
|
|
375
|
+
|
|
376
|
+
export { DesignerInitialDataModel }
|
|
377
|
+
|
|
378
|
+
export { DesignerLayoutNode }
|
|
379
|
+
|
|
358
380
|
export { DesignerRuntimeAdapters }
|
|
359
381
|
|
|
360
382
|
export { DesignerRuntimeMode }
|
|
@@ -369,6 +391,14 @@ export { diagnoseDesignerDocument }
|
|
|
369
391
|
|
|
370
392
|
export declare const FormDesigner: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
371
393
|
|
|
394
|
+
export { FormDesignerCatalogs }
|
|
395
|
+
|
|
396
|
+
export { FormDesignerHostCapabilities }
|
|
397
|
+
|
|
398
|
+
export { FormFieldAccessLevel }
|
|
399
|
+
|
|
400
|
+
export { FormFieldAccessMap }
|
|
401
|
+
|
|
372
402
|
export declare const FormIcon: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
373
403
|
|
|
374
404
|
export declare const FormModalShell: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|