@dazhicheng/ui 1.5.50 → 1.5.52
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/dist/components/tt-drawer/src/utils/drawer-api.d.ts +1 -1
- package/dist/components/tt-form/src/form/RenderContent.vue.d.ts +1 -3
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.d.ts +16 -1
- package/dist/components/tt-form/src/group-form/groupFormApi.d.ts +4 -1
- package/dist/components/tt-form/src/group-form/types.d.ts +1 -1
- package/dist/components/tt-form/src/types.d.ts +1 -1
- package/dist/components/tt-table/src/components/TableColumnModal.vue.d.ts +1 -1
- package/dist/index.js +3567 -3538
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -7,9 +7,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
7
7
|
default: PropType<(() => any) | Component | string> | undefined;
|
|
8
8
|
type: (ObjectConstructor | StringConstructor | FunctionConstructor)[];
|
|
9
9
|
};
|
|
10
|
-
}>, () =>
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
11
|
/**
|
|
14
12
|
* The content to render.
|
|
15
13
|
*/
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { LazyFormFieldProps } from './types';
|
|
2
|
-
declare
|
|
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').
|
|
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: {
|