Commit a762f726 authored by 程恺文's avatar 程恺文

整体布局修改

parent e46ee8a3
......@@ -19,3 +19,4 @@ package-lock.json
.now
es
lib
examples/server.js
......@@ -3468,10 +3468,10 @@ const Test = (props) => {
return (
<div style={{ width: '100%', height: '100%' }}>
{/* <FormDesigner ref={formDesignerRef} extra={true} tableName='事件_形态测试WY' /> */}
{ <FormDesigner ref={formDesignerRef} extra={true} tableName='事件_形态测试WY' /> }
{/* <FormRender ref={formRenderRef} schemaValues={schemaValues} /> */}
{/* <div onClick={submit}>提交</div> */}
<Account accountName={'形态测试台账WY'} />
{/*<Account accountName={'形态测试台账WY'} /> */}
</div>
)
......
/*
* @Author: 634665781 634665781@qq.com
* @Date: 2023-12-06 09:16:37
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-12-06 16:56:38
* @FilePath: \xform\examples\server.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const express = require('express');
const webpack = require('webpack');
const webpackDevMiddleware = require('webpack-dev-middleware');
......@@ -28,13 +36,13 @@ app.use(webpackHotMiddleware(compiler));
app.use(express.static(__dirname));
// app.use('/', createProxyMiddleware('/', { target: 'http://127.0.0.1:8880', changeOrigin: true }));
// app.use('/', createProxyMiddleware('/', { target: 'http://192.168.12.178:8085', changeOrigin: true }));
app.use('/', createProxyMiddleware('/', { target: 'http://192.168.10.167:8088', changeOrigin: true }));
//app.use('/', createProxyMiddleware('/', { target: 'http://61.150.107.92:8200', changeOrigin: true }));
//排水
// app.use('/', createProxyMiddleware('/', { target: 'http://192.168.10.154:8020', changeOrigin: true }));
// app.use('/', createProxyMiddleware('/', { target: 'http://192.168.10.167:8088', changeOrigin: true }));
app.use('/', createProxyMiddleware('/', { target: 'http://192.168.10.167:8088', changeOrigin: true }));
// app.use('/', createProxyMiddleware('/', { target: 'http://192.168.10.167:8083', changeOrigin: true }));
// app.use('/', createProxyMiddleware('/', { target: 'http://222.179.7.166:8200', changeOrigin: true }));
const port = process.env.PORT || 8888;
const port = process.env.PORT || 1111;
module.exports = app.listen(port, () => {
console.log(`Server listening on http://localhost:${port}, Ctrl+C to stop`);
});
......@@ -111,7 +111,8 @@ const globalSettings = {
enum: [3, 4, 5],
default: 3,
enumNames: ['一行三列', '一行四列', '一行五列'],
widget: 'select',
widget:'RadioGroup',// 'radio', //'select',RadioGroup
isMultiple:true,
props: {
placeholder: '默认一行三列',
},
......
/*
* @Author: 634665781 634665781@qq.com
* @Date: 2023-12-06 17:55:24
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-12-06 18:12:16
* @FilePath: \xform\src\core\widgets\settings\RadioGroup\index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import React, { useEffect, useState } from 'react'
import { Radio } from 'antd'
const TableNames = (props) => {
console.log(props,'props布局内容。。。。');
const { value, schema, onChange } = props
const [values, setvalues] = useState(value)
const onSelect = (value) => {
setvalues(value)
onChange(value)
}
return (
<Radio.Group onChange={onSelect} defaultValue={value} buttonStyle="solid">
{schema.enum.map((v,i)=>{
return <Radio.Button value={v}>{schema.enumNames[i]
}</Radio.Button>
})
}
</Radio.Group>
)
}
export default TableNames
\ No newline at end of file
/*
* @Author: 634665781 634665781@qq.com
* @Date: 2023-12-06 09:16:37
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-12-06 17:56:47
* @FilePath: \xform\src\core\widgets\settings\form\index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import TableNames from './TableNames'
const form = {
TableNames,
}
......
......@@ -5,7 +5,7 @@ import groupVerify from './groupVerify'
import groupStyle from './groupStyle'
import BooleanSwitch from './BooleanSwitch'
import InputAddon from './InputAddon'
import RadioGroup from './RadioGroup'
const settings = {
...form,
...groupBase,
......@@ -14,6 +14,7 @@ const settings = {
...groupStyle,
BooleanSwitch,
InputAddon,
RadioGroup
}
export default settings
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment