Browse Source

fix: Added event to expanded form open

pull/6539/head
Muhammed Mustafa 1 year ago
parent
commit
0162d0761b
  1. 3
      packages/nc-gui/components/smartsheet/grid/Table.vue
  2. 1
      packages/nc-gui/components/virtual-cell/components/ListItem.vue

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

@ -1388,6 +1388,7 @@ const handleCellClick = (event: MouseEvent, row: number, col: number) => {
<template v-else-if="!isLocked"> <template v-else-if="!isLocked">
<span <span
v-if="row.rowMeta?.commentCount && expandForm" v-if="row.rowMeta?.commentCount && expandForm"
v-e="['c:expanded-form:open']"
class="py-1 px-3 rounded-full text-xs cursor-pointer select-none transform hover:(scale-110)" class="py-1 px-3 rounded-full text-xs cursor-pointer select-none transform hover:(scale-110)"
:style="{ backgroundColor: enumColor.light[row.rowMeta.commentCount % enumColor.light.length] }" :style="{ backgroundColor: enumColor.light[row.rowMeta.commentCount % enumColor.light.length] }"
@click="expandAndLooseFocus(row, state)" @click="expandAndLooseFocus(row, state)"
@ -1401,7 +1402,7 @@ const handleCellClick = (event: MouseEvent, row: number, col: number) => {
<component <component
:is="iconMap.expand" :is="iconMap.expand"
v-if="expandForm" v-if="expandForm"
v-e="['c:row-expand']" v-e="['c:expanded-form:open']"
class="select-none transform hover:(text-black scale-120) nc-row-expand" class="select-none transform hover:(text-black scale-120) nc-row-expand"
@click="expandAndLooseFocus(row, state)" @click="expandAndLooseFocus(row, state)"
/> />

1
packages/nc-gui/components/virtual-cell/components/ListItem.vue

@ -137,6 +137,7 @@ const attachments: ComputedRef<Attachment[]> = computed(() => {
</div> </div>
<NcButton <NcButton
v-if="!isForm && !isPublic" v-if="!isForm && !isPublic"
v-e="['c:expanded-form:open']"
type="text" type="text"
size="lg" size="lg"
class="!px-2 nc-expand-item !group-hover:block !hidden !border-1 !shadow-sm !border-gray-200 !bg-white !absolute right-3 bottom-3" class="!px-2 nc-expand-item !group-hover:block !hidden !border-1 !shadow-sm !border-gray-200 !bg-white !absolute right-3 bottom-3"

Loading…
Cancel
Save