vxe-table 4.7.22 → 4.7.24
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/table/module/edit/hook.js +1 -1
- package/es/table/module/export/hook.js +15 -3
- package/es/table/src/body.js +1 -1
- package/es/table/src/table.js +1 -1
- package/es/ui/index.js +3 -2
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +24 -13
- package/lib/index.umd.min.js +1 -1
- package/lib/table/module/edit/hook.js +1 -1
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/module/export/hook.js +11 -3
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/src/body.js +1 -1
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/table.js +1 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +4 -3
- 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/table/module/edit/hook.ts +1 -1
- package/packages/table/module/export/hook.ts +15 -3
- package/packages/table/src/body.ts +1 -1
- package/packages/table/src/table.ts +1 -1
- package/packages/ui/index.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-table",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.24",
|
|
4
4
|
"description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟树、列拖拽,懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update": "npm install --legacy-peer-deps",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"style": "lib/style.css",
|
|
29
29
|
"typings": "types/index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"vxe-pc-ui": "^4.0.
|
|
31
|
+
"vxe-pc-ui": "^4.0.22"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/resize-observer-browser": "^0.1.11",
|
|
@@ -760,7 +760,7 @@ hooks.add('tableEditModule', {
|
|
|
760
760
|
let { autofocus, autoselect } = editRender
|
|
761
761
|
let inputElem
|
|
762
762
|
if (!autofocus && compRender) {
|
|
763
|
-
autofocus = compRender.tableAutofocus || compRender.autofocus
|
|
763
|
+
autofocus = compRender.tableAutoFocus || compRender.tableAutofocus || compRender.autofocus
|
|
764
764
|
}
|
|
765
765
|
if (!autoselect && compRender) {
|
|
766
766
|
autoselect = compRender.tableAutoSelect || compRender.autoselect
|
|
@@ -1287,7 +1287,11 @@ hooks.add('tableExportModule', {
|
|
|
1287
1287
|
const { treeConfig, importConfig } = props
|
|
1288
1288
|
const { initStore, importStore, importParams } = reactData
|
|
1289
1289
|
const importOpts = computeImportOpts.value
|
|
1290
|
-
const defOpts = Object.assign({
|
|
1290
|
+
const defOpts = Object.assign({
|
|
1291
|
+
mode: 'insert',
|
|
1292
|
+
message: true,
|
|
1293
|
+
types: XEUtils.keys(importOpts._typeMaps)
|
|
1294
|
+
}, importOpts, options)
|
|
1291
1295
|
const { types } = defOpts
|
|
1292
1296
|
const isTree = !!treeConfig
|
|
1293
1297
|
if (isTree) {
|
|
@@ -1327,21 +1331,29 @@ hooks.add('tableExportModule', {
|
|
|
1327
1331
|
},
|
|
1328
1332
|
openExport (options: any) {
|
|
1329
1333
|
const exportOpts = computeExportOpts.value
|
|
1334
|
+
const defOpts = Object.assign({
|
|
1335
|
+
mode: 'insert',
|
|
1336
|
+
message: true,
|
|
1337
|
+
types: XEUtils.keys(exportOpts._typeMaps)
|
|
1338
|
+
}, exportOpts, options)
|
|
1330
1339
|
if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
1331
1340
|
if (!props.exportConfig) {
|
|
1332
1341
|
errLog('vxe.error.reqProp', ['export-config'])
|
|
1333
1342
|
}
|
|
1334
1343
|
}
|
|
1335
|
-
handleExportAndPrint(
|
|
1344
|
+
handleExportAndPrint(defOpts)
|
|
1336
1345
|
},
|
|
1337
1346
|
openPrint (options: any) {
|
|
1338
1347
|
const printOpts = computePrintOpts.value
|
|
1348
|
+
const defOpts = Object.assign({
|
|
1349
|
+
message: true
|
|
1350
|
+
}, printOpts, options)
|
|
1339
1351
|
if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
1340
1352
|
if (!props.printConfig) {
|
|
1341
1353
|
errLog('vxe.error.reqProp', ['print-config'])
|
|
1342
1354
|
}
|
|
1343
1355
|
}
|
|
1344
|
-
handleExportAndPrint(
|
|
1356
|
+
handleExportAndPrint(defOpts, true)
|
|
1345
1357
|
}
|
|
1346
1358
|
}
|
|
1347
1359
|
|
|
@@ -795,7 +795,7 @@ export default defineComponent({
|
|
|
795
795
|
emptyContent = $xeTable.callSlot(emptySlot, { $table: $xeTable, $grid: $xeTable.xegrid })
|
|
796
796
|
} else {
|
|
797
797
|
const compConf = emptyOpts.name ? renderer.get(emptyOpts.name) : null
|
|
798
|
-
const rtEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null
|
|
798
|
+
const rtEmptyView = compConf ? (compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty) : null
|
|
799
799
|
if (rtEmptyView) {
|
|
800
800
|
emptyContent = getSlotVNs(rtEmptyView(emptyOpts, { $table: $xeTable }))
|
|
801
801
|
} else {
|
|
@@ -6392,7 +6392,7 @@ export default defineComponent({
|
|
|
6392
6392
|
return slots.empty(params)
|
|
6393
6393
|
} else {
|
|
6394
6394
|
const compConf = emptyOpts.name ? renderer.get(emptyOpts.name) : null
|
|
6395
|
-
const rtEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null
|
|
6395
|
+
const rtEmptyView = compConf ? (compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty) : null
|
|
6396
6396
|
if (rtEmptyView) {
|
|
6397
6397
|
return getSlotVNs(rtEmptyView(emptyOpts, params))
|
|
6398
6398
|
}
|
package/packages/ui/index.ts
CHANGED
|
@@ -3,7 +3,9 @@ import { getFuncText } from './src/utils'
|
|
|
3
3
|
|
|
4
4
|
import type { VxeUploadDefines, VxeGlobalConfig } from 'vxe-pc-ui'
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
export const version = process.env.VUE_APP_VXE_VERSION as string
|
|
7
|
+
|
|
8
|
+
VxeUI.version = version
|
|
7
9
|
VxeUI.tableVersion = process.env.VUE_APP_VXE_VERSION as string
|
|
8
10
|
|
|
9
11
|
VxeUI.setConfig({
|