Commit 8bd9ec06 authored by 田翔's avatar 田翔

修复编码报错问题

parent 77d09c60
{
"name": "panda-xform",
"version": "2.0.2",
"description": "2.0.2: 自动计算属性增加控制规则函数",
"version": "2.0.3",
"description": "2.0.3: 修复编码报错问题",
"keywords": [
"panda-xform"
],
......
......@@ -709,13 +709,13 @@ const textWidgets = [
}
}
},
// disabled: {
// title: '只读',
// type: 'boolean',
// widget: 'checkbox',
// default: true,
// width: '30%',
// },
disabled: {
title: '只读',
type: 'boolean',
widget: 'checkbox',
default: true,
width: '30%',
},
hidden: {
title: '隐藏',
type: 'boolean',
......@@ -1202,6 +1202,9 @@ const selectWidgets = [
default: '手动输入',
displayType: 'row',
labelWidth: 80,
props: {
disabled: true
}
},
options: {
title: '',
......
......@@ -17,7 +17,10 @@ const SoruceType = (props) => {
if ('下拉框' === name) {
return initOptions
}
return initOptions.splice(0, 2)
return [
{ label: '手动输入', value: '手动输入' },
{ label: '数据字典', value: '数据字典' },
]
}, [name])
const selectChange = (e) => {
......
......@@ -20,7 +20,6 @@ function toUtf8(str) {
out += String.fromCharCode(0x80 | ((c >> 0) & 0x3f));
}
}
console.log('out', out)
return out;
}
......@@ -44,6 +43,10 @@ const Coding = (props) => {
// onChange(codeValue)
// }, [prefixion, codingType])
const inputChange = (e) => {
onChange(e.target.value)
}
const content = (
<div>
<QRcode value={value} />
......@@ -53,11 +56,11 @@ const Coding = (props) => {
return (
<div className={`${prefixCls}-input`} isdisabled={JSON.stringify(disabled)}>
<Input
// onChange={inputChange}
onChange={inputChange}
value={value}
disabled={disabled}
addonAfter={
<Popover content={content}>
<Popover content={value ? content : null}>
<QrcodeOutlined />
</Popover>
}
......
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