Browse Source

refactor(nc-gui): revise style in cell for form

pull/5328/head
Wing-Kam Wong 2 years ago
parent
commit
fdabe0ed2f
  1. 3
      packages/nc-gui/components/smartsheet/Cell.vue

3
packages/nc-gui/components/smartsheet/Cell.vue

@ -66,7 +66,7 @@ const column = toRef(props, 'column')
const active = toRef(props, 'active', false)
const readOnly = toRef(props, 'readOnly', undefined)
const readOnly = toRef(props, 'readOnly', false)
provide(ColumnInj, column)
@ -158,6 +158,7 @@ const onContextmenu = (e: MouseEvent) => {
`nc-cell-${(column?.uidt || 'default').toLowerCase()}`,
{ 'text-blue-600': isPrimary(column) && !props.virtual && !isForm },
{ 'nc-grid-numeric-cell': isGrid && !isForm && isNumericField },
{ 'h-[40px]': !props.editEnabled && isForm }
]"
@keydown.enter.exact="syncAndNavigate(NavigateDir.NEXT, $event)"
@keydown.shift.enter.exact="syncAndNavigate(NavigateDir.PREV, $event)"

Loading…
Cancel
Save