fix ui for checkbox

This commit is contained in:
FateRiddle
2019-12-25 15:50:24 +08:00
parent d82959b752
commit be42b8dfd1
4 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
import React from 'react';
import ReactDOM from 'react-dom';
import FormRender from '../src/antd';
// import FormRender from '../src/antd';
import FormRender from '../src/fusion';
import '@alifd/next/dist/next.min.css';
import SCHEMA from './json/basic.json';
// const SCHEMA = {

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "form-render",
"version": "0.4.4-beta",
"version": "0.4.4",
"description": "通过 JSON Schema 生成标准 Form常用于自定义搭建配置界面生成",
"repository": {
"type": "git",

View File

@@ -197,6 +197,7 @@ export const DefaultFieldUI = ({
labelClass += ' ml2';
labelClass = labelClass.replace('mb2', 'mb0');
}
contentClass += ' flex items-center'; // checkbox高度短需要居中对齐
fieldClass += ' flex flex-row-reverse justify-end';
break;
default: