@dazhicheng/ui 1.5.52 → 1.5.54

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.
@@ -22,6 +22,7 @@ interface Props {
22
22
  toolTipText?: CustomRenderType;
23
23
  }
24
24
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
25
+ toolTip: TtTextProps;
25
26
  helpTrigger: "hover" | "click" | "focus" | "contextmenu";
26
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
28
  export default _default;
@@ -0,0 +1,16 @@
1
+ import { FormLayout, WrapperClassType } from '../types';
2
+ export declare const FORM_RENDER_DEFAULT_WRAPPER_CLASS: WrapperClassType;
3
+ /**
4
+ * 计算表单根级字段容器 class,与 `form.vue` 中 `wrapperClass` 计算属性逻辑一致(flex / inline / grid / gap)。
5
+ *
6
+ * @param {object} options - 布局与栅格配置
7
+ * @param {FormLayout | string} [options.layout] - 布局方向
8
+ * @param {boolean} [options.compact] - 紧凑模式时横向间距更小
9
+ * @param {WrapperClassType} [options.wrapperClass] - 栅格与扩展 class;缺省为 FORM_RENDER_DEFAULT_WRAPPER_CLASS
10
+ * @returns {string} 合并后的 class 字符串
11
+ */
12
+ export declare function getFormRootWrapperClass(options: {
13
+ layout?: FormLayout | string;
14
+ compact?: boolean;
15
+ wrapperClass?: WrapperClassType;
16
+ }): string;
@@ -1,4 +1,4 @@
1
- import { FormActions, FormCommonConfig, FormLayout, FormSchema, FormSlotSchema, TtFormProps, WrapperClassType } from '../types';
1
+ import { FormActions, FormCommonConfig, FormSchema, FormSlotSchema, TtFormProps, WrapperClassType } from '../types';
2
2
  import { TtNavAnchorProps } from '../../../tt-nav-anchor';
3
3
  import { GroupFormApi } from './groupFormApi';
4
4
  export type CollapsibleType = boolean | ((values: Record<string, any>, actions: FormActions) => boolean | PromiseLike<boolean>);
@@ -102,20 +102,13 @@ export interface LazyFormFieldProps {
102
102
  skeletonAnimated?: boolean;
103
103
  }
104
104
  /**
105
- * 分组表单组件 props:`formApi` 为必传数据入口,其余字段均可在模板侧覆盖(优先级:模板 props > store)。
106
- * 类型复用 UseGroupFormOptions 中的同名字段。
105
+ * 分组表单根组件 props:`formApi` 为必传数据入口;
107
106
  */
108
- export type GroupFormSectionProps = Partial<Pick<UseGroupFormOptions, "virtual" | "scrollToFirstError" | "containerHeight" | "rootMargin" | "estimateFieldHeight">> & {
107
+ export type GroupFormSectionProps = Partial<Pick<UseGroupFormOptions, "virtual" | "scrollToFirstError" | "containerHeight" | "rootMargin" | "estimateFieldHeight" | "wrapperClass" | "layout" | "compact" | "commonConfig" | "actionWrapperClass" | "showCollapseButton" | "collapsed" | "collapsedRows" | "collapseTriggerResize" | "submitOnChange" | "submitOnEnter" | "fieldMappingTime" | "arrayToStringFields">> & {
109
108
  /** 表单 API(必传,所有内部数据的入口) */
110
109
  formApi: GroupFormApi;
111
110
  /** 模板侧覆盖:导航锚点配置(与 store.navAnchorProps 合并,模板优先) */
112
111
  navAnchorProps?: GroupFormNavAnchorProps;
113
- /** 模板侧覆盖:布局方向 */
114
- layout?: FormLayout;
115
- /** 模板侧覆盖:紧凑模式 */
116
- compact?: boolean;
117
- /** 模板侧覆盖:通用配置(与 store.commonConfig 合并) */
118
- commonConfig?: FormCommonConfig;
119
112
  };
120
113
  /** GroupSection 递归组件 props */
121
114
  export interface GroupSectionProps {