Skip to content

Commit

Permalink
releases 4.1.24
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Sep 11, 2024
1 parent 7092e1f commit 17c18a3
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-pc-ui",
"version": "4.1.23",
"version": "4.1.24",
"description": "A vue based PC component library",
"scripts": {
"update": "npm install --legacy-peer-deps",
Expand Down
11 changes: 10 additions & 1 deletion packages/form-design/widget-subtable/subtable-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,20 +105,29 @@ const ViewSubItemComponent = defineComponent({
const subParams = {
$table: null,
$grid: null,
seq: '',
column: {
field: widget.field,
title: widget.title
} as VxeTableDefines.ColumnInfo,
columnIndex: 0,
$columnIndex: 0,
_columnIndex: 0,
rowid: '',
row: {},
rowIndex: 0,
$rowIndex: 0,
_rowIndex: 0,
isEdit: false,
isHidden: false,
fixed: null,
type: '',
widget
level: 1,
visibleData: [],
items: [],
data: [],
visible: true,
widget: widget
}

return h('div', {
Expand Down
22 changes: 21 additions & 1 deletion types/components/table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3501,8 +3501,20 @@ export namespace VxeTableDefines {
isHidden: boolean
isEdit: boolean
level: number

/**
* @deprecated
*/
visibleData: D[]
/**
* @deprecated
*/
visible
data: D[]
/**
* @deprecated
*/
visible
items: any[]
}

Expand All @@ -3522,10 +3534,18 @@ export namespace VxeTableDefines {
_columnIndex: number
fixed: VxeColumnPropTypes.Fixed
type: string
data: any[][]

/**
* @deprecated
*/
visible
data: any[][]
// 兼容旧
itemIndex: number
/**
* @deprecated
*/
visible
items: any[]
}

Expand Down
20 changes: 6 additions & 14 deletions types/ui/renderer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,20 +366,7 @@ declare module '@vxe-ui/core' {
* @deprecated
*/
export interface RenderEditParams<D = any> extends RenderTableEditParams<D> {}
export interface RenderTableEditParams<D = any> {
$table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
$grid: VxeGridConstructor<D> | null
column: VxeTableDefines.ColumnInfo<D>
columnIndex: number
$columnIndex: number
rowid: string
row: D
rowIndex: number
$rowIndex: number
isHidden: boolean
fixed: VxeColumnPropTypes.Fixed
type: string
}
export interface RenderTableEditParams<D = any> extends VxeTableDefines.CellRenderBodyParams<D> {}

/**
* @deprecated
Expand Down Expand Up @@ -601,6 +588,11 @@ declare module '@vxe-ui/core' {
* @deprecated
*/
renderItemTitle?(renderOpts: VxeGlobalRendererHandles.RenderFormItemTitleOptions, params: VxeGlobalRendererHandles.RenderFormItemTitleParams): VxeComponentSlotType | VxeComponentSlotType[]
/**
* 已废弃,请使用 renderFormItemContent
* @deprecated
*/
renderItem?(renderOpts: VxeGlobalRendererHandles.RenderFormItemContentOptions, params: VxeGlobalRendererHandles.RenderFormItemContentParams): VxeComponentSlotType | VxeComponentSlotType[]
/**
* 已废弃,请使用 renderFormItemContent
* @deprecated
Expand Down

0 comments on commit 17c18a3

Please sign in to comment.