antd Form.Item label添加解释信息

      <Col span={span} className={expandClassname}>
        <Form.Item
          label={
            <span>
              <span>是否添加</span>
              <Tooltip
                title='添加'
                overlayClassName="m-tooltip"
              >
                <span className="m-help-wrap">
                  <Icon name="help"></Icon>
                </span>
              </Tooltip>
            </span>
          }
        >
          <Form.Item name="isAdd" noStyle>
            <Select
              placeholder="请选择"
              allowClear
              getPopupContainer={() =>
                document.getElementById('m-content-wrap')
              }
            >
              <Option value={1}>是</Option>
              <Option value={0}>否</Option>
            </Select>
          </Form.Item>
        </Form.Item>
      </Col>

posted @ 2021-09-10 10:29  徐同保  阅读(1013)  评论(0编辑  收藏  举报