Browse Source

JSLint

pull/9/head
ruibaby 6 years ago
parent
commit
0d6e3572c7
  1. 4
      src/components/DescriptionList/DescriptionList.vue
  2. 2
      src/components/SettingDrawer/SettingItem.vue
  3. 64
      src/views/attachment/AttachmentList.vue

4
src/components/DescriptionList/DescriptionList.vue

@ -24,7 +24,7 @@ const Item = {
type: Number type: Number
} }
}, },
render () { render() {
return ( return (
<Col {...{ props: responsive[this.col] }}> <Col {...{ props: responsive[this.col] }}>
<div class="term">{this.$props.term}</div> <div class="term">{this.$props.term}</div>
@ -69,7 +69,7 @@ export default {
default: 'horizontal' default: 'horizontal'
} }
}, },
provide () { provide() {
return { return {
col: this.col > 4 ? 4 : this.col col: this.col > 4 ? 4 : this.col
} }

2
src/components/SettingDrawer/SettingItem.vue

@ -35,4 +35,4 @@ export default {
} }
} }
</style> </style>

64
src/views/attachment/AttachmentList.vue

@ -1,42 +1,90 @@
<template> <template>
<page-view> <page-view>
<a-row :gutter="12" type="flex" align="middle"> <a-row :gutter="12" type="flex" align="middle">
<a-col class="attachment-item" :xl="4" :lg="4" :md="12" :sm="12" :xs="24"> <a-col
class="attachment-item"
:xl="4"
:lg="4"
:md="12"
:sm="12"
:xs="24">
<a-card :bodyStyle="{ padding: '14px' }"> <a-card :bodyStyle="{ padding: '14px' }">
<img :src="src" slot="cover"> <img :src="src" slot="cover">
</a-card> </a-card>
</a-col> </a-col>
<a-col class="attachment-item" :xl="4" :lg="4" :md="12" :sm="12" :xs="24"> <a-col
class="attachment-item"
:xl="4"
:lg="4"
:md="12"
:sm="12"
:xs="24">
<a-card :bodyStyle="{ padding: '14px' }"> <a-card :bodyStyle="{ padding: '14px' }">
<img :src="src" slot="cover"> <img :src="src" slot="cover">
</a-card> </a-card>
</a-col> </a-col>
<a-col class="attachment-item" :xl="4" :lg="4" :md="12" :sm="12" :xs="24"> <a-col
class="attachment-item"
:xl="4"
:lg="4"
:md="12"
:sm="12"
:xs="24">
<a-card :bodyStyle="{ padding: '14px' }"> <a-card :bodyStyle="{ padding: '14px' }">
<img :src="src" slot="cover"> <img :src="src" slot="cover">
</a-card> </a-card>
</a-col> </a-col>
<a-col class="attachment-item" :xl="4" :lg="4" :md="12" :sm="12" :xs="24"> <a-col
class="attachment-item"
:xl="4"
:lg="4"
:md="12"
:sm="12"
:xs="24">
<a-card :bodyStyle="{ padding: '14px' }"> <a-card :bodyStyle="{ padding: '14px' }">
<img :src="src" slot="cover"> <img :src="src" slot="cover">
</a-card> </a-card>
</a-col> </a-col>
<a-col class="attachment-item" :xl="4" :lg="4" :md="12" :sm="12" :xs="24"> <a-col
class="attachment-item"
:xl="4"
:lg="4"
:md="12"
:sm="12"
:xs="24">
<a-card :bodyStyle="{ padding: '14px' }"> <a-card :bodyStyle="{ padding: '14px' }">
<img :src="src" slot="cover"> <img :src="src" slot="cover">
</a-card> </a-card>
</a-col> </a-col>
<a-col class="attachment-item" :xl="4" :lg="4" :md="12" :sm="12" :xs="24"> <a-col
class="attachment-item"
:xl="4"
:lg="4"
:md="12"
:sm="12"
:xs="24">
<a-card :bodyStyle="{ padding: '14px' }"> <a-card :bodyStyle="{ padding: '14px' }">
<img :src="src" slot="cover"> <img :src="src" slot="cover">
</a-card> </a-card>
</a-col> </a-col>
<a-col class="attachment-item" :xl="4" :lg="4" :md="12" :sm="12" :xs="24"> <a-col
class="attachment-item"
:xl="4"
:lg="4"
:md="12"
:sm="12"
:xs="24">
<a-card :bodyStyle="{ padding: '14px' }"> <a-card :bodyStyle="{ padding: '14px' }">
<img :src="src" slot="cover"> <img :src="src" slot="cover">
</a-card> </a-card>
</a-col> </a-col>
<a-col class="attachment-item" :xl="4" :lg="4" :md="12" :sm="12" :xs="24"> <a-col
class="attachment-item"
:xl="4"
:lg="4"
:md="12"
:sm="12"
:xs="24">
<a-card :bodyStyle="{ padding: '14px' }"> <a-card :bodyStyle="{ padding: '14px' }">
<img :src="src" slot="cover"> <img :src="src" slot="cover">
</a-card> </a-card>

Loading…
Cancel
Save