init
This commit is contained in:
commit
44f31f8b9f
402 changed files with 47865 additions and 0 deletions
67
modules/account/components/NoteAccount/NoteAccount.vue
Normal file
67
modules/account/components/NoteAccount/NoteAccount.vue
Normal file
|
@ -0,0 +1,67 @@
|
|||
<template>
|
||||
<div ref="note" class="note-account" :class="{ 'is-active': isActive }">
|
||||
<h2 class="title">
|
||||
<!-- <b-icon icon="astronaut" size="is-large" /> -->
|
||||
{{ $t('account.title') }}
|
||||
</h2>
|
||||
<b-notification class="main-notification" type="is-info">
|
||||
{{ $t('account.description') }}
|
||||
</b-notification>
|
||||
<Setup v-if="!isSetupAccount" />
|
||||
<Control v-else />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { noteComputed, noteMethods } from '../../injectors'
|
||||
|
||||
import { Setup } from '../Setup'
|
||||
import { Control } from '../Control'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Setup,
|
||||
Control
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isActive: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...noteComputed
|
||||
},
|
||||
watch: {
|
||||
isInitialized(isInitialized) {
|
||||
if (isInitialized) {
|
||||
this.checkExistAccount()
|
||||
}
|
||||
},
|
||||
isHighlightedNoteAccount: {
|
||||
handler(value) {
|
||||
if (value) {
|
||||
this.scrollOnHiglight()
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.checkExistAccount()
|
||||
},
|
||||
methods: {
|
||||
...noteMethods,
|
||||
scrollOnHiglight() {
|
||||
setTimeout(() => {
|
||||
this.isActive = true
|
||||
this.$refs.note.scrollIntoView({ behavior: 'smooth', block: 'start', inline: 'start' })
|
||||
}, 100)
|
||||
|
||||
setTimeout(() => {
|
||||
this.isActive = false
|
||||
this.highlightNoteAccount({ isHighlighted: false })
|
||||
}, 1000)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
1
modules/account/components/NoteAccount/index.js
Normal file
1
modules/account/components/NoteAccount/index.js
Normal file
|
@ -0,0 +1 @@
|
|||
export { default as NoteAccount } from './NoteAccount'
|
Loading…
Add table
Add a link
Reference in a new issue