Skip to content

Commit

Permalink
refactor: refactor SettingsRow (#1484)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Jul 24, 2023
1 parent 8447be2 commit 0b47a80
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/settings/SettingsRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<v-col :class="firstColClasses">
<v-row class="d-flex flex-row">
<v-col v-if="loading" class="col-auto d-flex justify-center align-center pr-0">
<v-progress-circular indeterminate color="primary" :size="24"></v-progress-circular>
<v-progress-circular indeterminate color="primary" :size="24" />
</v-col>
<v-col v-else-if="icon" class="col-auto d-flex justify-center align-center pr-0">
<v-icon>{{ icon }}</v-icon>
Expand All @@ -15,14 +15,15 @@
</v-row>
</v-col>
<v-col :class="secondColClasses">
<slot></slot>
<slot />
</v-col>
</v-row>
</template>

<script lang="ts">
import { Component, Mixins, Prop } from 'vue-property-decorator'
import BaseMixin from '../mixins/base'
import { TranslateResult } from 'vue-i18n'
@Component
export default class SettingsRow extends Mixins(BaseMixin) {
Expand All @@ -33,10 +34,10 @@ export default class SettingsRow extends Mixins(BaseMixin) {
declare readonly icon: string
@Prop({ required: true })
declare readonly title: string
declare readonly title: string | TranslateResult
@Prop({ required: false })
declare readonly subTitle: string
declare readonly subTitle: string | TranslateResult
@Prop({ required: false, default: false })
declare readonly dynamicSlotWidth: boolean
Expand Down

0 comments on commit 0b47a80

Please sign in to comment.