n20-common-lib 1.1.98
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/README.md +27 -0
- package/package.json +87 -0
- package/src/_qiankun/index.js +113 -0
- package/src/_qiankun/postMessage.js +48 -0
- package/src/assets/css/_coreLib.scss +35 -0
- package/src/assets/css/cl-anchor.scss +24 -0
- package/src/assets/css/cl-approve-card.scss +58 -0
- package/src/assets/css/cl-dialog.scss +99 -0
- package/src/assets/css/cl-drag-list.scss +22 -0
- package/src/assets/css/cl-empty.scss +10 -0
- package/src/assets/css/cl-expandable-pane.scss +25 -0
- package/src/assets/css/cl-expandable.scss +23 -0
- package/src/assets/css/cl-file-upload-table.scss +11 -0
- package/src/assets/css/cl-filter.scss +4 -0
- package/src/assets/css/cl-flow-step.scss +186 -0
- package/src/assets/css/cl-footer-box.scss +10 -0
- package/src/assets/css/cl-form-item.scss +322 -0
- package/src/assets/css/cl-general-card.scss +12 -0
- package/src/assets/css/cl-layout-aside.scss +88 -0
- package/src/assets/css/cl-layout-content.scss +16 -0
- package/src/assets/css/cl-layout-header.scss +73 -0
- package/src/assets/css/cl-layout-tabs.scss +87 -0
- package/src/assets/css/cl-layout.scss +97 -0
- package/src/assets/css/cl-login-temporary.scss +37 -0
- package/src/assets/css/cl-message.scss +75 -0
- package/src/assets/css/cl-more-tab.scss +98 -0
- package/src/assets/css/cl-nav-menu.scss +5 -0
- package/src/assets/css/cl-pagination.scss +65 -0
- package/src/assets/css/cl-secondary-tab.scss +39 -0
- package/src/assets/css/cl-showcolumn.scss +23 -0
- package/src/assets/css/cl-sifting.scss +51 -0
- package/src/assets/css/cl-statis.scss +42 -0
- package/src/assets/css/cl-step.scss +73 -0
- package/src/assets/css/cl-suspend.scss +19 -0
- package/src/assets/css/cl-tertiary-tab.scss +9 -0
- package/src/assets/css/cl-upload.scss +41 -0
- package/src/assets/css/cl-worn-pagination.scss +50 -0
- package/src/assets/css/el-button.scss +169 -0
- package/src/assets/css/el-table.scss +79 -0
- package/src/assets/css/element-variables.scss +1061 -0
- package/src/assets/css/element.dev.scss +21 -0
- package/src/assets/css/font-icon.scss +26 -0
- package/src/assets/css/index.dev.scss +4 -0
- package/src/assets/css/index.scss +11 -0
- package/src/assets/css/normalize.scss +723 -0
- package/src/assets/css/rootvar.scss +139 -0
- package/src/assets/css/select.scss +26 -0
- package/src/assets/css/title-pop.scss +4 -0
- package/src/assets/getJsonc.js +50 -0
- package/src/assets/realUrl.js +12 -0
- package/src/components/Anchor/AnchorItem.vue +30 -0
- package/src/components/Anchor/index.vue +185 -0
- package/src/components/ApprovalButtons/index.vue +232 -0
- package/src/components/ApprovalCard/index.vue +128 -0
- package/src/components/ApprovalRecord/approvalImg.vue +39 -0
- package/src/components/ApprovalRecord/index.vue +59 -0
- package/src/components/Button/button-group.vue +150 -0
- package/src/components/Button/icon-group-button.vue +61 -0
- package/src/components/Button/index.vue +56 -0
- package/src/components/ContentLoading/index.vue +41 -0
- package/src/components/ContentNull/index.vue +19 -0
- package/src/components/DatePicker/index.vue +27 -0
- package/src/components/DatePicker/por.vue +169 -0
- package/src/components/Dialog/index.vue +26 -0
- package/src/components/Dialog/indexO.vue +116 -0
- package/src/components/DragList/index.vue +68 -0
- package/src/components/Empty/img/404.png +0 -0
- package/src/components/Empty/img/abnormal.svg +109 -0
- package/src/components/Empty/img/dispose.svg +72 -0
- package/src/components/Empty/img/empty.svg +58 -0
- package/src/components/Empty/img/general.svg +59 -0
- package/src/components/Empty/img/lock.svg +58 -0
- package/src/components/Empty/img/network.svg +60 -0
- package/src/components/Empty/img/relevant.svg +69 -0
- package/src/components/Empty/img/search.svg +73 -0
- package/src/components/Empty/index.vue +92 -0
- package/src/components/Expandable/index.vue +49 -0
- package/src/components/Expandable/main.vue +52 -0
- package/src/components/FileUploadTable/index.vue +484 -0
- package/src/components/Filters/index.vue +358 -0
- package/src/components/Filters/indexO.vue +104 -0
- package/src/components/FlowStep/index.vue +69 -0
- package/src/components/FooterBox/index.vue +21 -0
- package/src/components/GeneralCard/index.vue +15 -0
- package/src/components/InputNumber/index.vue +153 -0
- package/src/components/InputNumber/numberRange.vue +47 -0
- package/src/components/InputSearch/index.vue +75 -0
- package/src/components/Layout/AsideNav/index.vue +144 -0
- package/src/components/Layout/HeaderWrap/changePwd.vue +215 -0
- package/src/components/Layout/HeaderWrap/index.vue +336 -0
- package/src/components/Layout/HeaderWrap/noticePop.vue +300 -0
- package/src/components/Layout/SubContent/index.vue +131 -0
- package/src/components/Layout/TabsNav/index.vue +170 -0
- package/src/components/Layout/index.vue +529 -0
- package/src/components/Layout/utils.js +12 -0
- package/src/components/LoginTemporary/form.vue +511 -0
- package/src/components/LoginTemporary/index.vue +122 -0
- package/src/components/LoginTemporary/qr.png +0 -0
- package/src/components/LoginTemporary/qrcode.vue +90 -0
- package/src/components/LoginTemporary/qrt.png +0 -0
- package/src/components/LoginTemporary/retrievePw.vue +28 -0
- package/src/components/LoginTemporary/utils.js +73 -0
- package/src/components/MicroApp/index.js +67 -0
- package/src/components/MicroFrame/index.vue +95 -0
- package/src/components/MoreTab/index.vue +232 -0
- package/src/components/NavMenu/index.vue +60 -0
- package/src/components/NstcG6Components/NstcApprovel/NstcApprovel.vue +13 -0
- package/src/components/NstcG6Components/NstcDialog/NstcDialog.vue +185 -0
- package/src/components/NstcG6Components/Progress/progress.vue +134 -0
- package/src/components/PageLayout/page.vue +15 -0
- package/src/components/Pagination/index.vue +96 -0
- package/src/components/SecondaryTab/index.vue +58 -0
- package/src/components/SelectLazy/index.vue +75 -0
- package/src/components/SelectTree/SelectTreeLazy.vue +241 -0
- package/src/components/SelectTree/index.vue +208 -0
- package/src/components/ShowColumn/index.vue +188 -0
- package/src/components/Sifting/index.vue +99 -0
- package/src/components/Statis/index.vue +97 -0
- package/src/components/Statis/statisItem.vue +54 -0
- package/src/components/Statis/statisPopover.vue +55 -0
- package/src/components/Step/index.vue +38 -0
- package/src/components/Suspend/index.vue +72 -0
- package/src/components/Table/index.vue +131 -0
- package/src/components/Table/indexO.vue +149 -0
- package/src/components/Task/index.vue +26 -0
- package/src/components/TertiaryTab/index.vue +53 -0
- package/src/components/TimePicker/index.vue +28 -0
- package/src/components/Upload/index.vue +242 -0
- package/src/components/WornPagination/index.vue +73 -0
- package/src/directives/VClickOutside/index.js +19 -0
- package/src/directives/VDrag/index.js +72 -0
- package/src/directives/VHas/index.js +27 -0
- package/src/directives/VMove/index.js +42 -0
- package/src/directives/VTitle/index.js +56 -0
- package/src/directives/VTitle/tooltip.vue +21 -0
- package/src/index.js +225 -0
- package/src/plugins/CompatibleOld/index.js +57 -0
- package/src/plugins/Print/index.js +4 -0
- package/src/plugins/Print/print-js/.babelrc +12 -0
- package/src/plugins/Print/print-js/LICENSE +21 -0
- package/src/plugins/Print/print-js/README.md +98 -0
- package/src/plugins/Print/print-js/dist/print.css +97 -0
- package/src/plugins/Print/print-js/dist/print.js +991 -0
- package/src/plugins/Print/print-js/dist/print.map +1 -0
- package/src/plugins/Print/print-js/package.json +60 -0
- package/src/plugins/Print/print-js/src/index.d.ts +45 -0
- package/src/plugins/Print/print-js/src/index.js +10 -0
- package/src/plugins/Print/print-js/src/js/browser.js +33 -0
- package/src/plugins/Print/print-js/src/js/functions.js +103 -0
- package/src/plugins/Print/print-js/src/js/html.js +70 -0
- package/src/plugins/Print/print-js/src/js/image.js +48 -0
- package/src/plugins/Print/print-js/src/js/init.js +168 -0
- package/src/plugins/Print/print-js/src/js/json.js +109 -0
- package/src/plugins/Print/print-js/src/js/modal.js +62 -0
- package/src/plugins/Print/print-js/src/js/pdf.js +62 -0
- package/src/plugins/Print/print-js/src/js/print.js +102 -0
- package/src/plugins/Print/print-js/src/js/raw-html.js +15 -0
- package/src/plugins/Print/print-js/src/sass/index.scss +14 -0
- package/src/plugins/Print/print-js/src/sass/modules/_colors.scss +10 -0
- package/src/plugins/Print/print-js/src/sass/partials/_modal.scss +41 -0
- package/src/plugins/Print/print-js/src/sass/partials/_spinner.scss +46 -0
- package/src/plugins/Print/print.js +2 -0
- package/src/plugins/Print/print.scss +1 -0
- package/src/plugins/SetMenuTree/index.vue +41 -0
- package/src/plugins/SetMenuTree/logoIcon.vue +37 -0
- package/src/plugins/SetMenuTree/setmenutree.vue +427 -0
- package/src/plugins/SetMenuTree/utils.js +74 -0
- package/src/plugins/Sign/InfosecNetSignCNGAgent.min.js +2000 -0
- package/src/plugins/Sign/index.js +65 -0
- package/src/plugins/Sign/sign.js +1 -0
- package/src/plugins/setTabsForSub.js +2 -0
- package/src/utils/auth.js +53 -0
- package/src/utils/axios.js +203 -0
- package/src/utils/downloadBlob.js +19 -0
- package/src/utils/forEachs.js +16 -0
- package/src/utils/getScrollContainer.js +43 -0
- package/src/utils/i18n/cn2hk.json +1270 -0
- package/src/utils/i18n/index.js +54 -0
- package/src/utils/list2tree.js +36 -0
- package/src/utils/msgboxPor.js +26 -0
- package/src/utils/print.js +161 -0
- package/src/utils/relaNo.js +35 -0
- package/src/utils/repairElementUI.js +66 -0
- package/src/utils/urlToGo.js +82 -0
- package/style/css/normalize.scss +723 -0
- package/style/fonts/element-icons.535877f5.woff +0 -0
- package/style/fonts/element-icons.732389de.ttf +0 -0
- package/style/index.css +3 -0
- package/style/index.css.map +1 -0
- package/style/index.umd.min.js +2 -0
- package/style/index.umd.min.js.map +1 -0
- package/style/pageDemo/demo-1.vue +130 -0
- package/style/pageDemo/demo-2.vue +35 -0
- package/style/pageDemo/demo-3.vue +22 -0
- package/style/pageDemo/seeCode.js +20 -0
- package/style/server-config.jsonc +663 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<keep-alive v-if="dnsKey">
|
|
3
|
+
<router-view
|
|
4
|
+
ref="content-cache"
|
|
5
|
+
:key="$route.path"
|
|
6
|
+
class="content-box"
|
|
7
|
+
:no-cache="$route.meta.noCache"
|
|
8
|
+
/>
|
|
9
|
+
</keep-alive>
|
|
10
|
+
<router-view
|
|
11
|
+
v-else
|
|
12
|
+
ref="content-cache"
|
|
13
|
+
class="content-box"
|
|
14
|
+
:no-cache="$route.meta.noCache"
|
|
15
|
+
/>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
const TestProduction = process.env.VUE_APP_TestProduction === 'true'
|
|
20
|
+
|
|
21
|
+
import { setRela } from '../../../utils/relaNo'
|
|
22
|
+
const routerBase = process.env.BASE_URL
|
|
23
|
+
const routerBaseRe = new RegExp('^' + routerBase)
|
|
24
|
+
|
|
25
|
+
export default {
|
|
26
|
+
name: 'SubContent',
|
|
27
|
+
props: {
|
|
28
|
+
appNo: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: process.env.VUE_APP_NAME
|
|
31
|
+
},
|
|
32
|
+
isTest: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
data() {
|
|
38
|
+
return {
|
|
39
|
+
dnsKey: this.isTest || TestProduction
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
watch: {
|
|
43
|
+
$route: {
|
|
44
|
+
handler(vn, vo) {
|
|
45
|
+
if (vo.meta.noCache) {
|
|
46
|
+
this.removeOcache({ path: vo.path })
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
created() {
|
|
52
|
+
setRela(this.appNo)
|
|
53
|
+
|
|
54
|
+
window.addEventListener('message', this.watchMessage)
|
|
55
|
+
|
|
56
|
+
setTimeout(() => {
|
|
57
|
+
this.pendingRemoveCaches()
|
|
58
|
+
}, 60)
|
|
59
|
+
},
|
|
60
|
+
activated() {
|
|
61
|
+
window.addEventListener('message', this.watchMessage)
|
|
62
|
+
|
|
63
|
+
setTimeout(() => {
|
|
64
|
+
this.pendingRemoveCaches()
|
|
65
|
+
}, 60)
|
|
66
|
+
},
|
|
67
|
+
deactivated() {
|
|
68
|
+
window.removeEventListener('message', this.watchMessage)
|
|
69
|
+
},
|
|
70
|
+
beforeDestroy() {
|
|
71
|
+
window.removeEventListener('message', this.watchMessage)
|
|
72
|
+
},
|
|
73
|
+
methods: {
|
|
74
|
+
watchMessage(ev) {
|
|
75
|
+
const { targetName, originName } = ev.data
|
|
76
|
+
if (targetName === '*' && originName === 'main') {
|
|
77
|
+
this.pendingRemoveCaches()
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
pendingRemoveCaches() {
|
|
81
|
+
for (let key in window._pending_update_cache) {
|
|
82
|
+
if (routerBaseRe.test(key) && window._pending_update_cache[key]) {
|
|
83
|
+
let cacheKey = key.replace(routerBaseRe, '/')
|
|
84
|
+
if (cacheKey === this.$route.path) {
|
|
85
|
+
let path = this.$route.path
|
|
86
|
+
let oTab = JSON.parse(
|
|
87
|
+
JSON.stringify({
|
|
88
|
+
path: this.$route.path,
|
|
89
|
+
query: this.$route.query
|
|
90
|
+
})
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
this.$router.replace('/loading')
|
|
94
|
+
this.removeOcache({ path: path })
|
|
95
|
+
setTimeout(() => {
|
|
96
|
+
this.$router.replace(oTab)
|
|
97
|
+
}, 300)
|
|
98
|
+
} else {
|
|
99
|
+
this.removeOcache({ path: cacheKey })
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
removeOcache({ path }) {
|
|
105
|
+
if (!this.dnsKey) return
|
|
106
|
+
|
|
107
|
+
let componentInstance =
|
|
108
|
+
this.$refs['content-cache']?.$vnode.parent.componentInstance
|
|
109
|
+
|
|
110
|
+
if (componentInstance) {
|
|
111
|
+
let kI = componentInstance.keys.findIndex((k) => k === path)
|
|
112
|
+
if (kI !== -1) {
|
|
113
|
+
let destroy = componentInstance.cache[path].componentInstance.destroy
|
|
114
|
+
destroy && destroy()
|
|
115
|
+
|
|
116
|
+
delete componentInstance.cache[path]
|
|
117
|
+
componentInstance.keys.splice(kI, 1)
|
|
118
|
+
|
|
119
|
+
let spath = path.replace(/^\//, routerBase)
|
|
120
|
+
delete window._pending_update_cache[spath]
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// console.log({
|
|
124
|
+
// cache: componentInstance.cache,
|
|
125
|
+
// keys: componentInstance.keys
|
|
126
|
+
// })
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
</script>
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/* 多页签导航 */
|
|
2
|
+
<template>
|
|
3
|
+
<el-tabs
|
|
4
|
+
ref="nav-tabs"
|
|
5
|
+
:value="activeNav"
|
|
6
|
+
type="card"
|
|
7
|
+
closable
|
|
8
|
+
@tab-click="tabClick"
|
|
9
|
+
@tab-remove="tabClose"
|
|
10
|
+
@contextmenu.native.prevent="tabContextmenu"
|
|
11
|
+
@mousewheel.native.prevent="tabScroll"
|
|
12
|
+
>
|
|
13
|
+
<el-tab-pane
|
|
14
|
+
v-for="tab in tabList"
|
|
15
|
+
:key="tab.uuid"
|
|
16
|
+
:label="tab | tabLabelF"
|
|
17
|
+
:name="tab.uuid"
|
|
18
|
+
:tab-info="tab"
|
|
19
|
+
/>
|
|
20
|
+
<el-dropdown
|
|
21
|
+
trigger="click"
|
|
22
|
+
placement="bottom"
|
|
23
|
+
style="display: none"
|
|
24
|
+
@command="menuCommand"
|
|
25
|
+
>
|
|
26
|
+
<span>右键菜单</span>
|
|
27
|
+
<el-dropdown-menu
|
|
28
|
+
ref="contextMenu"
|
|
29
|
+
v-click-outside="clickOut"
|
|
30
|
+
class="tab-nav-context-menu"
|
|
31
|
+
>
|
|
32
|
+
<el-dropdown-item command="refresh">{{
|
|
33
|
+
'刷新当前标签' | $l(i18n)
|
|
34
|
+
}}</el-dropdown-item>
|
|
35
|
+
<el-dropdown-item
|
|
36
|
+
v-if="!menuInTab || !menuInTab.keep"
|
|
37
|
+
command="close"
|
|
38
|
+
>{{ '关闭当前标签' | $l(i18n) }}</el-dropdown-item
|
|
39
|
+
>
|
|
40
|
+
<el-dropdown-item command="closeNexts">{{
|
|
41
|
+
'关闭右侧标签' | $l(i18n)
|
|
42
|
+
}}</el-dropdown-item>
|
|
43
|
+
<el-dropdown-item command="closeOthers">{{
|
|
44
|
+
'关闭其他标签' | $l(i18n)
|
|
45
|
+
}}</el-dropdown-item>
|
|
46
|
+
</el-dropdown-menu>
|
|
47
|
+
</el-dropdown>
|
|
48
|
+
</el-tabs>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<script>
|
|
52
|
+
import { labelF } from '../utils'
|
|
53
|
+
const i18n = {
|
|
54
|
+
刷新当前标签: {
|
|
55
|
+
en: 'Refresh current label'
|
|
56
|
+
},
|
|
57
|
+
关闭当前标签: {
|
|
58
|
+
en: 'Close current label'
|
|
59
|
+
},
|
|
60
|
+
关闭右侧标签: {
|
|
61
|
+
en: 'Close right label'
|
|
62
|
+
},
|
|
63
|
+
关闭其他标签: {
|
|
64
|
+
en: 'Close other labels'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export default {
|
|
69
|
+
filters: {
|
|
70
|
+
tabLabelF: labelF
|
|
71
|
+
},
|
|
72
|
+
props: {
|
|
73
|
+
tabList: {
|
|
74
|
+
type: Array,
|
|
75
|
+
default: () => []
|
|
76
|
+
},
|
|
77
|
+
activeNav: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: undefined
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
data() {
|
|
83
|
+
return {
|
|
84
|
+
showContextMenu: false,
|
|
85
|
+
menuInTab: undefined,
|
|
86
|
+
i18n
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
methods: {
|
|
90
|
+
tabClick(C) {
|
|
91
|
+
let item = C.$attrs['tab-info']
|
|
92
|
+
this.$emit('tab-click', item)
|
|
93
|
+
},
|
|
94
|
+
tabClose(uuid) {
|
|
95
|
+
this.$emit('tab-close', { uuid })
|
|
96
|
+
},
|
|
97
|
+
tabContextmenu(ev) {
|
|
98
|
+
let emitTab = undefined
|
|
99
|
+
ev.path.some((dom) => {
|
|
100
|
+
if (dom.classList.contains('el-tabs__item')) {
|
|
101
|
+
emitTab = dom
|
|
102
|
+
return true
|
|
103
|
+
} else if (dom === ev.currentTarget) {
|
|
104
|
+
return true
|
|
105
|
+
}
|
|
106
|
+
})
|
|
107
|
+
if (emitTab) {
|
|
108
|
+
let uuid = emitTab.getAttribute('id').replace('tab-', '')
|
|
109
|
+
this._tabContextmenu(uuid, emitTab)
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
_tabContextmenu(uuid, dom) {
|
|
113
|
+
this.menuInTab = this.tabList.find((t) => t.uuid === uuid)
|
|
114
|
+
|
|
115
|
+
let contextMenu = this.$refs.contextMenu
|
|
116
|
+
if (this.showContextMenu) {
|
|
117
|
+
contextMenu.showPopper = false
|
|
118
|
+
this.showContextMenu = false
|
|
119
|
+
|
|
120
|
+
contextMenu.referenceElm = dom
|
|
121
|
+
setTimeout(() => {
|
|
122
|
+
contextMenu.showPopper = true
|
|
123
|
+
this.showContextMenu = true
|
|
124
|
+
}, 400)
|
|
125
|
+
} else {
|
|
126
|
+
contextMenu.referenceElm = dom
|
|
127
|
+
contextMenu.showPopper = true
|
|
128
|
+
this.showContextMenu = true
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
clickOut() {
|
|
132
|
+
if (this.showContextMenu) {
|
|
133
|
+
this.$refs.contextMenu.showPopper = false
|
|
134
|
+
this.showContextMenu = false
|
|
135
|
+
this.menuInTab = undefined
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
menuCommand(c) {
|
|
139
|
+
switch (c) {
|
|
140
|
+
case 'refresh':
|
|
141
|
+
this.$emit('tab-refresh', { uuid: this.menuInTab.uuid })
|
|
142
|
+
break
|
|
143
|
+
case 'close':
|
|
144
|
+
this.$emit('tab-close', { uuid: this.menuInTab.uuid })
|
|
145
|
+
break
|
|
146
|
+
case 'closeNexts':
|
|
147
|
+
this.$emit('tab-close-nexts', this.menuInTab.uuid)
|
|
148
|
+
break
|
|
149
|
+
case 'closeOthers':
|
|
150
|
+
this.$emit('tab-close-others', this.menuInTab.uuid)
|
|
151
|
+
break
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
this.clickOut()
|
|
155
|
+
},
|
|
156
|
+
tabScroll(ev) {
|
|
157
|
+
let isPrev = ev.wheelDelta < 0
|
|
158
|
+
let refNav = this.$refs['nav-tabs'].$refs['nav']
|
|
159
|
+
if (isPrev) {
|
|
160
|
+
refNav.scrollNext()
|
|
161
|
+
} else {
|
|
162
|
+
refNav.scrollPrev()
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
</script>
|
|
168
|
+
|
|
169
|
+
<style>
|
|
170
|
+
</style>
|