style: example code title
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -123,6 +123,7 @@ const useGenericProxy = () => {
|
||||
|
||||
const GenericProxyCommandCode = (
|
||||
<CommandViewer
|
||||
showTitle={true}
|
||||
code={modalStatus.codeValue}
|
||||
copyText={modalStatus.codeValue}
|
||||
options={langOptions}
|
||||
|
||||
Reference in New Issue
Block a user