Browse Source

fix(nc-gui): put v-show in template level

pull/6954/head
աɨռɢӄաօռɢ 1 year ago
parent
commit
d3d40aad75
  1. 11
      packages/nc-gui/components/smartsheet/grid/Table.vue

11
packages/nc-gui/components/smartsheet/grid/Table.vue

@ -1471,15 +1471,8 @@ onKeyStroke('ArrowDown', onDown)
></td> ></td>
</tr> </tr>
</template> </template>
<LazySmartsheetRow v-for="(row, rowIndex) of dataRef" ref="rowRefs" :key="rowIndex" :row="row">
<LazySmartsheetRow <template v-show="!showSkeleton" #default="{ state }">
v-for="(row, rowIndex) of dataRef"
v-show="!showSkeleton"
ref="rowRefs"
:key="rowIndex"
:row="row"
>
<template #default="{ state }">
<tr <tr
class="nc-grid-row !xs:h-14" class="nc-grid-row !xs:h-14"
:style="{ height: rowHeight ? `${rowHeight * 1.8}rem` : `1.8rem` }" :style="{ height: rowHeight ? `${rowHeight * 1.8}rem` : `1.8rem` }"

Loading…
Cancel
Save