mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 04:46:26 +00:00
- Added EnhancedDialog component to replace el-dialog in ExportModal.vue, ImportModal.vue, and PageModal.vue for better customization. - Updated styles in PageContent.vue to enhance layout and toolbar functionality. - Refactored PageSearch.vue to improve query handling and layout responsiveness. - Introduced new properties in types.ts for better configuration options in search and content components. - Updated package.json to include plop for improved project scaffolding.
32 lines
843 B
JavaScript
32 lines
843 B
JavaScript
/** @param {import("plop").NodePlopAPI} plop */
|
||
export default function (plop) {
|
||
plop.setGenerator("curd-list", {
|
||
description: "列表页骨架:PageSearch + PageContent + CrudToolbarLeft/Right + useCrudList",
|
||
prompts: [
|
||
{
|
||
type: "input",
|
||
name: "modulePath",
|
||
message: "views 下路径(如 module_example/demo)",
|
||
},
|
||
{
|
||
type: "input",
|
||
name: "componentName",
|
||
message: "组件 name(PascalCase,如 Demo)",
|
||
},
|
||
{
|
||
type: "input",
|
||
name: "permPrefix",
|
||
message: "权限前缀(如 module_example:demo)",
|
||
},
|
||
],
|
||
actions: [
|
||
{
|
||
type: "add",
|
||
path: "src/views/{{modulePath}}/index.vue",
|
||
templateFile: "plop-templates/curd-list-page.vue.hbs",
|
||
skipIfExists: true,
|
||
},
|
||
],
|
||
});
|
||
}
|