1.0.1 • Published 3 years ago

@easyv/dtable-sdk v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

EasyV 组件 GUI 配置界面

tip: 组件配置项,旧版本 “ _xxx ” 开头,新版本 " xxx "

旧版本:

旧版本config

类似于name/value/displayName/type 都属于主属性,不会改变其数据结构位置,如上图示例 selectableDisableddefaultEntry等其他属性会被处理到config对象中, 组件接收的数据如下所示

 {
                  name: 'upload5',
                  displayName: '文件夹',
                  config:{
                    selectableDisabled:true,
                    defaultEntry:'/main.json',
                    accept:".easytwin",
                  },
                  value: {
                    entry: 'components/static-image/borderMapNew/hebei/130000.json',
                    options: [
                      xxx
                    ]
                  },
                  type: 'folder'
                }

新版本

新版本config

类似于name/value/displayName/type 都属于主属性,不会改变其数据结构位置,如上图示例 selectableDisableddefaultEntry等其他属性 需要预先写到 config对象中, 组件接收的数据如下所示

  {
              name: 'upload7',
              displayName: '文件夹_new',
              config:{
                selectableDisabled:true,
                defaultEntry:'/main.json',
                accept:".easytwin"
              },
              value: {
                entry: 'components/static-image/borderMapNew/hebei/130000.json',
                options: [
                 xxx
                ]
              },
              type: 'folder'
            },