@dt-frames/ui 2.0.14 → 2.0.16

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 (99) hide show
  1. package/es/assets/imgs/tree/forder-open.svg +1 -0
  2. package/es/assets/imgs/tree/forder.svg +1 -0
  3. package/es/assets/locales/zh.ts +1 -1
  4. package/es/components/curd/index.js +28 -8
  5. package/es/components/curd/src/components/Curd.d.ts +10 -0
  6. package/es/components/curd/src/hooks/useCurd.d.ts +2 -4
  7. package/es/components/curd/src/props.d.ts +5 -1
  8. package/es/components/drawer/index.js +25 -24
  9. package/es/components/form/index.js +56 -40
  10. package/es/components/form/index.less +44 -3
  11. package/es/components/form/src/props.d.ts +3 -3
  12. package/es/components/modal/index.js +8 -143
  13. package/es/components/modal/index.less +23 -0
  14. package/es/components/modal/src/index.d.ts +2 -84
  15. package/es/components/table/index.js +72 -88
  16. package/es/components/table/src/components/TableAction.d.ts +6 -0
  17. package/es/components/table/src/index.d.ts +4 -4
  18. package/es/components/table/src/props.d.ts +1 -1
  19. package/es/components/tree/index.js +197 -93
  20. package/es/components/tree/index.less +75 -13
  21. package/es/components/tree/src/basicProps.d.ts +46 -7
  22. package/es/components/tree/src/components/TreeHeader.d.ts +2 -2
  23. package/es/components/tree/src/hooks/useTree.d.ts +3 -2
  24. package/es/components/tree/src/index.d.ts +120 -29
  25. package/es/components/upload/index.js +79 -75
  26. package/es/components/upload/index.less +19 -5
  27. package/es/components/upload/src/basicProps.d.ts +1 -1
  28. package/es/components/upload/src/index.d.ts +6 -6
  29. package/es/components/upload/src/utils/upload.d.ts +1 -1
  30. package/es/theme/index.js +387 -431
  31. package/es/theme/index.less +24 -0
  32. package/es/theme/src/components/header/components/lock/Lockscreen.d.ts +34 -3
  33. package/es/theme/src/components/header/components/lock/index.d.ts +1 -2
  34. package/es/theme/src/components/header/components/lock/useTime.d.ts +7 -0
  35. package/es/theme/src/components/header/components/size.d.ts +5 -5
  36. package/es/theme/src/components/header/components/user-info.d.ts +7 -0
  37. package/es/theme/src/components/header/index.d.ts +12 -5
  38. package/es/theme/src/components/header/multiple-header.d.ts +12 -5
  39. package/es/theme/src/index.d.ts +63 -13
  40. package/es/theme/src/stores/lockscreen.store.d.ts +7 -0
  41. package/manualContentPath.js +10 -0
  42. package/package.json +1 -1
  43. package/tsconfig.json +1 -1
  44. package/es/packages/ui/src/assets/locales/en.d.ts +0 -103
  45. package/es/packages/ui/src/assets/locales/index.d.ts +0 -2
  46. package/es/packages/ui/src/assets/locales/zh.d.ts +0 -104
  47. package/es/packages/ui/src/components/form/index.d.ts +0 -7
  48. package/es/packages/ui/src/components/form/src/components/FormButtons.d.ts +0 -105
  49. package/es/packages/ui/src/components/form/src/components/FormItem.d.ts +0 -159
  50. package/es/packages/ui/src/components/form/src/components/componentMap.d.ts +0 -4
  51. package/es/packages/ui/src/components/form/src/components/formIcon.d.ts +0 -1223
  52. package/es/packages/ui/src/components/form/src/components/formInputUseDialog.d.ts +0 -911
  53. package/es/packages/ui/src/components/form/src/components/index.d.ts +0 -4
  54. package/es/packages/ui/src/components/form/src/components/radioButton.d.ts +0 -34
  55. package/es/packages/ui/src/components/form/src/enums/index.d.ts +0 -7
  56. package/es/packages/ui/src/components/form/src/hooks/helper.d.ts +0 -14
  57. package/es/packages/ui/src/components/form/src/hooks/useForm.d.ts +0 -6
  58. package/es/packages/ui/src/components/form/src/hooks/useFormActions.d.ts +0 -12
  59. package/es/packages/ui/src/components/form/src/hooks/useFormEvent.d.ts +0 -25
  60. package/es/packages/ui/src/components/form/src/hooks/useFormValue.d.ts +0 -3
  61. package/es/packages/ui/src/components/form/src/hooks/useFormValues.d.ts +0 -11
  62. package/es/packages/ui/src/components/form/src/hooks/useLabelWidth.d.ts +0 -6
  63. package/es/packages/ui/src/components/form/src/props.d.ts +0 -127
  64. package/es/packages/ui/src/components/form/src/types/actions.type.d.ts +0 -15
  65. package/es/packages/ui/src/components/form/src/types/form.type.d.ts +0 -79
  66. package/es/packages/ui/src/components/form/src/types/items.type.d.ts +0 -409
  67. package/es/packages/ui/src/components/iframe/index.d.ts +0 -2
  68. package/es/packages/ui/src/components/modal/index.d.ts +0 -4
  69. package/es/packages/ui/src/components/modal/src/hooks/useModal.d.ts +0 -5
  70. package/es/packages/ui/src/components/modal/src/props.d.ts +0 -101
  71. package/es/packages/ui/src/components/modal/src/types/modal.type.d.ts +0 -17
  72. package/es/packages/ui/src/components/upload/index.d.ts +0 -4
  73. package/es/packages/ui/src/components/upload/src/basicProps.d.ts +0 -87
  74. package/es/packages/ui/src/components/upload/src/components/PdfView.d.ts +0 -9
  75. package/es/packages/ui/src/components/upload/src/components/WordView.d.ts +0 -6
  76. package/es/packages/ui/src/components/upload/src/hooks/useFile.d.ts +0 -16
  77. package/es/packages/ui/src/components/upload/src/index.d.ts +0 -242
  78. package/es/packages/ui/src/components/upload/src/type/file.d.ts +0 -10
  79. package/es/packages/ui/src/components/upload/src/utils/upload.d.ts +0 -2
  80. package/es/packages/ui/src/global.d.ts +0 -7
  81. package/es/packages/ui/src/theme/index.d.ts +0 -12
  82. package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +0 -4
  83. package/es/packages/ui/src/theme/src/enums/index.d.ts +0 -1
  84. package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +0 -34
  85. package/es/packages/ui/src/theme/src/hooks/index.d.ts +0 -6
  86. package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +0 -2
  87. package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +0 -25
  88. package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +0 -29
  89. package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +0 -8
  90. package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +0 -7
  91. package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +0 -9
  92. package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +0 -2
  93. package/es/packages/ui/src/theme/src/stores/index.d.ts +0 -3
  94. package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +0 -25
  95. package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +0 -19
  96. package/es/packages/ui/src/theme/src/types/index.d.ts +0 -3
  97. package/es/packages/ui/src/theme/src/types/menu.type.d.ts +0 -15
  98. package/es/packages/ui/src/theme/src/types/theme.type.d.ts +0 -62
  99. package/es/packages/ui/src/utils/withInstall.d.ts +0 -4
