(component): update

This commit is contained in:
就眠儀式 2022-07-28 11:18:32 +08:00
parent d07da1a475
commit a37f41c312
3 changed files with 16 additions and 5 deletions

View File

@ -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",

View File

@ -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 {
@ -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);

View File

@ -11,6 +11,19 @@
<template>
<lay-timeline>
<lay-timeline-item title="1.3.x">
<ul>
<a name="1-3-8"></a>
<li>
<h3>1.3.8 <span class="layui-badge-rim">2022-07-28</span></h3>
<ul>
<li>[新增] input 组件 maxlength 属性, 原生属性限制输入长度。</li>
<li>[优化] input 组件 password 属性, 当 length 大于 0 时启用。</li>
<li>[优化] input 组件 input 事件, 参数由 event 调整为 value。</li>
<li>[优化] textarea 组件 input 事件, 参数由 event 调整为 value。</li>
<li>[修复] textarea 组件 maxlength 属性, 限制内容长度不可用。</li>
</ul>
</li>
</ul>
<ul>
<a name="1-3-7"></a>
<li>