vxe-table 3.7.0-beta.15 → 3.7.0-beta.17

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 (56) hide show
  1. package/README.md +1 -1
  2. package/lib/edit/src/mixin.js +6 -4
  3. package/lib/edit/src/mixin.min.js +1 -1
  4. package/lib/export/src/mixin.js +4 -1
  5. package/lib/export/src/mixin.min.js +1 -1
  6. package/lib/icon/style/style.css +1 -1
  7. package/lib/icon/style/style.min.css +1 -1
  8. package/lib/index.css +1 -1
  9. package/lib/index.umd.js +663 -428
  10. package/lib/index.umd.min.js +1 -1
  11. package/lib/input/src/input.js +24 -1
  12. package/lib/input/src/input.min.js +1 -1
  13. package/lib/input/style/style.css +21 -0
  14. package/lib/input/style/style.min.css +1 -1
  15. package/lib/keyboard/src/mixin.js +4 -1
  16. package/lib/keyboard/src/mixin.min.js +1 -1
  17. package/lib/style.css +1 -1
  18. package/lib/style.min.css +1 -1
  19. package/lib/table/src/body.js +10 -8
  20. package/lib/table/src/body.min.js +1 -1
  21. package/lib/table/src/cell.js +20 -16
  22. package/lib/table/src/cell.min.js +1 -1
  23. package/lib/table/src/methods.js +573 -379
  24. package/lib/table/src/methods.min.js +1 -1
  25. package/lib/table/src/table.js +15 -13
  26. package/lib/table/src/table.min.js +1 -1
  27. package/lib/table/style/style.css +2 -2
  28. package/lib/table/style/style.min.css +1 -1
  29. package/lib/tools/log.js +1 -1
  30. package/lib/tools/log.min.js +1 -1
  31. package/lib/v-x-e-table/index.js +1 -1
  32. package/lib/v-x-e-table/index.min.js +1 -1
  33. package/lib/validator/src/mixin.js +4 -1
  34. package/lib/validator/src/mixin.min.js +1 -1
  35. package/package.json +4 -9
  36. package/packages/edit/src/mixin.js +7 -5
  37. package/packages/export/src/mixin.js +2 -1
  38. package/packages/input/src/input.js +24 -1
  39. package/packages/keyboard/src/mixin.js +2 -1
  40. package/packages/table/src/body.js +10 -8
  41. package/packages/table/src/cell.js +18 -14
  42. package/packages/table/src/methods.js +408 -202
  43. package/packages/table/src/table.js +15 -13
  44. package/packages/validator/src/mixin.js +2 -1
  45. package/styles/css-variable.scss +3 -3
  46. package/styles/input.scss +25 -0
  47. package/styles/table.scss +6 -2
  48. package/styles/textarea.scss +3 -3
  49. package/styles/variable.scss +3 -3
  50. package/types/v-x-e-table/index.d.ts +1 -1
  51. /package/lib/icon/style/{iconfont.1692577739980.ttf → iconfont.1693628087676.ttf} +0 -0
  52. /package/lib/icon/style/{iconfont.1692577739980.woff → iconfont.1693628087676.woff} +0 -0
  53. /package/lib/icon/style/{iconfont.1692577739980.woff2 → iconfont.1693628087676.woff2} +0 -0
  54. /package/lib/{iconfont.1692577739980.ttf → iconfont.1693628087676.ttf} +0 -0
  55. /package/lib/{iconfont.1692577739980.woff → iconfont.1693628087676.woff} +0 -0
  56. /package/lib/{iconfont.1692577739980.woff2 → iconfont.1693628087676.woff2} +0 -0
