🐛(notice-bar): 修复 color 与 background 类型警告
This commit is contained in:
parent
0a203b9f54
commit
568c77327a
@ -71,8 +71,8 @@ export interface LayNoticeBarProps {
|
|||||||
mode?: string;
|
mode?: string;
|
||||||
text?: string;
|
text?: string;
|
||||||
textlist?: any[];
|
textlist?: any[];
|
||||||
color?: Function;
|
color?: string;
|
||||||
background?: Function;
|
background?: string;
|
||||||
size?: number | string;
|
size?: number | string;
|
||||||
height?: number | string;
|
height?: number | string;
|
||||||
delay?: number;
|
delay?: number;
|
||||||
|
@ -157,7 +157,7 @@ watch(currentPage, function () {
|
|||||||
<a v-if="showRefresh" href="javascript:;" class="layui-laypage-refresh">
|
<a v-if="showRefresh" href="javascript:;" class="layui-laypage-refresh">
|
||||||
<i class="layui-icon layui-icon-refresh"></i>
|
<i class="layui-icon layui-icon-refresh"></i>
|
||||||
</a>
|
</a>
|
||||||
<span v-if="showSkip" class="layui-laypage-skip">
|
<span v-if="props.showSkip" class="layui-laypage-skip">
|
||||||
到第
|
到第
|
||||||
<input
|
<input
|
||||||
v-model="currentPageShow"
|
v-model="currentPageShow"
|
||||||
|
@ -17,7 +17,7 @@ export interface LayTableRowProps {
|
|||||||
expandSpace: boolean;
|
expandSpace: boolean;
|
||||||
selectedKeys: Recordable[];
|
selectedKeys: Recordable[];
|
||||||
tableColumnKeys: Recordable[];
|
tableColumnKeys: Recordable[];
|
||||||
childrenColumnName: string;
|
childrenColumnName?: string;
|
||||||
columns: Recordable[];
|
columns: Recordable[];
|
||||||
checkbox?: boolean;
|
checkbox?: boolean;
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -21,7 +21,7 @@ export interface LayTransferProps {
|
|||||||
height?: string;
|
height?: string;
|
||||||
showSearch?: BooleanOrString;
|
showSearch?: BooleanOrString;
|
||||||
dataSource: Recordable[];
|
dataSource: Recordable[];
|
||||||
selectedKeys: Recordable[];
|
selectedKeys?: Recordable[];
|
||||||
}
|
}
|
||||||
|
|
||||||
const slot = useSlots();
|
const slot = useSlots();
|
||||||
|
@ -197,7 +197,7 @@ export default {
|
|||||||
::: demo
|
::: demo
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<lay-page :limit="limit1" :pages="pages1" :total="total1" :show-count="showCount1" @limit="limit1=$event" :show-page="showPage1" :show-limit="showLimit1" :show-refresh="showRefresh1" showSkip="showSkip1"></lay-page>
|
<lay-page :limit="limit1" :pages="pages1" :total="total1" :show-count="showCount1" @limit="limit1=$event" :show-page="showPage1" :show-limit="showLimit1" :show-refresh="showRefresh1" :showSkip="showSkip1"></lay-page>
|
||||||
每页数量:{{limit1}}
|
每页数量:{{limit1}}
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -250,6 +250,7 @@ export default {
|
|||||||
const limit = ref(20)
|
const limit = ref(20)
|
||||||
const total = ref(100)
|
const total = ref(100)
|
||||||
const showPage = ref(true)
|
const showPage = ref(true)
|
||||||
|
const showSkip = ref(true)
|
||||||
const jump = function({ current }) {
|
const jump = function({ current }) {
|
||||||
console.log("当前页:" + current)
|
console.log("当前页:" + current)
|
||||||
}
|
}
|
||||||
@ -258,7 +259,8 @@ export default {
|
|||||||
limit,
|
limit,
|
||||||
total,
|
total,
|
||||||
jump,
|
jump,
|
||||||
showPage
|
showPage,
|
||||||
|
showSkip
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user