vxe-table icon indicating copy to clipboard operation
vxe-table copied to clipboard

😱😱😱(置顶公告)版本兼容性变动/升级指南

Open xuliangzhan opened this issue 4 years ago • 0 comments

4.7.17

  • table 渲染器调整参数名
    • (v4保留兼容)调整 filterMethod 为 tableFilterMethod
    • (v4保留兼容)调整 filterRemoteMethod 为 tableFilterRemoteMethod
    • (v4保留兼容)调整 filterResetMethod 为 tableFilterResetMethod
    • (v4保留兼容)调整 filterRecoverMethod 为 tableFilterRecoverMethod
    • (v4保留兼容)调整 defaultFilterMethod为 defaultTableFilterMethod
    • (v4保留兼容)调整 filterClassName 为 tableFilterClassName
    • (v4保留兼容)调整 showFilterFooter 为 tableCellClassName
    • (v4保留兼容)调整 cellClassName 为 tableCellClassName
    • (v4保留兼容)调整 cellStyle 为 tableCellStyle
    • (v4保留兼容)调整 autofocus 为 tableAutofocus
    • (v4保留兼容)调整 autoselect 为 tableAutoSelect
    • (v4保留兼容)调整 exportMethod 为 tableExportMethod
    • (v4保留兼容)调整 footerExportMethod 为 tableFooterExportMethod
    • (v4保留兼容)调整 renderHeader 为 renderTableHeader
    • (v4保留兼容)调整 renderFooter 为 renderTableFooter
    • (v4保留兼容)调整 renderFilter 为 renderTableFilter
    • (v4保留兼容)调整 renderDefault 为 renderTableDefault
    • (v4保留兼容)调整 renderEdit 为 renderTableEdit
    • (v4保留兼容)调整 renderCell 为 renderTableCell
    • (v4保留兼容)调整 renderEmpty 为 renderTableEmpty

4.7.0

  • (兼容v4版本所有代码,除全局配置之外)Vxe UI 全新发布,支持更加强大的可视化组件。
  • Vxe table 移出所有与表格无关的组件,仅保留一下组件:table、grid、column、colgroup、toolbar。其余全部移除至 Vxe UI
  • 升级步骤:
    • (v4保留兼容)全局对象由 import { VXETable } from 'vxe-table' 替换成 import { VxeUI } from 'vxe-table'
    • (v4保留兼容)国际化目录由 'vxe-table/lib/locale/lang/zh-CN' 替换成 'vxe-pc-ui/lib/language/zh-CN'

4.6.15

  • (v4保留兼容)全局图标设置 VXETable.setConfig({ icon: {} }) 调整为 VXETable.setIcon({})

4.6.14

  • mode
    • (v4不向下兼容)类型 type=modal 的默认参数 show-confirm-button 调整为 false,可以通过设置全局参数 setConfig({ mode: { show-ConfirmButton: true } }) 兼容老版本

4.6.13

  • (v4保留兼容)全局参数 config 被 setConfig 替换
  • grid
    • (v4保留兼容)参数 proxy-config.props 被 proxy-config.response 替换

4.6.8

  • table
    • (v4保留兼容)事件拦截 event.clearActived 调整 event.clearEdit

4.6.0

  • table
    • (v4保留兼容)重构渲染器,配置 name 调整 $input, $textarea, $select, $button, $buttons, $radio, $checkbox, $switch 改为 VxeInput, VxeTextarea, VxeSelect, VxeButton, VxeButtonGroup, VxeRadio, VxeRadioGroup, VxeCheckbox, VxeCheckboxGroup, VxeSwitch
  • toolbar
    • 重构工具栏自定义列
    • (v4保留兼容)参数 custom.immediate 被 custom-config.immediate 替换
    • (v4保留兼容)参数 custom.showFooter被 custom-config.showFooter替换
    • (v4保留兼容)参数 custom.allowFixed被 custom-config.allowFixed替换
    • (v4保留兼容)参数 custom.confirmButtonText被 custom-config.confirmButtonText替换
    • (v4保留兼容)参数 custom.resetButtonText被 custom-config.resetButtonText替换

