Replies: 1 comment 2 replies
-
|
新版确实🐂啊 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
生成器内容
{"title":"文章管理","table_name":"articles","primary_key":"id","model_name":"App/Models/Article","controller_name":"App/Admin/Controllers/ArticleController","service_name":"App/Services/ArticleService","columns":[{"name":"title","type":"string","default":null,"nullable":false,"comment":"标题","index":"unique","action_scope":["list","detail","create","edit"],"file_column":0,"form_component_type":"TextControl","form_component_property":[{"name":"required"}]},{"name":"cover","type":"text","default":null,"nullable":false,"comment":"封面","index":1,"action_scope":["list","detail","create","edit"],"file_column":true,"list_component_type":"TableColumn","list_component_property":[{"name":"type","value":"image"}],"form_component_type":"ImageControl","form_component_property":null,"detail_component_type":"ImageControl","detail_component_property":[{"name":"static"}]},{"name":"state","type":"tinyInteger","default":null,"nullable":false,"comment":"状态","index":1,"action_scope":["list","detail","create","edit"],"file_column":0,"list_component_type":"TableColumn","list_component_property":[{"name":"type","value":"status"}],"form_component_type":"SwitchControl","detail_component_type":"StaticExactControl","detail_component_property":[{"name":"type","value":"static-status"}],"form_component_property":[{"name":"value","value":"1"}]},{"name":"content","type":"longText","default":null,"nullable":false,"comment":"内容","index":1,"action_scope":["detail","create","edit"],"file_column":0,"form_component_type":"RichTextControl","detail_component_type":"StaticExactControl","detail_component_property":[{"name":"type","value":"static-tpl"}]}],"need_timestamps":1,"soft_delete":1,"needs":["need_database_migration","need_create_table","need_model","need_controller","need_service"],"menu_info":{"enabled":1,"parent_id":0,"icon":"ph:circle","route":"/articles","title":"文章管理"},"page_info":{"dialog_form":true,"row_actions":["show","edit","delete"],"dialog_size":"lg"}}功能包含字段
效果图
使用方式
复制以上
json记录内容, 放到 [代码生成器 -> 导入记录] 功能中提交即可~Beta Was this translation helpful? Give feedback.
All reactions