vxe-table 4.3.3 → 4.3.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/es/edit/src/hook.js +3 -0
- package/es/filter/src/panel.js +2 -1
- package/es/form/src/render.js +2 -1
- package/es/locale/lang/en-US.js +1 -0
- package/es/locale/lang/ja-JP.js +1 -0
- package/es/locale/lang/zh-CN.js +1 -0
- package/es/locale/lang/zh-TC.js +1 -0
- package/es/table/src/body.js +2 -1
- package/es/table/src/table.js +1 -1
- package/es/toolbar/src/toolbar.js +2 -2
- package/lib/edit/src/hook.js +4 -0
- package/lib/edit/src/hook.min.js +1 -1
- package/lib/filter/src/panel.js +3 -1
- package/lib/filter/src/panel.min.js +1 -1
- package/lib/form/src/render.js +3 -1
- package/lib/form/src/render.min.js +1 -1
- package/lib/index.umd.js +17 -9
- 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/table/src/body.js +4 -2
- 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/toolbar/src/toolbar.js +4 -4
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/package.json +4 -4
- package/packages/edit/src/hook.ts +3 -0
- package/packages/filter/src/panel.ts +2 -1
- package/packages/form/src/render.ts +2 -1
- package/packages/locale/lang/en-US.ts +1 -0
- package/packages/locale/lang/ja-JP.ts +1 -0
- package/packages/locale/lang/zh-CN.ts +1 -0
- package/packages/locale/lang/zh-TC.ts +1 -0
- package/packages/table/src/body.ts +2 -1
- package/packages/table/src/table.ts +1 -1
- package/packages/toolbar/src/toolbar.ts +2 -2
- package/types/v-x-e-table/renderer.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-table",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.4",
|
|
4
4
|
"description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、贼灵活的配置项等...",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@vue/cli-plugin-typescript": "~4.5.0",
|
|
37
37
|
"@vue/cli-plugin-vuex": "~4.5.0",
|
|
38
38
|
"@vue/cli-service": "~4.5.0",
|
|
39
|
-
"@vue/compiler-sfc": "^3.2.
|
|
39
|
+
"@vue/compiler-sfc": "^3.2.39",
|
|
40
40
|
"@vue/eslint-config-standard": "^5.1.2",
|
|
41
41
|
"@vue/eslint-config-typescript": "^7.0.0",
|
|
42
42
|
"core-js": "^3.6.5",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"sass": "^1.52.1",
|
|
62
62
|
"sass-loader": "^10.0.5",
|
|
63
63
|
"typescript": "^4.6.4",
|
|
64
|
-
"vue": "^3.2.
|
|
64
|
+
"vue": "^3.2.39",
|
|
65
65
|
"vue-i18n": "^9.1.7",
|
|
66
66
|
"vue-router": "^4.0.11",
|
|
67
67
|
"vuex": "^4.0.2",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"xe-utils": "^3.5.6"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"vue": "^3.2.
|
|
72
|
+
"vue": "^3.2.28",
|
|
73
73
|
"xe-utils": "^3.5.0"
|
|
74
74
|
},
|
|
75
75
|
"vetur": {
|
|
@@ -686,6 +686,9 @@ const editHook: VxeGlobalHooksHandles.HookOptions = {
|
|
|
686
686
|
if (!autofocus && compRender) {
|
|
687
687
|
autofocus = compRender.autofocus
|
|
688
688
|
}
|
|
689
|
+
if (!autoselect && compRender) {
|
|
690
|
+
autoselect = compRender.autoselect
|
|
691
|
+
}
|
|
689
692
|
// 如果指定了聚焦 class
|
|
690
693
|
if (XEUtils.isFunction(autofocus)) {
|
|
691
694
|
inputElem = autofocus.call(this, params)
|
|
@@ -3,6 +3,7 @@ import GlobalConfig from '../../v-x-e-table/src/conf'
|
|
|
3
3
|
import { VXETable } from '../../v-x-e-table'
|
|
4
4
|
import { formatText } from '../../tools/utils'
|
|
5
5
|
import { getPropClass } from '../../tools/dom'
|
|
6
|
+
import { getSlotVNs } from '../../tools/vn'
|
|
6
7
|
|
|
7
8
|
import { VxeTableConstructor, VxeTableMethods, VxeTablePrivateMethods } from '../../../types/all'
|
|
8
9
|
|
|
@@ -118,7 +119,7 @@ export default defineComponent({
|
|
|
118
119
|
return [
|
|
119
120
|
h('div', {
|
|
120
121
|
class: 'vxe-table--filter-template'
|
|
121
|
-
}, compConf.renderFilter(filterRender, params))
|
|
122
|
+
}, getSlotVNs(compConf.renderFilter(filterRender, params)))
|
|
122
123
|
]
|
|
123
124
|
}
|
|
124
125
|
const isAllChecked = multiple ? filterStore.isAllSelected : !filterStore.options.some((item: any) => item._checked)
|
|
@@ -2,6 +2,7 @@ import { ComponentOptions, h, resolveComponent } from 'vue'
|
|
|
2
2
|
import GlobalConfig from '../../v-x-e-table/src/conf'
|
|
3
3
|
import { VXETable } from '../../v-x-e-table'
|
|
4
4
|
import { getFuncText, isEnableConf } from '../../tools/utils'
|
|
5
|
+
import { getSlotVNs } from '../../tools/vn'
|
|
5
6
|
|
|
6
7
|
import { VxeFormConstructor, VxeFormDefines, VxeFormItemPropTypes, VxeFormPrivateMethods } from '../../../types/all'
|
|
7
8
|
|
|
@@ -51,7 +52,7 @@ export function renderTitle ($xeform: VxeFormConstructor & VxeFormPrivateMethods
|
|
|
51
52
|
titVNs.push(
|
|
52
53
|
h('span', {
|
|
53
54
|
class: 'vxe-form--item-title-label'
|
|
54
|
-
}, compConf && compConf.renderItemTitle ? compConf.renderItemTitle(itemRender, params) : (titleSlot ? $xeform.callSlot(titleSlot, params) : getFuncText(item.title)))
|
|
55
|
+
}, compConf && compConf.renderItemTitle ? getSlotVNs(compConf.renderItemTitle(itemRender, params)) : (titleSlot ? $xeform.callSlot(titleSlot, params) : getFuncText(item.title)))
|
|
55
56
|
)
|
|
56
57
|
contVNs.push(
|
|
57
58
|
h('div', {
|
|
@@ -5,6 +5,7 @@ import { VXETable } from '../../v-x-e-table'
|
|
|
5
5
|
import { mergeBodyMethod, getRowid, removeScrollListener, restoreScrollListener, XEBodyScrollElement } from './util'
|
|
6
6
|
import { updateCellTitle, getPropClass } from '../../tools/dom'
|
|
7
7
|
import { isEnableConf } from '../../tools/utils'
|
|
8
|
+
import { getSlotVNs } from '../../tools/vn'
|
|
8
9
|
|
|
9
10
|
import { VxeTablePrivateMethods, VxeTableConstructor, VxeTableDefines, VxeTableMethods, VxeGlobalRendererHandles, VxeColumnPropTypes, SizeType } from '../../../types/all'
|
|
10
11
|
|
|
@@ -757,7 +758,7 @@ export default defineComponent({
|
|
|
757
758
|
const compConf = emptyOpts.name ? VXETable.renderer.get(emptyOpts.name) : null
|
|
758
759
|
const renderEmpty = compConf ? compConf.renderEmpty : null
|
|
759
760
|
if (renderEmpty) {
|
|
760
|
-
emptyContent = renderEmpty(emptyOpts, { $table: $xetable })
|
|
761
|
+
emptyContent = getSlotVNs(renderEmpty(emptyOpts, { $table: $xetable }))
|
|
761
762
|
} else {
|
|
762
763
|
emptyContent = tableProps.emptyText || GlobalConfig.i18n('vxe.table.emptyText')
|
|
763
764
|
}
|
|
@@ -5624,7 +5624,7 @@ export default defineComponent({
|
|
|
5624
5624
|
const compConf = emptyOpts.name ? VXETable.renderer.get(emptyOpts.name) : null
|
|
5625
5625
|
const renderEmpty = compConf ? compConf.renderEmpty : null
|
|
5626
5626
|
if (renderEmpty) {
|
|
5627
|
-
return renderEmpty(emptyOpts, params)
|
|
5627
|
+
return getSlotVNs(renderEmpty(emptyOpts, params))
|
|
5628
5628
|
}
|
|
5629
5629
|
}
|
|
5630
5630
|
return getFuncText(props.emptyText) || GlobalConfig.i18n('vxe.table.emptyText')
|
|
@@ -387,7 +387,7 @@ export default defineComponent({
|
|
|
387
387
|
btnVNs.push(
|
|
388
388
|
h('span', {
|
|
389
389
|
class: 'vxe-button--item'
|
|
390
|
-
}, compConf.renderToolbarButton(buttonRender, { $grid: $xegrid, $table: $xetable, button: item }))
|
|
390
|
+
}, getSlotVNs(compConf.renderToolbarButton(buttonRender, { $grid: $xegrid, $table: $xetable, button: item })))
|
|
391
391
|
)
|
|
392
392
|
} else {
|
|
393
393
|
btnVNs.push(
|
|
@@ -434,7 +434,7 @@ export default defineComponent({
|
|
|
434
434
|
btnVNs.push(
|
|
435
435
|
h('span', {
|
|
436
436
|
class: 'vxe-tool--item'
|
|
437
|
-
}, compConf.renderToolbarTool(toolRender, { $grid: $xegrid, $table: $xetable, tool: item }))
|
|
437
|
+
}, getSlotVNs(compConf.renderToolbarTool(toolRender, { $grid: $xegrid, $table: $xetable, tool: item })))
|
|
438
438
|
)
|
|
439
439
|
} else {
|
|
440
440
|
btnVNs.push(
|
|
@@ -32,6 +32,7 @@ export interface DefineRendererOption<T> {
|
|
|
32
32
|
|
|
33
33
|
// 编辑渲染
|
|
34
34
|
autofocus?: string | ((params: VxeGlobalRendererHandles.RenderEditParams | VxeGlobalRendererHandles.RenderCellParams) => HTMLElement | null)
|
|
35
|
+
autoselect?: boolean
|
|
35
36
|
renderEdit?(renderOpts: VxeGlobalRendererHandles.RenderEditOptions, params: VxeGlobalRendererHandles.RenderEditParams): T
|
|
36
37
|
renderCell?(renderOpts: VxeGlobalRendererHandles.RenderCellOptions, params: VxeGlobalRendererHandles.RenderCellParams): T
|
|
37
38
|
|