Files
FastapiAdmin/frontend/plopfile.mjs
T
zhangtao 787a453973 feat(CURD): integrate EnhancedDialog and improve modal components
- 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.
2026-03-29 01:14:12 +08:00

32 lines
843 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** @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: "组件 namePascalCase,如 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,
},
],
});
}