|
@ -9,7 +9,8 @@ import { set } from 'lodash-es' |
|
|
import { Pagination, TableColumn, TableSetPropsType, TableSlotDefault } from '@/types/table' |
|
|
import { Pagination, TableColumn, TableSetPropsType, TableSlotDefault } from '@/types/table' |
|
|
import { useCache } from '@/hooks/web/useCache' |
|
|
import { useCache } from '@/hooks/web/useCache' |
|
|
const { wsCache } = useCache() |
|
|
const { wsCache } = useCache() |
|
|
let SearchoffsetHeight =(wsCache.get('SearchoffsetHeight') + 310 )+'px' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default defineComponent({ |
|
|
export default defineComponent({ |
|
|
// eslint-disable-next-line vue/no-reserved-component-names |
|
|
// eslint-disable-next-line vue/no-reserved-component-names |
|
@ -17,7 +18,6 @@ export default defineComponent({ |
|
|
props: { |
|
|
props: { |
|
|
pageSize: propTypes.number.def(10), |
|
|
pageSize: propTypes.number.def(10), |
|
|
currentPage: propTypes.number.def(1), |
|
|
currentPage: propTypes.number.def(1), |
|
|
height: propTypes.string.def('calc(100vh - '+SearchoffsetHeight+')'), |
|
|
|
|
|
// 是否多选 |
|
|
// 是否多选 |
|
|
selection: propTypes.bool.def(false), |
|
|
selection: propTypes.bool.def(false), |
|
|
// 是否所有的超出隐藏,优先级低于schema中的showOverflowTooltip, |
|
|
// 是否所有的超出隐藏,优先级低于schema中的showOverflowTooltip, |
|
@ -293,7 +293,6 @@ export default defineComponent({ |
|
|
// @ts-ignore |
|
|
// @ts-ignore |
|
|
ref={elTableRef} |
|
|
ref={elTableRef} |
|
|
data={unref(getProps).data} |
|
|
data={unref(getProps).data} |
|
|
height={unref(getProps).height} |
|
|
|
|
|
onSelection-change={selectionChange} |
|
|
onSelection-change={selectionChange} |
|
|
onSort-change={sortChange} |
|
|
onSort-change={sortChange} |
|
|
{...unref(getBindValue)} |
|
|
{...unref(getBindValue)} |
|
|