@everchron/ec-shards 5.0.47 → 5.0.49
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/dist/ec-shards.common.js +27 -35
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +27 -35
- package/dist/ec-shards.umd.js.map +1 -1
- package/dist/ec-shards.umd.min.js +1 -1
- package/dist/ec-shards.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/data-grid/data-grid-head-cell.vue +0 -11
package/package.json
CHANGED
|
@@ -179,7 +179,6 @@
|
|
|
179
179
|
},
|
|
180
180
|
|
|
181
181
|
setColumnCellsWidth(){
|
|
182
|
-
console.log('setColumnCellsWidth:initialized', this.initialized)
|
|
183
182
|
if(!this.initialized) {
|
|
184
183
|
this.initialized = true
|
|
185
184
|
return
|
|
@@ -190,13 +189,8 @@
|
|
|
190
189
|
|
|
191
190
|
/** Emitted when the column has been resized. Returns the new width of the column in pixels. */
|
|
192
191
|
this.$emit('resizedWidth', { id: this.id, currentColumnWidth })
|
|
193
|
-
|
|
194
|
-
console.log('setColumnCellsWidth:querySelector', '[data-column="' + this.name.toLowerCase().replace(' ', '-') + '-column-cell"]')
|
|
195
192
|
|
|
196
193
|
let columnCells = document.querySelectorAll('[data-column="' + this.name.toLowerCase().replace(' ', '-') + '-column-cell"]')
|
|
197
|
-
|
|
198
|
-
console.log('setColumnCellsWidth:columnCells', columnCells)
|
|
199
|
-
|
|
200
194
|
columnCells.forEach(cell => {
|
|
201
195
|
// if (cell.parentElement && cell.parentElement.__vue__ && typeof cell.parentElement.__vue__.setWidth === 'function')
|
|
202
196
|
// cell.parentElement.__vue__.setWidth(currentColumnWidth)
|
|
@@ -236,8 +230,6 @@
|
|
|
236
230
|
created(){
|
|
237
231
|
this.cellFixedLeftOffset = this.fixedLeftOffset
|
|
238
232
|
this.resizeObserver = new ResizeObserver(entries => {
|
|
239
|
-
if (this.resizable)
|
|
240
|
-
console.log('resizeObserver:created-as-resizable', this.name)
|
|
241
233
|
entries.forEach(entry => {
|
|
242
234
|
this.setColumnCellsWidth()
|
|
243
235
|
})
|
|
@@ -245,11 +237,8 @@
|
|
|
245
237
|
},
|
|
246
238
|
|
|
247
239
|
mounted(){
|
|
248
|
-
if (this.resizable)
|
|
249
|
-
console.log('resizeObserver:mounted', this.resizable, this.resizeObserver, this.name)
|
|
250
240
|
if(this.resizable && this.resizeObserver){
|
|
251
241
|
const resizeEl = document.querySelector('[data-column="'+ this.computedId +'"]')
|
|
252
|
-
console.log('resizeObserver:mounted', resizeEl, this.name)
|
|
253
242
|
this.resizeObserver.observe(resizeEl)
|
|
254
243
|
}
|
|
255
244
|
},
|