提交 d339c851 编写于 作者: KK's avatar KK

多表单

上级 f3b05a33
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
${ctrl.render.code} ${ctrl.render.code}
<#else> <#else>
<div class="app-medit-view-panel"> <div class="app-medit-view-panel">
<div v-for="(item,index) in items" :key="index" class="app-medit-view-panel-card"> <div v-for="item in items" :key="item.id" class="app-medit-view-panel-card">
<ion-card> <ion-card>
<div class="meditviewpanel_delete_icon_container" ><ion-icon @click="deleteItem(item)" class="meditviewpanel_delete_icon" name="close-circle-outline"></ion-icon></div>
<ion-card-content> <ion-card-content>
<${srffilepath2(ctrl.getEmbeddedPSAppView().getCodeName())} <${srffilepath2(ctrl.getEmbeddedPSAppView().getCodeName())}
class="viewcontainer2" class="viewcontainer2"
...@@ -382,9 +383,10 @@ ${ctrl.render.code} ...@@ -382,9 +383,10 @@ ${ctrl.render.code}
* 删除方法 * 删除方法
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.name}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
public deleteItem(item: any, index: number) { public deleteItem(item:any) {
let index = this.items.findIndex((i)=>{return Object.is(item.id,i.id)});
this.items.splice(index,1); this.items.splice(index,1);
} }
......
...@@ -3,11 +3,16 @@ ...@@ -3,11 +3,16 @@
</#ibizinclude> </#ibizinclude>
.app-mob-meditviewpanel{ .app-mob-meditviewpanel{
width: 100%; width: 100%;
.meditviewpanel_delete_icon{ .meditviewpanel_delete_icon_container{
position: absolute; position: relative;
right: 10px; height: 10px;
top: 10px; .meditviewpanel_delete_icon{
font-size: 18px; font-size: 20px;
position: absolute;
top: 5px;
right: 5px;
z-index: 1;
}
} }
.meditviewpanel_add_btn { .meditviewpanel_add_btn {
text-align: right; text-align: right;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册