...
代码块 | ||
---|---|---|
| ||
<span v-show="t_edit" ref="edit"> <EditBox <EditBox v-if="actEdit" :addinName="name" :widgetAnnotation="widgetAnnotation" :editExtendInfo="editExtendInfo" ref="editbox" v-model="args" :attributes="filter_attributes" :attributes="filter_attributes" :router="router" :route="route" :store="store" :root="root" :itemValue="itemValue" ="root" :itemValue="itemValue" :query_oprs="query_oprs" :dataTypes="dataTypes" :targetclass="itemValue.data.targetClass" > <div slot="attribute"></div> <div slot="layout"></div> <div slot="operation"></div> </EditBox> </span> |
...
- widgetAnnotation="widgetAnnotation":控件标注所用参数,DWF会通过props直接传递一个缺省值进来
- router="router":当前路由对象,DWF会通过props直接传递一个缺省值进来
- route="route":当前路由信息,DWF会通过props直接传递一个缺省值进来
- root="root":根组件对象,DWF会通过props直接传递一个缺省值进来
- itemValue="itemValue":表单对应JSON实例化以后的对象,DWF会通过props直接传递一个缺省值进来。
- dataTypes="dataTypes":目标属性类型,需要返回一个数组表明可以接受的DWF数据类型。
- attributes="filter_attributes":过滤之后的目标属性,需要控件里提供一个空的实现
- targetclass="itemValue.data.targetClass":表单类:表单目标类
增加args属性
引入了EditBox以后,还需要在vue文件脚本部分的data()函数中返回args对象,用于保存和初始化需要展示的控件属性。
...