| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <template>
- <div id="app">
- <router-view v-if="isRouterAlive" />
- <el-backtop :bottom="16" :right="20" :visibility-height="1100" class="backtop">
- <div><i class="el-icon-caret-top" style="color:#ee7000;"></i></div>
- </el-backtop>
- </div>
- </template>
- <script>
- export default {
- name: "App",
- provide() {
- return {
- reload: this.reload,
- };
- },
- data() {
- return {
- isRouterAlive: true,
- };
- },
- methods: {
- reload() {
- this.isRouterAlive = false;
- this.$nextTick(function () {
- this.isRouterAlive = true;
- });
- },
- },
- };
- </script>
- <style lang="scss">
- .icon {
- width: 34px;
- height: 34px;
- vertical-align: -0.15em;
- fill: currentColor;
- overflow: hidden;
- }
- .backtop {
- position: fixed;
- background-color: #FFF;
- width: 40px;
- height: 40px;
- border-radius: 50%;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-box-pack: center;
- -ms-flex-pack: center;
- justify-content: center;
- font-size: 20px;
- -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, .12);
- box-shadow: 0 0 6px rgba(0, 0, 0, .12);
- cursor: pointer;
- z-index: 999;
- }
- .people-style {
- .el-dialog {
- background: #F2F2F2;
- .el-dialog__header {
- background: #FFF;
- border-bottom: 1px solid #F2F2F2;
- }
- .el-dialog__body {
- padding: 0;
- padding-bottom: 1px;
-
- .el-form {
- padding: 24px;
- margin: 0 24px;
- background: #FFF;
- }
- }
- .tab-style {
- > .el-tabs__header {
- padding: 0 24px;
- background: #FFF;
- margin-bottom: 18px;
- .el-tabs__nav-wrap::after {
- height: 0;
- }
- }
- > .el-tabs__content > .el-tab-pane > :last-child {
- background: #FFF;
- margin-top: 18px;
- padding: 8px 20px;
- }
- }
- }
- }
- </style>
|