New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vxe-table

Package Overview
Dependencies
Maintainers
1
Versions
2056
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vxe-table - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

2

package.json
{
"name": "vxe-table",
"version": "0.2.7",
"version": "0.2.8",
"description": "A very powerful Vue table component.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -201,4 +201,4 @@ # vxe-table

| highlight-hover-row | 鼠标移到行是否要高亮显示 | Boolean | — | false |
| row-class-name | 给行附加 className,也可以是函数 Function({row, rowIndex, data}) | String/Function | — | — |
| cell-class-name | 给单元格附加 className,也可以是函数 Function({row, rowIndex, column, columnIndex, data}) | String/Function | — | — |
| row-class-name | 给行附加 className,也可以是函数 Function({row, rowIndex}) | String/Function | — | — |
| cell-class-name | 给单元格附加 className,也可以是函数 Function({row, rowIndex, column, columnIndex}) | String/Function | — | — |
| header-row-class-name | 给表头的行附加 className,也可以是函数 Function({rowIndex}) | String/Function | — | — |

@@ -336,8 +336,9 @@ | header-cell-class-name | 给表头的单元格附加 className,也可以是函数 Function({rowIndex, column, columnIndex}) | String/Function | — | — |

|------|------|-----|
| reload | 初始化数据 | data |
| insert | 从第一行新增一行新数据 | record |
| insertAt | 第二个参数 row 从指定位置新增一条数据; null 从第一行新增一行新数据;-1 从最后新增一条数据 | record,row |
| load | 加载化数据 | data |
| reload | 重新初始化数据,恢复初始状态 | data |
| insert | 从第一行新增一行或多行新数据 | records |
| insertAt | 从指定位置插入一行或多行;第二个参数:row 指定位置、null 从第一行插入、-1 从最后插入 | records,row |
| revert | 还原更改,还原指定行 row 或者整个表格的数据 | rows?,prop? |
| remove | 删除指定行数据,指定 row 或 [row, ...] 删除多条数据 | rows |
| getRecords | 获取表格所有数据,也可以指定索引获取数据 | rowIndex |
| getRecords | 获取表格所有数据,和 data 属性一致行为,也可以指定索引获取数据 | rowIndex |
| getColumns | 获取表格所有列,也可以指定索引获取列 | columnIndex |

@@ -344,0 +345,0 @@ | getAllRecords | 获取表格数据集合 | — |

@@ -19,3 +19,3 @@ import XEUtils from 'xe-utils'

function renderColumn (h, _vm, $table, fixedType, row, rowIndex, column, columnIndex) {
let { $listeners: tableListeners, scrollYLoad, border, highlightCurrentRow, cellClassName, spanMethod, optimizeConfig, keyboardConfig, mouseConfig, editConfig, editStore, validStore } = $table
let { $listeners: tableListeners, tableData, scrollYLoad, border, highlightCurrentRow, cellClassName, spanMethod, optimizeConfig, keyboardConfig, mouseConfig, editConfig, editStore, validStore } = $table
let { editRender, align, ellipsis, showTitle, showTooltip, renderWidth, columnKey } = column

@@ -63,3 +63,3 @@ let { checked, selected, actived, copyed } = editStore

if (spanMethod) {
let { rowspan = 1, colspan = 1 } = spanMethod({ $table, row, rowIndex, column, columnIndex, fixed: fixedType }) || {}
let { rowspan = 1, colspan = 1 } = spanMethod({ $table, row, rowIndex, column, columnIndex, fixed: fixedType, data: tableData }) || {}
if (!rowspan || !colspan) {

@@ -66,0 +66,0 @@ return null

@@ -70,5 +70,3 @@ import GlobalConfig from '../../../conf'

// 优化配置项
optimized: { type: [Object, Boolean], default: () => GlobalConfig.optimized },
// 用于重写选中编辑处理逻辑
selectEditMethod: Function
optimized: { type: [Object, Boolean], default: () => GlobalConfig.optimized }
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc