5.5 扩展属性
5.5.1 增加行
在 typeTemplateController.js 中新增代码
//新增扩展属性行
$scope.addTableRow=function(){
$scope.entity.customAttributeItems.push({});
}
在 type_template.html 中的“新建”按钮,执行实体的初始化操作
<button type="button" class="btn btn-default" title="新建" data-toggle="modal"
data-target="#editModal" ng-click="entity={customAttributeItems:[]}"><i class="fa
fa-file-o"></i> 新建</button>
修