4.5.22

  • table
    • (v4保留兼容)表尾数据参数 footerMethod 将被 footerData 替换
  • button
    • (v4保留兼容)参数 type="text" 更改为 mode="text"

4.5.17

  • (v4保留兼容)事件 edit-actived 改为 edit-activated

4.5.14## 4.5.14

  • 全局参数 table.autoResize 默认修改为 false,可以全局设置 setup({ table: { autoResize: false } })
  • (v4保留兼容)方法 isExpandByRow 更改为 isRowExpandByRow
  • 全局参数 table.autoResize 默认修改为 false,可以全局设置 setup({ table: { autoResize: false } })
  • (v4保留兼容)方法 isExpandByRow 更改为 isRowExpandByRow

4.5.10

  • (v4保留兼容)全局参数方法由 setup 调整为 config

4.5.0

  • (样式不向下兼容)重构校验,可以通过 setup({ cellVaildMode: 'obsolete' }) 还原成老的样式
    • (v4保留兼容)参数 tree-config.line 更改为 tree-config.showLine
    • (v4保留兼容)参数 tree-config.hasChild 更改为 tree-config.hasChildField
    • (v4保留兼容)参数 tree-config.children 更改为 tree-config.childrenField
  • (v4保留兼容)渲染器 menus 注册由 menus.add(name, Function) 改成 menus.add(name, { menuMethod: Function })
  • (v4保留兼容)渲染器 commands 注册由 commands.add(name, Function) 改成 commands.add(name, { commandMethod: Function })
  • (v4保留兼容)渲染器 formats 注册由 formats.add(name, Function) 改成 formats.add(name, { cellFormatMethod: Function })
  • table
    • (v4保留兼容)方法 validate(rows) 不再支持回调,统一返回 Promise
    • (v4保留兼容)方法 fullValidate() 不再支持回调,统一返回 Promise
  • form
    • (v4保留兼容)方法 validate() 不再支持回调,统一返回 Promise
  • toolbar
    • (v4保留兼容)参数 custom.isFooter 更改 showFooter
  • icon
    • (不向下兼容)图标更改 fixed-fill 更改为 fixed-left-fill
    • (不向下兼容)图标更改 fixed 更改为 fixed-left

4.4.2

  • (v4保留兼容)支持css变量

3.8.7

  • (v3保留兼容)全局图标设置 VXETable.setConfig({ icon: {} }) 调整为 VXETable.setIcon({})
  • mode
    • (v3不向下兼容)类型 type=modal 的默认参数 show-confirm-button 调整为 false,可以通过设置全局参数 setConfig({ mode: { show-ConfirmButton: true } }) 兼容老版本

3.8.6

  • (v3保留兼容)全局参数 config 被 setConfig 替换
  • grid
    • (v3保留兼容)参数 proxy-config.props 被 proxy-config.response 替换

3.8.4

  • table
    • (v3保留兼容)事件拦截 event.clearActived 调整 event.clearEdit

3.8.0

  • table
    • (v3保留兼容)重构渲染器,配置 name 调整 $input, $textarea, $select, $button, $buttons, $radio, $checkbox, $switch 改为 VxeInput, VxeTextarea, VxeSelect, VxeButton, VxeButtonGroup, VxeRadio, VxeRadioGroup, VxeCheckbox, VxeCheckboxGroup, VxeSwitch
  • toolbar
    • 重构工具栏自定义列
    • (v3保留兼容)参数 custom.immediate 被 custom-config.immediate 替换
    • (v3保留兼容)参数 custom.showFooter被 custom-config.showFooter替换
    • (v3保留兼容)参数 custom.allowFixed被 custom-config.allowFixed替换
    • (v3保留兼容)参数 custom.confirmButtonText被 custom-config.confirmButtonText替换
    • (v3保留兼容)参数 custom.resetButtonText被 custom-config.resetButtonText替换

