@lambo-design/workflow-approve 1.0.0-beta.90 → 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 +3 -3
- package/src/portrait.vue +16 -11
- package/src/styles/css/index.less +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/workflow-approve",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.92",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"axios": "^0.24.0",
|
|
14
14
|
"axios-cache-plugin": "^0.1.0",
|
|
15
|
-
"@lambo-design/
|
|
16
|
-
"@lambo-design/
|
|
15
|
+
"@lambo-design/core": "^4.7.1-beta.168",
|
|
16
|
+
"@lambo-design/shared": "^1.0.0-beta.295"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"bpmn-js": "^7.3.1",
|
package/src/portrait.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<LamboPageContainer style="
|
|
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>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
14
|
<!-- 横版 -->
|
|
15
|
-
<div v-if="inHorizontal && currentTab === 'business'" style="display: flex; flex-direction: column; height: 100
|
|
15
|
+
<div v-if="inHorizontal && currentTab === 'business'" class="workflow-inHorizontal-content" style="display: flex; flex-direction: column; height: 100%; right: 0; left: 0">
|
|
16
16
|
<!-- 业务内容区插槽 -->
|
|
17
17
|
<div class="portrait-lambo-indicator-card" :style="{height: `${soltHeight}px`}">
|
|
18
18
|
<slot name="business-content"></slot>
|
|
@@ -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
|
-
<transition v-if="showProcessInfo && !inHorizontal" name="draw" @before-enter="beforeFlowInfoEnter" @enter="flowInfoEnter"
|
|
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 [
|
|
@@ -2162,11 +2172,6 @@ export default {
|
|
|
2162
2172
|
padding: 10px;
|
|
2163
2173
|
}
|
|
2164
2174
|
|
|
2165
|
-
/deep/ .page-body {
|
|
2166
|
-
overflow-y: hidden;
|
|
2167
|
-
padding: 0 0 50px 0 !important;
|
|
2168
|
-
}
|
|
2169
|
-
|
|
2170
2175
|
/deep/ .ivu-tabs-bar {
|
|
2171
2176
|
margin-bottom: 0;
|
|
2172
2177
|
}
|
|
@@ -38,6 +38,12 @@
|
|
|
38
38
|
max-width: 130px; /* 限制文本宽度 */
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
.workflow-inHorizontal-content {
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 55px;
|
|
44
|
+
height: calc(100% - 50px);
|
|
45
|
+
}
|
|
46
|
+
|
|
41
47
|
.portrait-lambo-indicator-card {
|
|
42
48
|
height: 100%;
|
|
43
49
|
position: relative;
|
|
@@ -122,6 +128,7 @@
|
|
|
122
128
|
border: 1px solid #e0e0e0;
|
|
123
129
|
border-radius: 16px;
|
|
124
130
|
padding: 16px;
|
|
131
|
+
margin-bottom: 100px;
|
|
125
132
|
&:hover{
|
|
126
133
|
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
|
|
127
134
|
}
|