Новы глобальные изменения компонентоы

This commit is contained in:
Web-serfer 2026-04-17 17:35:17 +05:00
parent 5d7bb04bf1
commit a269d3459e
43 changed files with 1667 additions and 517 deletions

View file

@ -0,0 +1,28 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_941672112")
// add field
collection.fields.addAt(3, new Field({
"hidden": false,
"id": "select1002219032",
"maxSelect": 1,
"name": "vote_type",
"presentable": false,
"required": false,
"system": false,
"type": "select",
"values": [
"like"
]
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_941672112")
// remove field
collection.fields.removeById("select1002219032")
return app.save(collection)
})