mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 19:46:28 +00:00
25 lines
295 B
Markdown
25 lines
295 B
Markdown
|
---
|
||
|
title: Collections - 数据集
|
||
|
---
|
||
|
|
||
|
# Collections - 数据集
|
||
|
|
||
|
与 database.table 用法一致
|
||
|
|
||
|
```ts
|
||
|
export default {
|
||
|
name: 'examples',
|
||
|
fields: [],
|
||
|
}
|
||
|
```
|
||
|
|
||
|
配置扩展
|
||
|
|
||
|
```ts
|
||
|
import { extend } from '@nocobase/database';
|
||
|
|
||
|
export default extend({
|
||
|
name: 'examples',
|
||
|
fields: [],
|
||
|
});
|
||
|
```
|