style: example code title

This commit is contained in:
jialin
2025-11-20 12:46:06 +08:00
parent de882dc62e
commit 9b63c1a515
3 changed files with 17 additions and 1 deletions
@@ -11,6 +11,7 @@ interface ViewerProps {
options?: Global.BaseOption<string>[];
defaultValue?: string;
headerHeight?: number;
showTitle?: boolean;
height?: number;
lang?: string;
onChange?: (value: string | number) => void;
@@ -33,6 +34,7 @@ const CommandViewer: React.FC<ViewerProps> = (props) => {
options = [],
headerHeight = 40,
height = 380,
showTitle = false,
lang,
onChange
} = props || {};
@@ -54,6 +56,7 @@ const CommandViewer: React.FC<ViewerProps> = (props) => {
value={value}
size="small"
options={options}
showTitle={showTitle}
onChange={handlOnChange}
></SegmentLine>