wujingjing
2024-12-13 b30bbcc75df0c4838466b3296e4b5418a4ce501d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import {types, getEnv} from 'mobx-state-tree';
export const PageStore = types
  .model('Page', {
    id: types.identifier,
    icon: '',
    path: '',
    label: '',
    schema: types.frozen({})
  })
  .views(self => ({}))
  .actions(self => {
    function updateSchema(schema: any) {
      self.schema = schema;
    }
 
    return {
      updateSchema
    };
  });
 
export type IPageStore = typeof PageStore.Type;