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.
Files changed (38) hide show
  1. package/es/edit/src/hook.js +3 -3
  2. package/es/icon/style.css +1 -1
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/table/src/table.js +5 -1
  6. package/es/tools/log.js +1 -1
  7. package/es/v-x-e-table/index.js +1 -1
  8. package/helper/vetur/attributes.json +18 -2
  9. package/helper/vetur/tags.json +4 -0
  10. package/lib/edit/src/hook.js +2 -2
  11. package/lib/edit/src/hook.min.js +1 -1
  12. package/lib/icon/style/style.css +1 -1
  13. package/lib/icon/style/style.min.css +1 -1
  14. package/lib/index.umd.js +10 -5
  15. package/lib/index.umd.min.js +1 -1
  16. package/lib/style.css +1 -1
  17. package/lib/style.min.css +1 -1
  18. package/lib/table/src/table.js +6 -1
  19. package/lib/table/src/table.min.js +1 -1
  20. package/lib/tools/log.js +1 -1
  21. package/lib/tools/log.min.js +1 -1
  22. package/lib/v-x-e-table/index.js +1 -1
  23. package/lib/v-x-e-table/index.min.js +1 -1
  24. package/package.json +2 -2
  25. package/packages/edit/src/hook.ts +2 -2
  26. package/packages/table/src/table.ts +5 -1
  27. /package/es/icon/style/{iconfont.1693370199154.ttf → iconfont.1693442246739.ttf} +0 -0
  28. /package/es/icon/style/{iconfont.1693370199154.woff → iconfont.1693442246739.woff} +0 -0
  29. /package/es/icon/style/{iconfont.1693370199154.woff2 → iconfont.1693442246739.woff2} +0 -0
  30. /package/es/{iconfont.1693370199154.ttf → iconfont.1693442246739.ttf} +0 -0
  31. /package/es/{iconfont.1693370199154.woff → iconfont.1693442246739.woff} +0 -0
  32. /package/es/{iconfont.1693370199154.woff2 → iconfont.1693442246739.woff2} +0 -0
  33. /package/lib/icon/style/{iconfont.1693370199154.ttf → iconfont.1693442246739.ttf} +0 -0
  34. /package/lib/icon/style/{iconfont.1693370199154.woff → iconfont.1693442246739.woff} +0 -0
  35. /package/lib/icon/style/{iconfont.1693370199154.woff2 → iconfont.1693442246739.woff2} +0 -0
  36. /package/lib/{iconfont.1693370199154.ttf → iconfont.1693442246739.ttf} +0 -0
  37. /package/lib/{iconfont.1693370199154.woff → iconfont.1693442246739.woff} +0 -0
  38. /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.8",
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.12"
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)