Browse Source

chore(gui-v2): lint

pull/3030/head
Wing-Kam Wong 2 years ago
parent
commit
1e48e7d5d9
  1. 1
      packages/nc-gui-v2/components.d.ts
  2. 2
      packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue
  3. 12
      packages/nc-gui-v2/components/smartsheet/Form.vue

1
packages/nc-gui-v2/components.d.ts vendored

@ -47,6 +47,7 @@ declare module '@vue/runtime-core' {
ARow: typeof import('ant-design-vue/es')['Row'] ARow: typeof import('ant-design-vue/es')['Row']
ASelect: typeof import('ant-design-vue/es')['Select'] ASelect: typeof import('ant-design-vue/es')['Select']
ASelectOption: typeof import('ant-design-vue/es')['SelectOption'] ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
ASkeleton: typeof import('ant-design-vue/es')['Skeleton']
ASkeletonImage: typeof import('ant-design-vue/es')['SkeletonImage'] ASkeletonImage: typeof import('ant-design-vue/es')['SkeletonImage']
ASpin: typeof import('ant-design-vue/es')['Spin'] ASpin: typeof import('ant-design-vue/es')['Spin']
ASubMenu: typeof import('ant-design-vue/es')['SubMenu'] ASubMenu: typeof import('ant-design-vue/es')['SubMenu']

2
packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue

@ -212,4 +212,4 @@ watch(
:deep(.ant-form-item-explain) { :deep(.ant-form-item-explain) {
@apply !min-h-[15px]; @apply !min-h-[15px];
} }
</style> </style>

12
packages/nc-gui-v2/components/smartsheet/Form.vue

@ -373,7 +373,7 @@ onMounted(async () => {
</div> </div>
</div> </div>
</div> </div>
<draggable :list="hiddenColumns" draggable=".item" group="form-inputs" @start="drag = true" @end="drag = false"> <Draggable :list="hiddenColumns" draggable=".item" group="form-inputs" @start="drag = true" @end="drag = false">
<template #item="{ element }"> <template #item="{ element }">
<a-card size="small" class="ma-0 pa-0 cursor-pointer item mb-2"> <a-card size="small" class="ma-0 pa-0 cursor-pointer item mb-2">
<div class="flex"> <div class="flex">
@ -382,12 +382,14 @@ onMounted(async () => {
v-if="isVirtualCol(element)" v-if="isVirtualCol(element)"
:column="{ ...element, title: element.label || element.title }" :column="{ ...element, title: element.label || element.title }"
:required="isRequired(element, element.required)" :required="isRequired(element, element.required)"
:hide-menu="true"
/> />
<SmartsheetHeaderCell <SmartsheetHeaderCell
v-else v-else
class="w-full" class="w-full"
:column="{ ...element, title: element.label || element.title }" :column="{ ...element, title: element.label || element.title }"
:required="isRequired(element, element.required)" :required="isRequired(element, element.required)"
:hide-menu="true"
/> />
</div> </div>
<div class="flex flex-row"> <div class="flex flex-row">
@ -414,7 +416,7 @@ onMounted(async () => {
</template> </template>
</a-dropdown> </a-dropdown>
</template> </template>
</draggable> </Draggable>
</a-col> </a-col>
<a-col v-if="formViewData" :span="isEditable ? 16 : 24" class="h-full overflow-auto scrollbar-thin-primary"> <a-col v-if="formViewData" :span="isEditable ? 16 : 24" class="h-full overflow-auto scrollbar-thin-primary">
<a-card class="h-full"> <a-card class="h-full">
@ -447,7 +449,7 @@ onMounted(async () => {
@click="updateView" @click="updateView"
/> />
</a-form-item> </a-form-item>
<draggable <Draggable
ref="draggableRef" ref="draggableRef"
:list="localColumns" :list="localColumns"
item-key="fk_column_id" item-key="fk_column_id"
@ -472,11 +474,13 @@ onMounted(async () => {
v-if="isVirtualCol(element)" v-if="isVirtualCol(element)"
:column="{ ...element, title: element.label || element.title }" :column="{ ...element, title: element.label || element.title }"
:required="isRequired(element, element.required)" :required="isRequired(element, element.required)"
:hide-menu="true"
/> />
<SmartsheetHeaderCell <SmartsheetHeaderCell
v-else v-else
:column="{ ...element, title: element.label || element.title }" :column="{ ...element, title: element.label || element.title }"
:required="isRequired(element, element.required)" :required="isRequired(element, element.required)"
:hide-menu="true"
/> />
</div> </div>
<div v-if="isUIAllowed('editFormView') && !isRequired(element, element.required)" class="flex"> <div v-if="isUIAllowed('editFormView') && !isRequired(element, element.required)" class="flex">
@ -530,7 +534,7 @@ onMounted(async () => {
Drag and drop fields here to add Drag and drop fields here to add
</div> </div>
</template> </template>
</draggable> </Draggable>
</a-form> </a-form>
<div class="justify-center flex mt-5"> <div class="justify-center flex mt-5">

Loading…
Cancel
Save