import { StateRoot } from "queenjs";
import ListModule from ".";
import { DialogItem, ItemObject } from "./objects/item";

export const stores = ListModule.store({
  state: () => ({
    list: [],
    items: [] as any,
    dialogs: [] as DialogItem[],
    scrollOffset: 0, //屏幕滚动值
    scrollType: "horizontal", // 滚动方式 vertical horizontal
    totalRow: 8, //行数或列数
    parentWidth: 0,
    parentHeight: 0,
  }),
  getters: {},
});

export default class extends StateRoot {}
