Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
田翔
xform
Commits
a762f726
Commit
a762f726
authored
Dec 06, 2023
by
程恺文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整体布局修改
parent
e46ee8a3
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
67 additions
and
7 deletions
+67
-7
.gitignore
.gitignore
+1
-0
test.js
examples/base/test.js
+2
-2
server.js
examples/server.js
+11
-3
otherSettings.js
src/core/FormDesigner/config/otherSettings.js
+2
-1
index.js
src/core/widgets/settings/RadioGroup/index.js
+39
-0
index.js
src/core/widgets/settings/form/index.js
+9
-0
index.js
src/core/widgets/settings/index.js
+3
-1
No files found.
.gitignore
View file @
a762f726
...
...
@@ -19,3 +19,4 @@ package-lock.json
.now
es
lib
examples/server.js
examples/base/test.js
View file @
a762f726
...
...
@@ -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
>
)
...
...
examples/server.js
View file @
a762f726
/*
* @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`
);
});
src/core/FormDesigner/config/otherSettings.js
View file @
a762f726
...
...
@@ -111,7 +111,8 @@ const globalSettings = {
enum
:
[
3
,
4
,
5
],
default
:
3
,
enumNames
:
[
'一行三列'
,
'一行四列'
,
'一行五列'
],
widget
:
'select'
,
widget
:
'RadioGroup'
,
// 'radio', //'select',RadioGroup
isMultiple
:
true
,
props
:
{
placeholder
:
'默认一行三列'
,
},
...
...
src/core/widgets/settings/RadioGroup/index.js
0 → 100644
View file @
a762f726
/*
* @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
src/core/widgets/settings/form/index.js
View file @
a762f726
/*
* @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
,
}
...
...
src/core/widgets/settings/index.js
View file @
a762f726
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment