yuang-framework-ui-pc 1.1.42 → 1.1.44

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 (226) hide show
  1. package/es/utils/chart-theme-dark.d.ts +373 -0
  2. package/es/utils/chart-theme-dark.js +397 -0
  3. package/es/utils/chart-theme.d.ts +368 -0
  4. package/es/utils/chart-theme.js +392 -0
  5. package/es/utils/menu-util.d.ts +14 -0
  6. package/es/utils/menu-util.js +78 -0
  7. package/es/utils/message-box.d.ts +25 -0
  8. package/es/utils/message-box.js +98 -0
  9. package/es/utils/message.d.ts +66 -0
  10. package/es/utils/message.js +267 -0
  11. package/es/utils/resolvers.d.ts +18 -0
  12. package/es/utils/resolvers.js +50 -0
  13. package/es/utils/theme-util.d.ts +6 -0
  14. package/es/utils/theme-util.js +42 -0
  15. package/es/utils/validate.d.ts +182 -0
  16. package/es/utils/validate.js +197 -0
  17. package/lib/core.d.ts +3 -0
  18. package/lib/ele-admin-layout/components/layout-tabs.d.ts +5646 -0
  19. package/lib/ele-admin-layout/components/layout-tool.d.ts +2 -0
  20. package/lib/ele-admin-layout/style/index.d.ts +1 -0
  21. package/lib/ele-admin-layout/types.d.ts +54 -0
  22. package/lib/ele-alert/index.d.ts +131 -0
  23. package/lib/ele-alert/props.d.ts +58 -0
  24. package/lib/ele-app/el.d.ts +304 -0
  25. package/lib/ele-app/style/common/index.d.ts +1 -0
  26. package/lib/ele-app/style/overwrite/backtop/index.d.ts +1 -0
  27. package/lib/ele-app/style/overwrite/checkbox/index.d.ts +1 -0
  28. package/lib/ele-app/style/overwrite/date-picker/index.d.ts +1 -0
  29. package/lib/ele-app/style/overwrite/message-box/index.d.ts +1 -0
  30. package/lib/ele-app/style/overwrite/popper/index.d.ts +1 -0
  31. package/lib/ele-app/style/overwrite/select/index.d.ts +1 -0
  32. package/lib/ele-app/style/overwrite/tag/index.d.ts +1 -0
  33. package/lib/ele-app/style/overwrite/tree/index.d.ts +1 -0
  34. package/lib/ele-app/style/scrollbar/index.d.ts +1 -0
  35. package/lib/ele-app/types.d.ts +48 -0
  36. package/lib/ele-avatar-group/props.d.ts +56 -0
  37. package/lib/ele-avatar-group/style/index.d.ts +1 -0
  38. package/lib/ele-avatar-group/types.d.ts +21 -0
  39. package/lib/ele-backtop/props.d.ts +36 -0
  40. package/lib/ele-bar-code/index.d.ts +26 -0
  41. package/lib/ele-bottom-bar/index.d.ts +15 -0
  42. package/lib/ele-bottom-bar/props.d.ts +15 -0
  43. package/lib/ele-breadcrumb/index.d.ts +278 -0
  44. package/lib/ele-breadcrumb/props.d.ts +24 -0
  45. package/lib/ele-breadcrumb/style/index.d.ts +1 -0
  46. package/lib/ele-card/index.d.ts +106 -0
  47. package/lib/ele-card/style/index.d.ts +1 -0
  48. package/lib/ele-check-card/components/card-item.d.ts +37 -0
  49. package/lib/ele-check-card/props.d.ts +49 -0
  50. package/lib/ele-check-card/style/index.d.ts +1 -0
  51. package/lib/ele-check-card/types.d.ts +37 -0
  52. package/lib/ele-config-provider/components/receiver-view.d.ts +71 -0
  53. package/lib/ele-config-provider/props.d.ts +26 -0
  54. package/lib/ele-config-provider/style/index.d.ts +0 -0
  55. package/lib/ele-config-provider/types.d.ts +103 -0
  56. package/lib/ele-copyable/style/index.d.ts +1 -0
  57. package/lib/ele-copyable/types.d.ts +14 -0
  58. package/lib/ele-count-up/style/index.d.ts +0 -0
  59. package/lib/ele-cropper/index.d.ts +2824 -0
  60. package/lib/ele-cropper/props.d.ts +68 -0
  61. package/lib/ele-cropper/style/index.d.ts +1 -0
  62. package/lib/ele-cropper-modal/props.d.ts +58 -0
  63. package/lib/ele-cropper-modal/style/index.d.ts +1 -0
  64. package/lib/ele-dashboard/index.d.ts +14 -0
  65. package/lib/ele-dashboard/style/index.d.ts +1 -0
  66. package/lib/ele-dashboard/types.d.ts +4 -0
  67. package/lib/ele-data-table/props.d.ts +272 -0
  68. package/lib/ele-data-table/style/index.d.ts +1 -0
  69. package/lib/ele-data-table/types.d.ts +253 -0
  70. package/lib/ele-data-table/util.d.ts +172 -0
  71. package/lib/ele-dialog/index.d.ts +1074 -0
  72. package/lib/ele-dialog/style/index.d.ts +1 -0
  73. package/lib/ele-dialog/util.d.ts +52 -0
  74. package/lib/ele-dot/index.d.ts +29 -0
  75. package/lib/ele-dot/props.d.ts +25 -0
  76. package/lib/ele-dot/style/index.d.ts +1 -0
  77. package/lib/ele-drawer/index.d.ts +1170 -0
  78. package/lib/ele-drawer/props.d.ts +184 -0
  79. package/lib/ele-drawer/style/index.d.ts +1 -0
  80. package/lib/ele-dropdown/components/dropdown-menu-item.d.ts +97 -0
  81. package/lib/ele-dropdown/index.d.ts +4846 -0
  82. package/lib/ele-dropdown/types.d.ts +22 -0
  83. package/lib/ele-edit-tag/props.d.ts +55 -0
  84. package/lib/ele-edit-tag/style/index.d.ts +1 -0
  85. package/lib/ele-edit-tag/types.d.ts +9 -0
  86. package/lib/ele-ellipsis/index.d.ts +1660 -0
  87. package/lib/ele-icon-select/types.d.ts +16 -0
  88. package/lib/ele-image-viewer/index.d.ts +635 -0
  89. package/lib/ele-loading/props.d.ts +33 -0
  90. package/lib/ele-loading/types.d.ts +19 -0
  91. package/lib/ele-map-picker/style/index.d.ts +1 -0
  92. package/lib/ele-menus/components/item-title.d.ts +323 -0
  93. package/lib/ele-menus/types.d.ts +107 -0
  94. package/lib/ele-pagination/style/index.d.ts +1 -0
  95. package/lib/ele-pagination/types.d.ts +9 -0
  96. package/lib/ele-printer/index.d.ts +111 -0
  97. package/lib/ele-printer/util.d.ts +25 -0
  98. package/lib/ele-pro-layout/components/pro-iframe.d.ts +39 -0
  99. package/lib/ele-pro-layout/style/index.d.ts +1 -0
  100. package/lib/ele-pro-layout/util.d.ts +88 -0
  101. package/lib/ele-pro-table/components/tool-column.d.ts +3722 -0
  102. package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +39 -0
  103. package/lib/ele-pro-table/style/index.d.ts +1 -0
  104. package/lib/ele-pro-table/types.d.ts +489 -0
  105. package/lib/ele-qr-code/components/canvas-render.d.ts +67 -0
  106. package/lib/ele-qr-code/qrcodegen.d.ts +95 -0
  107. package/lib/ele-qr-code/style/index.d.ts +0 -0
  108. package/lib/ele-qr-code/util.d.ts +27 -0
  109. package/lib/ele-segmented/index.d.ts +485 -0
  110. package/lib/ele-segmented/style/index.d.ts +1 -0
  111. package/lib/ele-split-panel/index.d.ts +192 -0
  112. package/lib/ele-split-panel/props.d.ts +47 -0
  113. package/lib/ele-steps/index.d.ts +638 -0
  114. package/lib/ele-steps/style/index.d.ts +1 -0
  115. package/lib/ele-steps/types.d.ts +14 -0
  116. package/lib/ele-tab-tool/index.d.ts +75 -0
  117. package/lib/ele-tab-tool/props.d.ts +14 -0
  118. package/lib/ele-tab-wrap/components/tab-dropdown.d.ts +5006 -0
  119. package/lib/ele-tab-wrap/props.d.ts +13 -0
  120. package/lib/ele-tab-wrap/style/index.d.ts +0 -0
  121. package/lib/ele-table/index.d.ts +28 -0
  122. package/lib/ele-table/style/index.d.ts +1 -0
  123. package/lib/ele-table-select/props.d.ts +120 -0
  124. package/lib/ele-table-select/style/index.d.ts +1 -0
  125. package/lib/ele-tabs/props.d.ts +88 -0
  126. package/lib/ele-test/index.d.ts +2 -0
  127. package/lib/ele-test/style/index.d.ts +1 -0
  128. package/lib/ele-text/index.d.ts +93 -0
  129. package/lib/ele-text/style/index.d.ts +1 -0
  130. package/lib/ele-text/types.d.ts +35 -0
  131. package/lib/ele-toolbar/index.d.ts +1633 -0
  132. package/lib/ele-tooltip/props.d.ts +187 -0
  133. package/lib/ele-tooltip/style/index.d.ts +1 -0
  134. package/lib/ele-tour/types.d.ts +42 -0
  135. package/lib/ele-tour/util.d.ts +20 -0
  136. package/lib/ele-tree-select/style/index.d.ts +1 -0
  137. package/lib/ele-upload-list/components/list-item.d.ts +902 -0
  138. package/lib/ele-upload-list/props.d.ts +81 -0
  139. package/lib/ele-upload-list/types.d.ts +71 -0
  140. package/lib/ele-virtual-table/components/body-row.d.ts +984 -0
  141. package/lib/ele-virtual-table/components/expand-row.d.ts +19 -0
  142. package/lib/ele-virtual-table/components/footer-row.d.ts +65 -0
  143. package/lib/ele-virtual-table/components/header-cell.d.ts +3929 -0
  144. package/lib/ele-virtual-table/index.d.ts +7882 -0
  145. package/lib/ele-virtual-table/util.d.ts +229 -0
  146. package/lib/ele-watermark/index.d.ts +57 -0
  147. package/lib/ele-watermark/types.d.ts +39 -0
  148. package/lib/ele-xg-player/index.d.ts +22 -0
  149. package/lib/ele-xg-player/style/index.d.ts +1 -0
  150. package/lib/icons/AppstoreAddOutlined.d.ts +2 -0
  151. package/lib/icons/AppstoreOutlined.d.ts +2 -0
  152. package/lib/icons/ArrowLeft.d.ts +2 -0
  153. package/lib/icons/ArrowLeftOutlined.d.ts +2 -0
  154. package/lib/icons/ArrowRight.d.ts +2 -0
  155. package/lib/icons/ArrowRightOutlined.d.ts +2 -0
  156. package/lib/icons/ArrowUp.d.ts +2 -0
  157. package/lib/icons/ArrowUpOutlined.d.ts +2 -0
  158. package/lib/icons/BellOutlined.d.ts +2 -0
  159. package/lib/icons/BookOutlined.d.ts +2 -0
  160. package/lib/icons/CaretDownFilled.d.ts +2 -0
  161. package/lib/icons/CaretUpFilled.d.ts +2 -0
  162. package/lib/icons/CheckOutlined.d.ts +2 -0
  163. package/lib/icons/ClockCircleOutlined.d.ts +2 -0
  164. package/lib/icons/CloudUploadOutlined.d.ts +2 -0
  165. package/lib/icons/ClusterOutlined.d.ts +2 -0
  166. package/lib/icons/CodeOutlined.d.ts +2 -0
  167. package/lib/icons/CompassOutlined.d.ts +2 -0
  168. package/lib/icons/ConnectionOutlined.d.ts +2 -0
  169. package/lib/icons/ControlOutlined.d.ts +2 -0
  170. package/lib/icons/CornerRightFilled.d.ts +2 -0
  171. package/lib/icons/DashboardOutlined.d.ts +2 -0
  172. package/lib/icons/DesktopOutlined.d.ts +2 -0
  173. package/lib/icons/DragOutlined.d.ts +2 -0
  174. package/lib/icons/EditOutlined.d.ts +2 -0
  175. package/lib/icons/EnvironmentOutlined.d.ts +2 -0
  176. package/lib/icons/FileOutlined.d.ts +2 -0
  177. package/lib/icons/FilterFilled.d.ts +2 -0
  178. package/lib/icons/GlobalOutlined.d.ts +2 -0
  179. package/lib/icons/HomeOutlined.d.ts +2 -0
  180. package/lib/icons/LoadingDotOutlined.d.ts +2 -0
  181. package/lib/icons/LoadingOutlined.d.ts +2 -0
  182. package/lib/icons/LockOutlined.d.ts +2 -0
  183. package/lib/icons/LogOutlined.d.ts +2 -0
  184. package/lib/icons/MailOutlined.d.ts +2 -0
  185. package/lib/icons/MenuFoldOutlined.d.ts +2 -0
  186. package/lib/icons/MenuOutlined.d.ts +2 -0
  187. package/lib/icons/MenuUnfoldOutlined.d.ts +2 -0
  188. package/lib/icons/MessageOutlined.d.ts +2 -0
  189. package/lib/icons/MinusCircleOutlined.d.ts +2 -0
  190. package/lib/icons/MoonOutlined.d.ts +2 -0
  191. package/lib/icons/MoreOutlined.d.ts +2 -0
  192. package/lib/icons/PauseFilled.d.ts +2 -0
  193. package/lib/icons/PieChartOutlined.d.ts +2 -0
  194. package/lib/icons/PlusOutlined.d.ts +2 -0
  195. package/lib/icons/ProtectOutlined.d.ts +2 -0
  196. package/lib/icons/QuestionCircleOutlined.d.ts +2 -0
  197. package/lib/icons/ReloadOutlined.d.ts +2 -0
  198. package/lib/icons/SortOutlined.d.ts +2 -0
  199. package/lib/icons/StarFilled.d.ts +2 -0
  200. package/lib/icons/StepForwardFilled.d.ts +2 -0
  201. package/lib/icons/UndoOutlined.d.ts +2 -0
  202. package/lib/icons/UnlockOutlined.d.ts +2 -0
  203. package/lib/icons/VerticalLeftOutlined.d.ts +2 -0
  204. package/lib/icons/WarningOutlined.d.ts +2 -0
  205. package/lib/icons/ZoomOutOutlined.d.ts +2 -0
  206. package/lib/index.d.ts +4 -0
  207. package/lib/installer.d.ts +3 -0
  208. package/lib/lang/en_US.d.ts +4 -0
  209. package/lib/lang/zh_CN.d.ts +4 -0
  210. package/lib/utils/chart-theme-dark.d.ts +373 -0
  211. package/lib/utils/chart-theme.d.ts +368 -0
  212. package/lib/utils/core.cjs +318 -0
  213. package/lib/utils/core.d.ts +168 -0
  214. package/lib/utils/hook.cjs +264 -0
  215. package/lib/utils/hook.d.ts +113 -0
  216. package/lib/utils/menu-util.d.ts +14 -0
  217. package/lib/utils/message-box.d.ts +25 -0
  218. package/lib/utils/message.d.ts +66 -0
  219. package/lib/utils/resolvers.cjs +50 -0
  220. package/lib/utils/resolvers.d.ts +18 -0
  221. package/lib/utils/theme-util.d.ts +6 -0
  222. package/lib/utils/validate.cjs +197 -0
  223. package/lib/utils/validate.d.ts +182 -0
  224. package/lib/yu-framework-slider-captcha-dialog/SliderCaptcha.d.ts +67 -0
  225. package/lib/yu-framework-slider-captcha-dialog/index.d.ts +14 -0
  226. package/package.json +1 -1
