| 1234567891011121314151617181920212223242526 |
- import { Select } from "antd";
- const { Option } = Select;
- interface IWidget {
- style?: string;
- onChange?: Function;
- }
- const TocStyleSelectWidget = ({ style = "default", onChange }: IWidget) => {
- return (
- <Select
- value={style}
- style={{ width: 90 }}
- loading={false}
- onChange={(value: string) => {
- if (typeof onChange !== "undefined") {
- onChange(value);
- }
- }}
- >
- <Option value="default">Default</Option>
- <Option value="cscd">CSCD</Option>
- </Select>
- );
- };
- export default TocStyleSelectWidget;
|