askbot-dragon 0.7.14 → 0.7.18

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,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "0.7.14",
3
+ "version": "0.7.18",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -9,12 +9,15 @@
9
9
  @pause="statechanged"
10
10
  /> -->
11
11
  <video
12
- :src="src"
13
12
  controls="controls"
13
+ :raw-controls="true"
14
14
  x5-video-player-type="h5-page"
15
- style="object-fit: contain;width: calc(100vw - 139px);height: 160px;background-color: black;border-radius: 17px;max-width: 230px;"
15
+ style="object-fit: contain;width: calc(100vw - 139px);height: 160px;background-color: black;border-radius: 25px;max-width: 230px;padding-right: 10px"
16
16
  class="video-player vjs-custom-skin"
17
- :id="msg.keyId"/>
17
+ :id="msg.keyId+'key'">
18
+ <source :src="videoSrc" />
19
+ </video>
20
+ <div id="output"></div>
18
21
  </div>
19
22
  </template>
20
23
  <script>
@@ -23,6 +26,7 @@
23
26
  props: ["msg", "url", "localUrl", "progress"],
24
27
  data() {
25
28
  return {
29
+ videoSrc:''
26
30
  }
27
31
  },
28
32
  watch: {
@@ -35,9 +39,17 @@
35
39
  return this.url == null || this.url === "";
36
40
  },
37
41
  src() {
38
- return (this.url != null && this.url !== '') ? this.url : this.localUrl;
42
+ return this.url ? this.url : this.localUrl;
39
43
  }
40
- }
44
+ },
45
+ mounted() {
46
+ this.$nextTick(()=>{
47
+ this.videoSrc = this.url ? this.url : this.localUrl
48
+ })
49
+
50
+ },
51
+ methods:{
52
+ }
41
53
 
42
54
  }
43
55
  </script>
@@ -22,7 +22,7 @@
22
22
  <!-- LPY 原生宽度适配有bug,弃用 -->
23
23
  <img
24
24
  :src="msg.content.url"
25
- style="height: auto; width: calc(100vw - 137px);border-radius: 17px;max-width: 230px"
25
+ style="height: auto; width: calc(100vw - 137px);border-radius: 25px;max-width: 230px"
26
26
  @click="onImageClick(msg.content.url)"
27
27
  class="img-class"
28
28
  />
@@ -52,7 +52,7 @@
52
52
  const regex = new RegExp("<img", "gi");
53
53
  return html.replace(
54
54
  regex,
55
- "<img style='max-width: 230px;' onclick='imageOnClick(this)'"
55
+ "<img style='max-width: 230px;border-radius: 25px;' onclick='imageOnClick(this)'"
56
56
  );
57
57
  },
58
58
  },