3.7.10

  • table
    • (v3保留兼容)表尾数据参数 footerMethod 将被 footerData 替换
  • button
    • (v3保留兼容)参数 type="text" 更改为 mode="text"

3.7.7

  • 全局参数 table.autoResize 默认修改为 false,可以全局设置 setup({ table: { autoResize: false } })
  • (v3保留兼容)方法 isExpandByRow 更改为 isRowExpandByRow
  • (v4保留兼容)事件 edit-actived 改为 edit-activated

3.7.0

  • (样式不向下兼容)重构校验,可以通过 setup({ cellVaildMode: 'obsolete' }) 还原成老的样式
  • (v3保留兼容)全局参数方法由 setup 调整为 config
    • (v3保留兼容)参数 tree-config.line 更改为 tree-config.showLine
    • (v3保留兼容)参数 tree-config.hasChild 更改为 tree-config.hasChildField
    • (v3保留兼容)参数 tree-config.children 更改为 tree-config.childrenField
  • (v3保留兼容)渲染器 menus 注册由 menus.add(name, Function) 改成 menus.add(name, { menuMethod: Function })
  • (v3保留兼容)渲染器 commands 注册由 commands.add(name, Function) 改成 commands.add(name, { commandMethod: Function })
  • (v3保留兼容)渲染器 formats 注册由 formats.add(name, Function) 改成 formats.add(name, { cellFormatMethod: Function })
  • table
    • (v3保留兼容)方法 validate(rows) 不再支持回调,统一返回 Promise
    • (v3保留兼容)方法 fullValidate() 不再支持回调,统一返回 Promise
  • form
    • (v3保留兼容)方法 validate() 不再支持回调,统一返回 Promise
  • toolbar
    • (v3保留兼容)参数 custom.isFooter 更改 showFooter
  • icon
    • (不向下兼容)图标更改 fixed-fill 更改为 fixed-left-fill
    • (不向下兼容)图标更改 fixed 更改为 fixed-left

4.2.5

  • table
    • (v4保留兼容)参数 edit-config.activeMethod 更改为 edit-config.beforeEditMethod
    • (向下兼容)loading图标更改,使用新图标:setup({ icon: { LOADING: 'vxe-icon--refresh roll' } }) setup({ loadingText: '加载中' }),还原旧图标:setup({ icon: { LOADING: null } }) setup({ loadingText: null })

4.2.4

  • table
    • (v4保留兼容)方法 clearActived 更改为 clearEdit
    • (v4保留兼容)方法 isActiveByRow 更改为 isEditByRow
    • (v4保留兼容)方法 getActiveRecord 更改为 getEditRecord
    • (v4保留兼容)方法 setActiveRow 更改为 setEditRow
    • (v4保留兼容)方法 setActiveCell 更改为 setEditCell

4.2.0

  • table
    • (不向下兼容)移除 Header 模块
    • (不向下兼容)移除 Footer 模块
    • (v4保留兼容)参数 row-key 改为 row-config.useKey
    • (v4保留兼容)参数 row-id 改为 row-config.keyField
    • (v4保留兼容)参数 column-key 改为 column-config.useKey
    • (v4保留兼容,建议调用方法获取)事件 checkbox-change 删除参数 records, reserves, indeterminates
    • (v4保留兼容,建议调用方法获取)事件 checkbox-all 删除参数 records, reserves, indeterminates
    • (v4保留兼容,建议调用方法获取)事件 checkbox-range-start 删除参数 records, reserves
    • (v4保留兼容,建议调用方法获取)事件 checkbox-range-change 删除参数 records, reserves
    • (v4保留兼容,建议调用方法获取)事件 checkbox-range-end 删除参数 records, reserves
  • column
    • (v4保留兼容)参数 title-help 更改为 title-prefix
  • select
    • (v4保留兼容)参数 option-key 改为 option-config.useKey
    • (v4保留兼容)参数 option-id 改为 option-config.keyField

