feat: add input allow-clear props

This commit is contained in:
就眠儀式
2022-03-23 02:37:21 +08:00
parent 794dbb77fd
commit 3e22cfb2fe
6 changed files with 46 additions and 7 deletions

View File

@@ -83,6 +83,32 @@ export default {
:::
::: title 允许清空
:::
::: demo
<template>
<lay-input allow-clear="true" v-model="value1"></lay-input>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
const value1 = ref("内容")
return {
value1
}
}
}
</script>
:::
::: title 事件回调
:::