diff --git a/packages/designer/src/setters/choice-setter.tsx b/packages/designer/src/setters/choice-setter.tsx index a21fb6d..554ddfb 100644 --- a/packages/designer/src/setters/choice-setter.tsx +++ b/packages/designer/src/setters/choice-setter.tsx @@ -1,11 +1,11 @@ import React, { useCallback } from 'react'; import { Radio, RadioProps, Tooltip } from 'antd'; -import type { OptionType } from '@music163/tango-helpers'; +import type { IOptionItem } from '@music163/tango-helpers'; import { FormItemComponentProps } from '@music163/tango-setting-form'; import { IconFont } from '@music163/tango-ui'; interface ChoiceSetterProps { - options?: OptionType[]; + options?: IOptionItem[]; } export function ChoiceSetter({ diff --git a/packages/helpers/src/types/advanced.ts b/packages/helpers/src/types/advanced.ts index da249a5..bfe11f7 100644 --- a/packages/helpers/src/types/advanced.ts +++ b/packages/helpers/src/types/advanced.ts @@ -26,7 +26,7 @@ export interface IOptionItem { /** * 显示的文本 */ - label: string; + label?: string; /** * 图标 */