tiny-engine icon indicating copy to clipboard operation
tiny-engine copied to clipboard

feat: generatecode support import element style

Open chilingling opened this issue 5 months ago • 1 comments

English | 简体中文

PR

PR Checklist

Please check if your PR fulfills the following requirements:

  • [x] The commit message follows our Commit Message Guidelines
  • [ ] Tests for the changes have been added (for bug fixes / features)
  • [ ] Docs have been added / updated (for bug fixes / features)
  • [ ] Built its own designer, fully self-validated

PR Type

What kind of change does this PR introduce?

  • [ ] Bugfix
  • [x] Feature
  • [ ] Code style update (formatting, local variables)
  • [ ] Refactoring (no functional changes, no api changes)
  • [ ] Build related changes
  • [ ] CI related changes
  • [ ] Documentation content changes
  • [ ] Other... Please describe:

Background and solution

What is the current behavior?

出码包含 element-plus 时,没有引入样式。

Issue Number: #762

What is the new behavior?

增加出码插件,检测到 package.json 中含有 element-plus 插件的时候,往 main.js 中增加 import 语句: import 'element-plus/dist/index.css'

Does this PR introduce a breaking change?

  • [ ] Yes
  • [x] No

Other information

Summary by CodeRabbit

  • New Features

    • Introduced a new plugin to optionally inject Element Plus styles during application generation.
    • Added a global style dependency plugin for Element Plus, automating the CSS import process in Vue.js applications.
    • Expanded the list of available plugins by exporting the new appendElePlusStylePlugin.
    • Added a README file with setup instructions for the new project structure.
    • Created a mock data structure to facilitate application schema representation.
    • Implemented a data source management system for low-code applications.
  • Chores

    • Updated peer dependencies to include @babel/generator.

chilingling avatar Sep 25 '24 09:09 chilingling