Browse Source

chore(nc-gui): lint

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
8f2e5f05b1
  1. 1
      packages/nc-gui/components/cell/TextArea.vue
  2. 3
      packages/nc-gui/components/smartsheet/expanded-form/index.vue
  3. 6
      packages/nc-gui/components/smartsheet/toolbar/ColumnFilter.vue
  4. 2
      packages/nc-gui/components/webhook/Editor.vue

1
packages/nc-gui/components/cell/TextArea.vue

@ -45,6 +45,7 @@ const focus: VNodeRef = (el) => (el as HTMLTextAreaElement)?.focus()
<span v-else>{{ vModel }}</span> <span v-else>{{ vModel }}</span>
</template> </template>
<style> <style>
textarea:focus { textarea:focus {
box-shadow: none; box-shadow: none;

3
packages/nc-gui/components/smartsheet/expanded-form/index.vue

@ -333,8 +333,7 @@ export default {
:ref="i ? null : (el) => (cellWrapperEl = el)" :ref="i ? null : (el) => (cellWrapperEl = el)"
class="!bg-white rounded px-1 min-h-[35px] flex items-center mt-2 relative" class="!bg-white rounded px-1 min-h-[35px] flex items-center mt-2 relative"
> >
<LazySmartsheetVirtualCell v-if="isVirtualCol(col)" v-model="row.row[col.title]" :row="row" <LazySmartsheetVirtualCell v-if="isVirtualCol(col)" v-model="row.row[col.title]" :row="row" :column="col" />
:column="col" />
<LazySmartsheetCell <LazySmartsheetCell
v-else v-else

6
packages/nc-gui/components/smartsheet/toolbar/ColumnFilter.vue

@ -199,7 +199,11 @@ defineExpose({
<template> <template>
<div <div
class="p-4 menu-filter-dropdown bg-gray-50 !border" class="p-4 menu-filter-dropdown bg-gray-50 !border"
:class="{ 'min-w-[430px]': filters.length, 'shadow max-h-[max(80vh,500px)] overflow-auto': !nested, 'border-1 w-full': nested }" :class="{
'min-w-[430px]': filters.length,
'shadow max-h-[max(80vh,500px)] overflow-auto': !nested,
'border-1 w-full': nested,
}"
> >
<div <div
v-if="filters && filters.length" v-if="filters && filters.length"

2
packages/nc-gui/components/webhook/Editor.vue

@ -651,9 +651,9 @@ onMounted(loadPluginList)
</a-checkbox> </a-checkbox>
<LazySmartsheetToolbarColumnFilter <LazySmartsheetToolbarColumnFilter
class="mt-4"
v-if="hook.condition" v-if="hook.condition"
ref="filterRef" ref="filterRef"
class="mt-4"
:auto-save="false" :auto-save="false"
:show-loading="false" :show-loading="false"
:hook-id="hook.id" :hook-id="hook.id"

Loading…
Cancel
Save