@aochuang/client-sdk 1.0.333 → 1.0.335
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/components/index.js +6 -1
- package/components/wework-chat-control/file-url/file-url.vue +2 -5
- package/components/wework-chat-control/image/image.vue +137 -2
- package/components/wework-chat-control/index.js +6 -6
- package/components/wework-chat-control/text/text.vue +22 -3
- package/components/wework-chat-control/util.js +11 -5
- package/components/wework-chat-control/video/video.vue +10 -2
- package/components/wework-chat-control/voice/voice.vue +1 -1
- package/components/wework-chat-control/wework-chat-control-config-item.vue +24 -0
- package/components/wework-chat-control/wework-chat-control-config-msg.vue +25 -0
- package/components/wework-chat-control/wework-chat-control-config.vue +62 -0
- package/components/wework-chat-panel/chat-panel-item.vue +7 -7
- package/components/wework-chat-panel/chat-panel.vue +90 -9
- package/package.json +1 -1
- package/services/client-chat/client-chat-wework/client-chat-concats.js +32 -1
- package/services/client-chat/client-chat-wework/client-chat-session.js +30 -1
- package/services/client-chat/client-chat-wework/client-chat-socket.js +3 -1
- package/services/client-chat/client-chat-wework/client-chat.js +133 -4
- package/services/client-chat/client-chat-wework/utils.js +3 -3
- package/components/wework-chat-panel/chat-panel-controls/company-card/company-card.vue +0 -35
- package/components/wework-chat-panel/chat-panel-controls/expression/expression.vue +0 -36
- package/components/wework-chat-panel/chat-panel-controls/file-url/file-url.vue +0 -35
- package/components/wework-chat-panel/chat-panel-controls/image/image.vue +0 -36
- package/components/wework-chat-panel/chat-panel-controls/index.js +0 -35
- package/components/wework-chat-panel/chat-panel-controls/jx-sys-text/jx-sys-text.vue +0 -28
- package/components/wework-chat-panel/chat-panel-controls/link/link.vue +0 -35
- package/components/wework-chat-panel/chat-panel-controls/location/location.vue +0 -35
- package/components/wework-chat-panel/chat-panel-controls/text/text.vue +0 -43
- package/components/wework-chat-panel/chat-panel-controls/unkonw/unkonw.vue +0 -39
- package/components/wework-chat-panel/chat-panel-controls/video/video.vue +0 -37
- package/components/wework-chat-panel/chat-panel-controls/voice/voice.vue +0 -35
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import SdkChatPanelBox from '../../../chat-panel/chat-panel-box'
|
|
3
|
-
import { link } from '../../../wework-chat-control'
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
name: 'SdkWeworkChatPanelControlsLink',
|
|
7
|
-
functional: true,
|
|
8
|
-
props: {
|
|
9
|
-
dir: {
|
|
10
|
-
type: String
|
|
11
|
-
},
|
|
12
|
-
data: {
|
|
13
|
-
type: Object,
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
fetchUserMethod: {
|
|
17
|
-
type: Function
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
render (h, c) {
|
|
21
|
-
const { props } = c
|
|
22
|
-
return h(SdkChatPanelBox, {
|
|
23
|
-
props: {
|
|
24
|
-
dir: props.dir,
|
|
25
|
-
data: props.data,
|
|
26
|
-
fetchUserMethod: props.fetchUserMethod
|
|
27
|
-
}
|
|
28
|
-
}, [h(link, {
|
|
29
|
-
props: {
|
|
30
|
-
data: props.data
|
|
31
|
-
}
|
|
32
|
-
})])
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
</script>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import SdkChatPanelBox from '../../../chat-panel/chat-panel-box'
|
|
3
|
-
import { location } from '../../../wework-chat-control'
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
name: 'SdkWeworkChatPanelControlsLocation',
|
|
7
|
-
functional: true,
|
|
8
|
-
props: {
|
|
9
|
-
dir: {
|
|
10
|
-
type: String
|
|
11
|
-
},
|
|
12
|
-
data: {
|
|
13
|
-
type: Object,
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
fetchUserMethod: {
|
|
17
|
-
type: Function
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
render (h, c) {
|
|
21
|
-
const { props } = c
|
|
22
|
-
return h(SdkChatPanelBox, {
|
|
23
|
-
props: {
|
|
24
|
-
dir: props.dir,
|
|
25
|
-
data: props.data,
|
|
26
|
-
fetchUserMethod: props.fetchUserMethod
|
|
27
|
-
}
|
|
28
|
-
}, [h(location, {
|
|
29
|
-
props: {
|
|
30
|
-
content: props.data.content
|
|
31
|
-
}
|
|
32
|
-
})])
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
</script>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import SdkChatPanelBox from '../../../chat-panel/chat-panel-box'
|
|
3
|
-
import { text } from '../../../wework-chat-control'
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
name: 'SdkWeworkChatPanelControlsText',
|
|
7
|
-
functional: true,
|
|
8
|
-
props: {
|
|
9
|
-
dir: {
|
|
10
|
-
type: String
|
|
11
|
-
},
|
|
12
|
-
data: {
|
|
13
|
-
type: Object,
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
fetchUserMethod: {
|
|
17
|
-
type: Function
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
render (h, c) {
|
|
21
|
-
const { props } = c
|
|
22
|
-
return h(SdkChatPanelBox, {
|
|
23
|
-
class: 'sdk-chat-panel-controls-text',
|
|
24
|
-
props: {
|
|
25
|
-
dir: props.dir,
|
|
26
|
-
data: props.data,
|
|
27
|
-
fetchUserMethod: props.fetchUserMethod
|
|
28
|
-
}
|
|
29
|
-
}, [h('div', {
|
|
30
|
-
class: 'sdk-chat-panel-controls-text__main'
|
|
31
|
-
}, [h(text, {
|
|
32
|
-
props: {
|
|
33
|
-
data: props.data
|
|
34
|
-
}
|
|
35
|
-
})])])
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
</script>
|
|
39
|
-
<style>
|
|
40
|
-
.sdk-chat-panel-controls-text__main{
|
|
41
|
-
padding: 10px;
|
|
42
|
-
}
|
|
43
|
-
</style>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<sdk-chat-panel-box
|
|
3
|
-
:data="data"
|
|
4
|
-
:dir="dir"
|
|
5
|
-
:fetch-user-method="fetchUserMethod"
|
|
6
|
-
>
|
|
7
|
-
<div class="sdk-wework-chat-panel-controls-unkonw__main">
|
|
8
|
-
未知消息
|
|
9
|
-
</div>
|
|
10
|
-
</sdk-chat-panel-box>
|
|
11
|
-
</template>
|
|
12
|
-
<script>
|
|
13
|
-
import SdkChatPanelBox from '../../../chat-panel/chat-panel-box'
|
|
14
|
-
|
|
15
|
-
export default {
|
|
16
|
-
name: 'SdkWeworkChatPanelControlsUnkonw',
|
|
17
|
-
components: {
|
|
18
|
-
SdkChatPanelBox
|
|
19
|
-
},
|
|
20
|
-
props: {
|
|
21
|
-
dir: {
|
|
22
|
-
type: String
|
|
23
|
-
},
|
|
24
|
-
data: {
|
|
25
|
-
type: Object,
|
|
26
|
-
required: true
|
|
27
|
-
},
|
|
28
|
-
fetchUserMethod: {
|
|
29
|
-
type: Function
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
</script>
|
|
34
|
-
<style lang="less">
|
|
35
|
-
.sdk-wework-chat-panel-controls-unkonw__main{
|
|
36
|
-
padding: 12px;
|
|
37
|
-
color: #999;
|
|
38
|
-
}
|
|
39
|
-
</style>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<sdk-chat-panel-box
|
|
3
|
-
:data="data"
|
|
4
|
-
:dir="dir"
|
|
5
|
-
:fetch-user-method="fetchUserMethod"
|
|
6
|
-
>
|
|
7
|
-
<sdk-chat-control-video
|
|
8
|
-
:data="data"
|
|
9
|
-
width="240px"
|
|
10
|
-
height="180px"
|
|
11
|
-
></sdk-chat-control-video>
|
|
12
|
-
</sdk-chat-panel-box>
|
|
13
|
-
</template>
|
|
14
|
-
<script>
|
|
15
|
-
import SdkChatPanelBox from '../../../chat-panel/chat-panel-box'
|
|
16
|
-
import { video } from '../../../wework-chat-control'
|
|
17
|
-
|
|
18
|
-
export default {
|
|
19
|
-
name: 'SdkWeworkChatPanelControlsVideo',
|
|
20
|
-
components: {
|
|
21
|
-
SdkChatPanelBox,
|
|
22
|
-
SdkChatControlVideo: video
|
|
23
|
-
},
|
|
24
|
-
props: {
|
|
25
|
-
dir: {
|
|
26
|
-
type: String
|
|
27
|
-
},
|
|
28
|
-
data: {
|
|
29
|
-
type: Object,
|
|
30
|
-
required: true
|
|
31
|
-
},
|
|
32
|
-
fetchUserMethod: {
|
|
33
|
-
type: Function
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
</script>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import SdkChatPanelBox from '../../../chat-panel/chat-panel-box'
|
|
3
|
-
import { voice } from '../../../wework-chat-control'
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
name: 'SdkWeworkChatPanelControlsVoice',
|
|
7
|
-
functional: true,
|
|
8
|
-
props: {
|
|
9
|
-
dir: {
|
|
10
|
-
type: String
|
|
11
|
-
},
|
|
12
|
-
data: {
|
|
13
|
-
type: Object,
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
fetchUserMethod: {
|
|
17
|
-
type: Function
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
render (h, c) {
|
|
21
|
-
const { props } = c
|
|
22
|
-
return h(SdkChatPanelBox, {
|
|
23
|
-
props: {
|
|
24
|
-
dir: props.dir,
|
|
25
|
-
data: props.data,
|
|
26
|
-
fetchUserMethod: props.fetchUserMethod
|
|
27
|
-
}
|
|
28
|
-
}, [h(voice, {
|
|
29
|
-
props: {
|
|
30
|
-
content: props.data.content
|
|
31
|
-
}
|
|
32
|
-
})])
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
</script>
|