Browse Source

refactor(nc-gui): add comments for clamped text

pull/4969/head
Wing-Kam Wong 2 years ago
parent
commit
a88e6b380c
  1. 4
      packages/nc-gui/components/cell/ClampedText.vue

4
packages/nc-gui/components/cell/ClampedText.vue

@ -23,6 +23,10 @@ onMounted(() => {
<template>
<div ref="wrapper">
<!--
using '' for :text in text-clamp would keep the previous cell value after changing a filter
use ' ' instead of '' to trigger update
-->
<text-clamp
:key="`clamp-${key}-${props.value?.toString().length || 0}`"
class="w-full h-full break-all"

Loading…
Cancel
Save