chore: 优化部分代码

This commit is contained in:
2024-11-14 21:59:22 +08:00
parent 011643226c
commit ce09f737c3
55 changed files with 58 additions and 63 deletions

View File

@@ -20,7 +20,7 @@
</a-avatar>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import Unknown from '@/assets/images/avatar/unknown.png'
import * as Regexp from '@/utils/regexp'

View File

@@ -12,7 +12,7 @@
</a-breadcrumb>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import type { RouteLocationMatched } from 'vue-router'
import { findTree } from 'xe-utils'
import { useRouteStore } from '@/stores'

View File

@@ -2,7 +2,7 @@
<VCharts ref="chart" :option="option" :autoresize="autoResize" :style="{ width, height }" />
</template>
<script lang="ts" setup>
<script setup lang="ts">
import { registerMap } from 'echarts/core'
import VCharts from 'vue-echarts'
import worldMap from './world.json'

View File

@@ -10,7 +10,7 @@
/>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import type { ShortcutType } from '@arco-design/web-vue'
import dayjs from 'dayjs'

View File

@@ -120,7 +120,7 @@
<script lang="ts">
</script>
<script lang="ts" setup>
<script setup lang="ts">
import { useDebounceFn } from '@vueuse/core'
import CronParser from 'cron-parser'
import SecondForm from '@/components/GenCron/CronForm/component/second-form.vue'

View File

@@ -31,7 +31,7 @@
<script lang="ts">
</script>
<script lang="ts" setup>
<script setup lang="ts">
import { Message } from '@arco-design/web-vue'
import CronGeneratorInput from '@/components/GenCron/CronForm/index.vue'

View File

@@ -27,7 +27,7 @@
</a-space>
</template>
<script lang="ts" setup>
<script setup lang="ts">
defineOptions({ name: 'GiCellAvatar' })
const props = withDefaults(defineProps<Props>(), {

View File

@@ -12,7 +12,7 @@
</a-tag>
</template>
<script lang="ts" setup>
<script setup lang="ts">
defineOptions({ name: 'GiCellGender' })
const props = withDefaults(defineProps<Props>(), {

View File

@@ -9,7 +9,7 @@
</span>
</template>
<script lang="ts" setup>
<script setup lang="ts">
defineOptions({ name: 'GiCellStatus' })
const props = withDefaults(defineProps<Props>(), {

View File

@@ -9,7 +9,7 @@
<a-tag v-else :color="dictItem.extend">{{ dictItem.label }}</a-tag>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import type { LabelValueState } from '@/types/global'
import type { GiCellTagType } from '@/components/GiCell/type'

View File

@@ -18,7 +18,7 @@
</a-overflow-list>
</template>
<script lang="ts" setup>
<script setup lang="ts">
defineOptions({ name: 'GiCellTags' })
withDefaults(defineProps<Props>(), {

View File

@@ -9,7 +9,7 @@
/>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import CodeMirror from 'vue-codemirror6'
import { javascript } from '@codemirror/lang-javascript'
import { vue } from '@codemirror/lang-vue'

View File

@@ -2,7 +2,7 @@
<div class="gi-footer">{{ appStore.getCopyright() }}{{ appStore.getForRecord() ? ` · ${appStore.getForRecord()}` : '' }}</div>
</template>
<script lang="ts" setup>
<script setup lang="ts">
import { useAppStore } from '@/stores'
defineOptions({ name: 'GiFooter' })

View File

@@ -18,7 +18,7 @@
</a-overflow-list>
</template>
<script lang="ts" setup>
<script setup lang="ts">
defineOptions({ name: 'GiOverFlowTags' })
withDefaults(defineProps<Props>(), {

View File

@@ -893,6 +893,6 @@
</svg>
</template>
<script lang="ts" setup></script>
<script setup lang="ts"></script>
<style lang="scss" scoped></style>

View File

@@ -500,6 +500,6 @@
</svg>
</template>
<script lang="ts" setup></script>
<script setup lang="ts"></script>
<style lang="scss" scoped></style>

View File

@@ -1333,6 +1333,6 @@
</svg>
</template>
<script lang="ts" setup></script>
<script setup lang="ts"></script>
<style lang="scss" scoped></style>

View File

@@ -10,6 +10,6 @@
</svg>
</template>
<script lang="ts" setup></script>
<script setup lang="ts"></script>
<style lang="scss" scoped></style>

View File

@@ -6,6 +6,6 @@
</svg>
</template>
<script lang="ts" setup></script>
<script setup lang="ts"></script>
<style lang="scss" scoped></style>

View File

@@ -16,6 +16,6 @@
</svg>
</template>
<script lang="ts" setup></script>
<script setup lang="ts"></script>
<style lang="scss" scoped></style>

View File

@@ -15,6 +15,6 @@
</svg>
</template>
<script lang="ts" setup></script>
<script setup lang="ts"></script>
<style lang="scss" scoped></style>