amis icon indicating copy to clipboard operation
amis copied to clipboard

InputKV或inputKVS或者jsonschema无法回显

Open lvjinwei1688 opened this issue 2 years ago • 0 comments

实现场景:

我想使用InputKV或inputKVS或者jsonschema 实现用户自定义数据,进行存,现在新增是可以实现的,但我编辑无法回显上面的数据(上面的数据在crud中用json展示)我在考虑是否能用inputTable来替换

存在的问题:

编辑按钮无法回显InputKV或inputKVS或者jsonschema 任何一个数据

当前方案:

                      {
                        'type': 'input-kv',
                        'draggable': true,
                        'label': '智能体属性',
                        'name': 'agent_attribute',
                        'id': 'u:590202a7daef',
                        'multiple': true,
                        'items': [
                          {
                            'placeholder': 'Key',
                            'type': 'input-text',
                            'unique': true,
                            'name': 'key',
                            'required': true,
                            'validateOnChange': true
                          },
                          {
                            'placeholder': 'Value',
                            'type': 'input-text',
                            'name': 'value'
                          }
                        ]
                      },
                      {
                        'type': 'input-kvs',
                        'name': 'agent_function',
                        'label': '智能体行为函数',
                        'addButtonText': '新增智能体行为函数',
                        'keyItem': {
                          'label': '函数名'
                        }
                      }
code here...

lvjinwei1688 avatar Dec 07 '23 08:12 lvjinwei1688