@mixd-id/web-scaffold 0.1.230406271 → 0.1.230406273

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.230406271",
4
+ "version": "0.1.230406273",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -84,6 +84,7 @@
84
84
  </slot>
85
85
 
86
86
  <VirtualTable v-if="presetView === 'table'"
87
+ ref="table"
87
88
  :columns="columns"
88
89
  class="flex-1 rounded-lg panel-400"
89
90
  :items="data.items"
@@ -102,6 +103,7 @@
102
103
  </VirtualTable>
103
104
 
104
105
  <VirtualGrid v-else-if="presetView === 'grid'"
106
+ ref="grid"
105
107
  :items="dataItems"
106
108
  :column="computedGridColumn"
107
109
  class="flex-1"
@@ -371,6 +373,11 @@ export default{
371
373
  }
372
374
  },
373
375
 
376
+ resize(){
377
+ this.$refs.table ? this.$refs.table.resize() : null
378
+ this.$refs.grid ? this.$refs.grid.resize() : null
379
+ }
380
+
374
381
  },
375
382
 
376
383
  components: {PresetBar, PresetSelector, VirtualGrid, VirtualTable},
@@ -7,7 +7,7 @@
7
7
  <th v-for="column in visibleColumns" :style="thStyle(column)">
8
8
  <slot v-if="$slots['col-' + column.key]" :name="'col-' + column.key" :column="column"></slot>
9
9
  <div v-else :class="headerColumnClass(column)">
10
- <span v-if="column.label && !column.label.startsWith('(')">{{ column.label }}</span>
10
+ <span>{{ column.label ?? column.key }}</span>
11
11
  </div>
12
12
  <div :class="$style.separator" @mousedown="startResize($event, column)"></div>
13
13
  </th>
@@ -193,6 +193,12 @@ export default{
193
193
 
194
194
  this.resize()
195
195
 
196
+ const observer = new MutationObserver((mutationsList) => {
197
+ console.log(mutationsList)
198
+ this.resize()
199
+ });
200
+ observer.observe(this.$el, { attributes: true });
201
+
196
202
  },
197
203
 
198
204
  methods: {
package/src/utils/wss.mjs CHANGED
@@ -162,7 +162,6 @@ class WSS extends EventEmitter2{
162
162
  return
163
163
  }
164
164
  else if(!this._instance.isAuth){
165
- console.log('add pending send', { path, params, cb, err })
166
165
  this._pendingSend.push({ path, params, cb, err })
167
166
  return
168
167
  }