Browse Source

refactor(nc-gui): remove unused code

pull/5642/head
Wing-Kam Wong 2 years ago
parent
commit
78a5a5a305
  1. 2
      packages/nc-gui/components/cell/DateTimePicker.vue
  2. 1
      packages/nc-gui/composables/useMultiSelect/convertCellData.ts
  3. 4
      packages/nc-gui/composables/useMultiSelect/index.ts

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

@ -25,7 +25,7 @@ const { modelValue, isPk, isUpdatedFromCopyNPaste } = defineProps<Props>()
const emit = defineEmits(['update:modelValue']) const emit = defineEmits(['update:modelValue'])
const { isMssql, isMysql, isSqlite, isXcdbBase } = useProject() const { isMssql, isMysql, isXcdbBase } = useProject()
const { showNull } = useGlobal() const { showNull } = useGlobal()

1
packages/nc-gui/composables/useMultiSelect/convertCellData.ts

@ -7,7 +7,6 @@ import { parseProp } from '#imports'
export default function convertCellData( export default function convertCellData(
args: { from: UITypes; to: UITypes; value: any; column: ColumnType; appInfo: AppInfo }, args: { from: UITypes; to: UITypes; value: any; column: ColumnType; appInfo: AppInfo },
isMysql = false, isMysql = false,
isSqlite = false,
isMssql = false, isMssql = false,
isXcdbBase = false, isXcdbBase = false,
) { ) {

4
packages/nc-gui/composables/useMultiSelect/index.ts

@ -55,7 +55,7 @@ export function useMultiSelect(
const { appInfo } = useGlobal() const { appInfo } = useGlobal()
const { isMssql, isMysql, isSqlite, isXcdbBase } = useProject() const { isMssql, isMysql, isXcdbBase } = useProject()
let clipboardContext = $ref<{ value: any; uidt: UITypes } | null>(null) let clipboardContext = $ref<{ value: any; uidt: UITypes } | null>(null)
@ -336,7 +336,6 @@ export function useMultiSelect(
appInfo: unref(appInfo), appInfo: unref(appInfo),
}, },
isMysql(meta.value?.base_id), isMysql(meta.value?.base_id),
isSqlite(meta.value?.base_id),
isMssql(meta.value?.base_id), isMssql(meta.value?.base_id),
isXcdbBase(meta.value?.base_id), isXcdbBase(meta.value?.base_id),
) )
@ -373,7 +372,6 @@ export function useMultiSelect(
appInfo: unref(appInfo), appInfo: unref(appInfo),
}, },
isMysql(meta.value?.base_id), isMysql(meta.value?.base_id),
isSqlite(meta.value?.base_id),
isMssql(meta.value?.base_id), isMssql(meta.value?.base_id),
isXcdbBase(meta.value?.base_id), isXcdbBase(meta.value?.base_id),
) )

Loading…
Cancel
Save