diff --git a/dolphinscheduler-ui/src/components/form/fields/radio.ts b/dolphinscheduler-ui/src/components/form/fields/radio.ts index 54810ff5633c801874d3c358958391706d1639c5..260756f074179f880041423dc2d774f15109bec4 100644 --- a/dolphinscheduler-ui/src/components/form/fields/radio.ts +++ b/dolphinscheduler-ui/src/components/form/fields/radio.ts @@ -39,7 +39,6 @@ export function renderRadio(item: IJsonItem, fields: { [field: string]: any }) { () => h(NSpace, null, () => unref(options).map((option: IOption) => - // @ts-ignore h(NRadio, option, () => option.label) ) ) diff --git a/dolphinscheduler-ui/src/components/form/types.ts b/dolphinscheduler-ui/src/components/form/types.ts index 86ff07da3150d9194ed13e7295b3a05be2d8e0ab..dfc02c792e9c000177b48cbb55c8c241fed7c444 100644 --- a/dolphinscheduler-ui/src/components/form/types.ts +++ b/dolphinscheduler-ui/src/components/form/types.ts @@ -15,14 +15,7 @@ * limitations under the License. */ import { Ref } from 'vue' -import type { - GridProps, - FormProps, - FormItemRule, - FormRules, - SelectOption, - TreeSelectOption -} from 'naive-ui' +import type { GridProps, FormProps, FormItemRule, FormRules } from 'naive-ui' type IType = | 'input' @@ -38,7 +31,9 @@ type IType = | 'custom' | 'multi-condition' -type IOption = SelectOption | TreeSelectOption +interface IOption { + [key: string]: any +} interface IFormItem { showLabel?: boolean