✨(component): update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@layui/layui-vue",
|
||||
"version": "1.3.7",
|
||||
"version": "1.3.8",
|
||||
"author": "就眠儀式",
|
||||
"license": "MIT",
|
||||
"description": "a component library for Vue 3 base on layui-vue",
|
||||
|
||||
@@ -5,7 +5,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, useAttrs } from "vue";
|
||||
import { computed } from "vue";
|
||||
import "./index.less";
|
||||
|
||||
export interface LayTextareaProps {
|
||||
@@ -22,7 +22,7 @@ const props = defineProps<LayTextareaProps>();
|
||||
|
||||
interface TextareaEmits {
|
||||
(e: "blur", event: Event): void;
|
||||
(e: "input", value: string ): void;
|
||||
(e: "input", value: string): void;
|
||||
(e: "update:modelValue", value: string): void;
|
||||
(e: "change", value: string): void;
|
||||
(e: "focus", event: Event): void;
|
||||
@@ -31,8 +31,6 @@ interface TextareaEmits {
|
||||
|
||||
const emit = defineEmits<TextareaEmits>();
|
||||
|
||||
const attrs = useAttrs();
|
||||
|
||||
const onInput = function (event: Event) {
|
||||
const inputElement = event.target as HTMLInputElement;
|
||||
emit("update:modelValue", inputElement.value);
|
||||
|
||||
Reference in New Issue
Block a user