UNPKG

vuestic-ui

Version:
1 lines 990 B
{"version":3,"file":"useCommonProps.mjs","sources":["../../../../../../src/components/va-data-table/hooks/useCommonProps.ts"],"sourcesContent":["import { PropType } from 'vue'\n\nimport { DataTableItem } from '../types'\n\nexport const useCurrentPageProp = { currentPage: { type: Number as PropType<number | undefined> } }\n\nexport const createItemsProp = <T>() => ({\n items: { type: Array as PropType<DataTableItem<T>[]>, default: () => [] as DataTableItem<T>[] },\n})\n\nexport const useSelectableProp = { selectable: { type: Boolean, default: false } }\n\nexport const useItemsTrackByProp = { itemsTrackBy: { type: [String, Function] as PropType<string | ((item: DataTableItem) => any)>, default: '' } }\n"],"names":[],"mappings":"AAIO,MAAM,qBAAqB,EAAE,aAAa,EAAE,MAAM,SAAyC;AAE3F,MAAM,kBAAkB,OAAU;AAAA,EACvC,OAAO,EAAE,MAAM,OAAuC,SAAS,MAAM,CAAA,EAAyB;AAChG;AAEa,MAAA,oBAAoB,EAAE,YAAY,EAAE,MAAM,SAAS,SAAS,QAAQ;AAEpE,MAAA,sBAAsB,EAAE,cAAc,EAAE,MAAM,CAAC,QAAQ,QAAQ,GAAwD,SAAS,GAAK,EAAA;"}