Commit d3c93bbc authored by 田翔's avatar 田翔

fix: 编码形态增加提示语气

parent 6837a8d3
......@@ -633,6 +633,10 @@ const textWidgets = [
disabled: disabled,
dependencies: ['tableTypeParent', 'IsSystemField'],
},
placeholder: {
title: '提示语',
type: 'string',
},
description: {
title: '字段说明',
type: 'string',
......
......@@ -9,7 +9,7 @@ const Coding = (props) => {
const { getPrefixCls } = useContext(ConfigProvider.ConfigContext)
const prefixCls = getPrefixCls('pandaXform')
const { value, onChange, addons, schema } = props
const { disabled, prefixion, codingType, presetValue, required } = schema
const { disabled, prefixion, codingType, presetValue, required, placeholder } = schema
const inputChange = (e) => {
onChange(e.target.value)
......@@ -32,6 +32,7 @@ const Coding = (props) => {
return (
<div className={styles.coding} isdisabled={JSON.stringify(disabled)}>
<Input
placeholder={placeholder}
onChange={inputChange}
value={value}
disabled={disabled}
......
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