@@ -0,0 +1,39 @@
1
+ import { PropType } from 'vue';
2
+ import { StyleValues } from '../../ele-app/types';
3
+ import { HeaderCellStyle, HeaderCellClass } from '../../ele-data-table/types';
4
+ import { CustomRenderProps } from '../../ele-virtual-table/types';
5
+ import { CellRender } from '../../ele-virtual-table/util';
6
+ import { ExportDataItem } from '../types';
7
+
8
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
9
+ /** 列数据 */
10
+ col: {
11
+ type: PropType<ExportDataItem>;
12
+ required: true;
13
+ };
14
+ /** 列索引 */
15
+ columnIndex: NumberConstructor;
16
+ /** 单元格样式 */
17
+ headerCellStyle: PropType<HeaderCellStyle>;
18
+ /** 单元格类名自定义 */
19
+ headerCellClass: PropType<HeaderCellClass>;
20
+ }>, {
21
+ renderOpt: import('vue').ComputedRef<CustomRenderProps>;
22
+ cellStyle: import('vue').ComputedRef<StyleValues | undefined>;
23
+ cellClass: import('vue').ComputedRef<string>;
24
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
25
+ /** 列数据 */
26
+ col: {
27
+ type: PropType<ExportDataItem>;
28
+ required: true;
29
+ };
30
+ /** 列索引 */
31
+ columnIndex: NumberConstructor;
32
+ /** 单元格样式 */
33
+ headerCellStyle: PropType<HeaderCellStyle>;
34
+ /** 单元格类名自定义 */
35
+ headerCellClass: PropType<HeaderCellClass>;
36
+ }>> & Readonly<{}>, {}, {}, {
37
+ CellRender: typeof CellRender;
38
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
39
+ export default _default;
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,489 @@
1
+ import type { EleDataTableInstance, EleVirtualTableInstance, ElePaginationProps, EleDialogProps, ElePrinterProps, EleTableProps } from '../ele-app/plus';
2
+ import type { PaginationTotal } from '../ele-pagination/types';
3
+ import type { DataItem, Column, Columns, Sorter, Filter, TableColumn, TableSize, ResolveFunction } from '../ele-data-table/types';
4
+ import type { BodyColumns } from '../ele-virtual-table/types';
5
+ export type { DataItem, Column, Columns, Sorter, Filter, TableColumn, TableSize, ResolveFunction };
6
+
7
+ /**
8
+ * 分页参数
9
+ */
10
+ export type PageParam = Record<string, number>;
11
+
12
+ /**
13
+ * 搜索参数
14
+ */
15
+ export type QueryParam = Record<keyof any, any>;
16
+
17
+ /**
18
+ * 排序参数列表
19
+ */
20
+ export type OrderParamList = [Record<string, OrderValue>];
21
+
22
+ /**
23
+ * 筛选参数
24
+ */
25
+ export type Filters = Record<string, any>;
26
+
27
+ /**
28
+ * 数据源方法参数
29
+ */
30
+ export interface DatasourceParams {
31
+ /** 页码 */
32
+ currentPage?: number;
33
+ /** 每页显示数量 */
34
+ pageSize?: number;
35
+ /** 分页参数 */
36
+ pageParam: PageParam;
37
+ /** 搜索参数 */
38
+ queryParam: QueryParam;
39
+ /** 排序参数 */
40
+ orderParamList: OrderParamList;
41
+ /** 筛选参数 */
42
+ filters: Filters;
43
+ /** 排序方式 */
44
+ sorter: Sorter;
45
+ /** 筛选条件 */
46
+ filter: Filter;
47
+ /** 树表懒加载父级数据 */
48
+ parent?: DataItem;
49
+ }
50
+
51
+ /**
52
+ * 数据源方法返回结果
53
+ */
54
+ export type DatasourceResult = DataItem[] | Record<string, any> | undefined;
55
+
56
+ /**
57
+ * 数据源方法
58
+ * @param params 参数
59
+ */
60
+ export type DatasourceFunction = (params: DatasourceParams) => Promise<DatasourceResult>;
61
+
62
+ /**
63
+ * 数据源
64
+ */
65
+ export type Datasource = DataItem[] | DatasourceFunction;
66
+
67
+ /**
68
+ * 刷新方法参数
69
+ */
70
+ export interface ReloadParams {
71
+ /** 当前页码 */
72
+ currentPage?: number;
73
+ /** 每页数量 */
74
+ pageSize?: number;
75
+ /** 搜索参数 */
76
+ queryParam?: QueryParam;
77
+ /** 排序方式 */
78
+ sorter?: Sorter;
79
+ /** 筛选条件 */
80
+ filter?: Filter;
81
+ }
82
+
83
+ /**
84
+ * 加载方法
85
+ * @param option 刷新参数
86
+ * @param parent 树表格父级数据
87
+ * @param resolve 树表格懒加载方法
88
+ */
89
+ export type LoadFunction = (option?: ReloadParams, parent?: DataItem, resolve?: ResolveFunction) => void;
90
+
91
+ /**
92
+ * 刷新方法
93
+ * @param option 刷新参数
94
+ * @param parent 树表格父级数据
95
+ * @param resolve 树表格懒加载方法
96
+ */
97
+ export type ReloadFunction = (option?: ReloadParams, parent?: DataItem, resolve?: ResolveFunction) => void;
98
+
99
+ /**
100
+ * 排序的值
101
+ */
102
+ export type OrderValue = string | number | boolean | null | undefined;
103
+
104
+ /**
105
+ * 请求参数设置
106
+ */
107
+ export interface RequestOption {
108
+ /** 页码参数名称 */
109
+ currentPageKey?: string;
110
+ /** 每页数量参数名称 */
111
+ pageSizeKey?: string;
112
+ /** 排序字段参数名称 */
113
+ orderPropertyKey?: string;
114
+ /** 排序方式参数名称 */
115
+ orderDirectionKey?: string;
116
+ /** 升序的排序值 */
117
+ ascValue?: OrderValue;
118
+ /** 降序的排序值 */
119
+ descValue?: OrderValue;
120
+ }
121
+
122
+ /**
123
+ * 响应参数设置
124
+ */
125
+ export interface ResponseOption {
126
+ /** 数据列表字段名称 */
127
+ recordsKey?: string;
128
+ /** 数据总数字段名称 */
129
+ totalCountKey?: string;
130
+ }
131
+
132
+ /**
133
+ * 响应数据解析方法
134
+ */
135
+ export type ParseData = (data: unknown) => DatasourceResult;
136
+
137
+ /**
138
+ * 排序方式封装
139
+ */
140
+ export interface OrderItem {
141
+ /** 排序字段名 */
142
+ field: string;
143
+ /** 是否是降序 */
144
+ descend: boolean;
145
+ /** 自定义排序方法 */
146
+ sortMethod?: (a: DataItem, b: DataItem) => number;
147
+ }
148
+
149
+ /**
150
+ * 渲染完成事件参数
151
+ */
152
+ export interface DoneParams<T> {
153
+ /** 当前页数据 */
154
+ records: T[];
155
+ /** 总数量 */
156
+ totalCount?: PaginationTotal;
157
+ /** 当前页码 */
158
+ currentPage?: number;
159
+ /** 数据源原始数据 */
160
+ response?: any;
161
+ }
162
+
163
+ /**
164
+ * 渲染完成事件
165
+ */
166
+ export type DoneFunction<T> = (
167
+ /** 返回结果 */
168
+ result: DoneParams<T>,
169
+ /** 树形表格时父级数据 */
170
+ parent?: T
171
+ ) => void;
172
+
173
+ /**
174
+ * 分页组件属性
175
+ */
176
+ export interface TablePagination extends ElePaginationProps {
177
+ /** 是否自动修正页码 */
178
+ autoAmend?: boolean;
179
+ }
180
+
181
+ /**
182
+ * 内置工具按钮
183
+ */
184
+ export type TableTool = 'reload' | 'size' | 'columns' | 'maximized' | 'export' | 'print' | string;
185
+
186
+ /**
187
+ * 列配置
188
+ */
189
+ export interface ColItem {
190
+ /** 列配置标识 */
191
+ uid: string;
192
+ /** 标题 */
193
+ label?: string;
194
+ /** 是否选中 */
195
+ checked?: boolean;
196
+ /** 是否固定 */
197
+ fixed?: boolean | string;
198
+ /** 子级数据 */
199
+ children?: ColItem[];
200
+ /** 列类型 */
201
+ type?: string;
202
+ /** 列宽 */
203
+ width?: number | string;
204
+ }
205
+
206
+ /**
207
+ * 请求回调参数
208
+ */
209
+ export type FetchCallback = (options: DatasourceParams) => void;
210
+
211
+ /**
212
+ * 请求方法
213
+ */
214
+ export type FetchFunction = (callback: FetchCallback) => void;
215
+
216
+ /**
217
+ * 前端分页排序方法返回结果
218
+ */
219
+ export interface ReloadDataResult {
220
+ /** 当前数据 */
221
+ records: DataItem[];
222
+ /** 当前页码 */
223
+ currentPage: number;
224
+ /** 总数量 */
225
+ totalCount: number;
226
+ }
227
+
228
+ /**
229
+ * 请求结果
230
+ */
231
+ export interface ResponseResult {
232
+ /** 当前数据 */
233
+ records?: DataItem[];
234
+ /** 总数量 */
235
+ totalCount?: number;
236
+ }
237
+
238
+ /**
239
+ * 复合属性类型
240
+ */
241
+ export type ProProps<T extends Record<keyof any, any>> = boolean | T;
242
+
243
+ /**
244
+ * 表格状态
245
+ */
246
+ export interface TableState {
247
+ /** 当前排序参数 */
248
+ sorter: Sorter;
249
+ /** 当前筛选参数 */
250
+ filter: Filter;
251
+ /** 当前搜索参数 */
252
+ queryParam: QueryParam;
253
+ }
254
+
255
+ /**
256
+ * 表格组件实例
257
+ */
258
+ export type TableViewInstance = EleDataTableInstance | EleVirtualTableInstance | null;
259
+
260
+ /**
261
+ * 导出的数据来源类型
262
+ */
263
+ export type ExportDataType = 'selections' | 'pageData' | 'data';
264
+
265
+ /**
266
+ * 导出主体数据节点
267
+ */
268
+ export interface ExportBodyNode {
269
+ /** 数据 */
270
+ row: DataItem;
271
+ /** 索引 */
272
+ index: number;
273
+ /** 所处深度 */
274
+ level: number;
275
+ /** 子级数量 */
276
+ childSize: number;
277
+ }
278
+
279
+ /**
280
+ * 导出的数据每一项
281
+ */
282
+ export interface ExportDataItem {
283
+ /** 唯一值 */
284
+ key?: string;
285
+ /** 行数据 */
286
+ row?: DataItem;
287
+ /** 行索引 */
288
+ index: number;
289
+ /** 列配置 */
290
+ column?: Column;
291
+ /** 文本 */
292
+ text?: string;
293
+ /** 所占列数 */
294
+ colspan?: number;
295
+ /** 所占行数 */
296
+ rowspan?: number;
297
+ /** 是否是展开行的单元格 */
298
+ isExpandCell?: boolean;
299
+ /** 是否显示树展开图标的单元格 */
300
+ isTreeCell?: boolean;
301
+ /** 是否是树叶子节点 */
302
+ isTreeLeaf?: boolean;
303
+ /** 树层级缩进 */
304
+ indent?: number;
305
+ /** 是否是层级序号 */
306
+ isTreeIndex?: boolean;
307
+ /** 层级序号是否隐藏左边框 */
308
+ hideLeftBorder?: boolean;
309
+ /** 层级序号是否隐藏右边框 */
310
+ hideRightBorder?: boolean;
311
+ }
312
+
313
+ /**
314
+ * 导出数据封装返回结果
315
+ */
316
+ export interface ExportDataResult {
317
+ /** 表头数据 */
318
+ headerData: ExportDataItem[][];
319
+ /** 主体数据 */
320
+ bodyData: ExportDataItem[][];
321
+ /** 表尾数据 */
322
+ footerData: ExportDataItem[][];
323
+ /** 主体列配置 */
324
+ bodyCols: BodyColumns;
325
+ }
326
+
327
+ /**
328
+ * 导出数据前的钩子函数的参数
329
+ */
330
+ export interface BeforeExportParams {
331
+ /** 导出的数据 */
332
+ data: DataItem[];
333
+ /** 导出的数据来源类型 */
334
+ dataType: ExportDataType;
335
+ /** 导出的列配置 */
336
+ columns?: Columns;
337
+ /** 导出的表头数据封装 */
338
+ headerData: ExportDataItem[][];
339
+ /** 导出的主体数据封装 */
340
+ bodyData: ExportDataItem[][];
341
+ /** 导出的页脚数据封装 */
342
+ footerData: ExportDataItem[][];
343
+ /** 主体列配置 */
344
+ bodyCols: BodyColumns;
345
+ /** 文件名 */
346
+ fileName?: string;
347
+ /** 关闭确定按钮的加载状态 */
348
+ hideLoading: () => void;
349
+ /** 关闭弹窗 */
350
+ closeModal: () => void;
351
+ /** 导出的列配置(含未勾选的列) */
352
+ tableColumns?: Columns;
353
+ /** 是否导出表头 */
354
+ showHeader?: boolean;
355
+ /** 是否导出表尾 */
356
+ showFooter?: boolean;
357
+ /** 是否展示层级序号 */
358
+ showTreeIndex?: boolean;
359
+ }
360
+
361
+ /**
362
+ * 导出数据前的钩子函数
363
+ */
364
+ export type BeforeExport = (params: BeforeExportParams) => boolean | void;
365
+
366
+ /**
367
+ * 导出配置
368
+ */
369
+ export interface ExportConfig {
370
+ /** 弹窗参数 */
371
+ modalProps?: EleDialogProps;
372
+ /** 表格全部数据 */
373
+ datasource?: Datasource;
374
+ /** 导出前的钩子函数 */
375
+ beforeExport?: BeforeExport;
376
+ /** 默认数据类型 */
377
+ dataType?: ExportDataType;
378
+ /** 默认文件名 */
379
+ fileName?: string;
380
+ /** 重设导出的列 */
381
+ columns?: Columns;
382
+ /** 默认是否导出表头 */
383
+ showHeader?: boolean;
384
+ /** 默认是否导出表尾 */
385
+ showFooter?: boolean;
386
+ /** 默认是否展示层级序号 */
387
+ showTreeIndex?: boolean;
388
+ }
389
+
390
+ /**
391
+ * 打印配置
392
+ */
393
+ export interface PrintConfig {
394
+ /** 弹窗参数 */
395
+ modalProps?: EleDialogProps;
396
+ /** 打印组件参数 */
397
+ printerProps?: ElePrinterProps;
398
+ /** 打印表格参数 */
399
+ tableProps?: EleTableProps;
400
+ /** 表格全部数据 */
401
+ datasource?: Datasource;
402
+ /** 打印前的钩子函数 */
403
+ beforePrint?: BeforeExport;
404
+ /** 默认数据类型 */
405
+ dataType?: ExportDataType;
406
+ /** 重设打印的列 */
407
+ columns?: Columns;
408
+ /** 默认是否打印表头 */
409
+ showHeader?: boolean;
410
+ /** 默认是否打印表尾 */
411
+ showFooter?: boolean;
412
+ /** 默认是否展示层级序号 */
413
+ showTreeIndex?: boolean;
414
+ }
415
+
416
+ /**
417
+ * 打印参数
418
+ */
419
+ export interface TablePrintOptions extends ExportDataResult {
420
+ /** 是否开始打印 */
421
+ printing: boolean;
422
+ /** 是否有表头 */
423
+ hasHeader: boolean;
424
+ /** 是否有表尾 */
425
+ hasFooter: boolean;
426
+ /** 打印的数据 */
427
+ data: DataItem[];
428
+ }
429
+
430
+ /**
431
+ * 导出方法参数
432
+ */
433
+ export interface TableExportParams {
434
+ /** 打印的数据 */
435
+ data?: DataItem[];
436
+ /** 打印的列 */
437
+ columns?: Columns;
438
+ /** 是否打印表头 */
439
+ showHeader?: boolean;
440
+ /** 是否打印表尾 */
441
+ showFooter?: boolean;
442
+ /** 是否展示层级序号 */
443
+ showTreeIndex?: boolean;
444
+ /** 数据的来源类型 */
445
+ dataType?: ExportDataType;
446
+ /** 导出的文件名 */
447
+ fileName?: string;
448
+ }
449
+
450
+ /**
451
+ * 缓存的名称
452
+ */
453
+ export type CacheKey = string | undefined;
454
+
455
+ /**
456
+ * 国际化
457
+ */
458
+ export interface TableLocale {
459
+ refresh: string;
460
+ sizes: string;
461
+ columns: string;
462
+ maximized: string;
463
+ export: string;
464
+ print: string;
465
+ sizeLarge: string;
466
+ sizeDefault: string;
467
+ sizeSmall: string;
468
+ columnTitle: string;
469
+ columnReset: string;
470
+ columnUntitled: string;
471
+ columnIndex: string;
472
+ columnExpand: string;
473
+ columnFixedLeft: string;
474
+ columnFixedRight: string;
475
+ columnWidth: string;
476
+ exportOk: string;
477
+ exportCancel: string;
478
+ exportFileName: string;
479
+ exportFileNamePlaceholder: string;
480
+ exportSelectData: string;
481
+ exportSelectColumn: string;
482
+ exportDataTypePage: string;
483
+ exportDataTypeSelected: string;
484
+ exportDataTypeAll: string;
485
+ exportOther: string;
486
+ exportOtherHeader: string;
487
+ exportOtherFooter: string;
488
+ exportOtherTreeIndex: string;
489
+ }
@@ -0,0 +1,67 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ value: StringConstructor;
3
+ size: {
4
+ type: NumberConstructor;
5
+ default: number;
6
+ };
7
+ level: {
8
+ type: import('vue').PropType<import('../types').Level>;
9
+ default: string;
10
+ };
11
+ bgColor: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ fgColor: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ margin: {
20
+ type: NumberConstructor;
21
+ default: number;
22
+ };
23
+ imageSettings: import('vue').PropType<import('../types').ImageSettings>;
24
+ customStyle: import('vue').PropType<import('../../ele-app/types').StyleValue>;
25
+ tag: import('vue').PropType<import('../types').QrCodeTag>;
26
+ }>, {
27
+ imgData: import('vue').Ref<string, string>;
28
+ canvasRef: import('vue').Ref<HTMLCanvasElement | null, HTMLCanvasElement | null>;
29
+ imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
30
+ render: () => void;
31
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
32
+ done: () => boolean;
33
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
34
+ value: StringConstructor;
35
+ size: {
36
+ type: NumberConstructor;
37
+ default: number;
38
+ };
39
+ level: {
40
+ type: import('vue').PropType<import('../types').Level>;
41
+ default: string;
42
+ };
43
+ bgColor: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ fgColor: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ margin: {
52
+ type: NumberConstructor;
53
+ default: number;
54
+ };
55
+ imageSettings: import('vue').PropType<import('../types').ImageSettings>;
56
+ customStyle: import('vue').PropType<import('../../ele-app/types').StyleValue>;
57
+ tag: import('vue').PropType<import('../types').QrCodeTag>;
58
+ }>> & Readonly<{
59
+ onDone?: (() => any) | undefined;
60
+ }>, {
61
+ margin: number;
62
+ size: number;
63
+ level: import('../types').Level;
64
+ bgColor: string;
65
+ fgColor: string;
66
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
67
+ export default _default;
@@ -0,0 +1,95 @@
1
+ declare namespace qrcodegen {
2
+ type bit = number;
3
+ type byte = number;
4
+ type int = number;
5
+ export class QrCode {
6
+ readonly version: int;
7
+ readonly errorCorrectionLevel: QrCode.Ecc;
8
+ static encodeText(text: string, ecl: QrCode.Ecc): QrCode;
9
+ static encodeBinary(data: Readonly<Array<byte>>, ecl: QrCode.Ecc): QrCode;
10
+ static encodeSegments(segs: Readonly<Array<QrSegment>>, ecl: QrCode.Ecc, minVersion?: int, maxVersion?: int, mask?: int, boostEcl?: boolean): QrCode;
11
+ readonly size: int;
12
+ readonly mask: int;
13
+ private readonly modules;
14
+ private readonly isFunction;
15
+ constructor(version: int, errorCorrectionLevel: QrCode.Ecc, dataCodewords: Readonly<Array<byte>>, msk: int);
16
+ getModule(x: int, y: int): boolean;
17
+ getModules(): boolean[][];
18
+ private drawFunctionPatterns;
19
+ private drawFormatBits;
20
+ private drawVersion;
21
+ private drawFinderPattern;
22
+ private drawAlignmentPattern;
23
+ private setFunctionModule;
24
+ private addEccAndInterleave;
25
+ private drawCodewords;
26
+ private applyMask;
27
+ private getPenaltyScore;
28
+ private getAlignmentPatternPositions;
29
+ private static getNumRawDataModules;
30
+ private static getNumDataCodewords;
31
+ private static reedSolomonComputeDivisor;
32
+ private static reedSolomonComputeRemainder;
33
+ private static reedSolomonMultiply;
34
+ private finderPenaltyCountPatterns;
35
+ private finderPenaltyTerminateAndCount;
36
+ private finderPenaltyAddHistory;
37
+ static readonly MIN_VERSION: int;
38
+ static readonly MAX_VERSION: int;
39
+ private static readonly PENALTY_N1;
40
+ private static readonly PENALTY_N2;
41
+ private static readonly PENALTY_N3;
42
+ private static readonly PENALTY_N4;
43
+ private static readonly ECC_CODEWORDS_PER_BLOCK;
44
+ private static readonly NUM_ERROR_CORRECTION_BLOCKS;
45
+ }
46
+ export class QrSegment {
47
+ readonly mode: QrSegment.Mode;
48
+ readonly numChars: int;
49
+ private readonly bitData;
50
+ static makeBytes(data: Readonly<Array<byte>>): QrSegment;
51
+ static makeNumeric(digits: string): QrSegment;
52
+ static makeAlphanumeric(text: string): QrSegment;
53
+ static makeSegments(text: string): Array<QrSegment>;
54
+ static makeEci(assignVal: int): QrSegment;
55
+ static isNumeric(text: string): boolean;
56
+ static isAlphanumeric(text: string): boolean;
57
+ constructor(mode: QrSegment.Mode, numChars: int, bitData: Array<bit>);
58
+ getData(): Array<bit>;
59
+ static getTotalBits(segs: Readonly<Array<QrSegment>>, version: int): number;
60
+ private static toUtf8ByteArray;
61
+ private static readonly NUMERIC_REGEX;
62
+ private static readonly ALPHANUMERIC_REGEX;
63
+ private static readonly ALPHANUMERIC_CHARSET;
64
+ }
65
+ export {};
66
+ }
67
+ declare namespace qrcodegen.QrCode {
68
+ type int = number;
69
+ export class Ecc {
70
+ readonly ordinal: int;
71
+ readonly formatBits: int;
72
+ static readonly LOW: Ecc;
73
+ static readonly MEDIUM: Ecc;
74
+ static readonly QUARTILE: Ecc;
75
+ static readonly HIGH: Ecc;
76
+ private constructor();
77
+ }
78
+ export {};
79
+ }
80
+ declare namespace qrcodegen.QrSegment {
81
+ type int = number;
82
+ export class Mode {
83
+ readonly modeBits: int;
84
+ private readonly numBitsCharCount;
85
+ static readonly NUMERIC: Mode;
86
+ static readonly ALPHANUMERIC: Mode;
87
+ static readonly BYTE: Mode;
88
+ static readonly KANJI: Mode;
89
+ static readonly ECI: Mode;
90
+ private constructor();
91
+ numCharCountBits(ver: int): int;
92
+ }
93
+ export {};
94
+ }
95
+ export default qrcodegen;
File without changes