@dazhicheng/ui 1.5.77 → 1.5.79

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.
@@ -1,10 +1,10 @@
1
1
  export declare const TtApiComponent: import('../../../../utils/src').SFCWithInstall<(<T extends import('vue').Component>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
2
2
  attrs: any;
3
3
  slots: Partial<Record<string, (_: any) => any>>;
4
- emit: (((evt: "change", val: unknown, options: import('./types').OptionsItem[], currentOption: import('./types').OptionsItem | undefined) => void) & ((evt: "optionsChange", args_0: import('./types').OptionsItem[]) => void)) & ((evt: "update:modelValue", value: any) => void);
4
+ emit: (((evt: "change", val: unknown, options: import('./types').OptionsItem[], currentOption: import('./types').OptionsItem | import('./types').OptionsItem[] | undefined) => void) & ((evt: "optionsChange", args_0: import('./types').OptionsItem[]) => void)) & ((evt: "update:modelValue", value: any) => void);
5
5
  }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
6
  props: {
7
- readonly onChange?: ((val: unknown, options: import('./types').OptionsItem[], currentOption: import('./types').OptionsItem | undefined) => any) | undefined;
7
+ readonly onChange?: ((val: unknown, options: import('./types').OptionsItem[], currentOption: import('./types').OptionsItem | import('./types').OptionsItem[] | undefined) => any) | undefined;
8
8
  readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
9
9
  readonly onOptionsChange?: ((args_0: import('./types').OptionsItem[]) => any) | undefined;
10
10
  modelValue?: any;
@@ -36,7 +36,7 @@ export declare const TtApiComponent: import('../../../../utils/src').SFCWithInst
36
36
  }>): void;
37
37
  attrs: any;
38
38
  slots: Partial<Record<string, (_: any) => any>>;
39
- emit: (((evt: "change", val: unknown, options: import('./types').OptionsItem[], currentOption: import('./types').OptionsItem | undefined) => void) & ((evt: "optionsChange", args_0: import('./types').OptionsItem[]) => void)) & ((evt: "update:modelValue", value: any) => void);
39
+ emit: (((evt: "change", val: unknown, options: import('./types').OptionsItem[], currentOption: import('./types').OptionsItem | import('./types').OptionsItem[] | undefined) => void) & ((evt: "optionsChange", args_0: import('./types').OptionsItem[]) => void)) & ((evt: "update:modelValue", value: any) => void);
40
40
  }>) => import('vue').VNode & {
41
41
  __ctx?: Awaited<typeof __VLS_setup>;
42
42
  })> & Record<string, any>;
@@ -2,7 +2,7 @@ import { Component } from 'vue';
2
2
  import { Props, OptionsItem } from './types';
3
3
  declare const _default: <T extends Component>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
- readonly onChange?: ((val: unknown, options: OptionsItem[], currentOption: OptionsItem | undefined) => any) | undefined;
5
+ readonly onChange?: ((val: unknown, options: OptionsItem[], currentOption: OptionsItem | OptionsItem[] | undefined) => any) | undefined;
6
6
  readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
7
7
  readonly onOptionsChange?: ((args_0: OptionsItem[]) => any) | undefined;
8
8
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue" | "onOptionsChange"> & ({
@@ -22,7 +22,7 @@ declare const _default: <T extends Component>(__VLS_props: NonNullable<Awaited<t
22
22
  }>): void;
23
23
  attrs: any;
24
24
  slots: Partial<Record<string, (_: any) => any>>;
25
- emit: (((evt: "change", val: unknown, options: OptionsItem[], currentOption: OptionsItem | undefined) => void) & ((evt: "optionsChange", args_0: OptionsItem[]) => void)) & ((evt: "update:modelValue", value: any) => void);
25
+ emit: (((evt: "change", val: unknown, options: OptionsItem[], currentOption: OptionsItem | OptionsItem[] | undefined) => void) & ((evt: "optionsChange", args_0: OptionsItem[]) => void)) & ((evt: "update:modelValue", value: any) => void);
26
26
  }>) => import('vue').VNode & {
27
27
  __ctx?: Awaited<typeof __VLS_setup>;
28
28
  };
@@ -124,7 +124,7 @@ export declare class FormApi {
124
124
  * 子类(如分组表单)可覆盖以同步清理虚拟校验缓存等。
125
125
  * @param {string[]} removedFieldNames 已从 schema 中移除的字段名
126
126
  */
127
- protected onRemovedSchemaFields(_removedFieldNames: string[]): void;
127
+ protected onRemovedSchemaFields(fieldNames: string[]): void;
128
128
  /**
129
129
  * store 更新后对比前后 `schema` 的 fieldName 集合,对已从 schema 中移除的字段清空 vee-validate 值与错误,
130
130
  * 避免 `removeFields` / 删项后 `getValues` 仍带出旧字段。