2019/09/18
v-kansai #10 Short LT
module.exports = {
root: true,
env: {
browser: true,
node: true
},
extends: [
'plugin:vue/essential',
'plugin:prettier/recommended',
'standard',
'@vue/typescript'
],
plugins: ['@typescript-eslint']
parserOptions: {
sourceType: 'module',
parser: '@typescript-eslint/parser'
}
}
export default class SummaryService {
public async fetchSummary(
ids: string[],
person: string,
createdAt: string
): Promise<SummaryEndpoint> {
const params = getParams(ids, person, createdAt)
const res = await axios.get(`/summary?${params}`)
return res.data
}
}
async fetchSummaryAll() {
await Promise.all([
this.fetchSummaryA(),
this.fetchSummaryB(),
this.fetchSummaryC(),
this.fetchSummaryD()
])
}
<atoms-button
ref="branchSelectButton"
:text="title"
@handleClick="displayModal"
></atoms-button>
<div v-if="showModal === true">
<div class="modal-mask" @click.self="showModal = false">
<div :style="modalWrapperStyle">
<div class="modal-container">
</div>
</div>
</div>
</div>
<input v-model="inputText" />
<input v-model="inputText" />
<script>
export defsult Vue.extend({
data() {
return {
newInputText: '' as string
}
},
computed: {
inputText: {
get () {
return this.newInputText
},
set (value: string) {
this.newInputText = value
}
}
}
})
</script>
<input
:value="inputText"
@input="inputText = $event.target.value"
>