@dazhicheng/ui 1.5.3 → 1.5.4

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.
Files changed (44) hide show
  1. package/dist/components/tt-button/index.d.ts +476 -476
  2. package/dist/components/tt-button/index.vue.d.ts +272 -272
  3. package/dist/components/tt-checkbox/index.d.ts +5 -5
  4. package/dist/components/tt-checkbox/index.vue.d.ts +2 -2
  5. package/dist/components/tt-drawer/index.d.ts +540 -540
  6. package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +297 -297
  7. package/dist/components/tt-form/src/form/RenderContent.vue.d.ts +2 -2
  8. package/dist/components/tt-form/src/form-render/dependencies.d.ts +118 -118
  9. package/dist/components/tt-form-item-error-tooltip/index.d.ts +196 -196
  10. package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +98 -98
  11. package/dist/components/tt-icon/index.d.ts +3 -3
  12. package/dist/components/tt-icon/index.vue.d.ts +1 -1
  13. package/dist/components/tt-image/index.d.ts +5 -5
  14. package/dist/components/tt-image/src/components/ImageViewer.d.ts +2 -2
  15. package/dist/components/tt-image/tt-image.d.ts +5 -5
  16. package/dist/components/tt-loading/index.d.ts +3 -3
  17. package/dist/components/tt-loading/src/loading.vue.d.ts +3 -3
  18. package/dist/components/tt-modal/index.d.ts +184 -184
  19. package/dist/components/tt-modal/src/RenderModal.vue.d.ts +101 -101
  20. package/dist/components/tt-modal/src/components/ModalWrapper.vue.d.ts +10 -10
  21. package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +33 -33
  22. package/dist/components/tt-part/index.d.ts +12 -12
  23. package/dist/components/tt-part/index.vue.d.ts +4 -4
  24. package/dist/components/tt-select/src/Select.vue.d.ts +89 -89
  25. package/dist/components/tt-select/src/components/SelectTable.vue.d.ts +7 -7
  26. package/dist/components/tt-select/src/components/Table.vue.d.ts +9 -9
  27. package/dist/components/tt-table/src/Table.vue.d.ts +183 -177
  28. package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +202 -196
  29. package/dist/components/tt-table/src/hooks/useLeftRightSlot.d.ts +128 -128
  30. package/dist/components/tt-table/src/hooks/usePagination.d.ts +2 -2
  31. package/dist/components/tt-table/src/hooks/useTableRender.d.ts +1 -3
  32. package/dist/components/tt-table/src/props.d.ts +7 -4
  33. package/dist/components/tt-table/src/toolProps.d.ts +6 -2
  34. package/dist/components/tt-table/src/types/table.d.ts +2 -6
  35. package/dist/components/tt-table/src/types/tableTools.d.ts +2 -13
  36. package/dist/components/tt-text/index.d.ts +3 -3
  37. package/dist/components/tt-text/index.vue.d.ts +1 -1
  38. package/dist/components/tt-validate/src/Field.d.ts +4 -4
  39. package/dist/components/tt-validate/src/Form.d.ts +1 -1
  40. package/dist/components/tt-validate/src/utils/assertions.d.ts +1 -1
  41. package/dist/components/types.d.ts +2 -0
  42. package/dist/index.js +5968 -6003
  43. package/dist/style.css +1 -1
  44. package/package.json +1 -1
