vxe-table 4.5.8 → 4.5.9
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 -3
- package/es/icon/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/table.js +5 -1
- package/es/tools/log.js +1 -1
- package/es/v-x-e-table/index.js +1 -1
- package/helper/vetur/attributes.json +18 -2
- package/helper/vetur/tags.json +4 -0
- package/lib/edit/src/hook.js +2 -2
- package/lib/edit/src/hook.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +10 -5
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/table.js +6 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.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/edit/src/hook.ts +2 -2
- package/packages/table/src/table.ts +5 -1
- /package/es/icon/style/{iconfont.1693370199154.ttf → iconfont.1693442246739.ttf} +0 -0
- /package/es/icon/style/{iconfont.1693370199154.woff → iconfont.1693442246739.woff} +0 -0
- /package/es/icon/style/{iconfont.1693370199154.woff2 → iconfont.1693442246739.woff2} +0 -0
- /package/es/{iconfont.1693370199154.ttf → iconfont.1693442246739.ttf} +0 -0
- /package/es/{iconfont.1693370199154.woff → iconfont.1693442246739.woff} +0 -0
- /package/es/{iconfont.1693370199154.woff2 → iconfont.1693442246739.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1693370199154.ttf → iconfont.1693442246739.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1693370199154.woff → iconfont.1693442246739.woff} +0 -0
- /package/lib/icon/style/{iconfont.1693370199154.woff2 → iconfont.1693442246739.woff2} +0 -0
- /package/lib/{iconfont.1693370199154.ttf → iconfont.1693442246739.ttf} +0 -0
- /package/lib/{iconfont.1693370199154.woff → iconfont.1693442246739.woff} +0 -0
- /package/lib/{iconfont.1693370199154.woff2 → iconfont.1693442246739.woff2} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-table",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.9",
|
|
4
4
|
"description": "一个基于 vue 的 PC 端表单/表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、JSON 配置式...",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update": "npm install --legacy-peer-deps",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"vue-i18n": "^9.1.7",
|
|
69
69
|
"vue-router": "^4.0.11",
|
|
70
70
|
"vuex": "^4.0.2",
|
|
71
|
-
"xe-utils": "^3.5.
|
|
71
|
+
"xe-utils": "^3.5.13"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"vue": "^3.2.28",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nextTick } from 'vue'
|
|
1
|
+
import { reactive, nextTick } from 'vue'
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
3
|
import GlobalConfig from '../../v-x-e-table/src/conf'
|
|
4
4
|
import { renderer } from '../../v-x-e-table'
|
|
@@ -113,7 +113,7 @@ const editHook: VxeGlobalHooksHandles.HookOptions = {
|
|
|
113
113
|
if (!XEUtils.isArray(records)) {
|
|
114
114
|
records = [records]
|
|
115
115
|
}
|
|
116
|
-
const newRecords: any[] = $xetable.defineField(records.map((record: any) => Object.assign(treeConfig && transform ? { [mapChildrenField]: [], [childrenField]: [] } : {}, record)))
|
|
116
|
+
const newRecords: any[] = reactive($xetable.defineField(records.map((record: any) => Object.assign(treeConfig && transform ? { [mapChildrenField]: [], [childrenField]: [] } : {}, record))))
|
|
117
117
|
if (!row) {
|
|
118
118
|
// 如果为虚拟树
|
|
119
119
|
if (treeConfig && transform) {
|
|
@@ -2796,7 +2796,7 @@ export default defineComponent({
|
|
|
2796
2796
|
*/
|
|
2797
2797
|
loadTreeChildren (row, childRecords) {
|
|
2798
2798
|
const { keepSource } = props
|
|
2799
|
-
const { tableSourceData, fullDataRowIdData, fullAllDataRowIdData } = internalData
|
|
2799
|
+
const { tableSourceData, fullDataRowIdData, fullAllDataRowIdData, sourceDataRowIdData } = internalData
|
|
2800
2800
|
const treeOpts = computeTreeOpts.value
|
|
2801
2801
|
const { transform, mapChildrenField } = treeOpts
|
|
2802
2802
|
const childrenField = treeOpts.children || treeOpts.childrenField
|
|
@@ -2809,6 +2809,10 @@ export default defineComponent({
|
|
|
2809
2809
|
if (matchObj) {
|
|
2810
2810
|
matchObj.item[childrenField] = XEUtils.clone(rows, true)
|
|
2811
2811
|
}
|
|
2812
|
+
rows.forEach(childRow => {
|
|
2813
|
+
const rowid = getRowid($xetable, childRow)
|
|
2814
|
+
sourceDataRowIdData[rowid] = XEUtils.clone(childRow, true)
|
|
2815
|
+
})
|
|
2812
2816
|
}
|
|
2813
2817
|
XEUtils.eachTree(rows, (childRow, index, items, path, parent, nodes) => {
|
|
2814
2818
|
const rowid = getRowid($xetable, childRow)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|