🌀(component): input select cascader datepicker加入size属性

This commit is contained in:
0o张不歪o0
2022-07-18 15:41:02 +08:00
parent 3b7e0ff326
commit 49e2d25d6d
10 changed files with 111 additions and 5 deletions

View File

@@ -699,6 +699,7 @@ const options3=[
| onlyLastLevel | 回显display仅显示最后一级默认为 `false` |
| replaceFields | 自定义数据key名,可配置项为`label`,`value`,`children`,用法详见上面案例 |
| allow-clear | 默认slot提供清空功能与lay-input保持一致|
| size | 尺寸参数与lay-input保持一致|
:::
::: title Cascader 事件

View File

@@ -262,7 +262,7 @@ const rangeTime3 = ref(['2022-01-01','2023-02-1']);
| simple | 一次性选择,无需点击确认按钮 | `boolean` | false | — |
| readonly | 只读 | `boolean` | false | — |
| allowClear | 允许清空 | `boolean` | true | — |
| size | 尺寸 | `string` | `lg` `md` `sm` `xs` | `md` |
:::

View File

@@ -243,6 +243,25 @@ export default {
:::
::: title 尺寸Size
:::
::: demo
<template>
<div>
<lay-input size="lg" placeholder='lg'></lay-input>
<lay-input size="md" placeholder='md' style='margin-top:10px'></lay-input>
<lay-input size="sm" placeholder='sm' style='margin-top:10px'></lay-input>
<lay-input size="xs" placeholder='xs' style='margin-top:10px'></lay-input>
</div>
</template>
<script>
</script>
:::
::: title Input 属性
:::
@@ -261,6 +280,7 @@ export default {
| prefix-icon | 前置图标 | -- |
| suffix-icon | 后置图标 | -- |
| password | 开启密码显示隐藏 | `true` `false`|
| size | 尺寸 | `lg` `md` `sm` `xs`,默认`md`|
:::

View File

@@ -310,6 +310,7 @@ export default {
| showEmpty | 是否增加空提示选项 | `boolean` | `true` `false` | `true` |
| multiple | 是否为多选 | `boolean` | `true` `false` | `false` |
| create | 是否允许创建 | `boolean` | `true` `false` | `false` |
| size | 尺寸 | `string` | `lg` `md` `sm` `xs`| `md` |
:::