Commit 22d225f4 authored by 田翔's avatar 田翔

fix: 多行文本设置默认值优化

parent 8c75d473
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "6.7.9", "version": "6.8.0",
"description": "6.7.9 附件预览支持默认值", "description": "6.8.0 多行文本设置默认值优化",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -323,6 +323,7 @@ const textWidgets = [ ...@@ -323,6 +323,7 @@ const textWidgets = [
presetValue: { presetValue: {
title: '默认值', title: '默认值',
type: 'string', type: 'string',
widget: 'Placeholder',
}, },
maxLength: { maxLength: {
title: '最大长度', title: '最大长度',
......
...@@ -9,6 +9,7 @@ const Placeholder = (props) => { ...@@ -9,6 +9,7 @@ const Placeholder = (props) => {
const { title } = addons.formData const { title } = addons.formData
const [visible, setVisible] = useState(false) const [visible, setVisible] = useState(false)
const [areaValue, setAreaValue] = useState('') const [areaValue, setAreaValue] = useState('')
console.log('props', props)
const inputChange = (e) => { const inputChange = (e) => {
onChange(e.target.value) onChange(e.target.value)
...@@ -42,7 +43,7 @@ const Placeholder = (props) => { ...@@ -42,7 +43,7 @@ const Placeholder = (props) => {
<Drag <Drag
width='500px' width='500px'
getContainer={false} getContainer={false}
title='图标选择' title={props.schema.title || '图标选择'}
visible={visible} visible={visible}
onOk={onOk} onOk={onOk}
onCancel={onCancel} onCancel={onCancel}
......
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