@wx-design/components 1.1.11 → 1.1.13
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/es/core/Table/index.vue.d.ts +1 -0
- package/es/index.mjs +1725 -1723
- package/es/style.css +1 -1
- package/lib/core/Table/index.vue.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/types/table/column.d.ts +2 -0
- package/types/table/table.d.ts +3 -1
package/package.json
CHANGED
package/types/table/column.d.ts
CHANGED
|
@@ -197,6 +197,8 @@ export type SabCellEditorParams =
|
|
|
197
197
|
|
|
198
198
|
// 弹出层配置
|
|
199
199
|
export type SabPopoverParams = Partial<PopoverProps & DialogProps> & {
|
|
200
|
+
// 触发元素, cell 整个单元格,buttton 按钮,默认 button
|
|
201
|
+
triggerEl?: 'button' | 'cell'
|
|
200
202
|
// 触发事件,默认 click
|
|
201
203
|
// 如果 showType === dialog 则只支持 click
|
|
202
204
|
trigger?: "click" | "hover" | "focus" | "contextmenu";
|
package/types/table/table.d.ts
CHANGED
|
@@ -75,8 +75,10 @@ export type SabTableProps<D = VxeTableDataRow> = VxeTableProps<D> & {
|
|
|
75
75
|
// 树形表格配置
|
|
76
76
|
treeConfig?: VxeTablePropTypes.TreeConfig<D> & {
|
|
77
77
|
// 自动将树形结构数据转成扁平结构转给 vxe-table 的 transform 处理,transform: true
|
|
78
|
-
// 需要提供
|
|
78
|
+
// 需要提供 childrenTransformField 字段
|
|
79
79
|
childTransform?: boolean
|
|
80
|
+
// 树形结构数据扁平化字段,即 childrenField 字段,但是 childrenField 会影响更新逻辑,所以这里搞了个新的
|
|
81
|
+
childrenTransformField?: string
|
|
80
82
|
}
|
|
81
83
|
};
|
|
82
84
|
|