@tongfun/ui 0.0.1-alpha.13 → 0.0.1-alpha.15
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/dashboard-data-table/types.d.ts +15 -0
- package/dist/{exceljs.min-7ZdqzaDb.js → exceljs.min--w2Gnf2S.js} +1 -1
- package/dist/{index-Djcrydo4.js → index-DeFCl1SX.js} +103540 -94067
- package/dist/index.d.ts +27 -0
- package/dist/{index.es-DidZnnzi.js → index.es-DwBVhTTr.js} +118 -118
- package/dist/index.js +1070 -1033
- package/dist/{jspdf.es.min-DKb_BKff.js → jspdf.es.min-DNbeD7Ag.js} +2 -2
- package/dist/list-filter/types.d.ts +32 -0
- package/dist/lowcode-agent/index.js +1030 -27
- package/dist/mock-region-data-CvYhx8jL.js +39 -0
- package/dist/style.css +1 -1
- package/package.json +2 -1
|
@@ -18,6 +18,8 @@ export interface DashboardDataTableDimension {
|
|
|
18
18
|
fieldId?: string | number
|
|
19
19
|
applicationId?: string | number
|
|
20
20
|
basicDataConfig?: Record<string, unknown>
|
|
21
|
+
relation?: unknown
|
|
22
|
+
enumType?: string
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
export interface DashboardDataTableMetric {
|
|
@@ -25,6 +27,8 @@ export interface DashboardDataTableMetric {
|
|
|
25
27
|
field?: string
|
|
26
28
|
name?: string
|
|
27
29
|
dataType?: string
|
|
30
|
+
fieldType?: string
|
|
31
|
+
enumType?: string
|
|
28
32
|
aggregationType?: 'SUM' | 'COUNT' | 'AVG' | 'MAX' | 'MIN'
|
|
29
33
|
}
|
|
30
34
|
|
|
@@ -52,6 +56,7 @@ export interface DashboardTableFieldMeta {
|
|
|
52
56
|
fieldId?: string | number
|
|
53
57
|
applicationId?: string | number
|
|
54
58
|
basicDataConfig?: Record<string, unknown>
|
|
59
|
+
enumType?: string
|
|
55
60
|
pageId?: string | number
|
|
56
61
|
bizTypeId?: string | number
|
|
57
62
|
labelKey?: string
|
|
@@ -163,6 +168,15 @@ export interface DashboardDataTableProps {
|
|
|
163
168
|
/** 维度/指标按底层 field 互斥;默认关闭以保持公共组件兼容 */
|
|
164
169
|
exclusiveFieldRoles?: boolean
|
|
165
170
|
compact?: boolean
|
|
171
|
+
/** 可下钻字段(列字段名);声明后对应列呈现可点击态,单击发出 cell-click */
|
|
172
|
+
drillFields?: string[]
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/** 单元格单击载荷:行数据、列字段名、行索引 */
|
|
176
|
+
export interface DashboardTableCellClickPayload {
|
|
177
|
+
row: Record<string, unknown>
|
|
178
|
+
field: string
|
|
179
|
+
rowIndex: number
|
|
166
180
|
}
|
|
167
181
|
|
|
168
182
|
export type SchemeSelectTrigger = 'initial' | 'user'
|
|
@@ -172,6 +186,7 @@ export interface SchemeSelectMeta {
|
|
|
172
186
|
}
|
|
173
187
|
|
|
174
188
|
export interface DashboardDataTableEmits {
|
|
189
|
+
(e: 'cell-click', payload: DashboardTableCellClickPayload): void
|
|
175
190
|
(e: 'update:selectedDimensionCodes', value: string[]): void
|
|
176
191
|
(e: 'update:selectedMetricCodes', value: string[]): void
|
|
177
192
|
(e: 'update:conditions', value: ComplexFilterItem[], meta?: { fromScheme?: boolean }): void
|