Commit 37cf5205 authored by 田翔's avatar 田翔

fix: 滚动条

parent b2f776df
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "4.3.6", "version": "4.3.7",
"description": "4.3.6 不允许清空编码", "description": "4.3.7 滚动条",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -50,6 +50,7 @@ const Account = (props) => { ...@@ -50,6 +50,7 @@ const Account = (props) => {
const addField = addFieldGroup ? addFieldGroup.split(',').filter(v => v) : [] const addField = addFieldGroup ? addFieldGroup.split(',').filter(v => v) : []
const editField = editFieldGroup ? editFieldGroup.split(',').filter(v => v) : [] const editField = editFieldGroup ? editFieldGroup.split(',').filter(v => v) : []
if (type === '添加') { if (type === '添加') {
setOperation({ type, id: null })
saveClick(addField, formJson, [], type) saveClick(addField, formJson, [], type)
} }
if (type === '重置') { if (type === '重置') {
......
...@@ -606,6 +606,7 @@ const textWidgets = [ ...@@ -606,6 +606,7 @@ const textWidgets = [
type: 'string', type: 'string',
widget: 'Coding', widget: 'Coding',
disabled: true, disabled: true,
required: false,
}, },
setting: { setting: {
widget: { widget: {
...@@ -645,19 +646,19 @@ const textWidgets = [ ...@@ -645,19 +646,19 @@ const textWidgets = [
disabled: disabled, disabled: disabled,
dependencies: ['tableTypeParent', 'IsSystemField'], dependencies: ['tableTypeParent', 'IsSystemField'],
}, },
required: { // required: {
title: '必填', // title: '必填',
type: 'boolean', // type: 'boolean',
default: false, // default: false,
width: '40%', // width: '40%',
props: { // props: {
style: { // style: {
marginLeft: '10px' // marginLeft: '10px'
} // }
}, // },
disabled: disabled, // disabled: disabled,
dependencies: ['tableTypeParent', 'IsSystemField'], // dependencies: ['tableTypeParent', 'IsSystemField'],
}, // },
prefixion: { prefixion: {
title: '前缀', title: '前缀',
type: 'string', type: 'string',
......
...@@ -335,7 +335,7 @@ const FormDesigner = (props, ref) => { ...@@ -335,7 +335,7 @@ const FormDesigner = (props, ref) => {
} }
return ( return (
<div className={styles.pandaXform}> <div className={styles.pandaXform} style={{ height: '100%' }}>
<div style={{ width: '100%', height: '100%' }}> <div style={{ width: '100%', height: '100%' }}>
<Generator <Generator
// configProvider={{ prefixCls: prefixClsPandaXform }} // configProvider={{ prefixCls: prefixClsPandaXform }}
......
...@@ -9,7 +9,7 @@ const Coding = (props) => { ...@@ -9,7 +9,7 @@ const Coding = (props) => {
const { getPrefixCls } = useContext(ConfigProvider.ConfigContext) const { getPrefixCls } = useContext(ConfigProvider.ConfigContext)
const prefixCls = getPrefixCls('pandaXform') const prefixCls = getPrefixCls('pandaXform')
const { value, onChange, addons, schema } = props const { value, onChange, addons, schema } = props
const { disabled, prefixion, codingType, presetValue } = schema const { disabled, prefixion, codingType, presetValue, required } = schema
const inputChange = (e) => { const inputChange = (e) => {
onChange(e.target.value) onChange(e.target.value)
......
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