v4.0

  • 依赖更新
    • 基于 vue3 next
  • 新特性
    • 支持 vue 3.0 Component API
    • 使用 typescript 重写组件,全面支持 typescript
    • 虚拟滚动支持双模式,默认行为和鼠标滚轮
    • 虚拟滚动支持预编译,滚动极致流畅
  • API 变动
    • 重写渲染器:移除 h 参数,从 vue 中导出 import { h } from 'vue'
    • 支持动态定义响应式属性
    • 不支持数组 push、splice ...等方法全部无效,改变表格数据只对赋值有效,例如: tableData.value = []

3.6.0

  • (v3保留兼容)重构图标

3.5.9

  • table
    • (v3保留兼容)参数 edit-config.activeMethod 更改为 edit-config.beforeEditMethod
    • (向下兼容)loading图标更改,使用新图标:setup({ icon: { LOADING: 'vxe-icon--refresh roll' } }) setup({ loadingText: '加载中' }),还原旧图标:setup({ icon: { LOADING: null } }) setup({ loadingText: null })

3.5.8

  • table
    • (v4保留兼容)方法 clearActived 更改为 clearEdit
    • (v4保留兼容)方法 isActiveByRow 更改为 isEditByRow
    • (v4保留兼容)方法 getActiveRecord 更改为 getEditRecord
    • (v4保留兼容)方法 setActiveRow 更改为 setEditRow
    • (v4保留兼容)方法 setActiveCell 更改为 setEditCell

3.5.0

  • table
    • (不向下兼容)移除 Header 模块
    • (不向下兼容)移除 Footer 模块
    • (v3保留兼容)参数 row-key 改为 row-config.useKey
    • (v3保留兼容)参数 row-id 改为 row-config.keyField
    • (v3保留兼容)参数 column-key 改为 column-config.useKey
    • (v3保留兼容,建议调用方法获取)事件 checkbox-change 删除参数 records, reserves, indeterminates
    • (v3保留兼容,建议调用方法获取)事件 checkbox-all 删除参数 records, reserves, indeterminates
    • (v3保留兼容,建议调用方法获取)事件 checkbox-range-start 删除参数 records, reserves
    • (v3保留兼容,建议调用方法获取)事件 checkbox-range-change 删除参数 records, reserves
    • (v3保留兼容,建议调用方法获取)事件 checkbox-range-end 删除参数 records, reserves
  • column
    • (v3保留兼容)参数 title-help 更改为 title-prefix
  • select
    • (v3保留兼容)参数 option-key 改为 option-config.useKey
    • (v3保留兼容)参数 option-id 改为 option-config.keyField

3.4.5

  • table
    • (v3部分兼容)修改表格检验正确返回Promise方式,检验不通过将不会执行catch,只有出异常错误时才会执行catch,如果想继续使用旧的方式,可以通过设置还原 setup({ validToReject: 'obsolete' })

3.4.1

  • table
    • (v3保留兼容)方法 reloadExpandContent 改为 reloadRowExpand
    • (v3保留兼容)方法 reloadTreeChilds 改为 reloadTreeExpand

3.4.0

  • table
    • (v3保留兼容)resizable 更改为 column-config.resizable
  • column
    • (v3保留兼容)title-help.message 更改为 title-prefix.content
  • form-item
    • (v3保留兼容)title-prefix.message 更改为 title-prefix.content
    • (v3保留兼容)title-suffix.message 更改为 title-suffix.content

3.3.14

  • grid
    • (v3保留兼容)废弃事件 form-toggle-collapse 改为 form-collapse *form *(v3保留兼容)废弃事件 toggle-collapse 改为 collapse

v3.3.11

  • table
    • 展开行样式间距默认为0,可以通过样式自行设置默认间距 .vxe-body--expanded-cell {padding: 20px;}

v3.3.5

  • input
    • (v3保留兼容)方法 isCheckboxIndeterminate 改为 isAllCheckboxIndeterminate

v3.3.2

  • input
    • (v3部分兼容)参数 start-week 更改为 start-day

v3.2.12

  • modal
    • (v3保留兼容)参数 message 更改为 content

v3.2.4

  • (v3保留兼容)组件名 vxe-table-colgroup 更改为 vxe-colgroup
  • (v3保留兼容)组件名 vxe-table-column 更改为 vxe-column

v3.1.9

  • table
    • 编辑状态 edit-config.showStatus 默认支持新增和修改,或者通过 showUpdateStatus、showInsertStatus 单独设置

v3.1.0

  • form
    • (v3不向下兼容)重置行为只对 item-render 配置后有效,可以被渲染器 itemResetMethod 重置

v3.0.16

  • model
    • (v3不向下兼容)改变行为 resize 分为两个参数控制,show-zoom 和 resize

v3.0.0

  • 依赖更新
    • 基于 vue2.6+
  • 兼容性变动说明
    • 移除所有已废弃参数
    • 移除所有已废弃方法
    • 移除所有已废弃事件
    • 移除所有已废弃模块
    • 移除所有非常糟糕且已废弃的功能
    • 支持现代浏览器并部分兼容 IE11,提升渲染性能
  • 兼容性变动参数
    • (不向下兼容)移除 column.remote-sort
    • (不向下兼容)移除 column.sort-method
    • (不向下兼容)input 和 textarea 支持原生 input 事件,双向事件更新值改为 modelValue
    • (v3保留兼容)参数 toolbar 更改为 toolbar-config
    • 移除 ModalController
    • 移除 table.animat
    • 移除 table.cloak
    • 移除 openExport.isPrint 属性
    • 移除 VXETable.types 被 VXETable.setup({ export: { types: { ... } } }) 替换
    • (v3保留兼容)分组列由原先的 vxe-table-column 改成 vxe-table-colgroup
  • table
    • 优化输入渲染,默认懒更新方式,如果需要实时更新可以使用 immediate

v2.10.8

  • table
    • (v2保留兼容)tooltip-config.enabled 更改为 tooltip-configshowAll
    • (v2保留兼容)参数 keyboard-config.isChecked 默认值改为 false,可以通过全局设置向下兼容
     VXETable.setup({
       table: {
         keyboardConfig: {
           isChecked: true
         }
       }
     })
    

v2.10.5

  • toolbar
    • (v2保留兼容)工具栏渲染左侧按钮列表方法 renderButton 改成 renderToolbarButton

v2.10.3

  • input
    • (不向下兼容)移除错误的参数 parseFormat

v2.9.27

  • table
    • (v2保留兼容)参数 context-menu 更改为 menu-config
    • (v2保留兼容)参数 cell-context-menu 更改为 cell-menu
    • (v2保留兼容)参数 header-cell-context-menu 更改为 header-cell-menu
    • (v2保留兼容)参数 footer-cell-context-menu 更改为 footer-cell-menu
    • (v2保留兼容)参数 context-menu-click 更改为 menu-click
    • (v2保留兼容)渲染器:表单项内容的方法 renderItem 更改为 renderItemContent

v2.9.26

  • table
    • (v2保留兼容)参数 toolbar 更改为 toolbar-config
    • (v2保留兼容)方法 $getRowIndex 更改为 getVMRowIndex
    • (v2保留兼容)方法 _getRowIndex 更改为 getVTRowIndex
    • (v2保留兼容)方法 $getColumnIndex更改为 getVMColumnIndex
    • (v2保留兼容)方法 _getColumnIndex 更改为 getVTColumnIndex
  • switch
    • (v2保留兼容)参数 on-label 更改为 open-label
    • (v2保留兼容)参数 off-label 更改为 close-label
    • (v2保留兼容)参数 on-value 更改为 open-value
    • (v2保留兼容)参数 off-value 更改为 close-value
    • (v2保留兼容)参数 on-icon 更改为 open-icon
    • (v2保留兼容)参数 off-icon 更改为 close-icon

v2.9.25

  • table
    • (v2保留兼容)改变 readFile 参数 Promise<Event> 改为 Promise<{ file, files }>
    • (不向下兼容)全局参数 setup.table.exportConfig.isPrint 默认值 true 改为 false,可以通过全局设置向下兼容
     VXETable.setup({
       table: {
         exportConfig: {
           isPrint: true
         }
       }
     })
    
  • modal
    • (v2保留兼容)移除 inserted 事件

v2.9.24

  • (v2增加组件)分组列支持 vxe-table-colgroup

v2.9.23

  • (v2保留兼容)样式路径变动 vxe-table/lib/index.css 改为 vxe-table/lib/style.css

v2.9.18

  • table
    • (不向下兼容,谨慎更新)exportData.options 参数 columnFilterMethod(column) 变动接收一个对象 footerFilterMethod(params)

    • (不向下兼容,谨慎更新)exportData.options 参数 dataFilterMethod(row) 变动接收一个对象 footerFilterMethod(params)

    • (不向下兼容,谨慎更新)exportData.options 参数 footerFilterMethod(items) 变动接收一个对象 footerFilterMethod(params)

    • (不向下兼容,谨慎更新)校验方法 validate 接收参数 errMap 变动成和 fullValidate 的 errMap 参数结构一致

    • (v2局部兼容)校验方法 validate、fullValidate 默认校验状态发生变动的数据,如果需要校验全量数据,第一个参数传 true 即可,可以通过全局设置向下兼容

      VXETable.setup({
        validFullData: 'obsolete'
      })
      
    • (v2保留兼容)废弃参数 column-width 改为 column-config.width

    • (v2保留兼容)废弃参数 column-min-width 改为 column-config.minWidth

v2.9.16

  • select
    • (不向下兼容,谨慎更新)废弃参数属性 option-props.disabled
    • (不向下兼容,谨慎更新)废弃参数属性 option-group-props.disabled
    • (不向下兼容,谨慎更新)渲染器废弃属性 editExportMethod 被 exportMethod 替换
    • (v2保留兼容)渲染器更改属性 cellExportMethod 改为 exportMethod
    • (v2保留兼容)渲染器更改属性 footerCellExportMethod 改为 footerExportMethod

v2.9.12

  • table
    • (v2保留兼容)更改方法 toggleRowExpansion 改为 toggleRowExpand
    • (v2保留兼容)更改方法 toggleTreeExpansion 改为 toggleTreeExpand
    • (v2保留兼容)更改方法 setRowExpansion 改为 setRowExpand
    • (v2保留兼容)更改方法 setTreeExpansion 改为 setTreeExpand
    • (v2保留兼容)更改方法 setAllRowExpansion 改为 setAllRowExpand
    • (v2保留兼容)更改方法 setAllTreeExpansion 改为 setAllTreeExpand

v2.9.6

  • (v2保留兼容)移除 Resize 模块

v2.9.5

  • column
    • (v2保留兼容)废弃参数属性 edit-render.type = 'visible' 被渲染器或 cell-render 取代

v2.9.4

  • table
    • (v2保留兼容)废弃参数属性 optimization.animat 改为 animat
    • (v2保留兼容)废弃参数属性 optimization.cloak 改为 cloak
    • (v2保留兼容)废弃参数属性 optimization.delayHover 改为 delay-hover
    • (v2保留兼容)废弃参数属性 optimization.scrollX 改为 scroll-x
    • (v2保留兼容)废弃参数属性 optimization.scrollY 改为 scroll-y

v2.9.3

  • table
    • (v2保留兼容)分组表格设置固定列必须按组,分组的列不允许为空
    • (v2保留兼容)调整表尾数据的参数 itemIndex 改为 _columnIndex
  • toolbar
    • (v2保留兼容)移除参数 id
    • (v2保留兼容)废弃参数 resizable 改为 custom-config.storage
    • (v2保留兼容)废弃参数属性 custom.storage 改为 custom-config.storage
    • (v2保留兼容)废弃参数属性 custom.checkMethod 改为 custom-config.checkMethod

