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