Browse Source

feat(nc-gui): specific param type

pull/5455/head
Khisby Al Ghofari 2 years ago
parent
commit
1dc832b0bf
  1. 5
      packages/nc-gui/components/template/Editor.vue

5
packages/nc-gui/components/template/Editor.vue

@ -32,6 +32,7 @@ import {
useTabs, useTabs,
} from '#imports' } from '#imports'
import { TabType } from '~/lib' import { TabType } from '~/lib'
import type { CheckboxChangeEvent } from 'ant-design-vue/es/checkbox/interface'
const { quickImportType, projectTemplate, importData, importColumns, importDataOnly, maxRowsToParse, baseId } = const { quickImportType, projectTemplate, importData, importColumns, importDataOnly, maxRowsToParse, baseId } =
defineProps<Props>() defineProps<Props>()
@ -618,9 +619,9 @@ function isSelectDisabled(uidt: string, disableSelect = false) {
return (uidt === UITypes.SingleSelect || uidt === UITypes.MultiSelect) && disableSelect return (uidt === UITypes.SingleSelect || uidt === UITypes.MultiSelect) && disableSelect
} }
function handleCheckAllRecord(event, table_name) { function handleCheckAllRecord(event: CheckboxChangeEvent, tableName: string) {
const isChecked = event.target.checked const isChecked = event.target.checked
for (const record of srcDestMapping.value[table_name]) { for (const record of srcDestMapping.value[tableName]) {
record.enabled = isChecked record.enabled = isChecked
} }
} }

Loading…
Cancel
Save