n20-common-lib 2.10.10 → 2.10.11

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": "n20-common-lib",
3
- "version": "2.10.10",
3
+ "version": "2.10.11",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -336,6 +336,10 @@ export default {
336
336
  calcColumnWidth(columns) {
337
337
  columns = XEUtils.clone(columns, true)
338
338
  const wrapperEl = document.querySelector('div#app')
339
+ const notHasWidth = columns.filter((column) => !column.width && !column.minWidth)
340
+ if (!wrapperEl || notHasWidth.length > 0) {
341
+ return columns
342
+ }
339
343
  const { width: windowWidth } = wrapperEl.getBoundingClientRect()
340
344
  function calc(columns) {
341
345
  let columnsWidth = 0