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

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

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