Commit c8a681da authored by 田翔's avatar 田翔

fix: 关联表单选中不显示配置问题

parent 9bb40ca3
{
"name": "panda-xform",
"version": "6.10.18",
"description": "6.10.18 附件默认值优化",
"version": "6.10.19",
"description": "6.10.19 关联表单选中不显示配置问题",
"keywords": [
"panda-xform"
],
......
......@@ -4086,6 +4086,102 @@ const advancedWidgets = [
},
},
},
{
text: '关联选择',
name: '关联选择',
icon: <IconPack.RelevanceSelect />,
schema: {
title: '关联选择',
name: '关联选择',
type: 'string',
widget: 'RelevanceSelect',
placeholder: '',
},
setting: {
widget: {
title: '控件类型',
type: 'string',
widget: 'WidgetType',
displayType: 'row',
labelWidth: 75,
},
$id: {
title: '数据源',
type: 'string',
widget: 'FieldNames',
required: true,
},
title: {
title: '展示名称',
required: true,
type: 'string',
widget: 'htmlInput',
},
placeholder: {
title: '提示语',
type: 'string',
},
presetValue: {
title: '默认值',
type: 'string',
widget: 'CascadeDefault',
dependencies: ['sourceType'],
},
description: {
title: '字段说明',
type: 'string',
},
isHidden: {
title: '是否隐藏',
type: 'boolean',
widget: 'IsHidden',
default: false,
displayType: 'row',
labelWidth: 80,
},
hiddenCondition: {
title: '隐藏条件',
type: 'string',
description: '所有形态默认显示',
widget: 'HiddenCondition',
hidden: "{{formData.isHidden}}",
dependencies: ['isHidden'],
},
fieldParent: {
title: '父字段名',
type: 'string',
// required: true,
widget: 'FieldNames',
dependencies: ['$id'],
},
dictionary: {
title: '数据字典',
name: '数据字典',
// required: true,
type: 'string',
widget: 'Dictionary',
},
required: {
title: '必填',
type: 'boolean',
widget: 'checkbox',
default: false,
width: '33%',
},
disabled: {
title: '只读',
type: 'boolean',
widget: 'checkbox',
default: false,
width: '33%',
},
description: {
title: '字段说明',
type: 'string',
},
...groupStyle,
}
},
{
text: '级联选择',
name: '级联选择',
......
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1677839082650"
class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10282"
xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14">
<path
d="M686.3 630.3V513.2c0-19.9-16.1-36-36-36s-36 16.1-36 36v101.1H136.7V136.7h477.6v98.8c0 19.9 16.1 36 36 36s36-16.1 36-36V120.7c0-30.9-25.1-56-56-56H120.7c-30.9 0-56 25.1-56 56v509.6c0 30.9 25.1 56 56 56h509.6c30.9 0 56-25.1 56-56z"
p-id="10283"></path>
<path
d="M903.8 337.8H394.2c-30.9 0-56 25.1-56 56v118c0 19.9 16.1 36 36 36s36-16.1 36-36v-102h477.6v477.6H410.2V784.6c0-19.9-16.1-36-36-36s-36 16.1-36 36v118.7c0 30.9 25.1 56 56 56h509.6c30.9 0 56-25.1 56-56V393.8c0-30.9-25.1-56-56-56z"
p-id="10284"></path>
</svg>
\ No newline at end of file
<svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14">
<defs>
<style>
.RelevanceSelect {
fill: #F78D04;
}
</style>
</defs>
<g>
<path class="RelevanceSelect" d="M4.9,10.71A3.77,3.77,0,0,1,1.27,7,3.79,3.79,0,0,1,4.9,3.27H6.09V2H4.9A5,5,0,0,0,0,7a5,5,0,0,0,4.9,5H6.09V10.71ZM9.1,2H7.87V3.27H9.1a3.72,3.72,0,0,1,0,7.44H7.87V12H9.1A5,5,0,0,0,14,7,5,5,0,0,0,9.1,2Zm0,0"/>
<rect class="RelevanceSelect" x="3.5" y="6.38" width="7" height="1.33"/>
</g>
</svg>
<svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14">
<defs>
<style>
.cls-1 {
fill: #f78b00;
}
</style>
</defs>
<g>
<path class="cls-1" d="M4.9,10.71A3.77,3.77,0,0,1,1.27,7,3.79,3.79,0,0,1,4.9,3.27H6.09V2H4.9A5,5,0,0,0,0,7a5,5,0,0,0,4.9,5H6.09V10.71ZM9.1,2H7.87V3.27H9.1a3.72,3.72,0,0,1,0,7.44H7.87V12H9.1A5,5,0,0,0,14,7,5,5,0,0,0,9.1,2Zm0,0"/>
<rect class="cls-1" x="3.5" y="6.38" width="7" height="1.33"/>
</g>
</svg>
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