Browse Source

fix(nc-gui): lint

pull/4482/head
Wing-Kam Wong 2 years ago
parent
commit
70ea1fda32
  1. 2
      packages/nc-gui/components/cell/DateTimePicker.vue
  2. 4
      packages/nc-gui/components/dlg/KeyboardShortcuts.vue
  3. 4
      packages/nc-gui/components/virtual-cell/Formula.vue
  4. 4
      packages/nc-gui/components/virtual-cell/Rollup.vue
  5. 1
      packages/nc-gui/pages/[projectType]/[projectId]/index.vue

2
packages/nc-gui/components/cell/DateTimePicker.vue

@ -172,4 +172,4 @@ useSelectedCellKeyupListener(active, (e: KeyboardEvent) => {
:deep(.ant-picker-input > input[disabled]) {
@apply !text-current;
}
</style>
</style>

4
packages/nc-gui/components/dlg/KeyboardShortcuts.vue

@ -1,6 +1,4 @@
<script lang="ts" setup>
import { useI18n } from '#imports'
const { modelValue } = defineProps<{
modelValue: boolean
}>()
@ -11,8 +9,6 @@ const dialogShow = computed({
get: () => modelValue,
set: (v) => emit('update:modelValue', v),
})
const { t } = useI18n()
</script>
<template>

4
packages/nc-gui/components/virtual-cell/Formula.vue

@ -20,9 +20,7 @@ const showEditFormulaWarning = refAutoReset(false, timeout)
const showClearFormulaWarning = refAutoReset(false, timeout)
useSelectedCellKeyupListener(inject(ActiveCellInj, ref(false)), (e: KeyboardEvent) => {
showClearFormulaWarning.value = true
})
useSelectedCellKeyupListener(inject(ActiveCellInj, ref(false)), () => (showClearFormulaWarning.value = true))
</script>
<template>

4
packages/nc-gui/components/virtual-cell/Rollup.vue

@ -9,9 +9,7 @@ const showEditWarning = refAutoReset(false, timeout)
const showClearWarning = refAutoReset(false, timeout)
useSelectedCellKeyupListener(inject(ActiveCellInj, ref(false)), (e: KeyboardEvent) => {
showClearWarning.value = true
})
useSelectedCellKeyupListener(inject(ActiveCellInj, ref(false)), () => (showClearWarning.value = true))
</script>
<template>

1
packages/nc-gui/pages/[projectType]/[projectId]/index.vue

@ -218,7 +218,6 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => {
}
}
}
const cmdOrCtrl = isMac() ? e.metaKey : e.ctrlKey
if (cmdOrCtrl) {
switch (e.key) {
case '/':

Loading…
Cancel
Save