From 88c8d06673748d9c9b9c4c9a5a7b1a0737b3249b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D5=A1=C9=A8=D5=BC=C9=A2=D3=84=D5=A1=D6=85=D5=BC=C9=A2?= Date: Fri, 10 Nov 2023 00:46:18 +0800 Subject: [PATCH] chore(nc-gui): lint --- packages/nc-gui/components/smartsheet/Row.vue | 1 - packages/nc-gui/components/smartsheet/details/Fields.vue | 2 -- .../nc-gui/components/smartsheet/expanded-form/index.vue | 1 - packages/nc-gui/composables/useData.ts | 2 +- packages/nc-gui/composables/useExpandedFormStore.ts | 5 ++++- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Row.vue b/packages/nc-gui/components/smartsheet/Row.vue index 57e31f4bd4..ae631042bc 100644 --- a/packages/nc-gui/components/smartsheet/Row.vue +++ b/packages/nc-gui/components/smartsheet/Row.vue @@ -11,7 +11,6 @@ import { toRef, useProvideSmartsheetRowStore, useSmartsheetStoreOrThrow, - watch, } from '#imports' const props = defineProps<{ diff --git a/packages/nc-gui/components/smartsheet/details/Fields.vue b/packages/nc-gui/components/smartsheet/details/Fields.vue index 677c015c29..9da14b5ddb 100644 --- a/packages/nc-gui/components/smartsheet/details/Fields.vue +++ b/packages/nc-gui/components/smartsheet/details/Fields.vue @@ -60,8 +60,6 @@ const newFields = ref([]) const isFieldIdCopied = ref(false) -const isColOptionDropdownOpen = ref(false) - const compareCols = (a?: TableExplorerColumn, b?: TableExplorerColumn) => { if (a?.id && b?.id) { return a.id === b.id diff --git a/packages/nc-gui/components/smartsheet/expanded-form/index.vue b/packages/nc-gui/components/smartsheet/expanded-form/index.vue index c346d771ad..e7d4b84c58 100644 --- a/packages/nc-gui/components/smartsheet/expanded-form/index.vue +++ b/packages/nc-gui/components/smartsheet/expanded-form/index.vue @@ -129,7 +129,6 @@ const { primaryKey, saveRowAndStay, row: _row, - syncLTARRefs, save: _save, loadCommentsAndLogs, clearColumns, diff --git a/packages/nc-gui/composables/useData.ts b/packages/nc-gui/composables/useData.ts index 24bbe57373..aa80b9d185 100644 --- a/packages/nc-gui/composables/useData.ts +++ b/packages/nc-gui/composables/useData.ts @@ -91,7 +91,7 @@ export function useData(args: { base?.value.id as string, metaValue?.id as string, viewMetaValue?.id as string, - { ...insertObj, ...(ltarState ||{}) }, + { ...insertObj, ...(ltarState || {}) }, ) if (!undo) { diff --git a/packages/nc-gui/composables/useExpandedFormStore.ts b/packages/nc-gui/composables/useExpandedFormStore.ts index 6910cf3d14..fc42da3bf5 100644 --- a/packages/nc-gui/composables/useExpandedFormStore.ts +++ b/packages/nc-gui/composables/useExpandedFormStore.ts @@ -180,7 +180,10 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m if (missingRequiredColumns.size) return - data = await $api.dbTableRow.create('noco', base.value.id as string, meta.value.id, { ...insertObj, ...(ltarState ||{}) }) + data = await $api.dbTableRow.create('noco', base.value.id as string, meta.value.id, { + ...insertObj, + ...(ltarState || {}), + }) Object.assign(row.value, { row: data,