vxe-table 4.15.0-beta.9 → 4.15.1
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/grid/src/grid.js +57 -9
- package/es/style.css +1 -1
- package/es/table/module/custom/hook.js +29 -14
- package/es/table/module/custom/panel.js +1 -1
- package/es/table/module/edit/hook.js +5 -5
- package/es/table/src/body.js +7 -6
- package/es/table/src/columnInfo.js +2 -0
- package/es/table/src/table.js +235 -90
- package/es/table/src/util.js +9 -0
- package/es/ui/index.js +3 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +67 -9
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +156 -57
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/custom/hook.js +34 -13
- package/lib/table/module/custom/hook.min.js +1 -1
- package/lib/table/module/custom/panel.js +1 -1
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/hook.js +5 -0
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/src/body.js +7 -6
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/columnInfo.js +2 -0
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/table.js +26 -26
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +10 -0
- package/lib/table/src/util.min.js +1 -1
- package/lib/ui/index.js +3 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +62 -9
- package/packages/table/module/custom/hook.ts +28 -13
- package/packages/table/module/custom/panel.ts +1 -1
- package/packages/table/module/edit/hook.ts +5 -5
- package/packages/table/src/body.ts +7 -6
- package/packages/table/src/columnInfo.ts +3 -0
- package/packages/table/src/table.ts +248 -90
- package/packages/table/src/util.ts +10 -0
- package/packages/ui/index.ts +2 -0
- /package/es/{iconfont.1753497319436.ttf → iconfont.1754358078563.ttf} +0 -0
- /package/es/{iconfont.1753497319436.woff → iconfont.1754358078563.woff} +0 -0
- /package/es/{iconfont.1753497319436.woff2 → iconfont.1754358078563.woff2} +0 -0
- /package/lib/{iconfont.1753497319436.ttf → iconfont.1754358078563.ttf} +0 -0
- /package/lib/{iconfont.1753497319436.woff → iconfont.1754358078563.woff} +0 -0
- /package/lib/{iconfont.1753497319436.woff2 → iconfont.1754358078563.woff2} +0 -0
|
@@ -342,6 +342,15 @@ export function isColumnInfo (column: any): column is ColumnInfo {
|
|
|
342
342
|
return column && (column.constructor === ColumnInfo || column instanceof ColumnInfo)
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
+
// 获取所有的列,排除分组
|
|
346
|
+
export function getColumnList (columns: VxeTableDefines.ColumnInfo[]) {
|
|
347
|
+
const result: VxeTableDefines.ColumnInfo[] = []
|
|
348
|
+
columns.forEach((column) => {
|
|
349
|
+
result.push(...(column.children && column.children.length ? getColumnList(column.children) : [column]))
|
|
350
|
+
})
|
|
351
|
+
return result
|
|
352
|
+
}
|
|
353
|
+
|
|
345
354
|
export function createColumn ($xeTable: VxeTableConstructor & VxeTablePrivateMethods, options: VxeTableDefines.ColumnOptions | VxeTableDefines.ColumnInfo, renderOptions: any): any {
|
|
346
355
|
return isColumnInfo(options) ? options : reactive(new ColumnInfo($xeTable, options, renderOptions))
|
|
347
356
|
}
|
|
@@ -369,6 +378,7 @@ export function assembleColumn ($xeTable: VxeTableConstructor & VxeTablePrivateM
|
|
|
369
378
|
const parentColumn = colgroup ? colgroup.columnConfig : null
|
|
370
379
|
const parentCols = parentColumn ? parentColumn.children : staticColumns
|
|
371
380
|
if (parentElem && parentCols) {
|
|
381
|
+
column.defaultParentId = parentColumn ? parentColumn.id : null
|
|
372
382
|
parentCols.splice(XEUtils.arrayIndexOf(parentElem.children, elem), 0, column)
|
|
373
383
|
reactData.staticColumns = staticColumns.slice(0)
|
|
374
384
|
}
|
package/packages/ui/index.ts
CHANGED
|
@@ -144,6 +144,7 @@ VxeUI.setConfig({
|
|
|
144
144
|
// filterMethod: null,
|
|
145
145
|
// destroyOnClose: false,
|
|
146
146
|
// isEvery: false,
|
|
147
|
+
multiple: true,
|
|
147
148
|
showIcon: true
|
|
148
149
|
},
|
|
149
150
|
aggregateConfig: {
|
|
@@ -231,6 +232,7 @@ VxeUI.setConfig({
|
|
|
231
232
|
},
|
|
232
233
|
virtualYConfig: {
|
|
233
234
|
// enabled: false,
|
|
235
|
+
// mode: 'wheel',
|
|
234
236
|
gt: 100,
|
|
235
237
|
preSize: 1,
|
|
236
238
|
oSize: 0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|