From 2dacba17c1bcc743be1af8acb3bcee00988956b1 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 21 Mar 2024 18:36:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=BF=87=E6=BB=A4=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E7=BB=84=E4=BB=B6=E6=94=AF=E6=8C=81radio?= =?UTF-8?q?=E9=A3=8E=E6=A0=BC=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/widget/deWidget/DeRadio.vue | 177 ++++++++++++++++++ .../components/widget/deWidget/DeSelect.vue | 8 +- .../widget/deWidget/inputStyleMixin.js | 1 + core/frontend/src/views/background/index.vue | 80 +++++++- 4 files changed, 263 insertions(+), 3 deletions(-) create mode 100644 core/frontend/src/components/widget/deWidget/DeRadio.vue diff --git a/core/frontend/src/components/widget/deWidget/DeRadio.vue b/core/frontend/src/components/widget/deWidget/DeRadio.vue new file mode 100644 index 0000000000..7e9d7262c7 --- /dev/null +++ b/core/frontend/src/components/widget/deWidget/DeRadio.vue @@ -0,0 +1,177 @@ + + + + + diff --git a/core/frontend/src/components/widget/deWidget/DeSelect.vue b/core/frontend/src/components/widget/deWidget/DeSelect.vue index 1abd0d8a25..a8688a8c9f 100644 --- a/core/frontend/src/components/widget/deWidget/DeSelect.vue +++ b/core/frontend/src/components/widget/deWidget/DeSelect.vue @@ -4,6 +4,7 @@ v-if="element.options!== null && element.options.attrs!==null && show " ref="deSelect" v-model="value" + :id="element.id" :class-id="'visual-' + element.id + '-' + inDraw + '-' + inScreen" :collapse-tags="showNumber" :clearable="(inDraw || !selectFirst)" @@ -21,6 +22,7 @@ :flag="flag" :is-config="isConfig" :custom-style="customStyle" + :radioStyle="element.style" @resetKeyWords="filterMethod" @change="changeValue" @focus="setOptionWidth" @@ -47,6 +49,7 @@