vue-devui
Version:
DevUI components based on Vite and Vue3
12 lines (11 loc) • 439 B
TypeScript
import { Ref } from 'vue';
import type { SetupContext } from 'vue';
import type { DefaultRow, ITable } from '../table-types';
import type { TableStore } from './store-types';
/**
* 创建 TableStore
* @param dataSource 数据源
* @param table 表对象
* @returns TableStore
*/
export declare function createStore<T extends Record<string, unknown>>(dataSource: Ref<T[]>, table: ITable<DefaultRow>, ctx: SetupContext): TableStore<T>;