@zy-frontend/element-plus-form 2.0.16 → 2.0.18

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.
@@ -2,6 +2,7 @@ import { CheckboxGroupValueType } from 'element-plus';
2
2
  import { Component } from '@zy-frontend/form-core';
3
3
  import { ComponentOptionsMixin } from 'vue';
4
4
  import { ComponentProvideOptions } from 'vue';
5
+ import { ComputedRef } from 'vue';
5
6
  import { DefineComponent } from 'vue';
6
7
  import { DELETED_FIELD_IDENTIFIER } from '@zy-frontend/form-core';
7
8
  import { ExtractPropTypes } from 'vue';
@@ -182,6 +183,12 @@ declare type __VLS_WithTemplateSlots_6<T, S> = T & {
182
183
  };
183
184
  };
184
185
 
186
+ declare type __VLS_WithTemplateSlots_7<T, S> = T & {
187
+ new (): {
188
+ $slots: S;
189
+ };
190
+ };
191
+
185
192
  export declare type ActionPosition = 'left' | 'center' | 'right';
186
193
 
187
194
  export declare interface BaseFormProps {
@@ -822,6 +829,8 @@ export declare type UploadUserFile = Omit<UploadFile, 'status' | 'uid'> & Partia
822
829
  uid?: number;
823
830
  };
824
831
 
832
+ export declare const useFormDisabled: () => ComputedRef<any>;
833
+
825
834
  export { useFormItem }
826
835
 
827
836
  export declare const ZYBaseForm: __VLS_WithTemplateSlots_2<DefineComponent<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<BaseFormProps>, {
@@ -1576,7 +1585,7 @@ descriptionColor: string;
1576
1585
 
1577
1586
  declare type ZYDateTimePickerType = 'year' | 'quarter' | 'month' | 'week' | 'date' | 'datetime' | 'yearrange' | 'monthrange' | 'quarterrange' | 'daterange' | 'datetimerange';
1578
1587
 
1579
- export declare const ZYDynamicForm: __VLS_WithTemplateSlots_5<DefineComponent<ExtractPropTypes< {
1588
+ export declare const ZYDynamicForm: __VLS_WithTemplateSlots_6<DefineComponent<ExtractPropTypes< {
1580
1589
  modelValue: {
1581
1590
  required: true;
1582
1591
  type: PropType<Record<string, any>[]>;
@@ -3029,7 +3038,7 @@ validateEvent: boolean;
3029
3038
  options: [SwitchOption, SwitchOption];
3030
3039
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3031
3040
 
3032
- export declare const ZYTabs: DefineComponent<ExtractPropTypes< {
3041
+ export declare const ZYTabs: __VLS_WithTemplateSlots_5<DefineComponent<ExtractPropTypes< {
3033
3042
  modelValue: {
3034
3043
  required: true;
3035
3044
  type: PropType<TabValue>;
@@ -3078,9 +3087,15 @@ default: () => never[];
3078
3087
  }>> & Readonly<{}>, {
3079
3088
  unfulfilledFields: Record<string, UnfulfilledField[]>;
3080
3089
  tabs: Tab[];
3081
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3090
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
3091
+ "tab-extra"?(_: {
3092
+ label: string;
3093
+ name: TabValue;
3094
+ disabled: boolean | undefined;
3095
+ }): any;
3096
+ }>;
3082
3097
 
3083
- export declare const ZYTitle: __VLS_WithTemplateSlots_6<DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<TitleProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<TitleProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
3098
+ export declare const ZYTitle: __VLS_WithTemplateSlots_7<DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<TitleProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<TitleProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
3084
3099
  default?(_: {}): any;
3085
3100
  }>;
3086
3101