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

定制门户样式

上级 94fe821e
...@@ -37,8 +37,6 @@ ...@@ -37,8 +37,6 @@
</#if> </#if>
</#if> </#if>
</ion-list> </ion-list>
<ion-select ref="select" v-show="false" @ionChange="actionBarClick" interface="action-sheet" :cancel-text="$t('app.button.cancel')"> <van-action-sheet v-model="selectStatus" get-container="#app" :actions="actionBarModelData" cancel-text="取消" close-on-click-action @select="actionBarClick" @cancel="onCancel" />
<ion-select-option v-for="option of actionBarModelData" :key="option.viewlogicname" :value="option.viewlogicname">{{option.actionName}}</ion-select-option>
</ion-select>
</ion-row> </ion-row>
</template> </template>
\ No newline at end of file
...@@ -57,10 +57,26 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap ...@@ -57,10 +57,26 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
* 定制标题 * 定制标题
* *
* @type {string} * @type {string}
* @memberof MOBMyFavoriteStory * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected customizeTitle?: string; @Prop() protected customizeTitle?: string;
/**
* 选择器状态
*
* @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
public selectStatus:boolean = false
/**
* 选择器状态取消事件
*/
public onCancel() {
this.selectStatus = false;
}
/** /**
* 操作栏模型数据 * 操作栏模型数据
* *
...@@ -72,7 +88,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap ...@@ -72,7 +88,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
<#if ctrl.getPSAppViewLogics?? && ctrl.getPSAppViewLogics()??> <#if ctrl.getPSAppViewLogics?? && ctrl.getPSAppViewLogics()??>
<#list ctrl.getPSAppViewLogics() as appViewLogic> <#list ctrl.getPSAppViewLogics() as appViewLogic>
{ {
viewlogicname: "${appViewLogic.name}", name: "${appViewLogic.name}",
<#if appViewLogic.getPSAppViewUIAction?? && appViewLogic.getPSAppViewUIAction()??> <#if appViewLogic.getPSAppViewUIAction?? && appViewLogic.getPSAppViewUIAction()??>
<#assign viewUIAction = appViewLogic.getPSAppViewUIAction()/> <#assign viewUIAction = appViewLogic.getPSAppViewUIAction()/>
<#if viewUIAction.getPSUIAction?? && viewUIAction.getPSUIAction()??> <#if viewUIAction.getPSUIAction?? && viewUIAction.getPSUIAction()??>
...@@ -188,9 +204,9 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap ...@@ -188,9 +204,9 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
/** /**
* 内置门户行为组 * 内置门户行为组
* *
* @memberof MyTaskMob * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
public builtinItemS = [{actionName:'重命名',viewlogicname:'rename'},{actionName:"删除",viewlogicname:"delete"}] public builtinItemS = [{name:'重命名',viewlogicname:'rename'},{name:"删除",viewlogicname:"delete"}]
/** /**
* 门户点击行为菜单 * 门户点击行为菜单
...@@ -198,12 +214,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap ...@@ -198,12 +214,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
public open() { public open() {
let select :any= this.$refs['select']; this.selectStatus = true;
if(select){
setTimeout(() => {
select.open();
}, 1);
}
} }
get edit_title_btn(){ get edit_title_btn(){
...@@ -215,20 +226,16 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap ...@@ -215,20 +226,16 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
public actionBarClick(value:any) { public actionBarClick(data:any) {
if(value.detail.value){ if(data.viewlogicname){
if(value.detail.value == 'rename' ){ if(data.viewlogicname == 'rename' ){
this.isEditTitle = true; this.isEditTitle = true;
}else if(value.detail.value == 'delete' ){ }else if(data.viewlogicname == 'delete' ){
this.$emit("enableCustomizedEvent",'delete',this.item) this.$emit("enableCustomizedEvent",'delete',this.item)
} }
else{ else{
this.handleItemClick(value.detail.value); this.handleItemClick(data.viewlogicname);
}
} }
let select :any = this.$refs['select'];
if (select) {
select.value = null;
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册