Skip to content

Commit ce09f73

Browse files
committed
chore: 优化部分代码
1 parent 0116432 commit ce09f73

File tree

55 files changed

+58
-63
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+58
-63
lines changed

src/components/Avatar/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</a-avatar>
2121
</template>
2222

23-
<script lang="ts" setup>
23+
<script setup lang="ts">
2424
import Unknown from '@/assets/images/avatar/unknown.png'
2525
import * as Regexp from '@/utils/regexp'
2626

src/components/Breadcrumb/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</a-breadcrumb>
1313
</template>
1414

15-
<script lang="ts" setup>
15+
<script setup lang="ts">
1616
import type { RouteLocationMatched } from 'vue-router'
1717
import { findTree } from 'xe-utils'
1818
import { useRouteStore } from '@/stores'

src/components/Chart/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<VCharts ref="chart" :option="option" :autoresize="autoResize" :style="{ width, height }" />
33
</template>
44

5-
<script lang="ts" setup>
5+
<script setup lang="ts">
66
import { registerMap } from 'echarts/core'
77
import VCharts from 'vue-echarts'
88
import worldMap from './world.json'

src/components/DateRangePicker/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/>
1111
</template>
1212

13-
<script lang="ts" setup>
13+
<script setup lang="ts">
1414
import type { ShortcutType } from '@arco-design/web-vue'
1515
import dayjs from 'dayjs'
1616

src/components/GenCron/CronForm/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
<script lang="ts">
121121
</script>
122122

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

src/components/GenCron/CronModel/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<script lang="ts">
3232
</script>
3333

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

src/components/GiCell/GiCellAvatar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</a-space>
2828
</template>
2929

30-
<script lang="ts" setup>
30+
<script setup lang="ts">
3131
defineOptions({ name: 'GiCellAvatar' })
3232
3333
const props = withDefaults(defineProps<Props>(), {

src/components/GiCell/GiCellGender.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</a-tag>
1313
</template>
1414

15-
<script lang="ts" setup>
15+
<script setup lang="ts">
1616
defineOptions({ name: 'GiCellGender' })
1717
1818
const props = withDefaults(defineProps<Props>(), {

src/components/GiCell/GiCellStatus.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</span>
1010
</template>
1111

12-
<script lang="ts" setup>
12+
<script setup lang="ts">
1313
defineOptions({ name: 'GiCellStatus' })
1414
1515
const props = withDefaults(defineProps<Props>(), {

src/components/GiCell/GiCellTag.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<a-tag v-else :color="dictItem.extend">{{ dictItem.label }}</a-tag>
1010
</template>
1111

12-
<script lang="ts" setup>
12+
<script setup lang="ts">
1313
import type { LabelValueState } from '@/types/global'
1414
import type { GiCellTagType } from '@/components/GiCell/type'
1515

0 commit comments

Comments
 (0)