v2.9.2

  • grid
    • (不向下兼容,可设置全局参数解决)移除参数 toolbar.zoom.escRestore 改为 zoom-config.escRestore,可以通过全局设置向下兼容
      VXETable.setup({
        grid: {
          // zoom-config: {
          //    escRestore: true
          // }
        }
      })
      

v2.9.1

  • (不向下兼容,可设置全局参数解决)全局图标替换属性变更,具体请查看 API
    VXETable.setup({
      icon: {
        //...
      }
    })
    

v2.9.0

  • table
    • (不向下兼容,可设置全局参数解决)变动全局参数为 setup.table.*,具体请查看 API
      VXETable.setup({
        table: {
          //...
        }
      })
      
    • (不向下兼容,可设置全局参数解决)validate(cb) 方法参数变动 cb(status, ErrMap) 改为 cb(ErrMap),可以通过全局设置继续使用旧参数
    • (不向下兼容,可设置全局参数解决)自定义校验方法参数 validator(rule,cellValue,callback) 改为 validator(params),可以通过全局设置参数来继续使用旧参数
      VXETable.setup({
        validArgs: 'obsolete'
      })
      
  • grid
    • (v2保留兼容)废弃插槽 buttons
    • (v2保留兼容)废弃插槽 tools
  • form
    • (不向下兼容,谨慎更新)自定义校验方法参数 validator(rule,itemValue,params) 改为 validator(params)
  • modal
    • (v2保留兼容)移除全局属性 $XModal,建议自行定义
      Vue.prototype.$XModal = VXETable.modal
      

v2.8.32

  • table
    • (v2保留兼容)clearFilter(field) 方法参数变动 clearFilter(field) 改为 clearFilter(column)
  • form
    • (不向下兼容,谨慎更新)validate(cb) 方法参数变动 cb(status, ErrMap) 改为 cb(ErrMap)

v2.8.31

  • modal
    • (v2保留兼容)模态窗口全局实例 变更属性 Modal 改为 ModalController

v2.8.29

  • table
    • (v2保留兼容)废弃方法 getTableScroll() 改为 getScroll()

v2.8.28+

  • (不向下兼容,谨慎更新)全局格式化参数变动 cb(cellValue, ...args) 参数变动 cb({ cellValue }, ...args)

v2.8.26+

  • (v2保留兼容)移除 Loading 模块

v2.8.25+

  • (v2部分兼容)基于 xe-utils 2.4+
  • table
    • (v2部分兼容,谨慎更新)变更属性 border=none 改为 border=inner

v2.8.22+

  • modal
    • (v2保留兼容,需要设置参数)更改默认参数 transfer=true 改为 transfer=false,可以通过全局设置
      VXETable.setup({
        modal: {
          transfer: true
        }
      })
      

v2.8.20+

  • table
    • (v2保留兼容)更改方法 removeSelecteds() 改为 removeCheckboxRow()

v2.8.18+

  • table
    • (v2保留兼容)更改方法 refreshData() 改为 syncData()

v2.8.9+

  • modal
    • (v2保留兼容)更改方法 Modal.closeAll() 改为 Modal.close()
    • (v2保留兼容)更改构造函数 Modal 被 Modal.open() 替换

v2.8.6+

  • table
    • (v2保留兼容)更改方法 filter() 改为 setFilter()

v2.8.5+

  • table
    • (v2保留兼容)废弃事件 current-change 改为 page-change
    • (v2保留兼容)废弃事件 size-change 改为 page-change
  • grid
    • (v2保留兼容)废弃事件 current-page-change 改为 page-change
    • (v2保留兼容)废弃事件 page-size-change 改为 page-change

