From 44a5e2dc4b96e46fc73694bd59d3d27317643d00 Mon Sep 17 00:00:00 2001
From: tnt group <dodu@live.cn>
Date: Mon, 26 Sep 2022 17:12:16 +0800
Subject: [PATCH] =?UTF-8?q?perf:=20=E5=BC=BA=E5=8C=96chartConfig=E7=B1=BB?=
 =?UTF-8?q?=E5=9E=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../components/Decorates/Mores/Clock/index.vue  | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/src/packages/components/Decorates/Mores/Clock/index.vue b/src/packages/components/Decorates/Mores/Clock/index.vue
index a63bd3f5..e37f1b2c 100644
--- a/src/packages/components/Decorates/Mores/Clock/index.vue
+++ b/src/packages/components/Decorates/Mores/Clock/index.vue
@@ -68,34 +68,21 @@
 <script setup lang="ts">
 import { PropType, toRefs } from 'vue'
 import { CreateComponentType } from '@/packages/index.d'
+import { option } from './config'
 
 const props = defineProps({
   chartConfig: {
-    type: Object as PropType<CreateComponentType>,
+    type: Object as PropType<CreateComponentType & typeof option>,
     required: true
   }
 })
 
 let { border, color, bgColor, borderColor } = toRefs(props.chartConfig.option)
 
-// const border = ref(10)
-// const bgColor = ref('#20b7af')
-
 const date = new Date()
 const hoursAngle = (360 * date.getHours()) / 12 + date.getMinutes() / 2
 const minuteAngle = (360 * date.getMinutes()) / 60
 const secAngle = (360 * date.getSeconds()) / 60
-
-// watch(
-//   () => props.chartConfig.option,
-//   () => {
-//     option.dataset = props.chartConfig.option.dataset
-//   },
-//   {
-//     immediate: true,
-//     deep: true
-//   }
-// )
 </script>
 
 <style lang="scss" scoped>