mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
实现组件背景圆角的独立控制功能,允许分别设置四个角的半径值。新增 CornerValues 接口和 borderRadius2 属性,并在 UI 中提供三种模式(统一、对称、独立)的配置选项。同时更新 Shape.vue 组件以支持新的圆角渲染逻辑。 修改包括: 1. 在 Types.ts 中新增 CornerValues 接口 2. 在 BackgroundOverallCommon.vue 中实现圆角配置界面 3. 在 Shape.vue 中更新圆角样式计算逻辑
Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Recommended IDE Setup
- VS Code + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
Type Support For .vue Imports in TS
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensionsfrom VSCode's command palette - Find
TypeScript and JavaScript Language Features, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Windowfrom the command palette.