webView.vue 740 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template name="webView">
  2. <view>
  3. <view ref="initHtml" class="initHtml">
  4. </view>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. name: "webView",
  10. props: {
  11. control : {
  12. type : Object,
  13. value : null
  14. },
  15. item : {
  16. type : Object,
  17. value : null
  18. },
  19. },
  20. mounted: function() {
  21. this.Dever.initHtml(this);
  22. var self = this;
  23. var html = '<iframe title="'+this.item.name+'" width="100%" height="1386" style="overflow-y:auto" src="'+this.item.link+'" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowTransparency="true" ></iframe>';
  24. self.Dever.html(html);
  25. },
  26. methods:{
  27. callback : function() {
  28. return false;
  29. }
  30. },
  31. }
  32. </script>
  33. <style>
  34. </style>