Browse Source

fix: Added generic checkbox to checkbox cell

pull/6729/head
Muhammed Mustafa 1 year ago
parent
commit
6923b1b5fe
  1. 6
      packages/nc-gui/components/cell/Checkbox.vue

6
packages/nc-gui/components/cell/Checkbox.vue

@ -96,15 +96,13 @@ useSelectedCellKeyupListener(active, (e) => {
:class="{ 'w-full justify-start': isEditColumnMenu || isGallery || isForm, 'py-2': isEditColumnMenu }" :class="{ 'w-full justify-start': isEditColumnMenu || isGallery || isForm, 'py-2': isEditColumnMenu }"
@click="onClick(true)" @click="onClick(true)"
> >
<Transition name="layout" mode="out-in" :duration="100"> <NcCheckbox
<component v-model:checked="vModel"
:is="getMdiIcon(vModel ? checkboxMeta.icon.checked : checkboxMeta.icon.unchecked)"
class="nc-checkbox" class="nc-checkbox"
:style="{ :style="{
color: checkboxMeta.color, color: checkboxMeta.color,
}" }"
/> />
</Transition>
</div> </div>
</div> </div>
</template> </template>

Loading…
Cancel
Save