From 58c5d2c93ac5e1e6625ea328501a29d9f53bef17 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Wed, 5 Feb 2025 11:11:44 +0300 Subject: [PATCH] wip --- frontend/src/builder.d.ts | 9 +++++ frontend/src/components/Controls/Input.vue | 41 ++++++++++++++++++++++ frontend/src/utils/block.ts | 10 ++---- 3 files changed, 52 insertions(+), 8 deletions(-) diff --git a/frontend/src/builder.d.ts b/frontend/src/builder.d.ts index 6fed9990..ecd5e93c 100644 --- a/frontend/src/builder.d.ts +++ b/frontend/src/builder.d.ts @@ -1,3 +1,11 @@ +declare interface BlockDataKey { + key?: string; + type?: BlockDataKeyType; + property?: string; +} + +declare type BlockDataKeyType = "key" | "attribute" | "style"; + declare type StyleValue = string | number | null | undefined; declare type styleProperty = keyof CSSProperties; @@ -20,6 +28,7 @@ declare interface BlockOptions { attributes?: BlockAttributeMap; classes?: Array; children?: Array; + dynamicValues?: Array; draggable?: boolean; [key: string]: any; } diff --git a/frontend/src/components/Controls/Input.vue b/frontend/src/components/Controls/Input.vue index b616e28a..a26d0675 100644 --- a/frontend/src/components/Controls/Input.vue +++ b/frontend/src/components/Controls/Input.vue @@ -1,5 +1,39 @@