style(prettier): reset code style with prettier

This commit is contained in:
落小梅
2021-10-12 11:30:07 +08:00
parent aee99c49c9
commit 2b59e008f3
148 changed files with 4296 additions and 4191 deletions

View File

@@ -1,21 +1,25 @@
<template>
<textarea :value="modelValue" :placeholder="placeholder" :name="name" class="layui-textarea" @input="updateValue"></textarea>
<textarea
:value="modelValue"
:placeholder="placeholder"
:name="name"
class="layui-textarea"
@input="updateValue"
/>
</template>
<script setup name="LayTextarea" lang="ts">
import { defineProps, defineEmits } from 'vue'
const props =
defineProps<{
name?: string
modelValue?: string
placeholder?: string
}>()
const props = defineProps<{
name?: string
modelValue?: string
placeholder?: string
}>()
const emit = defineEmits(['update:modelValue'])
const updateValue = function(event: InputEvent) {
const updateValue = function (event: InputEvent) {
emit('update:modelValue', (event.target as HTMLInputElement).value)
}
</script>