index.md 1.07 KB

nav: path: /component title: 组件 order: 1 group: path: /common title: 基础条件配置

order: 0

QxBaseCondition 条件配置

条件配置

import { QxBaseCondition } from '@qx/common';
import { Form } from 'antd';

export default () => {
  return (
    <div>
      <Form>
        <Form.Item name="condition">
          <QxBaseCondition
            options={[
              {
                field: 'text',
                fieldType: 'STRING',
                fieldName: '文本',
                extract: { widget: 'qxInput' },
              },
              {
                field: 'num_cagoif',
                fieldType: 'DOUBLE',
                fieldName: '数值',
                extract: { widget: 'qxNumber' },
              },
              {
                field: 'date_uvpapz',
                fieldType: 'YEAR_SEC',
                fieldName: '日期',
                extract: { widget: 'qxDatetime' },
              },
            ]}
          />
        </Form.Item>
      </Form>
    </div>
  );
};