vue2-excel-grid 1.1.20 → 1.1.21

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": "vue2-excel-grid",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "Excel-style grid component for Vue 2.6.14 with virtual scrolling",
5
5
  "main": "dist/vue2-excel-grid.umd.js",
6
6
  "module": "dist/vue2-excel-grid.esm.js",
@@ -233,7 +233,7 @@
233
233
  </template>
234
234
  <template v-else>
235
235
  <slot :name="'cell-' + col.key" :row="_dataRaw[ri]" :rowIndex="ri" :column="col" :value="getCellValue(ri, ci)" :isEditing="false" :done="null" :cancel="null">
236
- <slot v-if="hasPrefixSlot(col)" :name="'prefix-' + col.key" :row="_dataRaw[ri]" :rowIndex="ri" :column="col" :value="getCellValue(ri, ci)" />{{ isSelectLikeCol(col) ? getSelectLabel(ci, getCellValue(ri, ci)) : getCellValue(ri, ci) }}<slot v-if="hasSuffixSlot(col)" :name="'suffix-' + col.key" :row="_dataRaw[ri]" :rowIndex="ri" :column="col" :value="getCellValue(ri, ci)" />
236
+ <slot v-if="hasPrefixSlot(col)" :name="'prefix-' + col.key" :row="_dataRaw[ri]" :rowIndex="ri" :column="col" :value="getCellValue(ri, ci)" /><span v-if="hasPrefixSlot(col) || hasSuffixSlot(col)" class="eg-cell-value">{{ isSelectLikeCol(col) ? getSelectLabel(ci, getCellValue(ri, ci)) : getCellValue(ri, ci) }}</span><template v-else>{{ isSelectLikeCol(col) ? getSelectLabel(ci, getCellValue(ri, ci)) : getCellValue(ri, ci) }}</template><slot v-if="hasSuffixSlot(col)" :name="'suffix-' + col.key" :row="_dataRaw[ri]" :rowIndex="ri" :column="col" :value="getCellValue(ri, ci)" />
237
237
  </slot>
238
238
  </template>
239
239
  </div>
@@ -294,7 +294,7 @@
294
294
  </template>
295
295
  <template v-else>
296
296
  <slot :name="'cell-' + col.key" :row="_dataRaw[ri]" :rowIndex="ri" :column="col" :value="getCellValue(ri, ci)" :isEditing="false" :done="null" :cancel="null">
297
- <slot v-if="hasPrefixSlot(col)" :name="'prefix-' + col.key" :row="_dataRaw[ri]" :rowIndex="ri" :column="col" :value="getCellValue(ri, ci)" />{{ isSelectLikeCol(col) ? getSelectLabel(ci, getCellValue(ri, ci)) : getCellValue(ri, ci) }}<slot v-if="hasSuffixSlot(col)" :name="'suffix-' + col.key" :row="_dataRaw[ri]" :rowIndex="ri" :column="col" :value="getCellValue(ri, ci)" />
297
+ <slot v-if="hasPrefixSlot(col)" :name="'prefix-' + col.key" :row="_dataRaw[ri]" :rowIndex="ri" :column="col" :value="getCellValue(ri, ci)" /><span v-if="hasPrefixSlot(col) || hasSuffixSlot(col)" class="eg-cell-value">{{ isSelectLikeCol(col) ? getSelectLabel(ci, getCellValue(ri, ci)) : getCellValue(ri, ci) }}</span><template v-else>{{ isSelectLikeCol(col) ? getSelectLabel(ci, getCellValue(ri, ci)) : getCellValue(ri, ci) }}</template><slot v-if="hasSuffixSlot(col)" :name="'suffix-' + col.key" :row="_dataRaw[ri]" :rowIndex="ri" :column="col" :value="getCellValue(ri, ci)" />
298
298
  </slot>
299
299
  </template>
300
300
  </div>
@@ -341,7 +341,7 @@
341
341
  </template>
342
342
  <template v-else>
343
343
  <slot :name="'cell-' + col.key" :row="_dataRaw[ri]" :rowIndex="ri" :column="col" :value="getCellValue(ri, col._flatIndex)" :isEditing="false" :done="null" :cancel="null">
344
- <slot v-if="hasPrefixSlot(col)" :name="'prefix-' + col.key" :row="_dataRaw[ri]" :rowIndex="ri" :column="col" :value="getCellValue(ri, col._flatIndex)" />{{ isSelectLikeCol(col) ? getSelectLabel(col._flatIndex, getCellValue(ri, col._flatIndex)) : getCellValue(ri, col._flatIndex) }}<slot v-if="hasSuffixSlot(col)" :name="'suffix-' + col.key" :row="_dataRaw[ri]" :rowIndex="ri" :column="col" :value="getCellValue(ri, col._flatIndex)" />
344
+ <slot v-if="hasPrefixSlot(col)" :name="'prefix-' + col.key" :row="_dataRaw[ri]" :rowIndex="ri" :column="col" :value="getCellValue(ri, col._flatIndex)" /><span v-if="hasPrefixSlot(col) || hasSuffixSlot(col)" class="eg-cell-value">{{ isSelectLikeCol(col) ? getSelectLabel(col._flatIndex, getCellValue(ri, col._flatIndex)) : getCellValue(ri, col._flatIndex) }}</span><template v-else>{{ isSelectLikeCol(col) ? getSelectLabel(col._flatIndex, getCellValue(ri, col._flatIndex)) : getCellValue(ri, col._flatIndex) }}</template><slot v-if="hasSuffixSlot(col)" :name="'suffix-' + col.key" :row="_dataRaw[ri]" :rowIndex="ri" :column="col" :value="getCellValue(ri, col._flatIndex)" />
345
345
  </slot>
346
346
  </template>
347
347
  </div>
@@ -3497,6 +3497,13 @@ export default {
3497
3497
  align-items: center;
3498
3498
  }
3499
3499
 
3500
+ .eg-cell-value {
3501
+ flex: 1;
3502
+ overflow: hidden;
3503
+ text-overflow: ellipsis;
3504
+ white-space: nowrap;
3505
+ min-width: 0;
3506
+ }
3500
3507
  .eg-cell-active {
3501
3508
  outline: 2px solid #1a73e8 !important;
3502
3509
  outline-offset: -2px;