v2.8.0+

  • table
    • (不向下兼容,可设置全局参数解决)所有数据行为相关的功能必须开启 keep-source,新版本默认为 false,可以通过全局设置
      VXETable.setup({
        table: {
          keepSource: true
        }
      })
      
    • (v2保留兼容)废弃属性 customs 被 column.visible 替换
    • (v2保留兼容)废弃全局指令 buttons 改为 commands
    • (v2保留兼容)废弃全局参数 setup.menu 改为 setup.contextMenu
    • (v2保留兼容)废弃事件 select-change 改为 checkbox-change
    • (v2保留兼容)废弃事件 select-all 改为 checkbox-all
  • grid
    • (不向下兼容,谨慎更新)废弃 customs 属性
  • button
    • (v2保留兼容)变更参数 type=primary 改为 status=primary

v2.7.22+

  • table
    • (v2保留兼容)更改方法 getMouseSelecteds() 改为. getSelectedCell()

v2.7.21+

  • table
    • (v2保留兼容)废弃方法 reloadCustoms()
    • (v2保留兼容)废弃方法 resetCustoms()

v2.7.19+

  • table
    • (v2保留兼容)更改方法 isCheckedByRow 改为 isCheckedByCheckboxRow

v2.7.8+

  • table
    • (v2保留兼容)更改方法 getCurrentRow 改为 getCurrentRecord
    • (v2保留兼容)更改方法 getRadioRow改为 getRadioRecord
    • (v2保留兼容)更改方法 getActiveRow 改为 getActiveRecord
    • (v2保留兼容)更改方法 getSelectRecords 改为 getCheckboxRecords
    • (v2保留兼容)更改方法 getSelectReserveRecords 改为 getCheckboxReserveRecords
    • (v2保留兼容)更改方法 setSelection 改为 setCheckboxRow
    • (v2保留兼容)更改方法 setAllSelection 改为 setAllCheckboxRow
    • (v2保留兼容)更改方法 toggleRowSelection 改为 toggleCheckboxRow
    • (v2保留兼容)更改方法 toggleAllSelection 改为 toggleAllCheckboxRow
    • (v2保留兼容)更改方法 clearSelection 改为 clearCheckboxRow
    • (v2保留兼容)更改方法 clearSelectReserve 改为 clearCheckboxReserve

v2.7.0+

  • table
    • (v2保留兼容)废弃参数 startIndex 改为 seq-config.startIndex
    • (v2保留兼容)废弃参数 remote-sort 改为 sort-config.remote
    • (v2保留兼容)废弃参数 remote-filter 改为 filter-config.remote
    • (v2保留兼容)废弃事件 toggle-expand-change 改为 toggle-row-expand
    • (v2保留兼容)废弃事件 toggle-tree-change 改为 toggle-tree-expand
    • (v2保留兼容)插槽变动 展开行插槽改为 slot=content

v2.6.6+

  • table
    • (v2保留兼容)废弃方法 exportCsv()

v2.6.1+

  • table
    • (v2保留兼容)废弃方法 hasActiveRow()
    • (v2保留兼容)废弃方法 hasRowChange()
    • (v2保留兼容)废弃方法 hasRowExpand()
    • (v2保留兼容)废弃方法 hasTreeExpand()

v2.6.0+

  • table
    • (不兼容按需加载方式)增加 Edit 模块
    • (不兼容按需加载方式)增加 Validator 模块
    • (v2保留兼容)废弃参数 select-config 改为 checkbox-config
  • column
    • (v2保留兼容)废弃参数 type=selection 改为 type=checkbox
    • (v2保留兼容)废弃参数 type=index 改为 type=seq
    • (v2保留兼容)废弃参数 index-method 改为 type=seq-method

v2.5.16

  • modal
    • (不向下兼容)变更参数 showFooter=true改为 showFooter=false

v2.5.0+

  • (v2部分兼容)基于 xe-utils 2.2+

v2.4.2+

  • modal
    • (v2保留兼容)废弃实例属性 $XMsg 更改为 $XModal

v2.3.0+

  • table
    • (v2保留兼容)移除参数 optimization.scrollX.adaptive 的属性

2.2.2+

  • button
    • (不向下兼容)更改插槽 dropdown 改为 dropdowns

xuliangzhan avatar Mar 14 '20 03:03 xuliangzhan