@tongfun/ui 0.0.1-alpha.14 → 0.0.1-alpha.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.
@@ -168,6 +168,15 @@ export interface DashboardDataTableProps {
168
168
  /** 维度/指标按底层 field 互斥;默认关闭以保持公共组件兼容 */
169
169
  exclusiveFieldRoles?: boolean
170
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
171
180
  }
172
181
 
173
182
  export type SchemeSelectTrigger = 'initial' | 'user'
@@ -177,6 +186,7 @@ export interface SchemeSelectMeta {
177
186
  }
178
187
 
179
188
  export interface DashboardDataTableEmits {
189
+ (e: 'cell-click', payload: DashboardTableCellClickPayload): void
180
190
  (e: 'update:selectedDimensionCodes', value: string[]): void
181
191
  (e: 'update:selectedMetricCodes', value: string[]): void
182
192
  (e: 'update:conditions', value: ComplexFilterItem[], meta?: { fromScheme?: boolean }): void
@@ -1,4 +1,4 @@
1
- import { kY as Ve, ju as De, jt as Kt } from "./index-PN-orn0y.js";
1
+ import { k$ as Ve, ju as De, jt as Kt } from "./index-Bfckxmmd.js";
2
2
  function qe(Ee, Fe) {
3
3
  for (var s = 0; s < Fe.length; s++) {
4
4
  const T = Fe[s];