@@ -1,104 +0,0 @@
1
- export declare const ZH: {
2
- UI: {
3
- ADD: string;
4
- DELETE_CONFIRM: string;
5
- CONFIRM_DELETE: string;
6
- NEED_CURD: string;
7
- EDIT: string;
8
- EMPTY: string;
9
- EMPTY_URL: string;
10
- MULTIFY_DELETE_CONFIRM: string;
11
- CONFIRM_MULTIFY_DELETE: string;
12
- ADVANCED: string;
13
- EXPAND: string;
14
- SELECT_ICON: string;
15
- MUSE_FUNCTION: string;
16
- NEED_RENDER: string;
17
- SEARCH: string;
18
- RESET: string;
19
- PLEASE_INPUT: string;
20
- PLEASE_SELECT: string;
21
- PLEASE_SET_ICON: string;
22
- INPUT_FILTER: string;
23
- EXIT_FULLSCREEN: string;
24
- FULLSCREEN: string;
25
- SAVE: string;
26
- CLOSE: string;
27
- ADD_SUCCESS: string;
28
- UPDATE_SUCCESS: string;
29
- MULTIFY: string;
30
- DELETE_SUCCESS: string;
31
- COLUMN_CONTROL: string;
32
- COLUMN_SHOW: string;
33
- INDEX: string;
34
- CHECKBOX: string;
35
- FIXED_TO_LEFT: string;
36
- FIXED_TO_RIGHT: string;
37
- EXPORT: string;
38
- DOWNLOAD_TEMPLATE: string;
39
- EXPORT_CURRENT_PAGE: string;
40
- EXPORT_SELECT_COLUMN: string;
41
- EXPORT_ALL: string;
42
- SELECT_ALL: string;
43
- SETTING_EXPORT_COLUMN: string;
44
- NO_EXPORT_COLUMN: string;
45
- NUMBER: string;
46
- ACTIONS: string;
47
- TOTAL_PAGE: string;
48
- FILTER: string;
49
- EXPAND_ALL: string;
50
- COLLAPSE_ALL: string;
51
- SELECT_ALL1: string;
52
- CANCEL_SELECT_ALL: string;
53
- LEVEL_CONNECTION: string;
54
- LEVEL_SOLATE: string;
55
- LOADING: string;
56
- SUPPORT_FILES: string;
57
- MAX_SIZE: string;
58
- MAX_NUMBER: string;
59
- SUPPORT_TYPES: string;
60
- FILE_UPLOAD: string;
61
- FILE_NAME: string;
62
- FILE_STATUS: string;
63
- PREVIEW: string;
64
- DELETE: string;
65
- HISTORY_UPLOAD: string;
66
- MAX_MB: string;
67
- PRE_UPLOAD: string;
68
- COMPANY_NAME: string;
69
- FILTER_MORE: string;
70
- LARGE_SIZE: string;
71
- MIDDLE_SIZE: string;
72
- SMALL_SIZE: string;
73
- MODIFY_PASSWORD: string;
74
- LOGIN_OUT: string;
75
- REFRESH: string;
76
- CLOSE_CURRENT_TAG: string;
77
- CLOSE_LEFT_TAGS: string;
78
- CLOSE_RIGHT_TAGS: string;
79
- CLOSE_OTHER_TAGS: string;
80
- CLOSE_ALL_TAGE: string;
81
- SETTING_THEME: string;
82
- PROJECT_SETTING: string;
83
- NAV_MODE: string;
84
- PAGE_SHOW: string;
85
- COPY: string;
86
- DRAWER_TIPS: string;
87
- FULL: string;
88
- FIXED: string;
89
- BREAD_CURB: string;
90
- MENU_FILTER: string;
91
- NOTICE: string;
92
- SIZE: string;
93
- SHOW_FULLE: string;
94
- LOCAL: string;
95
- ROUTE_REUSE: string;
96
- SHOW_FOOTER: string;
97
- CONTENT_FIXED_WIDTH: string;
98
- ON: string;
99
- OFF: string;
100
- DOWNLOAD: string;
101
- UNKNOWN_ROUTE: string;
102
- COPY_SUCCESS: string;
103
- };
104
- };
@@ -1,7 +0,0 @@
1
- import DtForm from "./src/index";
2
- import { useForm } from './src/hooks/useForm';
3
- import { FormActionType } from './src/types/actions.type';
4
- import { DtFormButtons } from './src/components';
5
- import { ButtonProps } from './src/types/form.type';
6
- export { DtFormButtons, DtForm, useForm };
7
- export type { FormActionType, ButtonProps };
@@ -1,105 +0,0 @@
1
- import { Recordable } from '@dt-frames/core';
2
- import { PropType } from 'vue';
3
- import { ButtonProps } from '../types/form.type';
4
- declare const _sfc_main: import("vue").DefineComponent<{
5
- mode: {
6
- type: PropType<"search" | "dialog">;
7
- default: string;
8
- };
9
- show: {
10
- type: BooleanConstructor;
11
- default: boolean;
12
- };
13
- showAdvancedButton: {
14
- type: BooleanConstructor;
15
- default: boolean;
16
- };
17
- minShowColumn: {
18
- type: NumberConstructor;
19
- default: number;
20
- };
21
- buttonList: {
22
- type: PropType<ButtonProps[]>;
23
- default: any[];
24
- };
25
- authPrefix: {
26
- type: StringConstructor;
27
- };
28
- isAdvanced: {
29
- type: BooleanConstructor;
30
- default: boolean;
31
- };
32
- colspan: {
33
- type: ObjectConstructor;
34
- };
35
- }, {
36
- props: any;
37
- emits: (event: "handle-method", ...args: any[]) => void;
38
- t: {
39
- (key: string): string;
40
- (key: string, locale: string): string;
41
- (key: string, locale: string, list: unknown[]): string;
42
- (key: string, locale: string, named: Record<string, unknown>): string;
43
- (key: string, list: unknown[]): string;
44
- (key: string, named: Record<string, unknown>): string;
45
- };
46
- advancedRef: import("vue").Ref<{
47
- valueOf: () => boolean;
48
- }>;
49
- key: number;
50
- showAdvanceRef: import("vue").ComputedRef<boolean>;
51
- getAuth: (auth: string) => string | null;
52
- colOpt: import("vue").ComputedRef<{
53
- style: Recordable<any>;
54
- span?: undefined;
55
- } | {
56
- style: Recordable<any>;
57
- span: number;
58
- }>;
59
- getAdvanceClass: import("vue").ComputedRef<(string | {
60
- 'basic-arrow--active': boolean;
61
- })[]>;
62
- toggleAdvanced: () => void;
63
- handleBtnClick: (button: ButtonProps) => void;
64
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "handle-method"[], "handle-method", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
65
- mode: {
66
- type: PropType<"search" | "dialog">;
67
- default: string;
68
- };
69
- show: {
70
- type: BooleanConstructor;
71
- default: boolean;
72
- };
73
- showAdvancedButton: {
74
- type: BooleanConstructor;
75
- default: boolean;
76
- };
77
- minShowColumn: {
78
- type: NumberConstructor;
79
- default: number;
80
- };
81
- buttonList: {
82
- type: PropType<ButtonProps[]>;
83
- default: any[];
84
- };
85
- authPrefix: {
86
- type: StringConstructor;
87
- };
88
- isAdvanced: {
89
- type: BooleanConstructor;
90
- default: boolean;
91
- };
92
- colspan: {
93
- type: ObjectConstructor;
94
- };
95
- }>> & {
96
- "onHandle-method"?: (...args: any[]) => any;
97
- }, {
98
- mode: "search" | "dialog";
99
- show: boolean;
100
- showAdvancedButton: boolean;
101
- minShowColumn: number;
102
- buttonList: ButtonProps[];
103
- isAdvanced: boolean;
104
- }>;
105
- export default _sfc_main;
@@ -1,159 +0,0 @@
1
- import { PropType, Ref } from 'vue';
2
- import { Recordable } from '@dt-frames/core';
3
- import { FormActionType } from '../types/actions.type';
4
- import { FormSchema } from '../types/form.type';
5
- declare const _sfc_main: {
6
- name: string;
7
- inheritAttrs: boolean;
8
- props: {
9
- schema: {
10
- type: PropType<FormSchema>;
11
- default: () => {};
12
- };
13
- formProps: {
14
- type: PropType<Partial<import("vue").ExtractPropTypes<{
15
- mode: {
16
- type: PropType<"search" | "dialog">;
17
- default: string;
18
- };
19
- autoFetch: {
20
- type: BooleanConstructor;
21
- default: boolean;
22
- };
23
- model: {
24
- type: PropType<Recordable<any>>;
25
- default: () => {};
26
- };
27
- layout: {
28
- type: PropType<"vertical" | "inline" | "horizontal">;
29
- default: string;
30
- };
31
- labelWidth: {
32
- type: PropType<string | number>;
33
- default: number;
34
- };
35
- enLabelWidth: {
36
- type: PropType<string | number>;
37
- default: number;
38
- };
39
- labelAlign: {
40
- type: PropType<"left" | "right">;
41
- default: string;
42
- };
43
- labelCol: {
44
- type: PropType<Partial<import("../types/form.type").ColEx>>;
45
- default: () => {};
46
- };
47
- wrapperCol: {
48
- type: PropType<Partial<import("../types/form.type").ColEx>>;
49
- default: () => {};
50
- };
51
- rowProps: {
52
- type: PropType<Partial<import("vue").ExtractPropTypes<{
53
- align: PropType<"stretch" | "bottom" | "top" | "middle">;
54
- justify: PropType<"space-around" | "space-between" | "center" | "end" | "start">;
55
- prefixCls: StringConstructor;
56
- gutter: {
57
- type: PropType<import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter]>;
58
- default: import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter];
59
- };
60
- wrap: {
61
- type: BooleanConstructor;
62
- default: any;
63
- };
64
- }>>>;
65
- default: () => {};
66
- };
67
- colProps: {
68
- type: PropType<Partial<import("../types/form.type").ColEx>>;
69
- };
70
- span: {
71
- type: NumberConstructor;
72
- };
73
- size: {
74
- type: PropType<"middle" | "small" | "large">;
75
- };
76
- disabled: {
77
- type: BooleanConstructor;
78
- default: boolean;
79
- };
80
- compact: {
81
- type: BooleanConstructor;
82
- default: any;
83
- };
84
- schemas: {
85
- type: PropType<FormSchema[]>;
86
- default: () => any[];
87
- };
88
- autoSearchOnEnter: {
89
- type: BooleanConstructor;
90
- default: boolean;
91
- };
92
- minShowColumn: {
93
- type: NumberConstructor;
94
- default: number;
95
- };
96
- showAdvancedButton: {
97
- type: BooleanConstructor;
98
- default: boolean;
99
- };
100
- allowClear: {
101
- type: BooleanConstructor;
102
- default: boolean;
103
- };
104
- scrollToFirstError: {
105
- type: BooleanConstructor;
106
- default: boolean;
107
- };
108
- colon: {
109
- type: BooleanConstructor;
110
- default: boolean;
111
- };
112
- loading: {
113
- type: PropType<{
114
- [key: string]: Ref<boolean>;
115
- }>;
116
- default: () => {};
117
- };
118
- onSearch: {
119
- type: PropType<(params: Recordable<any>) => void>;
120
- default: (params: Recordable<any>) => void;
121
- };
122
- onReset: {
123
- type: PropType<(params: Recordable<any>) => void>;
124
- default: (params: Recordable<any>) => void;
125
- };
126
- buttons: {
127
- type: PropType<boolean | import("../types/form.type").ButtonProps[]>;
128
- default: boolean;
129
- };
130
- resetFunc: {
131
- type: PropType<() => void>;
132
- };
133
- registerInstance: {
134
- type: PropType<(instance: FormActionType) => void>;
135
- };
136
- }>>>;
137
- default: () => {};
138
- };
139
- defaultValues: {
140
- type: PropType<Recordable<any>>;
141
- default: () => {};
142
- };
143
- formModel: {
144
- type: PropType<Recordable<any>>;
145
- default: () => {};
146
- };
147
- setFormModel: {
148
- type: PropType<(key: string, value: any) => void>;
149
- };
150
- formActionType: {
151
- type: PropType<FormActionType>;
152
- };
153
- };
154
- setup(props: any, { emit, slots }: {
155
- emit: any;
156
- slots: any;
157
- }): () => JSX.Element;
158
- };
159
- export default _sfc_main;
@@ -1,4 +0,0 @@
1
- import { Component } from "vue";
2
- import { ComponentType } from "../types/form.type";
3
- declare const componentMap: Map<ComponentType, Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
4
- export { componentMap };