fix: 类型推断警告

This commit is contained in:
就眠儀式 2022-03-31 19:05:08 +08:00
parent 06ac16fe5a
commit fcc3be11fc
5 changed files with 11 additions and 8 deletions

View File

@ -17,9 +17,11 @@
<h3>0.4.4 <span class="layui-badge-rim">2022-03-29</span></h3>
<ul>
<li>[新增] tab 组件 position 属性, 不同方向的选项卡标题。</li>
<li>[修复] variable 全局变量重复导入的问题</li>
<li>[修复] transfer 组件 showSearch 属性类型警告。</li>
<li>[修复] upload 组件 number 属性必填警告。</li>
<li>[修复] variable 全局变量重复导入的问题。</li>
<li>[支持] icon 列表复制。</li>
<li>[支持] 夜间模式</li>
<li>[支持] 夜间模式</li>
</ul>
</li>
</ul>

View File

@ -81,7 +81,7 @@ app.mount('#app')
::: describe 根据不同的 CDN 提供商有不同的引入方式, 根据不同的 CDN 提供商有不同的引入方式, 我们在这里以 unpkg 举例。
:::
```
```html
<!DOCTYPE html>
<html lang="en">

View File

@ -204,16 +204,16 @@ const throttle = (func: Function, wait: number) => {
list-style: none;
&:hover {
background-color: #f6f6f6 !important;
color: #5fb878;
color: var(--global-checked-color);
}
&:active {
background-color: #f6f6f6 !important;
color: #89d89f;
color: var(--global-checked-color);
}
&.active {
background-color: #f6f6f6 !important;
* {
color: #5fb878 !important;
color: var(--global-checked-color);
}
}
}

View File

@ -41,6 +41,7 @@ const emit = defineEmits([
"change",
"row-double",
"update:selectedKeys",
"contextmenu"
]);
const slot = useSlots();

View File

@ -8,12 +8,12 @@ export default {
import "./index.less";
import LayScroll from "../scroll";
import { Ref, ref, useSlots, watch } from "vue";
import { Recordable } from "../../types";
import { BooleanOrString, Recordable } from "../../types";
export interface LayTransferProps {
id?: string;
title?: string[];
showSearch?: boolean;
showSearch?: BooleanOrString;
dataSource: Recordable[];
}