@lambo-design/workflow-approve 1.0.0-beta.91 → 1.0.0-beta.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/portrait.vue +14 -4
package/package.json
CHANGED
package/src/portrait.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<LamboPageContainer style="overflow: hidden">
|
|
2
|
+
<LamboPageContainer style="overflow: hidden" :footer-height="footerHeight">
|
|
3
3
|
<template slot="page-title">
|
|
4
4
|
<Tabs v-if="processTraceInTab" value="business" @on-click="changeTab">
|
|
5
5
|
<TabPane :label="title" name="business"></TabPane>
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
|
|
81
81
|
<!-- 竖版 -->
|
|
82
82
|
<div v-if="!inHorizontal" class="portrait-lambo-indicator-card"
|
|
83
|
-
:style="{
|
|
83
|
+
:style="{...pageContainerWithoutPadding, left: '0', width: isExpanded && showProcessInfo ? `calc(100% - ${portraitWidth+10}px)` : '99%'}">
|
|
84
84
|
<!-- 业务内容区插槽 -->
|
|
85
85
|
<slot v-if="currentTab === 'business'" name="business-content"></slot>
|
|
86
86
|
<div ref="processTraceTab" v-if="currentTab === 'processTrace'">
|
|
@@ -94,14 +94,14 @@
|
|
|
94
94
|
</div>
|
|
95
95
|
<!-- 流程信息区 -->
|
|
96
96
|
<a v-if="showProcessInfo && !inHorizontal" @click="isExpanded = !isExpanded" class="arrow-button-container"
|
|
97
|
-
:style="{right: isExpanded ? portraitWidth
|
|
97
|
+
:style="{right: isExpanded ? portraitWidth-5 + 'px' : '5px'}">
|
|
98
98
|
<Icon class="icon-class" v-if="isExpanded" type="ios-arrow-forward"/>
|
|
99
99
|
<Icon class="icon-class" v-if="!isExpanded" type="ios-arrow-back"/>
|
|
100
100
|
</a>
|
|
101
101
|
<transition style="position: relative; overflow-x: hidden" v-if="showProcessInfo && !inHorizontal" name="draw" @before-enter="beforeFlowInfoEnter" @enter="flowInfoEnter"
|
|
102
102
|
@before-leave="beforeFlowInfoLeave" @leave="flowInfoLeave">
|
|
103
103
|
<lamboIndicatorCard v-show="isExpanded" class="portrait-lambo-indicator-card"
|
|
104
|
-
:style="{width: portraitWidth + 'px',
|
|
104
|
+
:style="{width: portraitWidth + 'px', right: '0', ...pageContainerWithoutPadding}" :hasExtend="false">
|
|
105
105
|
<div slot="content-title">流程信息</div>
|
|
106
106
|
<ProcessInfo ref="processInfo"
|
|
107
107
|
v-model="form.auditOpinion"
|
|
@@ -409,6 +409,7 @@ export default {
|
|
|
409
409
|
data() {
|
|
410
410
|
return {
|
|
411
411
|
isExpanded: true,
|
|
412
|
+
footerHeight: 55,
|
|
412
413
|
showProcessInfo: true,
|
|
413
414
|
portraitWidth: 0,
|
|
414
415
|
openProcessInfo: true,
|
|
@@ -566,6 +567,15 @@ export default {
|
|
|
566
567
|
window.removeEventListener('resize', this.handleWindowResize);
|
|
567
568
|
},
|
|
568
569
|
computed: {
|
|
570
|
+
pageContainerWithoutPadding(){
|
|
571
|
+
const top = 55
|
|
572
|
+
let style = {
|
|
573
|
+
position: 'absolute',
|
|
574
|
+
top: `${top}px`,
|
|
575
|
+
height: `calc(100% - ${top + this.footerHeight}px)`,
|
|
576
|
+
}
|
|
577
|
+
return style
|
|
578
|
+
},
|
|
569
579
|
buttons() {
|
|
570
580
|
const showButtons = !this.isDetail && !this.appointTask && !this.rejectedTask
|
|
571
581
|
return [
|