@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
24 lines (23 loc) • 641 B
TypeScript
import * as React from 'react';
import { IItemProps } from '@qn-pandora/pandora-app-component';
interface IEditorProps extends IItemProps {
className?: string;
value?: number;
onChange?: (value: number) => void;
switchLabel?: string;
inputLabel?: string;
switchEnableValue?: number;
switchDisableValue?: number;
inputUnit?: string;
}
interface IEditorState {
active: boolean;
}
export default class SwitchNumberEditor extends React.Component<IEditorProps, IEditorState> {
state: {
active: boolean;
};
handleSwitchChange(value: any): void;
render(): React.JSX.Element;
}
export {};