Commit 2a30762eece812dbb60169d2390058fe42ccca40

Authored by xp.Huang
2 parents 51df2cd7 9ba1249a

Merge branch 'perf/sfc-complier' into 'main_dev'

perf: 优化开发环境编译时报错

See merge request yunteng/thingskit-front!1494
@@ -70,7 +70,7 @@ @@ -70,7 +70,7 @@
70 70
71 <style lang="less" scoped> 71 <style lang="less" scoped>
72 .form-input { 72 .form-input {
73 - :deep .ant-input-number { 73 + :deep(.ant-input-number) {
74 width: 29% !important; 74 width: 29% !important;
75 } 75 }
76 } 76 }
@@ -177,7 +177,7 @@ @@ -177,7 +177,7 @@
177 class="p-2 bg-gray-200 flex flex-col" 177 class="p-2 bg-gray-200 flex flex-col"
178 :style="{ height: getHeight }" 178 :style="{ height: getHeight }"
179 > 179 >
180 - <head class="flex justify-between h-8 items-center"> 180 + <header class="flex justify-between h-8 items-center">
181 <div class="font-bold"> 181 <div class="font-bold">
182 <span>function</span> 182 <span>function</span>
183 <span class="ml-1">{{ functionName }}</span> 183 <span class="ml-1">{{ functionName }}</span>
@@ -203,7 +203,7 @@ @@ -203,7 +203,7 @@
203 </Tooltip> 203 </Tooltip>
204 <slot name="afterFullScreen"></slot> 204 <slot name="afterFullScreen"></slot>
205 </div> 205 </div>
206 - </head> 206 + </header>
207 <main ref="javaScriptEditorElRef" class="flex-auto"> </main> 207 <main ref="javaScriptEditorElRef" class="flex-auto"> </main>
208 <footer class="font-bold">}</footer> 208 <footer class="font-bold">}</footer>
209 </section> 209 </section>
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 <div ref="chartRef" :style="{ height, width }"></div> 3 <div ref="chartRef" :style="{ height, width }"></div>
4 </template> 4 </template>
5 <script lang="ts" setup> 5 <script lang="ts" setup>
6 - import { ref, Ref, withDefaults, onMounted, watch } from 'vue'; 6 + import { ref, Ref, onMounted, watch } from 'vue';
7 import { useECharts } from '/@/hooks/web/useECharts'; 7 import { useECharts } from '/@/hooks/web/useECharts';
8 import { getTrendData } from '/@/api/dashboard'; 8 import { getTrendData } from '/@/api/dashboard';
9 import { t } from '/@/hooks/web/useI18n'; 9 import { t } from '/@/hooks/web/useI18n';
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 </div> 5 </div>
6 </template> 6 </template>
7 <script lang="ts" setup> 7 <script lang="ts" setup>
8 - import { onMounted, ref, Ref, withDefaults, watch } from 'vue'; 8 + import { onMounted, ref, Ref, watch } from 'vue';
9 import { useECharts } from '/@/hooks/web/useECharts'; 9 import { useECharts } from '/@/hooks/web/useECharts';
10 import { Empty } from 'ant-design-vue'; 10 import { Empty } from 'ant-design-vue';
11 import { useI18n } from '/@/hooks/web/useI18n'; 11 import { useI18n } from '/@/hooks/web/useI18n';
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 </div> 5 </div>
6 </template> 6 </template>
7 <script lang="ts" setup> 7 <script lang="ts" setup>
8 - import { ref, Ref, watch, withDefaults, onMounted } from 'vue'; 8 + import { ref, Ref, watch, onMounted } from 'vue';
9 import { useECharts } from '/@/hooks/web/useECharts'; 9 import { useECharts } from '/@/hooks/web/useECharts';
10 import { Empty } from 'ant-design-vue'; 10 import { Empty } from 'ant-design-vue';
11 import { useI18n } from '/@/hooks/web/useI18n'; 11 import { useI18n } from '/@/hooks/web/useI18n';
@@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
23 } 23 }
24 24
25 .device-icon-style { 25 .device-icon-style {
26 - :deep .ant-upload-select-picture-card { 26 + :deep(.ant-upload-select-picture-card) {
27 display: inherit; 27 display: inherit;
28 float: none; 28 float: none;
29 width: 4.9vw; 29 width: 4.9vw;
@@ -84,11 +84,9 @@ @@ -84,11 +84,9 @@
84 84
85 <style lang="less" scoped> 85 <style lang="less" scoped>
86 .tcp-configuration-form { 86 .tcp-configuration-form {
87 - :deep {  
88 - .ant-input-number {  
89 - min-width: initial;  
90 - width: 100%;  
91 - } 87 + :deep(.ant-input-number) {
  88 + min-width: initial;
  89 + width: 100%;
92 } 90 }
93 } 91 }
94 </style> 92 </style>
@@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
41 </script> 41 </script>
42 <style lang="less" scoped> 42 <style lang="less" scoped>
43 .tenant-class { 43 .tenant-class {
44 - :deep .ant-input-number { 44 + :deep(.ant-input-number) {
45 width: 95% !important; 45 width: 95% !important;
46 } 46 }
47 } 47 }
@@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
41 </script> 41 </script>
42 <style lang="less" scoped> 42 <style lang="less" scoped>
43 .tenant-class { 43 .tenant-class {
44 - :deep .ant-input-number { 44 + :deep(.ant-input-number) {
45 width: 95% !important; 45 width: 95% !important;
46 } 46 }
47 } 47 }
@@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
41 </script> 41 </script>
42 <style lang="less" scoped> 42 <style lang="less" scoped>
43 .tenant-class { 43 .tenant-class {
44 - :deep .ant-input-number { 44 + :deep(.ant-input-number) {
45 width: 95% !important; 45 width: 95% !important;
46 } 46 }
47 } 47 }
@@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
41 </script> 41 </script>
42 <style lang="less" scoped> 42 <style lang="less" scoped>
43 .tenant-class { 43 .tenant-class {
44 - :deep .ant-input-number { 44 + :deep(.ant-input-number) {
45 width: 95% !important; 45 width: 95% !important;
46 } 46 }
47 } 47 }
@@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
41 </script> 41 </script>
42 <style lang="less" scoped> 42 <style lang="less" scoped>
43 .tenant-class { 43 .tenant-class {
44 - :deep .ant-input-number { 44 + :deep(.ant-input-number) {
45 width: 95% !important; 45 width: 95% !important;
46 } 46 }
47 } 47 }
@@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
41 </script> 41 </script>
42 <style lang="less" scoped> 42 <style lang="less" scoped>
43 .tenant-class { 43 .tenant-class {
44 - :deep .ant-input-number { 44 + :deep(.ant-input-number) {
45 width: 95% !important; 45 width: 95% !important;
46 } 46 }
47 } 47 }
@@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
41 </script> 41 </script>
42 <style lang="less" scoped> 42 <style lang="less" scoped>
43 .tenant-class { 43 .tenant-class {
44 - :deep .ant-input-number { 44 + :deep(.ant-input-number) {
45 width: 95% !important; 45 width: 95% !important;
46 } 46 }
47 } 47 }
@@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
47 </script> 47 </script>
48 <style lang="less" scoped> 48 <style lang="less" scoped>
49 .tenant-class { 49 .tenant-class {
50 - :deep .ant-input-number { 50 + :deep(.ant-input-number) {
51 width: 95% !important; 51 width: 95% !important;
52 } 52 }
53 } 53 }
@@ -558,7 +558,7 @@ @@ -558,7 +558,7 @@
558 .drawer-class { 558 .drawer-class {
559 .ant-row { 559 .ant-row {
560 .ant-col { 560 .ant-col {
561 - :deep .ant-input-number { 561 + :deep(.ant-input-number) {
562 width: 34vw !important; 562 width: 34vw !important;
563 } 563 }
564 } 564 }