cnhis-design-vue 3.1.9-beta.3 → 3.1.9-beta.6
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 +22 -22
- package/es/packages/big-table/index.d.ts +2 -0
- package/es/packages/big-table/src/BigTable.vue.d.ts +6 -17
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.mjs +12 -64
- package/es/packages/big-table/style/index.less +557 -557
- package/es/packages/bpmn-workflow/style/index.less +29 -29
- package/es/packages/button-print/index.d.ts +21 -4
- package/es/packages/button-print/src/ButtonPrint.vue.d.ts +21 -4
- package/es/packages/button-print/src/components/IdentityVerification.vue.d.ts +8 -2
- package/es/packages/button-print/src/utils/print.es.min.mjs +179 -179
- package/es/packages/button-print/style/index.less +30 -30
- package/es/packages/chunk-upload/index.d.ts +8 -2
- package/es/packages/chunk-upload/src/chunk-upload-new.vue.d.ts +11 -6
- package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +9 -3
- package/es/packages/chunk-upload/style/index.less +394 -394
- package/es/packages/drag-layout/index.d.ts +20 -4
- package/es/packages/drag-layout/src/DragFormRightItem.vue.d.ts +12 -2
- package/es/packages/drag-layout/src/DragLayout.vue.d.ts +22 -7
- package/es/packages/drag-layout/style/index.less +208 -208
- package/es/packages/field-set/index.d.ts +22 -6
- package/es/packages/field-set/index.mjs +2 -2
- package/es/packages/field-set/src/FieldSet.vue.d.ts +5171 -2473
- package/es/packages/field-set/src/FieldSet.vue_vue_type_script_setup_true_lang.mjs +11 -319
- package/es/packages/field-set/src/NewFieldSet.vue.d.ts +11 -3
- package/es/packages/field-set/src/OldFieldSet.mjs +4 -0
- package/es/packages/field-set/src/OldFieldSet.vue.d.ts +2610 -0
- package/es/packages/field-set/src/OldFieldSet.vue_vue_type_script_setup_true_lang.mjs +330 -0
- package/es/packages/field-set/style/index.less +157 -157
- package/es/packages/form-render/index.d.ts +264 -0
- package/es/packages/form-render/src/FormRender.vue.d.ts +264 -0
- package/es/packages/form-render/src/FormRender.vue_vue_type_script_setup_true_lang.mjs +21 -17
- package/es/packages/form-render/src/components/cascader.mjs +1 -1
- package/es/packages/form-render/src/components/select.mjs +40 -27
- package/es/packages/form-table/index.d.ts +28 -4
- package/es/packages/form-table/src/FormTable.vue.d.ts +28 -4
- package/es/packages/form-table/src/components/index.d.ts +28 -4
- package/es/packages/form-table/src/components/table-age.vue.d.ts +2 -0
- package/es/packages/form-table/src/components/table-digital.vue.d.ts +2 -0
- package/es/packages/form-table/src/components/table-input-password.vue.d.ts +2 -0
- package/es/packages/form-table/src/components/table-input.vue.d.ts +2 -0
- package/es/packages/form-table/src/components/table-search-more.vue.d.ts +8 -2
- package/es/packages/form-table/src/components/table-search.vue.d.ts +8 -2
- package/es/packages/form-table/src/components/table-textarea.vue.d.ts +2 -0
- package/es/packages/form-table/src/components/text-over-tooltip.vue.d.ts +2 -0
- package/es/packages/form-table/src/hooks/useDateType.mjs +1 -1
- package/es/packages/form-table/src/hooks/useSearch.mjs +1 -1
- package/es/packages/form-table/style/index.less +301 -301
- package/es/packages/grid/style/index.less +12 -12
- package/es/packages/index.css +27 -23
- package/es/packages/index.less +2451 -2448
- package/es/packages/info-header/index.d.ts +20 -4
- package/es/packages/info-header/src/HiddenContent.vue.d.ts +29 -13
- package/es/packages/info-header/src/HiddenContent.vue_vue_type_script_setup_true_lang.mjs +6 -4
- package/es/packages/info-header/src/InfoHeader.vue.d.ts +20 -4
- package/es/packages/info-header/src/InfoHeader.vue_vue_type_script_setup_true_lang.mjs +10 -5
- package/es/packages/info-header/style/index.css +0 -3
- package/es/packages/info-header/style/index.less +36 -40
- package/es/packages/map/index.d.ts +8 -2
- package/es/packages/map/src/Map.vue.d.ts +8 -2
- package/es/packages/map/style/index.less +59 -59
- package/es/packages/scale-view/index.d.ts +17 -4
- package/es/packages/scale-view/src/ScaleView.vue.d.ts +17 -4
- package/es/packages/scale-view/src/ScaleView.vue_vue_type_script_setup_true_lang.mjs +9 -2
- package/es/packages/scale-view/src/components/EvaluatePage.vue.d.ts +8 -2
- package/es/packages/scale-view/src/components/formitem/r-address.mjs +1 -1
- package/es/packages/scale-view/src/components/formitem/r-checkbox.mjs +10 -4
- package/es/packages/scale-view/src/components/formitem/r-collection.mjs +0 -1
- package/es/packages/scale-view/src/components/formitem/r-datetime.mjs +19 -10
- package/es/packages/scale-view/src/components/formitem/r-input.mjs +1 -1
- package/es/packages/scale-view/src/components/formitem/r-map.mjs +2 -1
- package/es/packages/scale-view/src/components/formitem/r-radio.mjs +10 -4
- package/es/packages/scale-view/src/components/formitem/r-select.mjs +6 -1
- package/es/packages/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +2 -0
- package/es/packages/scale-view/src/hooks/scaleview-computed.mjs +7 -7
- package/es/packages/scale-view/src/hooks/scaleview-init.mjs +4 -3
- package/es/packages/scale-view/src/hooks/scaleview-validate.mjs +85 -64
- package/es/packages/scale-view/src/hooks/use-component.d.ts +18 -4
- package/es/packages/scale-view/style/index.css +27 -20
- package/es/packages/scale-view/style/index.less +308 -301
- package/es/packages/select-label/index.d.ts +20 -4
- package/es/packages/select-label/src/LabelFormContent.vue.d.ts +10 -2
- package/es/packages/select-label/src/LabelFormContent.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/packages/select-label/src/SelectLabel.vue.d.ts +15 -11
- package/es/packages/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/packages/select-label/src/components/label-classify.vue.d.ts +10 -2
- package/es/packages/select-label/style/index.less +151 -151
- package/es/packages/select-person/index.d.ts +8 -2
- package/es/packages/select-person/src/SelectPerson.vue.d.ts +18 -14
- package/es/packages/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.mjs +16 -2
- package/es/packages/select-person/style/index.less +229 -229
- package/es/packages/time-line/index.d.ts +8 -2
- package/es/packages/time-line/src/TimeLine.vue.d.ts +8 -2
- package/es/packages/time-line/style/index.less +34 -34
- package/es/src/components/SelectPage/SelectPage.vue.d.ts +8 -2
- package/es/src/components/TextOverTooltip/TextOverTooltip.vue.d.ts +2 -0
- package/es/src/utils/utilExpand.mjs +46 -46
- package/global.d.ts +8 -8
- package/package.json +5 -3
- package/yarn-error.log +103 -8659
- package/es/packages/field-set/src/Index.mjs +0 -4
- package/es/packages/field-set/src/Index.vue_vue_type_script_setup_true_lang.mjs +0 -25
- package/es/packages/field-set/src/index.vue_vue_type_script_setup_true_lang2.mjs +0 -25
- package/es/packages/field-set/src/index2.mjs +0 -4
|
@@ -313,6 +313,270 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
313
313
|
form: any;
|
|
314
314
|
}>;
|
|
315
315
|
FormConsumer: import("vue").DefineComponent<{}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
316
|
+
NForm: import("vue").DefineComponent<{
|
|
317
|
+
readonly inline: BooleanConstructor;
|
|
318
|
+
readonly labelWidth: import("vue").PropType<string | number>;
|
|
319
|
+
readonly labelAlign: import("vue").PropType<import("naive-ui/es/form/src/interface").LabelAlign>;
|
|
320
|
+
readonly labelPlacement: {
|
|
321
|
+
readonly type: import("vue").PropType<import("naive-ui/es/form/src/interface").LabelPlacement>;
|
|
322
|
+
readonly default: "top";
|
|
323
|
+
};
|
|
324
|
+
readonly model: {
|
|
325
|
+
readonly type: import("vue").PropType<Record<string, any>>;
|
|
326
|
+
readonly default: () => void;
|
|
327
|
+
};
|
|
328
|
+
readonly rules: import("vue").PropType<import("naive-ui").FormRules>;
|
|
329
|
+
readonly disabled: BooleanConstructor;
|
|
330
|
+
readonly size: import("vue").PropType<import("naive-ui/es/form/src/interface").Size>;
|
|
331
|
+
readonly showRequireMark: {
|
|
332
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
333
|
+
readonly default: undefined;
|
|
334
|
+
};
|
|
335
|
+
readonly requireMarkPlacement: import("vue").PropType<"left" | "right" | "right-hanging">;
|
|
336
|
+
readonly showFeedback: {
|
|
337
|
+
readonly type: BooleanConstructor;
|
|
338
|
+
readonly default: true;
|
|
339
|
+
};
|
|
340
|
+
readonly onSubmit: {
|
|
341
|
+
readonly type: import("vue").PropType<(e: Event) => void>;
|
|
342
|
+
readonly default: (e: Event) => void;
|
|
343
|
+
};
|
|
344
|
+
readonly showLabel: {
|
|
345
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
346
|
+
readonly default: undefined;
|
|
347
|
+
};
|
|
348
|
+
readonly validateMessages: import("vue").PropType<Partial<import("naive-ui/es/form/src/interface").FormValidateMessages>>;
|
|
349
|
+
readonly theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
350
|
+
blankHeightSmall: string;
|
|
351
|
+
blankHeightMedium: string;
|
|
352
|
+
blankHeightLarge: string;
|
|
353
|
+
lineHeight: string;
|
|
354
|
+
labelTextColor: string;
|
|
355
|
+
asteriskColor: string;
|
|
356
|
+
feedbackTextColorError: string;
|
|
357
|
+
feedbackTextColorWarning: string;
|
|
358
|
+
feedbackTextColor: string;
|
|
359
|
+
feedbackPadding: string;
|
|
360
|
+
feedbackHeightSmall: string;
|
|
361
|
+
feedbackHeightMedium: string;
|
|
362
|
+
feedbackHeightLarge: string;
|
|
363
|
+
feedbackFontSizeSmall: string;
|
|
364
|
+
feedbackFontSizeMedium: string;
|
|
365
|
+
feedbackFontSizeLarge: string;
|
|
366
|
+
labelFontSizeLeftSmall: string;
|
|
367
|
+
labelFontSizeLeftMedium: string;
|
|
368
|
+
labelFontSizeLeftLarge: string;
|
|
369
|
+
labelFontSizeTopSmall: string;
|
|
370
|
+
labelFontSizeTopMedium: string;
|
|
371
|
+
labelFontSizeTopLarge: string;
|
|
372
|
+
labelHeightSmall: string;
|
|
373
|
+
labelHeightMedium: string;
|
|
374
|
+
labelHeightLarge: string;
|
|
375
|
+
labelPaddingVertical: string;
|
|
376
|
+
labelPaddingHorizontal: string;
|
|
377
|
+
labelTextAlignVertical: string;
|
|
378
|
+
labelTextAlignHorizontal: string;
|
|
379
|
+
}, any>>;
|
|
380
|
+
readonly themeOverrides: import("vue").PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
381
|
+
blankHeightSmall: string;
|
|
382
|
+
blankHeightMedium: string;
|
|
383
|
+
blankHeightLarge: string;
|
|
384
|
+
lineHeight: string;
|
|
385
|
+
labelTextColor: string;
|
|
386
|
+
asteriskColor: string;
|
|
387
|
+
feedbackTextColorError: string;
|
|
388
|
+
feedbackTextColorWarning: string;
|
|
389
|
+
feedbackTextColor: string;
|
|
390
|
+
feedbackPadding: string;
|
|
391
|
+
feedbackHeightSmall: string;
|
|
392
|
+
feedbackHeightMedium: string;
|
|
393
|
+
feedbackHeightLarge: string;
|
|
394
|
+
feedbackFontSizeSmall: string;
|
|
395
|
+
feedbackFontSizeMedium: string;
|
|
396
|
+
feedbackFontSizeLarge: string;
|
|
397
|
+
labelFontSizeLeftSmall: string;
|
|
398
|
+
labelFontSizeLeftMedium: string;
|
|
399
|
+
labelFontSizeLeftLarge: string;
|
|
400
|
+
labelFontSizeTopSmall: string;
|
|
401
|
+
labelFontSizeTopMedium: string;
|
|
402
|
+
labelFontSizeTopLarge: string;
|
|
403
|
+
labelHeightSmall: string;
|
|
404
|
+
labelHeightMedium: string;
|
|
405
|
+
labelHeightLarge: string;
|
|
406
|
+
labelPaddingVertical: string;
|
|
407
|
+
labelPaddingHorizontal: string;
|
|
408
|
+
labelTextAlignVertical: string;
|
|
409
|
+
labelTextAlignHorizontal: string;
|
|
410
|
+
}, any>>>;
|
|
411
|
+
readonly builtinThemeOverrides: import("vue").PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
412
|
+
blankHeightSmall: string;
|
|
413
|
+
blankHeightMedium: string;
|
|
414
|
+
blankHeightLarge: string;
|
|
415
|
+
lineHeight: string;
|
|
416
|
+
labelTextColor: string;
|
|
417
|
+
asteriskColor: string;
|
|
418
|
+
feedbackTextColorError: string;
|
|
419
|
+
feedbackTextColorWarning: string;
|
|
420
|
+
feedbackTextColor: string;
|
|
421
|
+
feedbackPadding: string;
|
|
422
|
+
feedbackHeightSmall: string;
|
|
423
|
+
feedbackHeightMedium: string;
|
|
424
|
+
feedbackHeightLarge: string;
|
|
425
|
+
feedbackFontSizeSmall: string;
|
|
426
|
+
feedbackFontSizeMedium: string;
|
|
427
|
+
feedbackFontSizeLarge: string;
|
|
428
|
+
labelFontSizeLeftSmall: string;
|
|
429
|
+
labelFontSizeLeftMedium: string;
|
|
430
|
+
labelFontSizeLeftLarge: string;
|
|
431
|
+
labelFontSizeTopSmall: string;
|
|
432
|
+
labelFontSizeTopMedium: string;
|
|
433
|
+
labelFontSizeTopLarge: string;
|
|
434
|
+
labelHeightSmall: string;
|
|
435
|
+
labelHeightMedium: string;
|
|
436
|
+
labelHeightLarge: string;
|
|
437
|
+
labelPaddingVertical: string;
|
|
438
|
+
labelPaddingHorizontal: string;
|
|
439
|
+
labelTextAlignVertical: string;
|
|
440
|
+
labelTextAlignHorizontal: string;
|
|
441
|
+
}, any>>>;
|
|
442
|
+
}, import("naive-ui").FormInst & {
|
|
443
|
+
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
444
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
445
|
+
readonly inline: BooleanConstructor;
|
|
446
|
+
readonly labelWidth: import("vue").PropType<string | number>;
|
|
447
|
+
readonly labelAlign: import("vue").PropType<import("naive-ui/es/form/src/interface").LabelAlign>;
|
|
448
|
+
readonly labelPlacement: {
|
|
449
|
+
readonly type: import("vue").PropType<import("naive-ui/es/form/src/interface").LabelPlacement>;
|
|
450
|
+
readonly default: "top";
|
|
451
|
+
};
|
|
452
|
+
readonly model: {
|
|
453
|
+
readonly type: import("vue").PropType<Record<string, any>>;
|
|
454
|
+
readonly default: () => void;
|
|
455
|
+
};
|
|
456
|
+
readonly rules: import("vue").PropType<import("naive-ui").FormRules>;
|
|
457
|
+
readonly disabled: BooleanConstructor;
|
|
458
|
+
readonly size: import("vue").PropType<import("naive-ui/es/form/src/interface").Size>;
|
|
459
|
+
readonly showRequireMark: {
|
|
460
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
461
|
+
readonly default: undefined;
|
|
462
|
+
};
|
|
463
|
+
readonly requireMarkPlacement: import("vue").PropType<"left" | "right" | "right-hanging">;
|
|
464
|
+
readonly showFeedback: {
|
|
465
|
+
readonly type: BooleanConstructor;
|
|
466
|
+
readonly default: true;
|
|
467
|
+
};
|
|
468
|
+
readonly onSubmit: {
|
|
469
|
+
readonly type: import("vue").PropType<(e: Event) => void>;
|
|
470
|
+
readonly default: (e: Event) => void;
|
|
471
|
+
};
|
|
472
|
+
readonly showLabel: {
|
|
473
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
474
|
+
readonly default: undefined;
|
|
475
|
+
};
|
|
476
|
+
readonly validateMessages: import("vue").PropType<Partial<import("naive-ui/es/form/src/interface").FormValidateMessages>>;
|
|
477
|
+
readonly theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
478
|
+
blankHeightSmall: string;
|
|
479
|
+
blankHeightMedium: string;
|
|
480
|
+
blankHeightLarge: string;
|
|
481
|
+
lineHeight: string;
|
|
482
|
+
labelTextColor: string;
|
|
483
|
+
asteriskColor: string;
|
|
484
|
+
feedbackTextColorError: string;
|
|
485
|
+
feedbackTextColorWarning: string;
|
|
486
|
+
feedbackTextColor: string;
|
|
487
|
+
feedbackPadding: string;
|
|
488
|
+
feedbackHeightSmall: string;
|
|
489
|
+
feedbackHeightMedium: string;
|
|
490
|
+
feedbackHeightLarge: string;
|
|
491
|
+
feedbackFontSizeSmall: string;
|
|
492
|
+
feedbackFontSizeMedium: string;
|
|
493
|
+
feedbackFontSizeLarge: string;
|
|
494
|
+
labelFontSizeLeftSmall: string;
|
|
495
|
+
labelFontSizeLeftMedium: string;
|
|
496
|
+
labelFontSizeLeftLarge: string;
|
|
497
|
+
labelFontSizeTopSmall: string;
|
|
498
|
+
labelFontSizeTopMedium: string;
|
|
499
|
+
labelFontSizeTopLarge: string;
|
|
500
|
+
labelHeightSmall: string;
|
|
501
|
+
labelHeightMedium: string;
|
|
502
|
+
labelHeightLarge: string;
|
|
503
|
+
labelPaddingVertical: string;
|
|
504
|
+
labelPaddingHorizontal: string;
|
|
505
|
+
labelTextAlignVertical: string;
|
|
506
|
+
labelTextAlignHorizontal: string;
|
|
507
|
+
}, any>>;
|
|
508
|
+
readonly themeOverrides: import("vue").PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
509
|
+
blankHeightSmall: string;
|
|
510
|
+
blankHeightMedium: string;
|
|
511
|
+
blankHeightLarge: string;
|
|
512
|
+
lineHeight: string;
|
|
513
|
+
labelTextColor: string;
|
|
514
|
+
asteriskColor: string;
|
|
515
|
+
feedbackTextColorError: string;
|
|
516
|
+
feedbackTextColorWarning: string;
|
|
517
|
+
feedbackTextColor: string;
|
|
518
|
+
feedbackPadding: string;
|
|
519
|
+
feedbackHeightSmall: string;
|
|
520
|
+
feedbackHeightMedium: string;
|
|
521
|
+
feedbackHeightLarge: string;
|
|
522
|
+
feedbackFontSizeSmall: string;
|
|
523
|
+
feedbackFontSizeMedium: string;
|
|
524
|
+
feedbackFontSizeLarge: string;
|
|
525
|
+
labelFontSizeLeftSmall: string;
|
|
526
|
+
labelFontSizeLeftMedium: string;
|
|
527
|
+
labelFontSizeLeftLarge: string;
|
|
528
|
+
labelFontSizeTopSmall: string;
|
|
529
|
+
labelFontSizeTopMedium: string;
|
|
530
|
+
labelFontSizeTopLarge: string;
|
|
531
|
+
labelHeightSmall: string;
|
|
532
|
+
labelHeightMedium: string;
|
|
533
|
+
labelHeightLarge: string;
|
|
534
|
+
labelPaddingVertical: string;
|
|
535
|
+
labelPaddingHorizontal: string;
|
|
536
|
+
labelTextAlignVertical: string;
|
|
537
|
+
labelTextAlignHorizontal: string;
|
|
538
|
+
}, any>>>;
|
|
539
|
+
readonly builtinThemeOverrides: import("vue").PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
540
|
+
blankHeightSmall: string;
|
|
541
|
+
blankHeightMedium: string;
|
|
542
|
+
blankHeightLarge: string;
|
|
543
|
+
lineHeight: string;
|
|
544
|
+
labelTextColor: string;
|
|
545
|
+
asteriskColor: string;
|
|
546
|
+
feedbackTextColorError: string;
|
|
547
|
+
feedbackTextColorWarning: string;
|
|
548
|
+
feedbackTextColor: string;
|
|
549
|
+
feedbackPadding: string;
|
|
550
|
+
feedbackHeightSmall: string;
|
|
551
|
+
feedbackHeightMedium: string;
|
|
552
|
+
feedbackHeightLarge: string;
|
|
553
|
+
feedbackFontSizeSmall: string;
|
|
554
|
+
feedbackFontSizeMedium: string;
|
|
555
|
+
feedbackFontSizeLarge: string;
|
|
556
|
+
labelFontSizeLeftSmall: string;
|
|
557
|
+
labelFontSizeLeftMedium: string;
|
|
558
|
+
labelFontSizeLeftLarge: string;
|
|
559
|
+
labelFontSizeTopSmall: string;
|
|
560
|
+
labelFontSizeTopMedium: string;
|
|
561
|
+
labelFontSizeTopLarge: string;
|
|
562
|
+
labelHeightSmall: string;
|
|
563
|
+
labelHeightMedium: string;
|
|
564
|
+
labelHeightLarge: string;
|
|
565
|
+
labelPaddingVertical: string;
|
|
566
|
+
labelPaddingHorizontal: string;
|
|
567
|
+
labelTextAlignVertical: string;
|
|
568
|
+
labelTextAlignHorizontal: string;
|
|
569
|
+
}, any>>>;
|
|
570
|
+
}>>, {
|
|
571
|
+
readonly inline: boolean;
|
|
572
|
+
readonly disabled: boolean;
|
|
573
|
+
readonly onSubmit: (e: Event) => void;
|
|
574
|
+
readonly labelPlacement: import("naive-ui/es/form/src/interface").LabelPlacement;
|
|
575
|
+
readonly model: Record<string, any>;
|
|
576
|
+
readonly showRequireMark: boolean | undefined;
|
|
577
|
+
readonly showFeedback: boolean;
|
|
578
|
+
readonly showLabel: boolean | undefined;
|
|
579
|
+
}>;
|
|
316
580
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
317
581
|
fieldList: {
|
|
318
582
|
type: import("vue").PropType<import("./src/types").FieldItem[]>;
|
|
@@ -313,6 +313,270 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
313
313
|
form: any;
|
|
314
314
|
}>;
|
|
315
315
|
FormConsumer: import("vue").DefineComponent<{}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
316
|
+
NForm: import("vue").DefineComponent<{
|
|
317
|
+
readonly inline: BooleanConstructor;
|
|
318
|
+
readonly labelWidth: PropType<string | number>;
|
|
319
|
+
readonly labelAlign: PropType<import("naive-ui/es/form/src/interface").LabelAlign>;
|
|
320
|
+
readonly labelPlacement: {
|
|
321
|
+
readonly type: PropType<import("naive-ui/es/form/src/interface").LabelPlacement>;
|
|
322
|
+
readonly default: "top";
|
|
323
|
+
};
|
|
324
|
+
readonly model: {
|
|
325
|
+
readonly type: PropType<Record<string, any>>;
|
|
326
|
+
readonly default: () => void;
|
|
327
|
+
};
|
|
328
|
+
readonly rules: PropType<import("naive-ui").FormRules>;
|
|
329
|
+
readonly disabled: BooleanConstructor;
|
|
330
|
+
readonly size: PropType<import("naive-ui/es/form/src/interface").Size>;
|
|
331
|
+
readonly showRequireMark: {
|
|
332
|
+
readonly type: PropType<boolean | undefined>;
|
|
333
|
+
readonly default: undefined;
|
|
334
|
+
};
|
|
335
|
+
readonly requireMarkPlacement: PropType<"left" | "right" | "right-hanging">;
|
|
336
|
+
readonly showFeedback: {
|
|
337
|
+
readonly type: BooleanConstructor;
|
|
338
|
+
readonly default: true;
|
|
339
|
+
};
|
|
340
|
+
readonly onSubmit: {
|
|
341
|
+
readonly type: PropType<(e: Event) => void>;
|
|
342
|
+
readonly default: (e: Event) => void;
|
|
343
|
+
};
|
|
344
|
+
readonly showLabel: {
|
|
345
|
+
readonly type: PropType<boolean | undefined>;
|
|
346
|
+
readonly default: undefined;
|
|
347
|
+
};
|
|
348
|
+
readonly validateMessages: PropType<Partial<import("naive-ui/es/form/src/interface").FormValidateMessages>>;
|
|
349
|
+
readonly theme: PropType<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
350
|
+
blankHeightSmall: string;
|
|
351
|
+
blankHeightMedium: string;
|
|
352
|
+
blankHeightLarge: string;
|
|
353
|
+
lineHeight: string;
|
|
354
|
+
labelTextColor: string;
|
|
355
|
+
asteriskColor: string;
|
|
356
|
+
feedbackTextColorError: string;
|
|
357
|
+
feedbackTextColorWarning: string;
|
|
358
|
+
feedbackTextColor: string;
|
|
359
|
+
feedbackPadding: string;
|
|
360
|
+
feedbackHeightSmall: string;
|
|
361
|
+
feedbackHeightMedium: string;
|
|
362
|
+
feedbackHeightLarge: string;
|
|
363
|
+
feedbackFontSizeSmall: string;
|
|
364
|
+
feedbackFontSizeMedium: string;
|
|
365
|
+
feedbackFontSizeLarge: string;
|
|
366
|
+
labelFontSizeLeftSmall: string;
|
|
367
|
+
labelFontSizeLeftMedium: string;
|
|
368
|
+
labelFontSizeLeftLarge: string;
|
|
369
|
+
labelFontSizeTopSmall: string;
|
|
370
|
+
labelFontSizeTopMedium: string;
|
|
371
|
+
labelFontSizeTopLarge: string;
|
|
372
|
+
labelHeightSmall: string;
|
|
373
|
+
labelHeightMedium: string;
|
|
374
|
+
labelHeightLarge: string;
|
|
375
|
+
labelPaddingVertical: string;
|
|
376
|
+
labelPaddingHorizontal: string;
|
|
377
|
+
labelTextAlignVertical: string;
|
|
378
|
+
labelTextAlignHorizontal: string;
|
|
379
|
+
}, any>>;
|
|
380
|
+
readonly themeOverrides: PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
381
|
+
blankHeightSmall: string;
|
|
382
|
+
blankHeightMedium: string;
|
|
383
|
+
blankHeightLarge: string;
|
|
384
|
+
lineHeight: string;
|
|
385
|
+
labelTextColor: string;
|
|
386
|
+
asteriskColor: string;
|
|
387
|
+
feedbackTextColorError: string;
|
|
388
|
+
feedbackTextColorWarning: string;
|
|
389
|
+
feedbackTextColor: string;
|
|
390
|
+
feedbackPadding: string;
|
|
391
|
+
feedbackHeightSmall: string;
|
|
392
|
+
feedbackHeightMedium: string;
|
|
393
|
+
feedbackHeightLarge: string;
|
|
394
|
+
feedbackFontSizeSmall: string;
|
|
395
|
+
feedbackFontSizeMedium: string;
|
|
396
|
+
feedbackFontSizeLarge: string;
|
|
397
|
+
labelFontSizeLeftSmall: string;
|
|
398
|
+
labelFontSizeLeftMedium: string;
|
|
399
|
+
labelFontSizeLeftLarge: string;
|
|
400
|
+
labelFontSizeTopSmall: string;
|
|
401
|
+
labelFontSizeTopMedium: string;
|
|
402
|
+
labelFontSizeTopLarge: string;
|
|
403
|
+
labelHeightSmall: string;
|
|
404
|
+
labelHeightMedium: string;
|
|
405
|
+
labelHeightLarge: string;
|
|
406
|
+
labelPaddingVertical: string;
|
|
407
|
+
labelPaddingHorizontal: string;
|
|
408
|
+
labelTextAlignVertical: string;
|
|
409
|
+
labelTextAlignHorizontal: string;
|
|
410
|
+
}, any>>>;
|
|
411
|
+
readonly builtinThemeOverrides: PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
412
|
+
blankHeightSmall: string;
|
|
413
|
+
blankHeightMedium: string;
|
|
414
|
+
blankHeightLarge: string;
|
|
415
|
+
lineHeight: string;
|
|
416
|
+
labelTextColor: string;
|
|
417
|
+
asteriskColor: string;
|
|
418
|
+
feedbackTextColorError: string;
|
|
419
|
+
feedbackTextColorWarning: string;
|
|
420
|
+
feedbackTextColor: string;
|
|
421
|
+
feedbackPadding: string;
|
|
422
|
+
feedbackHeightSmall: string;
|
|
423
|
+
feedbackHeightMedium: string;
|
|
424
|
+
feedbackHeightLarge: string;
|
|
425
|
+
feedbackFontSizeSmall: string;
|
|
426
|
+
feedbackFontSizeMedium: string;
|
|
427
|
+
feedbackFontSizeLarge: string;
|
|
428
|
+
labelFontSizeLeftSmall: string;
|
|
429
|
+
labelFontSizeLeftMedium: string;
|
|
430
|
+
labelFontSizeLeftLarge: string;
|
|
431
|
+
labelFontSizeTopSmall: string;
|
|
432
|
+
labelFontSizeTopMedium: string;
|
|
433
|
+
labelFontSizeTopLarge: string;
|
|
434
|
+
labelHeightSmall: string;
|
|
435
|
+
labelHeightMedium: string;
|
|
436
|
+
labelHeightLarge: string;
|
|
437
|
+
labelPaddingVertical: string;
|
|
438
|
+
labelPaddingHorizontal: string;
|
|
439
|
+
labelTextAlignVertical: string;
|
|
440
|
+
labelTextAlignHorizontal: string;
|
|
441
|
+
}, any>>>;
|
|
442
|
+
}, import("naive-ui").FormInst & {
|
|
443
|
+
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
444
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
445
|
+
readonly inline: BooleanConstructor;
|
|
446
|
+
readonly labelWidth: PropType<string | number>;
|
|
447
|
+
readonly labelAlign: PropType<import("naive-ui/es/form/src/interface").LabelAlign>;
|
|
448
|
+
readonly labelPlacement: {
|
|
449
|
+
readonly type: PropType<import("naive-ui/es/form/src/interface").LabelPlacement>;
|
|
450
|
+
readonly default: "top";
|
|
451
|
+
};
|
|
452
|
+
readonly model: {
|
|
453
|
+
readonly type: PropType<Record<string, any>>;
|
|
454
|
+
readonly default: () => void;
|
|
455
|
+
};
|
|
456
|
+
readonly rules: PropType<import("naive-ui").FormRules>;
|
|
457
|
+
readonly disabled: BooleanConstructor;
|
|
458
|
+
readonly size: PropType<import("naive-ui/es/form/src/interface").Size>;
|
|
459
|
+
readonly showRequireMark: {
|
|
460
|
+
readonly type: PropType<boolean | undefined>;
|
|
461
|
+
readonly default: undefined;
|
|
462
|
+
};
|
|
463
|
+
readonly requireMarkPlacement: PropType<"left" | "right" | "right-hanging">;
|
|
464
|
+
readonly showFeedback: {
|
|
465
|
+
readonly type: BooleanConstructor;
|
|
466
|
+
readonly default: true;
|
|
467
|
+
};
|
|
468
|
+
readonly onSubmit: {
|
|
469
|
+
readonly type: PropType<(e: Event) => void>;
|
|
470
|
+
readonly default: (e: Event) => void;
|
|
471
|
+
};
|
|
472
|
+
readonly showLabel: {
|
|
473
|
+
readonly type: PropType<boolean | undefined>;
|
|
474
|
+
readonly default: undefined;
|
|
475
|
+
};
|
|
476
|
+
readonly validateMessages: PropType<Partial<import("naive-ui/es/form/src/interface").FormValidateMessages>>;
|
|
477
|
+
readonly theme: PropType<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
478
|
+
blankHeightSmall: string;
|
|
479
|
+
blankHeightMedium: string;
|
|
480
|
+
blankHeightLarge: string;
|
|
481
|
+
lineHeight: string;
|
|
482
|
+
labelTextColor: string;
|
|
483
|
+
asteriskColor: string;
|
|
484
|
+
feedbackTextColorError: string;
|
|
485
|
+
feedbackTextColorWarning: string;
|
|
486
|
+
feedbackTextColor: string;
|
|
487
|
+
feedbackPadding: string;
|
|
488
|
+
feedbackHeightSmall: string;
|
|
489
|
+
feedbackHeightMedium: string;
|
|
490
|
+
feedbackHeightLarge: string;
|
|
491
|
+
feedbackFontSizeSmall: string;
|
|
492
|
+
feedbackFontSizeMedium: string;
|
|
493
|
+
feedbackFontSizeLarge: string;
|
|
494
|
+
labelFontSizeLeftSmall: string;
|
|
495
|
+
labelFontSizeLeftMedium: string;
|
|
496
|
+
labelFontSizeLeftLarge: string;
|
|
497
|
+
labelFontSizeTopSmall: string;
|
|
498
|
+
labelFontSizeTopMedium: string;
|
|
499
|
+
labelFontSizeTopLarge: string;
|
|
500
|
+
labelHeightSmall: string;
|
|
501
|
+
labelHeightMedium: string;
|
|
502
|
+
labelHeightLarge: string;
|
|
503
|
+
labelPaddingVertical: string;
|
|
504
|
+
labelPaddingHorizontal: string;
|
|
505
|
+
labelTextAlignVertical: string;
|
|
506
|
+
labelTextAlignHorizontal: string;
|
|
507
|
+
}, any>>;
|
|
508
|
+
readonly themeOverrides: PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
509
|
+
blankHeightSmall: string;
|
|
510
|
+
blankHeightMedium: string;
|
|
511
|
+
blankHeightLarge: string;
|
|
512
|
+
lineHeight: string;
|
|
513
|
+
labelTextColor: string;
|
|
514
|
+
asteriskColor: string;
|
|
515
|
+
feedbackTextColorError: string;
|
|
516
|
+
feedbackTextColorWarning: string;
|
|
517
|
+
feedbackTextColor: string;
|
|
518
|
+
feedbackPadding: string;
|
|
519
|
+
feedbackHeightSmall: string;
|
|
520
|
+
feedbackHeightMedium: string;
|
|
521
|
+
feedbackHeightLarge: string;
|
|
522
|
+
feedbackFontSizeSmall: string;
|
|
523
|
+
feedbackFontSizeMedium: string;
|
|
524
|
+
feedbackFontSizeLarge: string;
|
|
525
|
+
labelFontSizeLeftSmall: string;
|
|
526
|
+
labelFontSizeLeftMedium: string;
|
|
527
|
+
labelFontSizeLeftLarge: string;
|
|
528
|
+
labelFontSizeTopSmall: string;
|
|
529
|
+
labelFontSizeTopMedium: string;
|
|
530
|
+
labelFontSizeTopLarge: string;
|
|
531
|
+
labelHeightSmall: string;
|
|
532
|
+
labelHeightMedium: string;
|
|
533
|
+
labelHeightLarge: string;
|
|
534
|
+
labelPaddingVertical: string;
|
|
535
|
+
labelPaddingHorizontal: string;
|
|
536
|
+
labelTextAlignVertical: string;
|
|
537
|
+
labelTextAlignHorizontal: string;
|
|
538
|
+
}, any>>>;
|
|
539
|
+
readonly builtinThemeOverrides: PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Form", {
|
|
540
|
+
blankHeightSmall: string;
|
|
541
|
+
blankHeightMedium: string;
|
|
542
|
+
blankHeightLarge: string;
|
|
543
|
+
lineHeight: string;
|
|
544
|
+
labelTextColor: string;
|
|
545
|
+
asteriskColor: string;
|
|
546
|
+
feedbackTextColorError: string;
|
|
547
|
+
feedbackTextColorWarning: string;
|
|
548
|
+
feedbackTextColor: string;
|
|
549
|
+
feedbackPadding: string;
|
|
550
|
+
feedbackHeightSmall: string;
|
|
551
|
+
feedbackHeightMedium: string;
|
|
552
|
+
feedbackHeightLarge: string;
|
|
553
|
+
feedbackFontSizeSmall: string;
|
|
554
|
+
feedbackFontSizeMedium: string;
|
|
555
|
+
feedbackFontSizeLarge: string;
|
|
556
|
+
labelFontSizeLeftSmall: string;
|
|
557
|
+
labelFontSizeLeftMedium: string;
|
|
558
|
+
labelFontSizeLeftLarge: string;
|
|
559
|
+
labelFontSizeTopSmall: string;
|
|
560
|
+
labelFontSizeTopMedium: string;
|
|
561
|
+
labelFontSizeTopLarge: string;
|
|
562
|
+
labelHeightSmall: string;
|
|
563
|
+
labelHeightMedium: string;
|
|
564
|
+
labelHeightLarge: string;
|
|
565
|
+
labelPaddingVertical: string;
|
|
566
|
+
labelPaddingHorizontal: string;
|
|
567
|
+
labelTextAlignVertical: string;
|
|
568
|
+
labelTextAlignHorizontal: string;
|
|
569
|
+
}, any>>>;
|
|
570
|
+
}>>, {
|
|
571
|
+
readonly inline: boolean;
|
|
572
|
+
readonly disabled: boolean;
|
|
573
|
+
readonly onSubmit: (e: Event) => void;
|
|
574
|
+
readonly labelPlacement: import("naive-ui/es/form/src/interface").LabelPlacement;
|
|
575
|
+
readonly model: Record<string, any>;
|
|
576
|
+
readonly showRequireMark: boolean | undefined;
|
|
577
|
+
readonly showFeedback: boolean;
|
|
578
|
+
readonly showLabel: boolean | undefined;
|
|
579
|
+
}>;
|
|
316
580
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
317
581
|
fieldList: {
|
|
318
582
|
type: PropType<FieldItem[]>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent, provide, computed, openBlock,
|
|
1
|
+
import { defineComponent, provide, computed, openBlock, createBlock, unref, normalizeStyle, withCtx, createVNode, renderSlot, createElementVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
2
2
|
import { injectOrProvide } from './utils/index.mjs';
|
|
3
3
|
import { cloneDeep } from 'lodash-es';
|
|
4
4
|
import { InjectionBusinessCollector, InjectionChangeContextCollector, InjectionFormItemDepsCollector, InjectAsyncQueue, InjectionSchemaField } from './constants/index.mjs';
|
|
5
5
|
import * as index from './components/index.mjs';
|
|
6
6
|
import { createForm, onFieldValueChange } from '@formily/core';
|
|
7
7
|
import { FormProvider, FormConsumer, createSchemaField } from '@formily/vue';
|
|
8
|
+
import { NForm } from 'naive-ui';
|
|
8
9
|
import { useBusinessBinding } from './hooks/useBusinessBinding.mjs';
|
|
9
10
|
import { useAsyncQueue } from './hooks/useAsyncQueue.mjs';
|
|
10
11
|
import { useChangeContext } from './hooks/useChangeContext.mjs';
|
|
@@ -85,25 +86,28 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
85
86
|
setFieldState: formModel.setFieldState.bind(formModel)
|
|
86
87
|
});
|
|
87
88
|
return (_ctx, _cache) => {
|
|
88
|
-
return openBlock(),
|
|
89
|
+
return openBlock(), createBlock(unref(NForm), {
|
|
89
90
|
class: "form-render__wrapper",
|
|
90
91
|
style: normalizeStyle({ "--column": __props.column })
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
__props.consumer ? (openBlock(), createBlock(unref(FormConsumer), { key: 0 }, {
|
|
98
|
-
default: withCtx(({ form }) => [
|
|
99
|
-
createElementVNode("div", _hoisted_1, toDisplayString(JSON.stringify(form.values, null, 2)), 1)
|
|
92
|
+
}, {
|
|
93
|
+
default: withCtx(() => [
|
|
94
|
+
createVNode(unref(FormProvider), { form: unref(formModel) }, {
|
|
95
|
+
default: withCtx(() => [
|
|
96
|
+
renderSlot(_ctx.$slots, "default", { schemaFiled: unref(SchemaField) }, () => [
|
|
97
|
+
createVNode(unref(SchemaField), { schema: unref(renderSchema) }, null, 8, ["schema"])
|
|
100
98
|
]),
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
__props.consumer ? (openBlock(), createBlock(unref(FormConsumer), { key: 0 }, {
|
|
100
|
+
default: withCtx(({ form }) => [
|
|
101
|
+
createElementVNode("div", _hoisted_1, toDisplayString(JSON.stringify(form.values, null, 2)), 1)
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
})) : createCommentVNode("v-if", true)
|
|
105
|
+
]),
|
|
106
|
+
_: 3
|
|
107
|
+
}, 8, ["form"])
|
|
108
|
+
]),
|
|
109
|
+
_: 3
|
|
110
|
+
}, 8, ["style"]);
|
|
107
111
|
};
|
|
108
112
|
}
|
|
109
113
|
});
|
|
@@ -83,7 +83,7 @@ const script = defineComponent({
|
|
|
83
83
|
const renderOptions = computed(() => {
|
|
84
84
|
return _options.value || props.options || [];
|
|
85
85
|
});
|
|
86
|
-
watch(() =>
|
|
86
|
+
watch(() => props.value, (n, o) => {
|
|
87
87
|
if (n != null && o == null) {
|
|
88
88
|
fetchData();
|
|
89
89
|
}
|