imatrix-ui 0.0.15 → 0.1.1-up
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/.vscode/extensions.json +3 -0
- package/README.md +7 -0
- package/components/dynamic-source-select/dynamic-source-select-service.js +106 -0
- package/components/dynamic-source-select/dynamic-source-select.vue +673 -0
- package/components/dynamic-source-select/events.js +77 -0
- package/components/fs-preview/fs-preview.vue +287 -0
- package/components/index.js +26 -0
- package/components/plugins/export-data-new.js +623 -0
- package/components/plugins/export-data.js +431 -0
- package/components/plugins/index.js +15 -0
- package/components/plugins/public-method.js +47 -0
- package/components/rich-editor/index-bak.vue +306 -0
- package/components/rich-editor/index.vue +236 -0
- package/components/rich-editor/langs/zh-Hans.js +438 -0
- package/components/rich-editor/viewer.vue +105 -0
- package/components/super-grid/apis.js +1065 -0
- package/components/super-grid/columns-config.vue +430 -0
- package/components/super-grid/custom-formatter.js +330 -0
- package/components/super-grid/dynamic-input.vue +1706 -0
- package/components/super-grid/eventBus.js +2 -0
- package/components/super-grid/events.js +56 -0
- package/components/super-grid/formValidatorUtil.js +300 -0
- package/components/super-grid/formatter.js +190 -0
- package/components/super-grid/group-column.vue +100 -0
- package/components/super-grid/header-context-menu.vue +82 -0
- package/components/super-grid/index-column.vue +69 -0
- package/components/super-grid/normal-column.vue +1148 -0
- package/components/super-grid/public-methods.js +30 -0
- package/components/super-grid/row-operation.vue +193 -0
- package/components/super-grid/search-button.vue +74 -0
- package/components/super-grid/search-condition-input.vue +73 -0
- package/components/super-grid/search-condition-list.vue +68 -0
- package/components/super-grid/search-form-advancedQuery.vue +820 -0
- package/components/super-grid/search-form-dialog.vue +77 -0
- package/components/super-grid/search-form-item.vue +470 -0
- package/components/super-grid/search-form-number.vue +111 -0
- package/components/super-grid/search-form-open.vue +178 -0
- package/components/super-grid/search-form-ordinarySearch.vue +218 -0
- package/components/super-grid/search-form.vue +756 -0
- package/components/super-grid/search-methods.js +484 -0
- package/components/super-grid/selection-column.vue +46 -0
- package/components/super-grid/store.js +3 -0
- package/components/super-grid/super-grid-service.js +682 -0
- package/components/super-grid/super-grid.vue +2893 -0
- package/components/super-grid/utils.js +851 -0
- package/components/super-grid/view-image-dialog.vue +173 -0
- package/components/utils/gogocodeTransfer.js +59 -0
- package/components/utils/utils.js +180 -0
- package/components/utils/value-set.js +98 -0
- package/components/z-test-utton/index.vue +82 -0
- package/package.json +29 -40
- package/public/index.html +13 -0
- package/public/vite.svg +1 -0
- package/src/api/sso-service.js +172 -19
- package/src/api/tab.js +36 -0
- package/src/api/user-service.js +11 -11
- package/src/assets/401/401.gif +0 -0
- package/src/assets/404/404-cloud.png +0 -0
- package/src/assets/404/404.png +0 -0
- package/src/assets/cloud.png +0 -0
- package/src/directives/permission/index.js +13 -13
- package/src/directives/permission/permission.js +20 -15
- package/src/i18n/i18n.js +16 -0
- package/src/i18n/langs/cn.js +254 -0
- package/src/i18n/langs/en.js +264 -0
- package/src/permission.js +157 -71
- package/src/plugins.js +18 -18
- package/src/router/index.js +96 -69
- package/src/store/getters.js +15 -10
- package/src/store/index.js +19 -19
- package/src/store/modules/app.js +54 -42
- package/src/store/modules/permission.js +137 -73
- package/src/store/modules/tab-content.js +36 -0
- package/src/store/modules/user.js +293 -80
- package/src/styles/display-layout.scss +34 -0
- package/src/styles/element-ui.scss +29 -29
- package/src/styles/index.scss +157 -78
- package/src/styles/mixin.scss +27 -27
- package/src/styles/theme/black/font-style.scss +70 -0
- package/src/styles/theme/black/index.scss +306 -0
- package/src/styles/theme/black/sidebar.scss +189 -0
- package/src/styles/theme/blue/font-style.scss +46 -0
- package/src/styles/theme/blue/index.scss +172 -0
- package/src/styles/{sidebar.scss → theme/blue/sidebar.scss} +171 -141
- package/src/styles/theme/blue2/font-style.scss +70 -0
- package/src/styles/theme/blue2/index.scss +188 -0
- package/src/styles/theme/blue2/sidebar.scss +201 -0
- package/src/styles/theme/dark-blue/button.scss +9 -0
- package/src/styles/theme/dark-blue/card.scss +62 -0
- package/src/styles/theme/dark-blue/checkbox.scss +10 -0
- package/src/styles/theme/dark-blue/dark-blue-var.scss +8 -0
- package/src/styles/theme/dark-blue/dialog.scss +21 -0
- package/src/styles/theme/dark-blue/element-variables.scss +7 -0
- package/src/styles/theme/dark-blue/font.scss +71 -0
- package/src/styles/theme/dark-blue/form.scss +51 -0
- package/src/styles/theme/dark-blue/index.scss +269 -0
- package/src/styles/theme/dark-blue/input.scss +15 -0
- package/src/styles/theme/dark-blue/message.scss +8 -0
- package/src/styles/theme/dark-blue/pagination.scss +14 -0
- package/src/styles/theme/dark-blue/scrollbar-style.scss +32 -0
- package/src/styles/theme/dark-blue/sidebar.scss +266 -0
- package/src/styles/theme/dark-blue/tab.scss +83 -0
- package/src/styles/theme/dark-blue/table.scss +60 -0
- package/src/styles/theme/dark-blue/tree.scss +31 -0
- package/src/styles/theme/dark-blue/var.scss +1028 -0
- package/src/styles/theme/gray/card-style.scss +54 -0
- package/src/styles/theme/gray/font-style.scss +70 -0
- package/src/styles/theme/gray/index.scss +172 -0
- package/src/styles/theme/gray/input-style.scss +19 -0
- package/src/styles/theme/gray/scrollbar-style.scss +32 -0
- package/src/styles/theme/gray/sidebar.scss +231 -0
- package/src/styles/theme/gray/tab-style.scss +81 -0
- package/src/styles/transition.scss +47 -46
- package/src/utils/auth-api.js +159 -0
- package/src/utils/auth.js +61 -15
- package/src/utils/calculator/calculator-factory-wf.js +558 -0
- package/src/utils/calculator/calculator-factory.js +145 -0
- package/src/utils/calculator/calculator-util.js +166 -0
- package/src/utils/common-util.js +305 -0
- package/src/utils/eventBus.js +2 -0
- package/src/utils/iconUtils.js +28 -0
- package/src/utils/index.js +102 -86
- package/src/utils/jump-page-utils.js +814 -0
- package/src/utils/local-storage.js +33 -31
- package/src/utils/menu.js +19 -0
- package/src/utils/permission.js +31 -26
- package/src/utils/permissionAuth.js +90 -0
- package/src/utils/range-selector.js +188 -0
- package/src/utils/request.js +270 -116
- package/src/utils/restful-interface-utils.js +57 -0
- package/src/utils/util.js +698 -0
- package/src/utils/validate.js +34 -33
- package/src/utils/watermark.js +108 -0
- package/src/utils/workflow-util.js +93 -0
- package/src/views/404.vue +248 -228
- package/src/views/dsc-component/Sidebar/Item.vue +84 -0
- package/src/views/dsc-component/Sidebar/Link.vue +38 -0
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +196 -0
- package/src/views/dsc-component/Sidebar/index.vue +220 -0
- package/src/views/dsc-component/tabs/tab-content.vue +199 -0
- package/src/views/error-page/401.vue +106 -91
- package/src/views/error-page/404.vue +248 -228
- package/src/views/layout/EmptyLayout.vue +3 -0
- package/src/views/layout/Layout.vue +81 -68
- package/src/views/layout/NewLayout.vue +18 -0
- package/src/views/layout/components/AppMain.vue +39 -29
- package/src/views/layout/components/Breadcrumb/index.vue +156 -0
- package/src/views/layout/components/Menubar/Item.vue +57 -0
- package/src/views/layout/components/Menubar/Link.vue +38 -0
- package/src/views/layout/components/Menubar/SidebarItem.vue +164 -0
- package/src/views/layout/components/Menubar/index.vue +210 -0
- package/src/views/layout/components/Sidebar/Item.vue +53 -29
- package/src/views/layout/components/Sidebar/Link.vue +38 -39
- package/src/views/layout/components/Sidebar/SidebarItem.vue +135 -100
- package/src/views/layout/components/Sidebar/index.vue +141 -48
- package/src/views/layout/components/iframe-page.vue +38 -0
- package/src/views/layout/components/index.js +4 -3
- package/src/views/layout/components/tabs/tab-content.vue +207 -0
- package/src/views/layout/mixin/ResizeHandler.js +41 -41
- package/src/views/layout/tab-content-iframe-index.vue +38 -0
- package/src/views/layout/tab-content-index.vue +93 -0
- package/src/views/login/authredirect.vue +10 -10
- package/src/views/login/index.vue +296 -203
- package/src/views/login/update-password.vue +243 -0
- package/src/views/redirect/index.vue +14 -12
- package/src/views/wf-history/tache-subprocess-history.vue +45 -0
- package/vite.config.js +31 -0
- package/lib/super-ui.css +0 -1
- package/lib/super-ui.umd.min.js +0 -2
- package/src/styles/variables.scss +0 -4
- package/src/views/layout/components/Navbar.vue +0 -92
|
@@ -1,228 +1,248 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="wscn-http404-container">
|
|
3
|
-
<div class="wscn-http404">
|
|
4
|
-
<div class="pic-404">
|
|
5
|
-
<img class="pic-404__parent" src="
|
|
6
|
-
<img
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
animation-
|
|
85
|
-
animation-
|
|
86
|
-
animation-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
animation-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
font-size:
|
|
209
|
-
line-height:
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
animation-
|
|
214
|
-
animation-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="wscn-http404-container">
|
|
3
|
+
<div class="wscn-http404">
|
|
4
|
+
<div class="pic-404">
|
|
5
|
+
<img class="pic-404__parent" src="../../assets/404/404.png" alt="404" />
|
|
6
|
+
<img
|
|
7
|
+
class="pic-404__child left"
|
|
8
|
+
src="../../assets/404/404-cloud.png"
|
|
9
|
+
alt="404"
|
|
10
|
+
/>
|
|
11
|
+
<img
|
|
12
|
+
class="pic-404__child mid"
|
|
13
|
+
src="../../assets/404/404-cloud.png"
|
|
14
|
+
alt="404"
|
|
15
|
+
/>
|
|
16
|
+
<img
|
|
17
|
+
class="pic-404__child right"
|
|
18
|
+
src="../../assets/404/404-cloud.png"
|
|
19
|
+
alt="404"
|
|
20
|
+
/>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="bullshit">
|
|
23
|
+
<!-- <div class="bullshit__oops">
|
|
24
|
+
OOPS!
|
|
25
|
+
</div>
|
|
26
|
+
<div class="bullshit__info">
|
|
27
|
+
版权所有
|
|
28
|
+
<a class="link-type" href="https://wallstreetcn.com" target="_blank">
|
|
29
|
+
华尔街见闻
|
|
30
|
+
</a>
|
|
31
|
+
</div> -->
|
|
32
|
+
<div class="bullshit__headline">
|
|
33
|
+
{{ message }}
|
|
34
|
+
</div>
|
|
35
|
+
<div class="bullshit__info">请检查您输入的网址是否正确</div>
|
|
36
|
+
<!-- <a href="" class="bullshit__return-home">
|
|
37
|
+
返回首页
|
|
38
|
+
</a> -->
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<script>
|
|
45
|
+
export default {
|
|
46
|
+
name: 'Page404',
|
|
47
|
+
computed: {
|
|
48
|
+
message() {
|
|
49
|
+
return '页面不存在'
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
}
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
56
|
+
.wscn-http404-container {
|
|
57
|
+
transform: translate(-50%, -50%);
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: 40%;
|
|
60
|
+
left: 50%;
|
|
61
|
+
}
|
|
62
|
+
.wscn-http404 {
|
|
63
|
+
position: relative;
|
|
64
|
+
width: 1200px;
|
|
65
|
+
padding: 0 50px;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
.pic-404 {
|
|
68
|
+
position: relative;
|
|
69
|
+
float: left;
|
|
70
|
+
width: 600px;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
&__parent {
|
|
73
|
+
width: 100%;
|
|
74
|
+
}
|
|
75
|
+
&__child {
|
|
76
|
+
position: absolute;
|
|
77
|
+
&.left {
|
|
78
|
+
width: 80px;
|
|
79
|
+
top: 17px;
|
|
80
|
+
left: 220px;
|
|
81
|
+
opacity: 0;
|
|
82
|
+
animation-name: cloudLeft;
|
|
83
|
+
animation-duration: 2s;
|
|
84
|
+
animation-timing-function: linear;
|
|
85
|
+
animation-fill-mode: forwards;
|
|
86
|
+
animation-delay: 1s;
|
|
87
|
+
}
|
|
88
|
+
&.mid {
|
|
89
|
+
width: 46px;
|
|
90
|
+
top: 10px;
|
|
91
|
+
left: 420px;
|
|
92
|
+
opacity: 0;
|
|
93
|
+
animation-name: cloudMid;
|
|
94
|
+
animation-duration: 2s;
|
|
95
|
+
animation-timing-function: linear;
|
|
96
|
+
animation-fill-mode: forwards;
|
|
97
|
+
animation-delay: 1.2s;
|
|
98
|
+
}
|
|
99
|
+
&.right {
|
|
100
|
+
width: 62px;
|
|
101
|
+
top: 100px;
|
|
102
|
+
left: 500px;
|
|
103
|
+
opacity: 0;
|
|
104
|
+
animation-name: cloudRight;
|
|
105
|
+
animation-duration: 2s;
|
|
106
|
+
animation-timing-function: linear;
|
|
107
|
+
animation-fill-mode: forwards;
|
|
108
|
+
animation-delay: 1s;
|
|
109
|
+
}
|
|
110
|
+
@keyframes cloudLeft {
|
|
111
|
+
0% {
|
|
112
|
+
top: 17px;
|
|
113
|
+
left: 220px;
|
|
114
|
+
opacity: 0;
|
|
115
|
+
}
|
|
116
|
+
20% {
|
|
117
|
+
top: 33px;
|
|
118
|
+
left: 188px;
|
|
119
|
+
opacity: 1;
|
|
120
|
+
}
|
|
121
|
+
80% {
|
|
122
|
+
top: 81px;
|
|
123
|
+
left: 92px;
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}
|
|
126
|
+
100% {
|
|
127
|
+
top: 97px;
|
|
128
|
+
left: 60px;
|
|
129
|
+
opacity: 0;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
@keyframes cloudMid {
|
|
133
|
+
0% {
|
|
134
|
+
top: 10px;
|
|
135
|
+
left: 420px;
|
|
136
|
+
opacity: 0;
|
|
137
|
+
}
|
|
138
|
+
20% {
|
|
139
|
+
top: 40px;
|
|
140
|
+
left: 360px;
|
|
141
|
+
opacity: 1;
|
|
142
|
+
}
|
|
143
|
+
70% {
|
|
144
|
+
top: 130px;
|
|
145
|
+
left: 180px;
|
|
146
|
+
opacity: 1;
|
|
147
|
+
}
|
|
148
|
+
100% {
|
|
149
|
+
top: 160px;
|
|
150
|
+
left: 120px;
|
|
151
|
+
opacity: 0;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
@keyframes cloudRight {
|
|
155
|
+
0% {
|
|
156
|
+
top: 100px;
|
|
157
|
+
left: 500px;
|
|
158
|
+
opacity: 0;
|
|
159
|
+
}
|
|
160
|
+
20% {
|
|
161
|
+
top: 120px;
|
|
162
|
+
left: 460px;
|
|
163
|
+
opacity: 1;
|
|
164
|
+
}
|
|
165
|
+
80% {
|
|
166
|
+
top: 180px;
|
|
167
|
+
left: 340px;
|
|
168
|
+
opacity: 1;
|
|
169
|
+
}
|
|
170
|
+
100% {
|
|
171
|
+
top: 200px;
|
|
172
|
+
left: 300px;
|
|
173
|
+
opacity: 0;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
.bullshit {
|
|
179
|
+
position: relative;
|
|
180
|
+
float: left;
|
|
181
|
+
width: 300px;
|
|
182
|
+
padding: 30px 0;
|
|
183
|
+
overflow: hidden;
|
|
184
|
+
&__oops {
|
|
185
|
+
font-size: 32px;
|
|
186
|
+
font-weight: bold;
|
|
187
|
+
line-height: 40px;
|
|
188
|
+
color: #1482f0;
|
|
189
|
+
opacity: 0;
|
|
190
|
+
margin-bottom: 20px;
|
|
191
|
+
animation-name: slideUp;
|
|
192
|
+
animation-duration: 0.5s;
|
|
193
|
+
animation-fill-mode: forwards;
|
|
194
|
+
}
|
|
195
|
+
&__headline {
|
|
196
|
+
font-size: 20px;
|
|
197
|
+
line-height: 24px;
|
|
198
|
+
color: #222;
|
|
199
|
+
font-weight: bold;
|
|
200
|
+
opacity: 0;
|
|
201
|
+
margin-bottom: 10px;
|
|
202
|
+
animation-name: slideUp;
|
|
203
|
+
animation-duration: 0.5s;
|
|
204
|
+
animation-delay: 0.1s;
|
|
205
|
+
animation-fill-mode: forwards;
|
|
206
|
+
}
|
|
207
|
+
&__info {
|
|
208
|
+
font-size: 13px;
|
|
209
|
+
line-height: 21px;
|
|
210
|
+
color: grey;
|
|
211
|
+
opacity: 0;
|
|
212
|
+
margin-bottom: 30px;
|
|
213
|
+
animation-name: slideUp;
|
|
214
|
+
animation-duration: 0.5s;
|
|
215
|
+
animation-delay: 0.2s;
|
|
216
|
+
animation-fill-mode: forwards;
|
|
217
|
+
}
|
|
218
|
+
&__return-home {
|
|
219
|
+
display: block;
|
|
220
|
+
float: left;
|
|
221
|
+
width: 110px;
|
|
222
|
+
height: 36px;
|
|
223
|
+
background: #1482f0;
|
|
224
|
+
border-radius: 100px;
|
|
225
|
+
text-align: center;
|
|
226
|
+
color: #ffffff;
|
|
227
|
+
opacity: 0;
|
|
228
|
+
font-size: 14px;
|
|
229
|
+
line-height: 36px;
|
|
230
|
+
cursor: pointer;
|
|
231
|
+
animation-name: slideUp;
|
|
232
|
+
animation-duration: 0.5s;
|
|
233
|
+
animation-delay: 0.3s;
|
|
234
|
+
animation-fill-mode: forwards;
|
|
235
|
+
}
|
|
236
|
+
@keyframes slideUp {
|
|
237
|
+
0% {
|
|
238
|
+
transform: translateY(60px);
|
|
239
|
+
opacity: 0;
|
|
240
|
+
}
|
|
241
|
+
100% {
|
|
242
|
+
transform: translateY(0);
|
|
243
|
+
opacity: 1;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
</style>
|
|
@@ -1,68 +1,81 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="classObj" class="app-wrapper">
|
|
3
|
-
<div
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
this.$store.
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="classObj" class="app-wrapper">
|
|
3
|
+
<div
|
|
4
|
+
v-if="device === 'mobile' && sidebar.opened"
|
|
5
|
+
class="drawer-bg"
|
|
6
|
+
@click="handleClickOutside"
|
|
7
|
+
/>
|
|
8
|
+
<sidebar class="sidebar-container" />
|
|
9
|
+
<div class="main-container">
|
|
10
|
+
<breadcrumb v-if="showMenuRoute" />
|
|
11
|
+
<app-main />
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
import { Sidebar, AppMain, Breadcrumb } from './components'
|
|
18
|
+
import ResizeMixin from './mixin/ResizeHandler'
|
|
19
|
+
import { isShowMenuRoute } from '../../../src/utils/common-util'
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
name: 'Layout',
|
|
23
|
+
components: {
|
|
24
|
+
Sidebar,
|
|
25
|
+
AppMain,
|
|
26
|
+
Breadcrumb,
|
|
27
|
+
},
|
|
28
|
+
mixins: [ResizeMixin],
|
|
29
|
+
data() {
|
|
30
|
+
// 是否显示菜单路径,默认是不显示
|
|
31
|
+
const showMenuRoute = isShowMenuRoute()
|
|
32
|
+
return {
|
|
33
|
+
showMenuRoute,
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
computed: {
|
|
37
|
+
sidebar() {
|
|
38
|
+
return this.$store.state.app.sidebar
|
|
39
|
+
},
|
|
40
|
+
device() {
|
|
41
|
+
return this.$store.state.app.device
|
|
42
|
+
},
|
|
43
|
+
classObj() {
|
|
44
|
+
return {
|
|
45
|
+
hideSidebar: !this.sidebar.opened,
|
|
46
|
+
openSidebar: this.sidebar.opened,
|
|
47
|
+
withoutAnimation: this.sidebar.withoutAnimation,
|
|
48
|
+
mobile: this.device === 'mobile',
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
methods: {
|
|
53
|
+
handleClickOutside() {
|
|
54
|
+
this.$store.dispatch('closeSidebar', { withoutAnimation: false })
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
}
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
61
|
+
@import '../../styles/mixin.scss';
|
|
62
|
+
.app-wrapper {
|
|
63
|
+
@include clearfix;
|
|
64
|
+
position: relative;
|
|
65
|
+
height: 100%;
|
|
66
|
+
width: 100%;
|
|
67
|
+
&.mobile.openSidebar {
|
|
68
|
+
position: fixed;
|
|
69
|
+
top: 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
.drawer-bg {
|
|
73
|
+
background: #000;
|
|
74
|
+
opacity: 0.3;
|
|
75
|
+
width: 100%;
|
|
76
|
+
top: 0;
|
|
77
|
+
height: 100%;
|
|
78
|
+
position: absolute;
|
|
79
|
+
z-index: 999;
|
|
80
|
+
}
|
|
81
|
+
</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="app-wrapper">
|
|
3
|
+
<div class="tab-main-container">
|
|
4
|
+
<!-- <tab-content/> -->
|
|
5
|
+
<app-main />
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import { AppMain } from './components/index'
|
|
12
|
+
export default {
|
|
13
|
+
name: 'EmptyLayout',
|
|
14
|
+
components: {
|
|
15
|
+
AppMain,
|
|
16
|
+
},
|
|
17
|
+
}
|
|
18
|
+
</script>
|