页面树结构

版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

代码块
languagexml
		<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>

...

  1. widgetAnnotation="widgetAnnotation":控件标注所用参数,DWF会通过props直接传递一个缺省值进来
  2. router="router":当前路由对象,DWF会通过props直接传递一个缺省值进来
  3. route="route":当前路由信息,DWF会通过props直接传递一个缺省值进来
  4. root="root":根组件对象,DWF会通过props直接传递一个缺省值进来
  5. itemValue="itemValue":表单对应JSON实例化以后的对象,DWF会通过props直接传递一个缺省值进来。
  6. dataTypes="dataTypes":目标属性类型,需要返回一个数组表明可以接受的DWF数据类型。
  7. attributes="filter_attributes":过滤之后的目标属性,需要控件里提供一个空的实现
  8. targetclass="itemValue.data.targetClass":表单类:表单目标类

增加args属性

引入了EditBox以后,还需要在vue文件脚本部分的data()函数中返回args对象,用于保存和初始化需要展示的控件属性。

...