mirror of
https://github.com/zhigang1992/form-render.git
synced 2026-01-12 22:47:30 +08:00
fix ui for checkbox
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "form-render",
|
||||
"version": "0.4.4-beta",
|
||||
"version": "0.4.4",
|
||||
"description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user