【fix ESLint】src/views/account

This commit is contained in:
zhaoxiao
2023-03-06 14:18:57 +08:00
parent fd3aee7b31
commit c0639e6def
6 changed files with 148 additions and 147 deletions
+11 -9
View File
@@ -6,7 +6,7 @@
<a-card :bordered="false"> <a-card :bordered="false">
<div class="account-center-avatarHolder"> <div class="account-center-avatarHolder">
<div class="avatar"> <div class="avatar">
<img :src="getAvatar()"/> <img :src="getAvatar()" />
</div> </div>
<div class="username">{{ nickname() }}</div> <div class="username">{{ nickname() }}</div>
<div class="bio">海纳百川,有容乃大</div> <div class="bio">海纳百川,有容乃大</div>
@@ -47,7 +47,8 @@
@keyup.enter="handleTagInputConfirm" @keyup.enter="handleTagInputConfirm"
/> />
<a-tag v-else @click="showTagInput" style="background: #fff; borderStyle: dashed;"> <a-tag v-else @click="showTagInput" style="background: #fff; borderStyle: dashed;">
<a-icon type="plus" /> New Tag <a-icon type="plus" />
New Tag
</a-tag> </a-tag>
</div> </div>
</div> </div>
@@ -89,16 +90,12 @@
</template> </template>
<script> <script>
import PageLayout from '@/components/page/PageLayout'
import RouteView from '@/components/layouts/RouteView'
import { AppPage, ArticlePage, ProjectPage } from './page' import { AppPage, ArticlePage, ProjectPage } from './page'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import { getFileAccessHttpUrl } from '@/api/manage' import { getFileAccessHttpUrl } from '@/api/manage'
export default { export default {
components: { components: {
RouteView,
PageLayout,
AppPage, AppPage,
ArticlePage, ArticlePage,
ProjectPage ProjectPage
@@ -181,7 +178,7 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.page-header-wrapper-grid-content-main { .page-header-wrapper-grid-content-main {
width: 100%; width: 100%;
height: 100%; height: 100%;
min-height: 100%; min-height: 100%;
@@ -198,6 +195,7 @@ export default {
margin-bottom: 20px; margin-bottom: 20px;
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
img { img {
height: 100%; height: 100%;
width: 100%; width: 100%;
@@ -233,9 +231,11 @@ export default {
.title { .title {
background-position: 0 0; background-position: 0 0;
} }
.group { .group {
background-position: 0 -22px; background-position: 0 -22px;
} }
.address { .address {
background-position: 0 -44px; background-position: 0 -44px;
} }
@@ -255,6 +255,7 @@ export default {
margin: 12px 0; margin: 12px 0;
line-height: 24px; line-height: 24px;
height: 24px; height: 24px;
.member { .member {
font-size: 14px; font-size: 14px;
color: rgba(0, 0, 0, .65); color: rgba(0, 0, 0, .65);
@@ -265,6 +266,7 @@ export default {
transition: all 0.3s; transition: all 0.3s;
display: inline-block; display: inline-block;
} }
&:hover { &:hover {
span { span {
color: #1890ff; color: #1890ff;
@@ -276,10 +278,10 @@ export default {
.tagsTitle, .teamTitle { .tagsTitle, .teamTitle {
font-weight: 500; font-weight: 500;
color: rgba(0,0,0,.85); color: rgba(0, 0, 0, .85);
margin-bottom: 12px; margin-bottom: 12px;
} }
} }
</style> </style>
@@ -3,7 +3,7 @@
<a-list <a-list
:grid="{ gutter: 24, lg: 3, md: 2, sm: 1, xs: 1 }" :grid="{ gutter: 24, lg: 3, md: 2, sm: 1, xs: 1 }"
:dataSource="dataSource"> :dataSource="dataSource">
<a-list-item slot="renderItem" slot-scope="item, index"> <a-list-item slot="renderItem" slot-scope="item">
<a-card :hoverable="true"> <a-card :hoverable="true">
<a-card-meta> <a-card-meta>
<div style="margin-bottom: 3px" slot="title">{{ item.title }}</div> <div style="margin-bottom: 3px" slot="title">{{ item.title }}</div>
@@ -33,18 +33,18 @@
</a> </a>
<a> <a>
<a-dropdown> <a-dropdown>
<a class="ant-dropdown-link" href="javascript:;"> <a class="ant-dropdown-link" href="javascript:">
<a-icon type="ellipsis"/> <a-icon type="ellipsis"/>
</a> </a>
<a-menu slot="overlay"> <a-menu slot="overlay">
<a-menu-item> <a-menu-item>
<a href="javascript:;">1st menu item</a> <a href="javascript:">1st menu item</a>
</a-menu-item> </a-menu-item>
<a-menu-item> <a-menu-item>
<a href="javascript:;">2nd menu item</a> <a href="javascript:">2nd menu item</a>
</a-menu-item> </a-menu-item>
<a-menu-item> <a-menu-item>
<a href="javascript:;">3rd menu item</a> <a href="javascript:">3rd menu item</a>
</a-menu-item> </a-menu-item>
</a-menu> </a-menu>
</a-dropdown> </a-dropdown>
@@ -16,7 +16,7 @@
</a-col> </a-col>
<a-col :xs="24" :md="12" :style="{height: '350px'}"> <a-col :xs="24" :md="12" :style="{height: '350px'}">
<div class="avatar-upload-preview"> <div class="avatar-upload-preview">
<img :src="previews.url" :style="previews.img"/> <img :src="previews.url" :style="previews.img" alt=""/>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
@@ -57,7 +57,7 @@
<div class="mask"> <div class="mask">
<a-icon type="plus" /> <a-icon type="plus" />
</div> </div>
<img :src="option.img"/> <img :src="option.img" alt=""/>
</div> </div>
</a-col> </a-col>
@@ -53,7 +53,7 @@ export default {
</span> </span>
</Meta> </Meta>
<div slot="actions"> <div slot="actions">
<ASwitch checkedChildren="暗色" unCheckedChildren="白色" defaultChecked={this.navTheme === 'dark' && true || false} onChange={this.onChange} /> <ASwitch checkedChildren="暗色" unCheckedChildren="白色" defaultChecked={this.navTheme === 'dark'} onChange={this.onChange} />
</div> </div>
</AListItem> </AListItem>
<AListItem> <AListItem>
@@ -4,9 +4,9 @@
<div class="account-settings-info-main" :class="device" :style=" 'min-height:'+ mainInfoHeight "> <div class="account-settings-info-main" :class="device" :style=" 'min-height:'+ mainInfoHeight ">
<div class="account-settings-info-left"> <div class="account-settings-info-left">
<a-menu <a-menu
:mode="device == 'mobile' ? 'horizontal' : 'inline'" :mode="device === 'mobile' ? 'horizontal' : 'inline'"
:default-selected-keys="['settings']" :default-selected-keys="['settings']"
:style="{ border: '0', width: device == 'mobile' ? '560px' : 'auto'}" :style="{ border: '0', width: device === 'mobile' ? '560px' : 'auto'}"
type="inner" type="inner"
@openChange="onOpenChange" @openChange="onOpenChange"
> >
@@ -45,18 +45,15 @@
</template> </template>
<script> <script>
import PageLayout from '@/components/page/PageLayout'
import RouteView from '@/components/layouts/RouteView'
import { mixinDevice } from '@/utils/mixin.js' import { mixinDevice } from '@/utils/mixin.js'
import security from './Security' import security from './Security'
import baseSetting from './BaseSetting' import baseSetting from './BaseSetting'
import custom from './Custom' import custom from './Custom'
import notification from './Notification' import notification from './Notification'
import binding from './Binding' import binding from './Binding'
export default { export default {
components: { components: {
RouteView,
PageLayout,
security, security,
baseSetting, baseSetting,
custom, custom,
@@ -160,7 +157,7 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.account-settings-info-main { .account-settings-info-main {
width: 100%; width: 100%;
display: flex; display: flex;
height: 100%; height: 100%;
@@ -177,6 +174,7 @@ export default {
overflow-x: auto; overflow-x: auto;
overflow-y: scroll; overflow-y: scroll;
} }
.account-settings-info-right { .account-settings-info-right {
padding: 20px 40px; padding: 20px 40px;
} }
@@ -192,16 +190,17 @@ export default {
padding: 8px 40px; padding: 8px 40px;
.account-settings-info-title { .account-settings-info-title {
color: rgba(0,0,0,.85); color: rgba(0, 0, 0, .85);
font-size: 20px; font-size: 20px;
font-weight: 500; font-weight: 500;
line-height: 28px; line-height: 28px;
margin-bottom: 12px; margin-bottom: 12px;
} }
.account-settings-info-view { .account-settings-info-view {
padding-top: 12px; padding-top: 12px;
} }
} }
} }
</style> </style>