vxe-table 3.6.12-beta.2 → 3.6.12-beta.4
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/README.md +1 -1
- package/lib/footer/src/footer.js +1 -0
- package/lib/footer/src/footer.min.js +1 -1
- package/lib/form/src/form-config-item.js +2 -1
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-item.js +2 -1
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +30 -23
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/render.js +2 -1
- package/lib/form/src/render.min.js +1 -1
- package/lib/form/src/util.js +2 -1
- package/lib/form/src/util.min.js +1 -1
- package/lib/header/src/header.js +1 -0
- package/lib/header/src/header.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +59 -36
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +1 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -0
- package/lib/locale/lang/ja-JP.js +1 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -0
- package/lib/locale/lang/zh-CN.js +1 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -0
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +1 -0
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +1 -0
- package/lib/locale/lang/zh-TC.js +1 -0
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +1 -0
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +1 -0
- package/lib/pager/src/pager.js +3 -1
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/body.js +1 -0
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/table.js +6 -0
- package/lib/table/src/table.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +4 -5
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/tools/utils.js +1 -1
- package/lib/tools/utils.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/package.json +2 -2
- package/packages/footer/src/footer.js +1 -1
- package/packages/form/src/form-config-item.js +1 -1
- package/packages/form/src/form-item.js +1 -1
- package/packages/form/src/form.js +17 -6
- package/packages/form/src/render.js +1 -1
- package/packages/form/src/util.js +1 -1
- package/packages/header/src/header.js +1 -1
- package/packages/locale/lang/en-US.js +1 -0
- package/packages/locale/lang/ja-JP.js +1 -0
- package/packages/locale/lang/zh-CN.js +1 -0
- package/packages/locale/lang/zh-TC.js +1 -0
- package/packages/pager/src/pager.js +3 -1
- package/packages/table/src/body.js +1 -1
- package/packages/table/src/table.js +4 -0
- package/packages/toolbar/src/toolbar.js +4 -4
- package/packages/tools/utils.js +1 -1
- package/types/component.d.ts +1 -1
- package/types/table.d.ts +11 -11
- package/types/tooltip.d.ts +2 -2
- package/types/validator.d.ts +2 -2
- /package/lib/icon/style/{iconfont.1678407950638.ttf → iconfont.1678666422849.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1678407950638.woff → iconfont.1678666422849.woff} +0 -0
- /package/lib/icon/style/{iconfont.1678407950638.woff2 → iconfont.1678666422849.woff2} +0 -0
- /package/lib/{iconfont.1678407950638.ttf → iconfont.1678666422849.ttf} +0 -0
- /package/lib/{iconfont.1678407950638.woff → iconfont.1678666422849.woff} +0 -0
- /package/lib/{iconfont.1678407950638.woff2 → iconfont.1678666422849.woff2} +0 -0
|
@@ -22,6 +22,7 @@ export default {
|
|
|
22
22
|
notSlot: '插槽 "{0}" 不存在',
|
|
23
23
|
noTree: '樹狀結構不支援 {0}',
|
|
24
24
|
notProp: '不支持的參數 "{0}"',
|
|
25
|
+
checkProp: '當數據量過大時可能會導致複選框卡頓,建議設置參數 "{0}" 提升渲染速度',
|
|
25
26
|
coverProp: '"{0}" 的參數 "{1}" 被覆蓋,這可能會出現錯誤',
|
|
26
27
|
delFunc: '方法 "{0}" 已停用,請使用 "{1}"',
|
|
27
28
|
delProp: '參數 "{0}" 已停用,請使用 "{1}"',
|
|
@@ -402,7 +402,9 @@ export default {
|
|
|
402
402
|
triggerJumpEvent (evnt) {
|
|
403
403
|
const value = XEUtils.toInteger(evnt.target.value)
|
|
404
404
|
const current = value <= 0 ? 1 : value >= this.pageCount ? this.pageCount : value
|
|
405
|
-
|
|
405
|
+
const currPage = XEUtils.toValueString(current)
|
|
406
|
+
evnt.target.value = currPage
|
|
407
|
+
this.inpCurrPage = currPage
|
|
406
408
|
this.jumpPage(current)
|
|
407
409
|
}
|
|
408
410
|
}
|
|
@@ -113,7 +113,7 @@ function renderColumn (h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, r
|
|
|
113
113
|
const bindMouseenter = tableListeners['cell-mouseenter']
|
|
114
114
|
const bindMouseleave = tableListeners['cell-mouseleave']
|
|
115
115
|
const triggerDblclick = (editRender && editConfig && editOpts.trigger === 'dblclick')
|
|
116
|
-
const params = { $table: $xetable, seq, rowid, row, rowIndex, $rowIndex, _rowIndex, column, columnIndex, $columnIndex, _columnIndex, fixed: fixedType, type: renderType, isHidden: fixedHiddenColumn, level: rowLevel, visibleData: afterFullData, data: tableData, items }
|
|
116
|
+
const params = { $table: $xetable, $grid: $xetable.$xegrid, seq, rowid, row, rowIndex, $rowIndex, _rowIndex, column, columnIndex, $columnIndex, _columnIndex, fixed: fixedType, type: renderType, isHidden: fixedHiddenColumn, level: rowLevel, visibleData: afterFullData, data: tableData, items }
|
|
117
117
|
// 虚拟滚动不支持动态高度
|
|
118
118
|
if ((scrollXLoad || scrollYLoad) && !hasEllipsis) {
|
|
119
119
|
showEllipsis = hasEllipsis = true
|
|
@@ -625,6 +625,10 @@ export default {
|
|
|
625
625
|
if (!inited) {
|
|
626
626
|
this.handleInitDefaults()
|
|
627
627
|
}
|
|
628
|
+
const checkboxColumn = this.tableFullColumn.find(column => column.type === 'checkbox')
|
|
629
|
+
if (checkboxColumn && this.tableFullData.length > 300 && !this.checkboxOpts.checkField) {
|
|
630
|
+
warnLog('vxe.error.checkProp', ['checkbox-config.checkField'])
|
|
631
|
+
}
|
|
628
632
|
if ((this.scrollXLoad || this.scrollYLoad) && this.expandColumn) {
|
|
629
633
|
warnLog('vxe.error.scrollErrProp', ['column.type=expand'])
|
|
630
634
|
}
|
|
@@ -84,10 +84,10 @@ function renderBtns (h, _vm) {
|
|
|
84
84
|
* 渲染右侧工具
|
|
85
85
|
*/
|
|
86
86
|
function renderRightTools (h, _vm) {
|
|
87
|
-
const { _e, $scopedSlots, $
|
|
87
|
+
const { _e, $scopedSlots, $xetable, tools = [] } = _vm
|
|
88
88
|
const toolsSlot = $scopedSlots.tools
|
|
89
89
|
if (toolsSlot) {
|
|
90
|
-
return toolsSlot.call(_vm, { $
|
|
90
|
+
return toolsSlot.call(_vm, { $table: $xetable, $grid: $xetable.xegrid }, h)
|
|
91
91
|
}
|
|
92
92
|
return tools.map(item => {
|
|
93
93
|
const { dropdowns, toolRender } = item
|
|
@@ -100,7 +100,7 @@ function renderRightTools (h, _vm) {
|
|
|
100
100
|
if (renderToolbarTool) {
|
|
101
101
|
return h('span', {
|
|
102
102
|
class: 'vxe-tool--item'
|
|
103
|
-
}, getSlotVNs(renderToolbarTool.call(_vm, h, toolRender, { $
|
|
103
|
+
}, getSlotVNs(renderToolbarTool.call(_vm, h, toolRender, { $table: $xetable, $grid: $xetable.xegrid, tool: item })))
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
return h('vxe-button', {
|
|
@@ -601,7 +601,7 @@ export default {
|
|
|
601
601
|
$xegrid.triggerToolbarBtnEvent(item, evnt)
|
|
602
602
|
} else {
|
|
603
603
|
const commandMethod = VXETable.commands.get(code)
|
|
604
|
-
const params = { code, button: item, $
|
|
604
|
+
const params = { code, button: item, $table: $xetable, $grid: $xetable.xegrid, $event: evnt }
|
|
605
605
|
if (commandMethod) {
|
|
606
606
|
commandMethod.call(this, params, evnt)
|
|
607
607
|
}
|
package/packages/tools/utils.js
CHANGED
|
@@ -85,7 +85,7 @@ export const UtilTools = {
|
|
|
85
85
|
parseFile (file) {
|
|
86
86
|
const name = file.name
|
|
87
87
|
const tIndex = XEUtils.lastIndexOf(name, '.')
|
|
88
|
-
const type = name.substring(tIndex + 1, name.length)
|
|
88
|
+
const type = name.substring(tIndex + 1, name.length).toLowerCase()
|
|
89
89
|
const filename = name.substring(0, tIndex)
|
|
90
90
|
return { filename, type }
|
|
91
91
|
},
|
package/types/component.d.ts
CHANGED
package/types/table.d.ts
CHANGED
|
@@ -1066,9 +1066,9 @@ export declare class Table extends VXETableComponent {
|
|
|
1066
1066
|
[key: string]: any;
|
|
1067
1067
|
}
|
|
1068
1068
|
|
|
1069
|
-
export type TableBorder = boolean | 'default' | 'full' | 'outer' | 'inner' | 'none';
|
|
1070
|
-
export type TableAlign = 'left' | 'center' | 'right' | null;
|
|
1071
|
-
export type TableOverflow = boolean | 'ellipsis' | 'title' | 'tooltip' | null;
|
|
1069
|
+
export type TableBorder = boolean | 'default' | 'full' | 'outer' | 'inner' | 'none' | '';
|
|
1070
|
+
export type TableAlign = 'left' | 'center' | 'right' | '' | null;
|
|
1071
|
+
export type TableOverflow = boolean | 'ellipsis' | 'title' | 'tooltip' | '' | null;
|
|
1072
1072
|
|
|
1073
1073
|
export interface TableFooterMethodParams {
|
|
1074
1074
|
$table: Table;
|
|
@@ -1206,7 +1206,7 @@ export interface TableSortConfs {
|
|
|
1206
1206
|
order?: TableSortOrder;
|
|
1207
1207
|
}
|
|
1208
1208
|
|
|
1209
|
-
export type TableSortOrder = 'asc' | 'desc' | null;
|
|
1209
|
+
export type TableSortOrder = 'asc' | 'desc' | '' | null;
|
|
1210
1210
|
|
|
1211
1211
|
/**
|
|
1212
1212
|
* 排序配置项
|
|
@@ -1245,7 +1245,7 @@ export interface TableRadioConfig {
|
|
|
1245
1245
|
labelField?: string;
|
|
1246
1246
|
checkRowKey?: string | number;
|
|
1247
1247
|
checkMethod?(params: { row: RowInfo }): boolean;
|
|
1248
|
-
trigger?: 'default' | 'cell' | 'row';
|
|
1248
|
+
trigger?: 'default' | 'cell' | 'row' | '';
|
|
1249
1249
|
highlight?: boolean;
|
|
1250
1250
|
}
|
|
1251
1251
|
export type RadioConfig = TableRadioConfig
|
|
@@ -1264,7 +1264,7 @@ export interface TableCheckboxConfig {
|
|
|
1264
1264
|
checkStrictly?: boolean;
|
|
1265
1265
|
strict?: boolean;
|
|
1266
1266
|
checkMethod?(params: { row: RowInfo }): boolean;
|
|
1267
|
-
trigger?: 'default' | 'cell' | 'row';
|
|
1267
|
+
trigger?: 'default' | 'cell' | 'row' | '';
|
|
1268
1268
|
highlight?: boolean;
|
|
1269
1269
|
range?: boolean;
|
|
1270
1270
|
}
|
|
@@ -1275,7 +1275,7 @@ export type CheckboxConfig = TableCheckboxConfig
|
|
|
1275
1275
|
*/
|
|
1276
1276
|
export interface TableTooltipConfig {
|
|
1277
1277
|
enabled?: boolean;
|
|
1278
|
-
theme?: 'dark' | 'light';
|
|
1278
|
+
theme?: 'dark' | 'light' | '';
|
|
1279
1279
|
enterable?: boolean;
|
|
1280
1280
|
leaveDelay?: number;
|
|
1281
1281
|
contentMethod?(params: { items: any[], row: RowInfo, rowIndex: number, $rowIndex: number, column: ColumnInfo, columnIndex: number, $columnIndex: number, type: 'header' | 'body' | 'footer', cell: HTMLElement, $event: any }): string | null | void;
|
|
@@ -1290,7 +1290,7 @@ export interface TableExpandConfig {
|
|
|
1290
1290
|
expandAll?: boolean;
|
|
1291
1291
|
expandRowKeys?: string[] | number[];
|
|
1292
1292
|
accordion?: boolean;
|
|
1293
|
-
trigger?: 'default' | 'cell' | 'row';
|
|
1293
|
+
trigger?: 'default' | 'cell' | 'row' | '';
|
|
1294
1294
|
lazy?: boolean;
|
|
1295
1295
|
height?: number
|
|
1296
1296
|
loadMethod?(params: { row: RowInfo, rowIndex: number, $rowIndex: number }): Promise<any>;
|
|
@@ -1313,7 +1313,7 @@ export interface TableTreeConfig {
|
|
|
1313
1313
|
expandAll?: boolean;
|
|
1314
1314
|
expandRowKeys?: string[] | number[];
|
|
1315
1315
|
accordion?: boolean;
|
|
1316
|
-
trigger?: 'default' | 'cell' | 'row';
|
|
1316
|
+
trigger?: 'default' | 'cell' | 'row' | '';
|
|
1317
1317
|
lazy?: boolean;
|
|
1318
1318
|
hasChild?: string;
|
|
1319
1319
|
loadMethod?(params: { row: RowInfo }): Promise<any[]>;
|
|
@@ -1332,7 +1332,7 @@ export interface TreeOpts {
|
|
|
1332
1332
|
expandAll?: boolean;
|
|
1333
1333
|
expandRowKeys?: string[] | number[];
|
|
1334
1334
|
accordion?: boolean;
|
|
1335
|
-
trigger?: 'default' | 'cell' | 'row';
|
|
1335
|
+
trigger?: 'default' | 'cell' | 'row' | '';
|
|
1336
1336
|
lazy?: boolean;
|
|
1337
1337
|
hasChild: string;
|
|
1338
1338
|
loadMethod?(params: { row: RowInfo }): Promise<any[]>;
|
|
@@ -1350,7 +1350,7 @@ export interface TableMenuConfig {
|
|
|
1350
1350
|
header?: MenuOptions;
|
|
1351
1351
|
body?: MenuOptions;
|
|
1352
1352
|
footer?: MenuOptions;
|
|
1353
|
-
trigger?: 'default' | 'cell';
|
|
1353
|
+
trigger?: 'default' | 'cell' | '';
|
|
1354
1354
|
visibleMethod?(params: { type: string, options: MenuFirstOption[], columns: ColumnInfo[], row?: RowInfo, rowIndex?: number, column?: ColumnInfo, columnIndex?: number }): boolean;
|
|
1355
1355
|
className?: string;
|
|
1356
1356
|
}
|
package/types/tooltip.d.ts
CHANGED
|
@@ -11,11 +11,11 @@ export declare class Tooltip extends VXETableComponent {
|
|
|
11
11
|
/**
|
|
12
12
|
* 触发方式
|
|
13
13
|
*/
|
|
14
|
-
trigger?: 'manual' | 'hover' | 'click';
|
|
14
|
+
trigger?: 'manual' | 'hover' | 'click' | '' | null;
|
|
15
15
|
/**
|
|
16
16
|
* 主题样式
|
|
17
17
|
*/
|
|
18
|
-
theme?: 'dark' | 'light';
|
|
18
|
+
theme?: 'dark' | 'light' | '' | null;
|
|
19
19
|
/**
|
|
20
20
|
* 显示内容
|
|
21
21
|
*/
|
package/types/validator.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export interface ColumnEditRule {
|
|
|
23
23
|
/**
|
|
24
24
|
* 数据类型
|
|
25
25
|
*/
|
|
26
|
-
type?: 'number' | 'string';
|
|
26
|
+
type?: 'number' | 'string' | '' | null;
|
|
27
27
|
/**
|
|
28
28
|
* 使用正则表达式校验
|
|
29
29
|
*/
|
|
@@ -37,7 +37,7 @@ export interface ColumnEditRule {
|
|
|
37
37
|
* 提示消息
|
|
38
38
|
*/
|
|
39
39
|
message?: string;
|
|
40
|
-
trigger?: 'blur' | 'change' | 'manual';
|
|
40
|
+
trigger?: 'blur' | 'change' | 'manual' | '' | null;
|
|
41
41
|
maxWidth?: number;
|
|
42
42
|
}
|
|
43
43
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|