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