doway-coms 1.6.36 → 1.6.38
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
CHANGED
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="liu-yan" style="background-color: #eaeef1">
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
<div class="input-box">
|
|
4
|
+
<!-- :auto-size="{ minRows: 2, maxRows: 2 }" -->
|
|
5
|
+
<a-textarea auto-size placeholder="写些什么..." v-model:value="remark" />
|
|
6
|
+
<a-upload
|
|
7
|
+
list-type="picture"
|
|
8
|
+
:headers="uploadHeaders"
|
|
9
|
+
:action="uploadData.picAction"
|
|
10
|
+
:data="uploadData"
|
|
11
|
+
:before-upload="beforeAvatarUpload"
|
|
12
|
+
@change="handleAvatarSuccess"
|
|
13
|
+
:file-list="fileList"
|
|
14
|
+
style="padding-top: 10px"
|
|
15
|
+
>
|
|
16
|
+
<a-icon
|
|
17
|
+
style="font-size: 16px; cursor: pointer; margin: 5px 10px"
|
|
18
|
+
type="paper-clip"
|
|
19
|
+
/>
|
|
20
|
+
</a-upload>
|
|
21
|
+
<div style="display: flex; justify-content: flex-end">
|
|
22
|
+
<a-button @click="addMsgRemark">发送</a-button>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="list" :style="{ height: listHeight - 101 + 'px' }">
|
|
5
26
|
<a-list
|
|
6
27
|
v-if="remarkData.length > 0"
|
|
7
28
|
item-layout="horizontal"
|
|
@@ -72,28 +93,6 @@
|
|
|
72
93
|
</a-list>
|
|
73
94
|
<div v-else></div>
|
|
74
95
|
</div>
|
|
75
|
-
<div class="input-box">
|
|
76
|
-
<!-- :auto-size="{ minRows: 2, maxRows: 2 }" -->
|
|
77
|
-
<a-textarea auto-size placeholder="写些什么..." v-model:value="remark" />
|
|
78
|
-
<a-upload
|
|
79
|
-
list-type="picture"
|
|
80
|
-
:headers="uploadHeaders"
|
|
81
|
-
:action="uploadData.picAction"
|
|
82
|
-
:data="uploadData"
|
|
83
|
-
:before-upload="beforeAvatarUpload"
|
|
84
|
-
@change="handleAvatarSuccess"
|
|
85
|
-
:file-list="fileList"
|
|
86
|
-
style="padding-top: 10px"
|
|
87
|
-
>
|
|
88
|
-
<a-icon
|
|
89
|
-
style="font-size: 16px; cursor: pointer; margin: 5px 10px"
|
|
90
|
-
type="paper-clip"
|
|
91
|
-
/>
|
|
92
|
-
</a-upload>
|
|
93
|
-
<div style="display: flex; justify-content: flex-end">
|
|
94
|
-
<a-button @click="addMsgRemark">发送</a-button>
|
|
95
|
-
</div>
|
|
96
|
-
</div>
|
|
97
96
|
</div>
|
|
98
97
|
</template>
|
|
99
98
|
|
|
@@ -110,6 +109,9 @@ import {
|
|
|
110
109
|
export default {
|
|
111
110
|
name: "LeaveAMessage",
|
|
112
111
|
props: {
|
|
112
|
+
listHeight: {
|
|
113
|
+
type: Number,
|
|
114
|
+
},
|
|
113
115
|
limitSize: {
|
|
114
116
|
// 限制上传大小
|
|
115
117
|
type: Number,
|
|
@@ -234,7 +236,7 @@ export default {
|
|
|
234
236
|
});
|
|
235
237
|
}
|
|
236
238
|
item["avatar"] =
|
|
237
|
-
"https://
|
|
239
|
+
"https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png";
|
|
238
240
|
item["fromNowTime"] = moment(item.createTime).fromNow();
|
|
239
241
|
tmp.push(item);
|
|
240
242
|
});
|
|
@@ -294,10 +296,10 @@ export default {
|
|
|
294
296
|
}
|
|
295
297
|
::v-deep(.ant-list-item) {
|
|
296
298
|
padding: 12px 10px;
|
|
299
|
+
position: relative;
|
|
297
300
|
}
|
|
298
301
|
.list {
|
|
299
302
|
padding: 15px 15px;
|
|
300
|
-
height: 540px;
|
|
301
303
|
overflow: auto;
|
|
302
304
|
.close-icon {
|
|
303
305
|
position: absolute;
|
|
@@ -344,6 +346,8 @@ export default {
|
|
|
344
346
|
.input-box {
|
|
345
347
|
background-color: #fff;
|
|
346
348
|
padding: 10px 10px 0;
|
|
349
|
+
min-height: 100px;
|
|
350
|
+
max-height: 100px;
|
|
347
351
|
}
|
|
348
352
|
.msg-content {
|
|
349
353
|
box-sizing: border-box;
|