Commit d3c93bbc authored by 田翔's avatar 田翔

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

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