Skip to content

Commit

Permalink
fix: update types
Browse files Browse the repository at this point in the history
  • Loading branch information
wwsun committed Sep 3, 2024
1 parent cf87f05 commit 41d7df5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/designer/src/setters/choice-setter.tsx
Original file line number Diff line number Diff line change
@@ -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({
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/src/types/advanced.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface IOptionItem<T = string> {
/**
* 显示的文本
*/
label: string;
label?: string;
/**
* 图标
*/
Expand Down

0 comments on commit 41d7df5

Please sign in to comment.