UNPKG

@wetspace/pro-components

Version:
20 lines (19 loc) 488 B
import { useSlots as u, shallowRef as n, computed as l, watch as i } from "vue"; const f = (e) => { const s = u(), t = n("default"), a = l(() => !!(s["tools-bar"] || e.showMoreTools || e.title)); i(() => e.size, (o) => { o && (t.value = o); }, { immediate: !0 }); const r = l(() => t.value === "small" ? { background: !1, layout: "total,prev,pager,next" } : {}); return { showTool: a, tableSize: t, paginationSize: r }; }; export { f as default };