@@ -304,14 +304,14 @@ export default {
304
304
  isAllSelected: false,
305
305
  // 复选框属性,有选中且非全选状态
306
306
  isIndeterminate: false,
307
- // 复选框属性,已选中的行
308
- selectCheckboxRows: [],
307
+ // 复选框属性,已选中的行集合
308
+ selectCheckboxMaps: {},
309
309
  // 当前行
310
310
  currentRow: null,
311
311
  // 单选框属性,选中列
312
312
  currentColumn: null,
313
313
  // 单选框属性,选中行
314
- selectRow: null,
314
+ selectRadioRow: null,
315
315
  // 表尾合计数据
316
316
  footerTableData: [],
317
317
  // 展开列信息
@@ -319,16 +319,16 @@ export default {
319
319
  hasFixedColumn: false,
320
320
  // 树节点列信息
321
321
  treeNodeColumn: null,
322
- // 已展开的行
323
- rowExpandeds: [],
324
- // 懒加载中的展开行的列表
325
- expandLazyLoadeds: [],
326
- // 已展开树节点
327
- treeExpandeds: [],
328
- // 懒加载中的树节点的列表
329
- treeLazyLoadeds: [],
330
- // 树节点不确定状态的列表
331
- treeIndeterminates: [],
322
+ // 已展开的行集合
323
+ rowExpandedMaps: {},
324
+ // 懒加载中的展开行的集合
325
+ rowExpandLazyLoadedMaps: {},
326
+ // 已展开树节点集合
327
+ treeExpandedMaps: {},
328
+ // 懒加载中的树节点的集合
329
+ treeExpandLazyLoadedMaps: {},
330
+ // 树节点不确定状态的集合
331
+ treeIndeterminateMaps: {},
332
332
  // 合并单元格的对象集
333
333
  mergeList: [],
334
334
  // 合并表尾数据的对象集
@@ -743,6 +743,8 @@ export default {
743
743
  // 完整数据、条件处理后
744
744
  tableFullData: [],
745
745
  afterFullData: [],
746
+ // 列表条件处理后数据集合
747
+ afterFullRowMaps: {},
746
748
  // 收集的列配置(带分组)
747
749
  collectColumn: [],
748
750
  // 完整所有列(不带分组)
@@ -112,6 +112,7 @@ export default {
112
112
  beginValidate (rows, cb, isFull) {
113
113
  const validRest = {}
114
114
  const { editRules, afterFullData, treeConfig, treeOpts } = this
115
+ const childrenField = treeOpts.children || treeOpts.childrenField
115
116
  let vaildDatas
116
117
  if (rows === true) {
117
118
  vaildDatas = afterFullData
@@ -165,7 +166,7 @@ export default {
165
166
  }
166
167
  }
167
168
  if (treeConfig) {
168
- XEUtils.eachTree(vaildDatas, handleVaild, treeOpts)
169
+ XEUtils.eachTree(vaildDatas, handleVaild, { children: childrenField })
169
170
  } else {
170
171
  vaildDatas.forEach(handleVaild)
171
172
  }
@@ -233,13 +233,13 @@
233
233
  --vxe-input-height-medium: #{$vxe-input-height-medium};
234
234
  --vxe-input-height-small: #{$vxe-input-height-small};
235
235
  --vxe-input-height-mini: #{$vxe-input-height-mini};
236
+ --vxe-input-count-color: #{$vxe-input-count-color};
237
+ --vxe-input-count-background-color: #{$vxe-input-count-background-color};
238
+ --vxe-input-count-error-color: #{$vxe-input-count-error-color};
236
239
 
237
240
  /*textarea*/
238
241
  --vxe-textarea-line-height: #{$vxe-textarea-line-height};
239
242
  --vxe-textarea-background-color: #{$vxe-textarea-background-color};
240
- --vxe-textarea-count-color: #{$vxe-textarea-count-color};
241
- --vxe-textarea-count-background-color: #{$vxe-textarea-count-background-color};
242
- --vxe-textarea-count-error-color: #{$vxe-textarea-count-error-color};
243
243
 
244
244
  /*form*/
245
245
  --vxe-form-item-min-height-default: #{$vxe-form-item-min-height-default};
package/styles/input.scss CHANGED
@@ -81,6 +81,18 @@ $iconWidth: 1.6em;
81
81
  }
82
82
  }
83
83
 
84
+ .vxe-input--count {
85
+ position: absolute;
86
+ top: 1px;
87
+ right: 0.5em;
88
+ height: calc(100% - 2px);
89
+ color: var($vxe-input-count-color);
90
+ background-color: var($vxe-input-count-background-color);
91
+ &.is--error {
92
+ color: var($vxe-input-count-error-color);
93
+ }
94
+ }
95
+
84
96
  // 前缀图标
85
97
  .vxe-input {
86
98
  .vxe-input--prefix {
@@ -106,6 +118,14 @@ $iconWidth: 1.6em;
106
118
  .vxe-input--inner {
107
119
  padding-right: $iconWidth + 0.2em;
108
120
  }
121
+ &.is--count {
122
+ .vxe-input--inner {
123
+ padding-right: 5em;
124
+ }
125
+ }
126
+ .vxe-input--count {
127
+ right: $iconWidth + 0.5em;
128
+ }
109
129
  }
110
130
  &.is--left {
111
131
  .vxe-input--inner {
@@ -122,6 +142,11 @@ $iconWidth: 1.6em;
122
142
  text-align: right;
123
143
  }
124
144
  }
145
+ &.is--count {
146
+ .vxe-input--inner {
147
+ padding-right: 3.4em;
148
+ }
149
+ }
125
150
  &.is--controls {
126
151
  &.type--search,
127
152
  &.type--password,
package/styles/table.scss CHANGED
@@ -454,10 +454,14 @@
454
454
  font-family: $vxe-font-family;
455
455
  direction: ltr;
456
456
  .vxe-table--body-wrapper {
457
- background-color: $vxe-table-body-background-color;
457
+ table {
458
+ background-color: $vxe-table-body-background-color;
459
+ }
458
460
  }
459
461
  .vxe-table--footer-wrapper {
460
- background-color: $vxe-table-footer-background-color;
462
+ table {
463
+ background-color: $vxe-table-footer-background-color;
464
+ }
461
465
  }
462
466
  .vxe-table--header,
463
467
  .vxe-table--body,
@@ -60,10 +60,10 @@
60
60
  bottom: 0.2em;
61
61
  right: 1.4em;
62
62
  padding-left: 0.2em;
63
- color: $vxe-textarea-count-color;
64
- background-color: $vxe-textarea-count-background-color;
63
+ color: $vxe-input-count-color;
64
+ background-color: $vxe-input-count-background-color;
65
65
  &.is--error {
66
- color: $vxe-textarea-count-error-color;
66
+ color: $vxe-input-count-error-color;
67
67
  }
68
68
  }
69
69
 
@@ -230,13 +230,13 @@ $vxe-input-height-default: $vxe-button-height-default !default;
230
230
  $vxe-input-height-medium: $vxe-button-height-medium !default;
231
231
  $vxe-input-height-small: $vxe-button-height-small !default;
232
232
  $vxe-input-height-mini: $vxe-button-height-mini !default;
233
+ $vxe-input-count-color: #999 !default;
234
+ $vxe-input-count-background-color: #fff !default;
235
+ $vxe-input-count-error-color: $vxe-table-validate-error-color !default;
233
236
 
234
237
  /*textarea*/
235
238
  $vxe-textarea-line-height: 1.5715 !default;
236
239
  $vxe-textarea-background-color: #fff !default;
237
- $vxe-textarea-count-color: #999 !default;
238
- $vxe-textarea-count-background-color: #fff !default;
239
- $vxe-textarea-count-error-color: $vxe-table-validate-error-color !default;
240
240
 
241
241
  /*form*/
242
242
  $vxe-form-item-min-height-default: 36px !default;
@@ -108,7 +108,7 @@ export interface VXETableCore {
108
108
  }
109
109
 
110
110
  /**
111
- * 一个基于 vue 的 PC 端表单/表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、JSON 配置式为低/零代码而设计...
111
+ * 一个基于 vue 的 PC 端表单/表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、JSON 配置式...
112
112
  */
113
113
  export const VXETable: VXETableCore
114
114