k-line.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <iframe class="iframe-k" :src="`https://biking.okenx.com/kline/kline.html?tokenName=${currencyVal.currency_name}`"
  3. frameborder="0"></iframe>
  4. <!-- <iframe :style="{'width': '100%' , 'height': kHeight + 'px' }" src="https://kline.cuwiee.com/local.html?symbol=LTC/USDT" frameborder="0"></iframe> -->
  5. <!-- <web-view :fullscreen="false" :style="{'width': '100%' , 'height': kHeight + 'px' }"
  6. :src="`https://kline.cuwiee.com/local.html`"></web-view> -->
  7. </template>
  8. <script>
  9. import {
  10. mapGetters
  11. } from 'vuex'
  12. export default {
  13. props: {
  14. kWidth: {
  15. type: Number,
  16. default: 0
  17. },
  18. kHeight: {
  19. type: Number,
  20. default: 0
  21. },
  22. // :k-width="kWidth" :k-height="kHeight"
  23. height: {
  24. type: String,
  25. default: '600rpx'
  26. }
  27. },
  28. computed: {
  29. ...mapGetters([
  30. 'currencyVal'
  31. ])
  32. },
  33. data() {
  34. return {
  35. webviewStyles: {
  36. width: this.kWidth + 'px',
  37. height: this.kHeight + 'px'
  38. }
  39. }
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .iframe-k{
  45. width: 100%;
  46. height: 100%;
  47. }
  48. </style>