From d8bc5f3cff44e9eb4172c34c3d461cdc60e2f867 Mon Sep 17 00:00:00 2001 From: IchliebedichZhu <54796446@qq.com> Date: Sun, 10 Mar 2024 13:40:12 +0000 Subject: [PATCH] feat: convert wGroup component to composition API --- .../modules/widgets/wGroup/groupSetting.ts | 23 ++ .../modules/widgets/wGroup/wGroup.vue | 385 ++++++++++-------- src/views/Draw.vue | 3 +- src/views/Index.vue | 3 +- 4 files changed, 239 insertions(+), 175 deletions(-) create mode 100644 src/components/modules/widgets/wGroup/groupSetting.ts diff --git a/src/components/modules/widgets/wGroup/groupSetting.ts b/src/components/modules/widgets/wGroup/groupSetting.ts new file mode 100644 index 0000000..745e128 --- /dev/null +++ b/src/components/modules/widgets/wGroup/groupSetting.ts @@ -0,0 +1,23 @@ + + +export const wGroupSetting = { + name: '组合', + type: 'w-group', + uuid: -1, + width: 0, + height: 0, + left: 0, + top: 0, + transform: '', + opacity: 1, + parent: '-1', + isContainer: true, + record: { + width: 0, + height: 0, + minWidth: 0, + minHeight: 0, + dir: 'none', + }, +} + diff --git a/src/components/modules/widgets/wGroup/wGroup.vue b/src/components/modules/widgets/wGroup/wGroup.vue index 2239f32..b09ce00 100644 --- a/src/components/modules/widgets/wGroup/wGroup.vue +++ b/src/components/modules/widgets/wGroup/wGroup.vue @@ -8,11 +8,11 @@