webView.vue 753 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. index : 0
  20. },
  21. mounted: function() {
  22. this.Dever.initHtml(this);
  23. var self = this;
  24. 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>';
  25. self.Dever.html(html);
  26. },
  27. methods:{
  28. callback : function() {
  29. return false;
  30. }
  31. },
  32. }
  33. </script>
  34. <style>
  35. </style>