bi-element-ui 1.6.19 → 1.6.20
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/lib/bi-element-ui-externals.common.js +1 -1
- package/lib/bi-element-ui-externals.common.js.gz +0 -0
- package/lib/bi-element-ui-externals.css +2 -2
- package/lib/bi-element-ui-externals.css.gz +0 -0
- package/lib/bi-element-ui-externals.umd.min.js +1 -1
- package/lib/bi-element-ui-externals.umd.min.js.gz +0 -0
- package/lib/bi-element-ui.common.js +1 -1
- package/lib/bi-element-ui.common.js.gz +0 -0
- package/lib/bi-element-ui.css +2 -2
- package/lib/bi-element-ui.css.gz +0 -0
- package/lib/bi-element-ui.esm.js +1 -1
- package/lib/bi-element-ui.esm.js.gz +0 -0
- package/lib/bi-element-ui.umd.min.js +1 -1
- package/lib/bi-element-ui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/packages/TicketCenter/src/index.vue +56 -3
|
Binary file
|
package/package.json
CHANGED
|
@@ -20,11 +20,33 @@
|
|
|
20
20
|
custom-class="bi-ticket-center-drawer"
|
|
21
21
|
title="智能答疑"
|
|
22
22
|
:visible.sync="drawerVisible"
|
|
23
|
+
:size="drawerSize"
|
|
23
24
|
direction="rtl"
|
|
24
|
-
size="600px"
|
|
25
25
|
destroy-on-close
|
|
26
26
|
append-to-body
|
|
27
27
|
>
|
|
28
|
+
<template slot="title">
|
|
29
|
+
<span class="ticket-drawer-title">
|
|
30
|
+
<span
|
|
31
|
+
class="ticket-drawer-title__text"
|
|
32
|
+
role="heading"
|
|
33
|
+
>智能答疑</span>
|
|
34
|
+
<el-tooltip
|
|
35
|
+
:content="isFull ? '缩小' : '放大'"
|
|
36
|
+
effect="dark"
|
|
37
|
+
placement="bottom"
|
|
38
|
+
>
|
|
39
|
+
<button
|
|
40
|
+
class="ticket-fullscreen-button"
|
|
41
|
+
type="button"
|
|
42
|
+
:aria-label="isFull ? '缩小' : '放大'"
|
|
43
|
+
@click="isFull = !isFull"
|
|
44
|
+
>
|
|
45
|
+
<i class="el-icon-full-screen"></i>
|
|
46
|
+
</button>
|
|
47
|
+
</el-tooltip>
|
|
48
|
+
</span>
|
|
49
|
+
</template>
|
|
28
50
|
<div class="ticket-iframe-box">
|
|
29
51
|
<iframe
|
|
30
52
|
:src="ticketUrl"
|
|
@@ -51,15 +73,26 @@ export default {
|
|
|
51
73
|
},
|
|
52
74
|
data() {
|
|
53
75
|
return {
|
|
54
|
-
drawerVisible: false
|
|
76
|
+
drawerVisible: false,
|
|
77
|
+
isFull: false
|
|
55
78
|
}
|
|
56
79
|
},
|
|
57
80
|
computed: {
|
|
81
|
+
drawerSize() {
|
|
82
|
+
return this.isFull ? '1603px' : '480px'
|
|
83
|
+
},
|
|
58
84
|
ticketUrl() {
|
|
59
85
|
const sys = encodeURIComponent(this.workSystemId || '')
|
|
60
86
|
const creatorId = encodeURIComponent(this.userId || '')
|
|
61
87
|
return `https://ticket.zwnet.cn/gongdan/h5/submit?sys=${sys}&creator_id=${creatorId}`
|
|
62
88
|
}
|
|
89
|
+
},
|
|
90
|
+
watch: {
|
|
91
|
+
drawerVisible(val) {
|
|
92
|
+
if (!val) {
|
|
93
|
+
this.isFull = false
|
|
94
|
+
}
|
|
95
|
+
}
|
|
63
96
|
}
|
|
64
97
|
}
|
|
65
98
|
</script>
|
|
@@ -102,11 +135,31 @@ export default {
|
|
|
102
135
|
width: 100%;
|
|
103
136
|
height: 100%;
|
|
104
137
|
}
|
|
138
|
+
.ticket-drawer-title {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
justify-content: space-between;
|
|
142
|
+
}
|
|
143
|
+
.ticket-fullscreen-button {
|
|
144
|
+
border: none;
|
|
145
|
+
cursor: pointer;
|
|
146
|
+
font-size: 20px;
|
|
147
|
+
color: #4e5969;
|
|
148
|
+
background-color: transparent;
|
|
149
|
+
height: 24px;
|
|
150
|
+
line-height: 24px;
|
|
151
|
+
padding: 0;
|
|
152
|
+
margin-right: 12px;
|
|
153
|
+
|
|
154
|
+
&:hover {
|
|
155
|
+
color: #00bf8a;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
105
158
|
</style>
|
|
106
159
|
|
|
107
160
|
<style lang="scss">
|
|
108
161
|
.bi-ticket-center-drawer {
|
|
109
|
-
max-width:
|
|
162
|
+
max-width: 100%;
|
|
110
163
|
display: flex;
|
|
111
164
|
flex-direction: column;
|
|
112
165
|
|