UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

27 lines (26 loc) 973 B
/// <reference types="hoist-non-react-statics" /> import React from 'react'; import { IItemProps } from '../../Common/Form/Item'; export interface INumberItemProps extends IItemProps { /**标签名字 */ label?: string; /** 按钮样式*/ buttonClassName?: string; /**当前值 */ value: any; /**设置当前值 */ onChange: (value: any) => void; /** placeholder */ placeholder?: string; /** 最小值 */ min?: number; /** 最大值 */ max?: number; /** 校验 */ onValidate?: (value: any) => Promise<void>; } export declare class NumberItem extends React.Component<INumberItemProps, any> { render(): React.JSX.Element; } declare const _default: React.ComponentClass<INumberItemProps, any> & import("hoist-non-react-statics").NonReactStatics<(React.ComponentClass<INumberItemProps, any> & typeof NumberItem) | (React.FunctionComponent<INumberItemProps> & typeof NumberItem), {}>; export default _default;