@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.
@@ -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
@@ -1,4 +1,4 @@
1
- import { kJ as Ve, jk as De, jj as Kt } from "./index-Djcrydo4.js";
1
+ import { k$ as Ve, jv as De, ju as Kt } from "./index-DeFCl1SX.js";
2
2
  function qe(Ee, Fe) {
3
3
  for (var s = 0; s < Fe.length; s++) {
4
4
  const T = Fe[s];