@lambo-design/pro-layout 1.0.0-beta.447 → 1.0.0-beta.449
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 +3 -3
- package/src/components/pro-layout-header/pro-layout-tools/components/pro-layout-tools-quick-document.vue +41 -7
- package/src/components/pro-layout-header/pro-layout-tools/components/pro-layout-tools-quick-intl.vue +2 -1
- package/src/components/pro-layout-tabs/index.vue +3 -1
- package/src/index.vue +5 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/pro-layout",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.449",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"registry": "https://registry.npmjs.org/"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@lambo-design/core": "^4.7.1-beta.
|
|
14
|
-
"@lambo-design/shared": "^1.0.0-beta.
|
|
13
|
+
"@lambo-design/core": "^4.7.1-beta.178",
|
|
14
|
+
"@lambo-design/shared": "^1.0.0-beta.361"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"release-pro-layout": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
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 === '
|
|
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>
|
package/src/components/pro-layout-header/pro-layout-tools/components/pro-layout-tools-quick-intl.vue
CHANGED
|
@@ -68,7 +68,8 @@ export default {
|
|
|
68
68
|
},
|
|
69
69
|
switchLang(name) {
|
|
70
70
|
window.sessionStorage.clear();
|
|
71
|
-
localStorage.removeItem(config.routerBase + '-tagNavList');
|
|
71
|
+
// localStorage.removeItem(config.routerBase + '-tagNavList');
|
|
72
|
+
sessionStorage.removeItem(config.routerBase + '-tagNavList');
|
|
72
73
|
this.defaultLang = this.langCodeDict[name];
|
|
73
74
|
sessionStorage.setItem("lambo_lang_code", name);
|
|
74
75
|
this.callSwitchLangApi(name, true);
|
|
@@ -46,6 +46,7 @@ import {
|
|
|
46
46
|
getPreviousTagIndex,
|
|
47
47
|
getDelTagIndex,
|
|
48
48
|
setTagNavListInLocalstorage,
|
|
49
|
+
setTagNavListInSessionstorage,
|
|
49
50
|
showTitle, getRootPermission
|
|
50
51
|
} from '@lambo-design/shared/utils/platform'
|
|
51
52
|
import beforeClose from '@lambo-design/shared/utils/menu/before-close'
|
|
@@ -134,7 +135,8 @@ export default {
|
|
|
134
135
|
let index = getDelTagIndex(data,current);
|
|
135
136
|
data.splice(index,1);
|
|
136
137
|
}
|
|
137
|
-
setTagNavListInLocalstorage(data, config.routerBase + '-tagNavList');
|
|
138
|
+
// setTagNavListInLocalstorage(data, config.routerBase + '-tagNavList');
|
|
139
|
+
setTagNavListInSessionstorage(data, config.routerBase + '-tagNavList');
|
|
138
140
|
this.tagList = data;
|
|
139
141
|
if (current !== this.value) {
|
|
140
142
|
this.value = current;
|
package/src/index.vue
CHANGED
|
@@ -68,7 +68,7 @@ import LamboProLayoutTabs from './components/pro-layout-tabs'
|
|
|
68
68
|
import Bus from '@lambo-design/shared/utils/bus'
|
|
69
69
|
import config from "@lambo-design/shared/config/config";
|
|
70
70
|
import {
|
|
71
|
-
getTagNavListFromLocalstorage, isOpenBlank, routeEqual, tagExists,
|
|
71
|
+
getTagNavListFromLocalstorage, isOpenBlank, routeEqual, tagExists,getTagNavListFromSessionstorage
|
|
72
72
|
} from "@lambo-design/shared/utils/platform";
|
|
73
73
|
import {deepCopy} from "@lambo-design/shared/utils/assist";
|
|
74
74
|
import Locale from '@lambo-design/core/src/mixins/locale';
|
|
@@ -318,7 +318,8 @@ export default {
|
|
|
318
318
|
Bus.$emit('other-datas',this.otherDatas)
|
|
319
319
|
},
|
|
320
320
|
initTags(){
|
|
321
|
-
let tagList = getTagNavListFromLocalstorage(config.routerBase + '-tagNavList');
|
|
321
|
+
// let tagList = getTagNavListFromLocalstorage(config.routerBase + '-tagNavList');
|
|
322
|
+
let tagList = getTagNavListFromSessionstorage(config.routerBase + '-tagNavList');
|
|
322
323
|
if (tagList.length == 0) {
|
|
323
324
|
tagList.push(this.homeRouter);
|
|
324
325
|
}
|
|
@@ -390,7 +391,8 @@ export default {
|
|
|
390
391
|
} else {
|
|
391
392
|
name = menu.name;
|
|
392
393
|
menuItem = deepCopy(menu);
|
|
393
|
-
let tagList = getTagNavListFromLocalstorage(config.routerBase + '-tagNavList');
|
|
394
|
+
// let tagList = getTagNavListFromLocalstorage(config.routerBase + '-tagNavList');
|
|
395
|
+
let tagList = getTagNavListFromSessionstorage(config.routerBase + '-tagNavList');
|
|
394
396
|
if (!tagExists(tagList,name)) {
|
|
395
397
|
tagList.push(menuItem);
|
|
396
398
|
} else {
|