tachybase_todo/packages/plugin-china-region/src/server.ts
Junyi 662619b91c
Feature: plugin-china-region (#66)
* feat: add core function for china region cascade select

* fix: test case

* refactor: use belongsToMany for region field and fix component

* fix: data import

* fix: remove sort field

* fix: clear on changeOnSelect is false
2021-02-22 15:08:35 +08:00

19 lines
495 B
TypeScript

import path from 'path';
// import actions from '@nocobase/actions';
// 不从主入口导出,考虑到加载的数据量太大比较占内存,只在迁移时处理
// export * as seeders from './db/seeders';
export default async function (options = {}) {
const { database, resourcer } = this;
database.import({
directory: path.resolve(__dirname, 'collections'),
});
// resourcer.define({
// name: 'china_regions.china_regions',
// actions: actions.common
// });
}