@lambo-design/pro-layout 1.0.0-beta.447 → 1.0.0-beta.448

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": "@lambo-design/pro-layout",
3
- "version": "1.0.0-beta.447",
3
+ "version": "1.0.0-beta.448",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -1,7 +1,17 @@
1
1
  <template>
2
- <Tooltip :content="tooltipContent" placement="bottom">
3
- <Icon @click="collectEvent" type="ios-help-circle-outline" size="16" style="cursor: pointer" />
4
- </Tooltip>
2
+ <div>
3
+ <Tooltip :content="tooltipContent" placement="bottom">
4
+ <Icon @click="collectEvent" type="ios-help-circle-outline" size="16" style="cursor: pointer" />
5
+ </Tooltip>
6
+ <Modal v-model="modalShow" fullscreen :mask-closable="false" :closable="false">
7
+ <div class="document-modal-iframe-wrap">
8
+ <iframe class="document-modal-iframe" :src="modalLink" frameborder="0"></iframe>
9
+ </div>
10
+ <div slot="footer">
11
+ <Button type="primary" @click="closeDocumentModal">关闭</Button>
12
+ </div>
13
+ </Modal>
14
+ </div>
5
15
  </template>
6
16
 
7
17
  <script>
@@ -16,7 +26,9 @@ export default {
16
26
  return {
17
27
  documentUpdateLink: '',
18
28
  documentLinkTarget: 'blank',
19
- documentDescText: ''
29
+ documentDescText: '',
30
+ modalShow: false,
31
+ modalLink: ''
20
32
  }
21
33
  },
22
34
  computed: {
@@ -49,9 +61,12 @@ export default {
49
61
  }
50
62
  }
51
63
  },
52
- collectEvent(){
64
+ collectEvent() {
53
65
  if (this.documentUpdateLink) {
54
- if (this.documentLinkTarget === 'tab') {
66
+ if (this.documentLinkTarget === 'modal') {
67
+ this.modalLink = this.documentUpdateLink
68
+ this.modalShow = true
69
+ } else if (this.documentLinkTarget === 'tab') {
55
70
  let menuItem = {
56
71
  meta: {
57
72
  appId: "home",
@@ -68,8 +83,12 @@ export default {
68
83
  }
69
84
  } else {
70
85
  let url = '%E5%A4%A7%E6%95%B0%E6%8D%AE%E5%B9%B3%E5%8F%B0%E6%93%8D%E4%BD%9C%E6%89%8B%E5%86%8C/';
71
- window.open('/dw-guide-doc/'+url, '_blank');
86
+ window.open('/dw-guide-doc/' + url, '_blank');
72
87
  }
88
+ },
89
+ closeDocumentModal() {
90
+ this.modalShow = false
91
+ this.modalLink = ''
73
92
  }
74
93
  },
75
94
  created() {
@@ -80,3 +99,18 @@ export default {
80
99
  }
81
100
  }
82
101
  </script>
102
+
103
+ <style scoped lang="less">
104
+ .document-modal-iframe-wrap {
105
+ height: calc(100vh - 60px);
106
+ overflow: hidden;
107
+ }
108
+ .document-modal-iframe {
109
+ width: 100%;
110
+ height: 100%;
111
+ border: none;
112
+ }
113
+ /deep/.ivu-modal-wrap {
114
+ z-index: 99999 !important;
115
+ }
116
+ </style>