haiwei-ui 1.0.3 → 1.0.4
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 +10 -0
- package/package.json +1 -1
- package/packages/components/box/index.vue +116 -125
- package/packages/components/box-col/index.vue +30 -33
- package/packages/components/box-row/index.vue +17 -17
- package/packages/components/box-small/index.vue +38 -38
- package/packages/components/button/index.vue +29 -42
- package/packages/components/button-copy/index.vue +46 -62
- package/packages/components/button-delete/index.vue +64 -77
- package/packages/components/button-delete-batch/index.vue +82 -95
- package/packages/components/button-has/index.vue +29 -42
- package/packages/components/checkbox-group/index.vue +85 -85
- package/packages/components/color-picker/index.vue +41 -50
- package/packages/components/container/index.vue +8 -8
- package/packages/components/date-range-picker/index.vue +92 -103
- package/packages/components/details/index.vue +72 -79
- package/packages/components/dialog/index.vue +281 -294
- package/packages/components/drag-sort/index.vue +36 -36
- package/packages/components/drag-sort-dialog/index.vue +58 -58
- package/packages/components/drawer/index.vue +157 -166
- package/packages/components/enums/sex/index.vue +1 -1
- package/packages/components/flex/index.vue +33 -33
- package/packages/components/form/index.vue +123 -138
- package/packages/components/form-dialog/index.vue +184 -217
- package/packages/components/form-page/index.vue +134 -151
- package/packages/components/icon/index.vue +6 -6
- package/packages/components/icon-picker/index.vue +30 -30
- package/packages/components/icon-picker/panel.vue +58 -58
- package/packages/components/label/index.vue +22 -30
- package/packages/components/list/components/export/index.vue +101 -99
- package/packages/components/list/components/footer/index.vue +42 -51
- package/packages/components/list/components/header/index.vue +34 -34
- package/packages/components/list/components/querybar/index.vue +144 -144
- package/packages/components/list/components/select-column/index.vue +30 -30
- package/packages/components/list/components/table/index.vue +169 -188
- package/packages/components/list/index.vue +337 -391
- package/packages/components/list-agile/index.vue +145 -145
- package/packages/components/list-dialog/index.vue +70 -84
- package/packages/components/listbox/index.vue +48 -48
- package/packages/components/login-default/index.vue +107 -107
- package/packages/components/login-neon/index.vue +104 -104
- package/packages/components/map/index.vue +229 -229
- package/packages/components/map-coord-picking/index.vue +220 -219
- package/packages/components/map-search/index.vue +75 -72
- package/packages/components/scrollbar/index.vue +11 -11
- package/packages/components/select-whether/index.vue +30 -30
- package/packages/components/split/index.vue +141 -141
- package/packages/components/split/trigger.vue +15 -15
- package/packages/components/tabnav/index.vue +125 -89
- package/packages/components/tabs/index.vue +31 -31
- package/packages/components/toolbar/components/fullscreen/index.vue +10 -10
- package/packages/components/toolbar/components/logout/index.vue +13 -13
- package/packages/components/toolbar/components/skin-toggle/form.vue +59 -59
- package/packages/components/toolbar/components/skin-toggle/index.vue +12 -12
- package/packages/components/toolbar/components/userInfo/index.vue +18 -18
- package/packages/components/toolbar/index.vue +12 -12
- package/packages/components/tree-select/mixins.vue +261 -270
- package/packages/components/txt/index.vue +17 -17
- package/packages/components/update-password/index.vue +45 -57
- package/packages/layout.vue +18 -18
- package/packages/mixins/components/checkbox.vue +71 -82
- package/packages/mixins/components/radio.vue +69 -69
- package/packages/page/403/index.vue +32 -28
- package/packages/page/404/index.vue +32 -28
- package/packages/page/default/index.vue +17 -13
- package/packages/page/iframe/index.vue +6 -6
- package/packages/page/login/index.vue +9 -9
- package/packages/page/userInfo/index.vue +5 -5
- package/packages/router/index.js +1 -9
- package/packages/skins/pretty/components/header/components/breadcrumb/index.vue +29 -29
- package/packages/skins/pretty/components/header/components/theme/index.vue +22 -21
- package/packages/skins/pretty/components/header/index.vue +12 -12
- package/packages/skins/pretty/components/main/index.vue +27 -27
- package/packages/skins/pretty/components/menus/index.vue +28 -28
- package/packages/skins/pretty/components/menus/item.vue +23 -23
- package/packages/skins/pretty/components/sidebar/index.vue +7 -7
- package/packages/skins/pretty/index.vue +6 -6
- package/packages/skins/pretty/styles/themes/blue-light/_index.scss +2 -2
- package/packages/skins/pretty/styles/themes/default/_index.scss +1 -1
- package/packages/skins/pretty/styles/themes/green/_index.scss +2 -2
- package/packages/skins/pretty/styles/themes/green-light/_index.scss +2 -2
- package/packages/styles/_mixins.scss +24 -25
- package/packages/styles/animation/_index.scss +22 -23
- package/packages/styles/animation/breadcrumb.scss +6 -6
- package/packages/styles/animation/fade.scss +11 -11
- package/packages/styles/animation/move.scss +98 -98
- package/packages/styles/components/box-small/_index.scss +58 -58
- package/packages/styles/components/button/_index.scss +7 -7
- package/packages/styles/components/container/_index.scss +26 -26
- package/packages/styles/components/date-range-picker/_index.scss +4 -4
- package/packages/styles/components/details/_index.scss +66 -67
- package/packages/styles/components/details-dialog/_index.scss +13 -13
- package/packages/styles/components/drag-sort/_index.scss +20 -20
- package/packages/styles/components/drag-sort-dialog/_index.scss +7 -7
- package/packages/styles/components/flex/_index.scss +56 -56
- package/packages/styles/components/form-dialog/_index.scss +11 -11
- package/packages/styles/components/icon/_index.scss +6 -6
- package/packages/styles/components/label/_index.scss +245 -245
- package/packages/styles/components/listbox/_index.scss +47 -47
- package/packages/styles/components/split/_index.scss +102 -102
- package/packages/styles/components/toolbar/_index.scss +98 -98
- package/packages/styles/components/txt/_index.scss +13 -13
- package/packages/styles/components/upload-dialog/_index.scss +44 -44
- package/packages/styles/components/upload-multiple/_index.scss +19 -19
- package/packages/styles/components/upload-single/_index.scss +16 -16
- package/packages/utils/resize-event.js +3 -3
- package/packages/vuter/attributes.json +30 -40
- package/packages/vuter/tags.json +11 -27
- package/public/lib/font/iconfont.js +47 -1
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
</nm-container>
|
|
5
5
|
</template>
|
|
6
6
|
<script>
|
|
7
|
-
export default {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
export default {
|
|
8
|
+
name: 'IframeMenu',
|
|
9
|
+
computed: {
|
|
10
|
+
url() {
|
|
11
|
+
return decodeURI(this.$route.params.url)
|
|
12
|
+
}
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
|
-
}
|
|
15
15
|
</script>
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
<script>
|
|
7
|
-
import { mapState } from 'vuex'
|
|
8
|
-
export default {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
import { mapState } from 'vuex'
|
|
8
|
+
export default {
|
|
9
|
+
computed: {
|
|
10
|
+
...mapState('app/config', { loginOptions: s => s.component.login }),
|
|
11
|
+
type() {
|
|
12
|
+
if (!this.loginOptions.pageType || !this.loginOptions.pageTypeOptions.includes(this.loginOptions.pageType)) {
|
|
13
|
+
return 'neon'
|
|
14
|
+
}
|
|
15
|
+
return this.loginOptions.pageType
|
|
14
16
|
}
|
|
15
|
-
return this.loginOptions.pageType
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
|
-
}
|
|
19
19
|
</script>
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
</nm-container>
|
|
39
39
|
</template>
|
|
40
40
|
<script>
|
|
41
|
-
import { mapState } from 'vuex'
|
|
42
|
-
export default {
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
import { mapState } from 'vuex'
|
|
42
|
+
export default {
|
|
43
|
+
computed: {
|
|
44
|
+
...mapState('app/account', ['id', 'userName', 'name', 'phone', 'email'])
|
|
45
|
+
}
|
|
45
46
|
}
|
|
46
|
-
}
|
|
47
47
|
</script>
|
package/packages/router/index.js
CHANGED
|
@@ -69,15 +69,7 @@ export default (store, config) => {
|
|
|
69
69
|
next()
|
|
70
70
|
// 关闭进度条
|
|
71
71
|
NProgress.done()
|
|
72
|
-
} else if (
|
|
73
|
-
!store.state.app.config.permission.validate ||
|
|
74
|
-
store.getters['app/account/routes'].includes(to.name) ||
|
|
75
|
-
to.path === homeUrl ||
|
|
76
|
-
to.path === '/' ||
|
|
77
|
-
to.path === '/default' ||
|
|
78
|
-
to.name === 'iframe' ||
|
|
79
|
-
to.name === 'userinfo'
|
|
80
|
-
) {
|
|
72
|
+
} else if (!store.state.app.config.permission.validate || store.getters['app/account/routes'].includes(to.name) || to.path === homeUrl || to.path === '/' || to.path === '/default' || to.name === 'iframe' || to.name === 'userinfo') {
|
|
81
73
|
// 打开页面
|
|
82
74
|
store.dispatch('app/page/open', to, { root: true }).then(() => {
|
|
83
75
|
next()
|
|
@@ -6,40 +6,40 @@
|
|
|
6
6
|
</el-breadcrumb>
|
|
7
7
|
</template>
|
|
8
8
|
<script>
|
|
9
|
-
import { mapState } from 'vuex'
|
|
10
|
-
export default {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
import { mapState } from 'vuex'
|
|
10
|
+
export default {
|
|
11
|
+
computed: {
|
|
12
|
+
...mapState('app/account', ['routeMenus']),
|
|
13
|
+
...mapState('app/page', ['default']),
|
|
14
|
+
breadcrumb() {
|
|
15
|
+
let route = this.$route
|
|
16
|
+
let bc = [
|
|
17
|
+
{
|
|
18
|
+
title: '首页',
|
|
19
|
+
route: '/'
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
if (!route.name || this.default === route.path) {
|
|
24
|
+
return bc
|
|
25
|
+
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
if (this.routeMenus) {
|
|
28
|
+
const obj = this.routeMenus.get(route.name)
|
|
29
|
+
if (obj) {
|
|
30
|
+
bc = bc.concat(obj.breadcrumb)
|
|
31
|
+
}
|
|
31
32
|
}
|
|
32
|
-
}
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
// 通过路由自定义的最后一个面包屑
|
|
35
|
+
if (route.params && route.params.bc_) {
|
|
36
|
+
bc.push({
|
|
37
|
+
title: route.params.bc_,
|
|
38
|
+
route: ''
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
return bc
|
|
40
42
|
}
|
|
41
|
-
return bc
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
|
-
}
|
|
45
45
|
</script>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-dropdown :hide-on-click="false">
|
|
3
3
|
<span class="el-dropdown-link">
|
|
4
|
-
<nm-icon name="skin"
|
|
4
|
+
<nm-icon name="skin" />
|
|
5
|
+
主题
|
|
5
6
|
<i class="el-icon-arrow-down el-icon--right"></i>
|
|
6
7
|
</span>
|
|
7
8
|
<el-dropdown-menu v-slot:dropdown>
|
|
@@ -12,28 +13,28 @@
|
|
|
12
13
|
</el-dropdown>
|
|
13
14
|
</template>
|
|
14
15
|
<script>
|
|
15
|
-
import list from './list'
|
|
16
|
-
import { mapState, mapMutations } from 'vuex'
|
|
17
|
-
export default {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
import list from './list'
|
|
17
|
+
import { mapState, mapMutations } from 'vuex'
|
|
18
|
+
export default {
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
list
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
computed: {
|
|
25
|
+
...mapState('app/skins', ['current'])
|
|
26
|
+
},
|
|
27
|
+
methods: {
|
|
28
|
+
...mapMutations('app/skins', ['themeChange'])
|
|
21
29
|
}
|
|
22
|
-
},
|
|
23
|
-
computed: {
|
|
24
|
-
...mapState('app/skins', ['current'])
|
|
25
|
-
},
|
|
26
|
-
methods: {
|
|
27
|
-
...mapMutations('app/skins', ['themeChange'])
|
|
28
30
|
}
|
|
29
|
-
}
|
|
30
31
|
</script>
|
|
31
32
|
<style>
|
|
32
|
-
.el-dropdown-link {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
.el-icon-arrow-down {
|
|
37
|
-
|
|
38
|
-
}
|
|
33
|
+
.el-dropdown-link {
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
color: #409eff;
|
|
36
|
+
}
|
|
37
|
+
.el-icon-arrow-down {
|
|
38
|
+
font-size: 12px;
|
|
39
|
+
}
|
|
39
40
|
</style>
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
</section>
|
|
23
23
|
</template>
|
|
24
24
|
<script>
|
|
25
|
-
import { mapState, mapGetters, mapActions } from 'vuex'
|
|
26
|
-
import Breadcrumb from './components/breadcrumb'
|
|
27
|
-
export default {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
import { mapState, mapGetters, mapActions } from 'vuex'
|
|
26
|
+
import Breadcrumb from './components/breadcrumb'
|
|
27
|
+
export default {
|
|
28
|
+
components: { Breadcrumb },
|
|
29
|
+
computed: {
|
|
30
|
+
...mapGetters('app/config', ['logoUrl']),
|
|
31
|
+
...mapState('app/config', { title: s => s.system.title }),
|
|
32
|
+
...mapState('app/skins/pretty/sidebar', { sidebarCollapse: 'collapse' })
|
|
33
|
+
},
|
|
34
|
+
methods: {
|
|
35
|
+
...mapActions('app/skins/pretty/sidebar', { sidebarToggle: 'toggle' })
|
|
36
|
+
}
|
|
36
37
|
}
|
|
37
|
-
}
|
|
38
38
|
</script>
|
|
@@ -18,34 +18,34 @@
|
|
|
18
18
|
</section>
|
|
19
19
|
</template>
|
|
20
20
|
<script>
|
|
21
|
-
import NmSidebar from '../sidebar'
|
|
22
|
-
import { mapState, mapMutations } from 'vuex'
|
|
23
|
-
export default {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
21
|
+
import NmSidebar from '../sidebar'
|
|
22
|
+
import { mapState, mapMutations } from 'vuex'
|
|
23
|
+
export default {
|
|
24
|
+
components: { NmSidebar },
|
|
25
|
+
data() {
|
|
26
|
+
return {
|
|
27
|
+
routerViewVisible: true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
computed: {
|
|
31
|
+
...mapState('app/page', ['keepAlive']),
|
|
32
|
+
...mapState('app/config', { showTabnav: s => s.component.tabnav.enabled })
|
|
33
|
+
},
|
|
34
|
+
provide() {
|
|
35
|
+
return {
|
|
36
|
+
reload: this.reload
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
methods: {
|
|
40
|
+
...mapMutations('app/page', ['keepAliveRemove']),
|
|
41
|
+
reload(name) {
|
|
42
|
+
this.routerViewVisible = false
|
|
43
|
+
this.keepAliveRemove(name)
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
this.$nextTick(() => {
|
|
46
|
+
this.routerViewVisible = true
|
|
47
|
+
})
|
|
48
|
+
}
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
|
-
}
|
|
51
51
|
</script>
|
|
@@ -23,38 +23,38 @@
|
|
|
23
23
|
</section>
|
|
24
24
|
</template>
|
|
25
25
|
<script>
|
|
26
|
-
import { mapState } from 'vuex'
|
|
27
|
-
import { open } from '../../../../utils/menu'
|
|
28
|
-
import MenuItem from './item'
|
|
26
|
+
import { mapState } from 'vuex'
|
|
27
|
+
import { open } from '../../../../utils/menu'
|
|
28
|
+
import MenuItem from './item'
|
|
29
29
|
|
|
30
|
-
export default {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
export default {
|
|
31
|
+
components: { MenuItem },
|
|
32
|
+
computed: {
|
|
33
|
+
...mapState('app/account', ['menus', 'routeMenus']),
|
|
34
|
+
...mapState('app/config', { uniqueOpened: s => s.component.menu.uniqueOpened }),
|
|
35
|
+
...mapState('app/page', ['current']),
|
|
36
|
+
...mapState('app/skins/pretty/sidebar', ['collapse']),
|
|
37
|
+
active: {
|
|
38
|
+
get() {
|
|
39
|
+
const { current, routeMenus } = this
|
|
40
|
+
if (current.name && routeMenus) {
|
|
41
|
+
let routeMenu = routeMenus.get(current.code)
|
|
42
|
+
if (routeMenu) {
|
|
43
|
+
return routeMenu.menu.id
|
|
44
|
+
}
|
|
44
45
|
}
|
|
46
|
+
return '-1'
|
|
47
|
+
},
|
|
48
|
+
set() {}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
go(menu, e) {
|
|
53
|
+
if (e.$el.classList.contains('is-active')) {
|
|
54
|
+
return
|
|
45
55
|
}
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
set() {}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
methods: {
|
|
52
|
-
go(menu, e) {
|
|
53
|
-
if (e.$el.classList.contains('is-active')) {
|
|
54
|
-
return
|
|
56
|
+
open(this.$router, menu)
|
|
55
57
|
}
|
|
56
|
-
open(this.$router, menu)
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
|
-
}
|
|
60
60
|
</script>
|
|
@@ -15,32 +15,32 @@
|
|
|
15
15
|
</el-menu-item>
|
|
16
16
|
</template>
|
|
17
17
|
<script>
|
|
18
|
-
import { mapActions } from 'vuex'
|
|
19
|
-
import { open } from '../../../../utils/menu'
|
|
20
|
-
export default {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
import { mapActions } from 'vuex'
|
|
19
|
+
import { open } from '../../../../utils/menu'
|
|
20
|
+
export default {
|
|
21
|
+
name: 'MenuItem',
|
|
22
|
+
props: {
|
|
23
|
+
parentIndex: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: ''
|
|
26
|
+
},
|
|
27
|
+
menu: {}
|
|
26
28
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return
|
|
34
|
-
}
|
|
29
|
+
methods: {
|
|
30
|
+
...mapActions('app/dialog-menu', { dialogMenuOpen: 'open' }),
|
|
31
|
+
go(menu, e) {
|
|
32
|
+
if (e.$el.classList.contains('is-active')) {
|
|
33
|
+
return
|
|
34
|
+
}
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
open(this.$router, menu)
|
|
37
|
+
},
|
|
38
|
+
getIndex(index) {
|
|
39
|
+
if (this.parentIndex === 0) {
|
|
40
|
+
return index + ''
|
|
41
|
+
}
|
|
42
|
+
return this.parentIndex + '-' + index
|
|
41
43
|
}
|
|
42
|
-
return this.parentIndex + '-' + index
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
|
-
}
|
|
46
46
|
</script>
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
</section>
|
|
7
7
|
</template>
|
|
8
8
|
<script>
|
|
9
|
-
import NmMenus from '../menus'
|
|
10
|
-
import { mapState } from 'vuex'
|
|
11
|
-
export default {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
import NmMenus from '../menus'
|
|
10
|
+
import { mapState } from 'vuex'
|
|
11
|
+
export default {
|
|
12
|
+
components: { NmMenus },
|
|
13
|
+
computed: {
|
|
14
|
+
...mapState('app/skins/pretty/sidebar', ['collapse'])
|
|
15
|
+
}
|
|
15
16
|
}
|
|
16
|
-
}
|
|
17
17
|
</script>
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
|
7
7
|
<script>
|
|
8
|
-
import NmHeader from './components/header'
|
|
9
|
-
import NmMain from './components/main'
|
|
10
|
-
export default {
|
|
11
|
-
|
|
12
|
-
}
|
|
8
|
+
import NmHeader from './components/header'
|
|
9
|
+
import NmMain from './components/main'
|
|
10
|
+
export default {
|
|
11
|
+
components: { NmHeader, NmMain }
|
|
12
|
+
}
|
|
13
13
|
</script>
|
|
14
14
|
<style lang="scss">
|
|
15
|
-
@import './styles/_index.scss';
|
|
15
|
+
@import './styles/_index.scss';
|
|
16
16
|
</style>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@import './variables';
|
|
2
|
-
@import '../theme';
|
|
2
|
+
@import '../theme';
|
|
@@ -1,39 +1,38 @@
|
|
|
1
1
|
/*垂直居中*/
|
|
2
2
|
@mixin vertical-center($height) {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
height: $height;
|
|
4
|
+
line-height: $height;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
@mixin flex-row() {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: row;
|
|
10
|
+
align-items: stretch;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
@mixin flex-column() {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: stretch;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
//顶部工具栏鼠标hover效果
|
|
20
20
|
@mixin toolbar-hover-border() {
|
|
21
|
+
&:before {
|
|
22
|
+
content: '';
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 0;
|
|
25
|
+
left: 50%;
|
|
26
|
+
width: 0;
|
|
27
|
+
height: 2px;
|
|
28
|
+
background: #000;
|
|
29
|
+
transition: all 0.25s ease-in-out;
|
|
30
|
+
}
|
|
21
31
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
left: 50%;
|
|
27
|
-
width: 0;
|
|
28
|
-
height: 2px;
|
|
29
|
-
background: #000;
|
|
30
|
-
transition: all .25s ease-in-out;
|
|
32
|
+
&:hover {
|
|
33
|
+
&::before {
|
|
34
|
+
left: 0;
|
|
35
|
+
width: 100%;
|
|
31
36
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
&::before {
|
|
35
|
-
left: 0;
|
|
36
|
-
width: 100%;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
@mixin motion-common() {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
animation-duration: 0.3s;
|
|
3
|
+
animation-fill-mode: both;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
@mixin make-motion($className, $keyframeName) {
|
|
7
|
+
.#{$className}-enter-active,
|
|
8
|
+
.#{$className}-appear {
|
|
9
|
+
@include motion-common();
|
|
10
|
+
animation-play-state: paused;
|
|
11
|
+
}
|
|
7
12
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
+
.#{$className}-leave-active {
|
|
14
|
+
@include motion-common();
|
|
15
|
+
animation-play-state: paused;
|
|
16
|
+
}
|
|
13
17
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
.#{$className}-enter-active,
|
|
19
|
+
.#{$className}-appear {
|
|
20
|
+
animation-name: $keyframeName + 'In';
|
|
21
|
+
animation-play-state: running;
|
|
22
|
+
}
|
|
18
23
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.#{$className}-leave-active {
|
|
26
|
-
animation-name: $keyframeName + "Out";
|
|
27
|
-
animation-play-state: running;
|
|
28
|
-
}
|
|
24
|
+
.#{$className}-leave-active {
|
|
25
|
+
animation-name: $keyframeName + 'Out';
|
|
26
|
+
animation-play-state: running;
|
|
27
|
+
}
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
@import './move.scss';
|
|
@@ -33,5 +32,5 @@
|
|
|
33
32
|
@import './breadcrumb.scss';
|
|
34
33
|
|
|
35
34
|
.flip-list-move {
|
|
36
|
-
|
|
37
|
-
}
|
|
35
|
+
transition: transform 0.4s;
|
|
36
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
.breadcrumb-enter-active,
|
|
2
2
|
.breadcrumb-leave-active {
|
|
3
|
-
|
|
3
|
+
transition: all 0.5s;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.breadcrumb-enter,
|
|
7
7
|
.breadcrumb-leave-active {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
opacity: 0;
|
|
9
|
+
transform: translateX(20px);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.breadcrumb-move {
|
|
13
|
-
|
|
13
|
+
transition: all 0.5s;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.breadcrumb-leave-active {
|
|
17
|
-
|
|
18
|
-
}
|
|
17
|
+
position: absolute;
|
|
18
|
+
}
|