@@ -55,7 +55,7 @@ export declare const tableProps: {
55
55
  * @deprecated
56
56
  */
57
57
  resultCode: {
58
- type: (NumberConstructor | StringConstructor)[];
58
+ type: (StringConstructor | NumberConstructor)[];
59
59
  default: number;
60
60
  };
61
61
  /** 请求后的回调 */
@@ -214,8 +214,11 @@ export declare const tableProps: {
214
214
  };
215
215
  /** 是否手动触发查询事件 */
216
216
  isHanderSubmit: any;
217
- /** 储存的key */
218
- columnsKey: any;
217
+ /** 储存的key值,支持函数动态获取 */
218
+ columnsKey: {
219
+ type: PropType<string | (() => string)>;
220
+ default: string;
221
+ };
219
222
  /** 是否开启服务端缓存 */
220
223
  useHttpCache: {
221
224
  type: BooleanConstructor;
@@ -382,7 +385,7 @@ export declare const tableOtherProps: {
382
385
  * 表格的高度;支持铺满父容器或者固定高度,如果设置 auto 为铺满父容器(如果设置为 auto,则必须确保存在父节点且不允许存在相邻元素)
383
386
  */
384
387
  height: {
385
- type: (NumberConstructor | StringConstructor)[];
388
+ type: (StringConstructor | NumberConstructor)[];
386
389
  default: undefined;
387
390
  };
388
391
  /**
@@ -1,3 +1,4 @@
1
+ import { PropType } from 'vue';
1
2
  export declare const toolProps: {
2
3
  /** 是否显示设置 */
3
4
  showSetting: {
@@ -14,6 +15,9 @@ export declare const toolProps: {
14
15
  type: BooleanConstructor;
15
16
  default: boolean;
16
17
  };
17
- /** 储存的key */
18
- columnsKey: any;
18
+ /** 储存的key,支持函数动态获取 */
19
+ columnsKey: {
20
+ type: PropType<string | (() => string)>;
21
+ default: string;
22
+ };
19
23
  };
@@ -151,8 +151,8 @@ export type TtTableProps = {
151
151
  modelValue?: Array<Recordable>;
152
152
  /** form-methods */
153
153
  formApi?: Partial<TtExtendedFormApi>;
154
- /** 储存的列key */
155
- columnsKey?: string;
154
+ /** 储存的列key值,支持函数动态获取 */
155
+ columnsKey?: string | (() => string);
156
156
  /**
157
157
  * 是否显示设置按钮icon
158
158
  * @default true
@@ -163,10 +163,6 @@ export type TtTableProps = {
163
163
  * @default true
164
164
  */
165
165
  showSetColumn?: boolean;
166
- /** 是否显示全屏 */
167
- showFullScreen?: boolean;
168
- /** 是否全屏 */
169
- fullscreen?: boolean;
170
166
  /** 左侧插槽的宽度 */
171
167
  leftSlotWidth?: number;
172
168
  /** 右侧插槽的宽度 */
@@ -1,6 +1,3 @@
1
- import { VxeGridPropTypes } from 'vxe-table';
2
- export type TtTableToolsRowHeightValue = string | number | boolean;
3
- export type TtTableToolsDisabledType = "export" | "import";
4
1
  export type TtTableToolsProps = {
5
2
  /** 是否显示设置 */
6
3
  showSetting?: boolean;
@@ -8,14 +5,6 @@ export type TtTableToolsProps = {
8
5
  showRefresh?: boolean;
9
6
  /** 是否显示列设置按钮 */
10
7
  showSetColumn?: boolean;
11
- /** 储存的key */
12
- columnsKey?: string;
13
- /** 是否开启本地缓存 */
14
- useCache?: boolean;
15
- /** 刷新按钮icon */
16
- refreshIcon?: string;
17
- /** 列设置icon */
18
- columnIcon?: string;
19
- /** 表格的size */
20
- size?: VxeGridPropTypes.Size;
8
+ /** 储存的key,支持函数动态获取 */
9
+ columnsKey?: string | (() => string);
21
10
  };
@@ -13,11 +13,11 @@ export declare const TtText: import('../../../../utils/src').SFCWithInstall<{
13
13
  }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
14
14
  placement: string;
15
15
  visible: boolean;
16
- copy: boolean;
17
16
  toolTip: boolean;
18
17
  toolTipLine: number;
19
18
  toolTipMaxWidth: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
20
19
  toolTipMaxHeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
20
+ copy: boolean;
21
21
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
22
22
  P: {};
23
23
  B: {};
@@ -38,11 +38,11 @@ export declare const TtText: import('../../../../utils/src').SFCWithInstall<{
38
38
  }> & Readonly<{}>, {}, {}, {}, {}, {
39
39
  placement: string;
40
40
  visible: boolean;
41
- copy: boolean;
42
41
  toolTip: boolean;
43
42
  toolTipLine: number;
44
43
  toolTipMaxWidth: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
45
44
  toolTipMaxHeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
45
+ copy: boolean;
46
46
  }>;
47
47
  __isFragment?: never;
48
48
  __isTeleport?: never;
@@ -60,11 +60,11 @@ export declare const TtText: import('../../../../utils/src').SFCWithInstall<{
60
60
  }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
61
61
  placement: string;
62
62
  visible: boolean;
63
- copy: boolean;
64
63
  toolTip: boolean;
65
64
  toolTipLine: number;
66
65
  toolTipMaxWidth: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
67
66
  toolTipMaxHeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
67
+ copy: boolean;
68
68
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
69
69
  $slots: Readonly<{
70
70
  default: () => any;
@@ -35,11 +35,11 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
35
35
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
36
36
  placement: string;
37
37
  visible: boolean;
38
- copy: boolean;
39
38
  toolTip: boolean;
40
39
  toolTipLine: number;
41
40
  toolTipMaxWidth: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
42
41
  toolTipMaxHeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
42
+ copy: boolean;
43
43
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
44
44
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
45
45
  export default _default;
@@ -35,7 +35,7 @@ declare const FieldImpl: import('vue').DefineComponent<import('vue').ExtractProp
35
35
  * @default undefined
36
36
  */
37
37
  as: {
38
- type: (ObjectConstructor | StringConstructor)[];
38
+ type: (StringConstructor | ObjectConstructor)[];
39
39
  default: undefined;
40
40
  };
41
41
  /**
@@ -222,7 +222,7 @@ declare const FieldImpl: import('vue').DefineComponent<import('vue').ExtractProp
222
222
  * @default undefined
223
223
  */
224
224
  as: {
225
- type: (ObjectConstructor | StringConstructor)[];
225
+ type: (StringConstructor | ObjectConstructor)[];
226
226
  default: undefined;
227
227
  };
228
228
  /**
@@ -393,10 +393,10 @@ declare const FieldImpl: import('vue').DefineComponent<import('vue').ExtractProp
393
393
  default: boolean;
394
394
  };
395
395
  }>> & Readonly<{}>, {
396
- label: string;
397
396
  modelValue: any;
398
- 'onUpdate:modelValue': ((e: any) => unknown) | undefined;
397
+ label: string;
399
398
  rules: RuleExpression<unknown>;
399
+ 'onUpdate:modelValue': ((e: any) => unknown) | undefined;
400
400
  modelModifiers: any;
401
401
  as: string | Record<string, any>;
402
402
  validateOnMount: boolean;
@@ -234,8 +234,8 @@ declare const FormImpl: import('vue').DefineComponent<import('vue').ExtractPropT
234
234
  default: string;
235
235
  };
236
236
  }>> & Readonly<{}>, {
237
- onSubmit: SubmissionHandler<GenericObject>;
238
237
  name: string;
238
+ onSubmit: SubmissionHandler<GenericObject>;
239
239
  initialValues: Record<string, any>;
240
240
  as: string | null;
241
241
  validateOnMount: boolean;
@@ -3,7 +3,7 @@ import { Locator } from '../types';
3
3
  export declare const isClient: boolean;
4
4
  export declare function isLocator(value: unknown): value is Locator;
5
5
  export declare function isStandardSchema(value: unknown): value is StandardSchemaV1;
6
- export declare function hasCheckedAttr(type: unknown): type is "checkbox" | "radio";
6
+ export declare function hasCheckedAttr(type: unknown): type is "radio" | "checkbox";
7
7
  export declare function isContainerValue(value: unknown): value is Record<string, unknown>;
8
8
  /**
9
9
  * True if the value is an empty object or array
@@ -9,6 +9,8 @@ export type TtUiGlobalConfig = {
9
9
  */
10
10
  userId?: string | number;
11
11
  table?: {
12
+ /** 自定义列服务端配置的key,支持函数动态获取 */
13
+ columnsKey?: string | (() => string);
12
14
  /** 自定义列服务端配置接口 - 获取 */
13
15
  getColumnsApi?: (params: {
14
16
  permissionOnlyCode: string;