@dazhicheng/ui 1.5.49 → 1.5.51

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.
@@ -38,7 +38,7 @@ export declare class DrawerApi {
38
38
  /**
39
39
  * 确认操作
40
40
  */
41
- onOk: import('@vueuse/core').UseDebounceFnReturn<() => Promise<void>>;
41
+ onOk: import('@vueuse/core').PromisifyFn<() => Promise<void>>;
42
42
  /**
43
43
  * 设置抽屉的状态
44
44
  * @param stateOrFn - 状态对象或状态函数
@@ -1,5 +1,14 @@
1
1
  import { LazyFormFieldProps } from './types';
2
- declare const _default: import('vue').DefineComponent<LazyFormFieldProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LazyFormFieldProps> & Readonly<{}>, {
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Partial<Record<{}, (_: any) => any>>;
5
+ refs: {
6
+ containerRef: HTMLDivElement;
7
+ };
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<LazyFormFieldProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LazyFormFieldProps> & Readonly<{}>, {
3
12
  rules: import('../types').FormSchemaRuleType;
4
13
  rootMargin: string;
5
14
  fieldClass: string;
@@ -10,4 +19,10 @@ declare const _default: import('vue').DefineComponent<LazyFormFieldProps, {}, {}
10
19
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
11
20
  containerRef: HTMLDivElement;
12
21
  }, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
23
  export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -128,7 +128,10 @@ export declare class GroupFormApi extends FormApi {
128
128
  */
129
129
  toggleCollapse(key: string): void;
130
130
  /**
131
- * @description 设置分组的可见性状态,由 GroupSection 组件在 ifShow 求值后调用
131
+ * @description 设置分组的可见性状态,由 GroupSection 组件在 ifShow 求值后调用。
132
+ * 分组显示/隐藏会影响 {@link hiddenGroupKeys} 与校验错误是否计入导航/虚拟字段缓存;
133
+ * 可见性变化后在下一帧调用 {@link syncNavErrorCountsFromForm},使「先 validate 再隐藏再显示」时
134
+ * 导航徽标、{@link errorCacheMap} 与表单项错误展示保持一致。
132
135
  * @param {string} key - 分组 key
133
136
  * @param {boolean} visible - 是否可见
134
137
  */
@@ -120,7 +120,7 @@ export type GroupFormSectionProps = Partial<Pick<UseGroupFormOptions, "virtual"
120
120
  /** GroupSection 递归组件 props */
121
121
  export interface GroupSectionProps {
122
122
  /** 当前节点的 schema(分组 / 行容器 / 字段) */
123
- schema: GroupFormSchema;
123
+ schema: GroupFormSchema | FormSchema;
124
124
  /** 分组折叠状态 */
125
125
  collapseStates: Record<string, boolean>;
126
126
  /** 当前层级合并后的通用配置 */
@@ -58,7 +58,7 @@ export type MaybeComponentProps = {
58
58
  [K in MaybeComponentPropKey]?: any;
59
59
  };
60
60
  export type FormActions = FormContext<GenericObject>;
61
- export type CustomRenderType = (() => Component | string) | string;
61
+ export type CustomRenderType = ((value: Partial<Record<string, any>>, actions: FormActions) => Component | string) | string;
62
62
  export type FormSchemaRuleType = "required" | "selectRequired" | null | (Record<never, never> & string) | ZodTypeAny;
63
63
  type FormItemDependenciesCondition<T = boolean | PromiseLike<boolean>> = (value: Partial<Record<string, any>>, actions: FormActions) => T;
64
64
  type FormItemDependenciesConditionWithRules = (value: Partial<Record<string, any>>, actions: FormActions) => FormSchemaRuleType | PromiseLike<FormSchemaRuleType>;
@@ -8,7 +8,7 @@ interface OpenModalParams {
8
8
  /** @param params - 列数据、默认展示字段、禁用字段 */
9
9
  declare function openModal({ columns, displayFields, disabledColumnField }: OpenModalParams): void;
10
10
  declare const _default: import('vue').DefineComponent<{}, {
11
- handleSubmit: import('@vueuse/core').UseDebounceFnReturn<() => void>;
11
+ handleSubmit: import('@vueuse/core').PromisifyFn<() => void>;
12
12
  openModal: typeof openModal;
13
13
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
14
  "on-submit": (val: {