import React from 'react';
import {FormItem, FormControlProps, FormBaseControl} from './Item';

/**
 * Hidden 隐藏域。功能性组件
 */
export interface HiddenControlSchema extends FormBaseControl {
  type: 'hidden';
}

export default class HiddenControl extends React.Component<
  FormControlProps,
  any
> {
  render() {
    return null;
  }
}

@FormItem({
  type: 'hidden',
  wrap: false,
  sizeMutable: false
})
export class HiddenControlRenderer extends HiddenControl {}
