vxe-table 3.5.9-beta.4 → 3.5.9-beta.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "3.5.9-beta.4",
3
+ "version": "3.5.9-beta.5",
4
4
  "description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、贼灵活的配置项、扩展接口等...",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1312,8 +1312,9 @@ const Methods = {
1312
1312
  * 根据行的唯一主键获取行
1313
1313
  * @param {String/Number} rowid 行主键
1314
1314
  */
1315
- getRowById (rowid) {
1315
+ getRowById (cellValue) {
1316
1316
  const fullDataRowIdData = this.fullDataRowIdData
1317
+ const rowid = XEUtils.eqNull(cellValue) ? '' : encodeURIComponent(cellValue)
1317
1318
  return fullDataRowIdData[rowid] ? fullDataRowIdData[rowid].row : null
1318
1319
  },
1319
1320
  /**
@@ -7,6 +7,7 @@
7
7
  display: flex;
8
8
  flex-direction: row;
9
9
  align-items: center;
10
+ margin: 0.6em 0;
10
11
  color: $vxe-font-color;
11
12
  font-family: $vxe-font-family;
12
13
  background-color: $vxe-toolbar-background-color;
@@ -64,12 +65,19 @@
64
65
  justify-content: center;
65
66
  }
66
67
  }
68
+ .vxe-buttons--wrapper,
67
69
  .vxe-tools--wrapper,
68
70
  .vxe-tools--operate {
69
71
  display: flex;
70
- flex-shrink: 0;
71
72
  align-items: center;
72
73
  }
74
+ .vxe-buttons--wrapper,
75
+ .vxe-tools--wrapper {
76
+ flex-wrap: wrap;
77
+ }
78
+ .vxe-tools--operate {
79
+ flex-shrink: 0;
80
+ }
73
81
  .vxe-custom--wrapper {
74
82
  position: relative;
75
83
  margin-left: 0.8em;
@@ -171,7 +179,6 @@
171
179
 
172
180
  .vxe-toolbar {
173
181
  font-size: $vxe-font-size;
174
- height: $vxe-toolbar-height-default;
175
182
  .vxe-custom--option {
176
183
  & > .vxe-checkbox--icon {
177
184
  font-size: $vxe-checkbox-font-size-default;
@@ -179,7 +186,6 @@
179
186
  }
180
187
  &.size--medium {
181
188
  font-size: $vxe-font-size-medium;
182
- height: $vxe-toolbar-height-medium;
183
189
  .vxe-custom--option {
184
190
  & > .vxe-checkbox--icon {
185
191
  font-size: $vxe-checkbox-font-size-medium;
@@ -188,7 +194,6 @@
188
194
  }
189
195
  &.size--small {
190
196
  font-size: $vxe-font-size-small;
191
- height: $vxe-toolbar-height-small;
192
197
  .vxe-custom--option {
193
198
  & > .vxe-checkbox--icon {
194
199
  font-size: $vxe-checkbox-font-size-small;
@@ -197,7 +202,6 @@
197
202
  }
198
203
  &.size--mini {
199
204
  font-size: $vxe-font-size-mini;
200
- height: $vxe-toolbar-height-mini;
201
205
  .vxe-custom--option {
202
206
  & > .vxe-checkbox--icon {
203
207
  font-size: $vxe-checkbox-font-size-mini;
@@ -121,10 +121,6 @@ $vxe-grid-maximize-background-color: #fff !default;
121
121
 
122
122
  /*toolbar*/
123
123
  $vxe-toolbar-background-color: #fff !default;
124
- $vxe-toolbar-height-default: 52px !default;
125
- $vxe-toolbar-height-medium: 50px !default;
126
- $vxe-toolbar-height-small: 48px !default;
127
- $vxe-toolbar-height-mini: 46px !default;
128
124
  $vxe-toolbar-custom-active-background-color: #D9DADB !default;
129
125
  $vxe-toolbar-panel-background-color: #fff !default;
130
126