瀏覽代碼

perf: 规范`script setup`写法

xiaoxian521 2 年之前
父節點
當前提交
49a9259f2e

+ 1 - 1
src/layout/components/search/components/SearchFooter.vue

@@ -16,7 +16,7 @@
   </div>
 </template>
 
-<script lang="ts" setup>
+<script setup lang="ts">
 import mdiKeyboardEsc from "@/assets/svg/keyboard_esc.svg?component";
 import enterOutlined from "@/assets/svg/enter_outlined.svg?component";
 </script>

+ 1 - 1
src/layout/components/search/components/SearchModal.vue

@@ -1,4 +1,4 @@
-<script lang="ts" setup>
+<script setup lang="ts">
 import { useRouter } from "vue-router";
 import { cloneDeep } from "lodash-unified";
 import SearchResult from "./SearchResult.vue";

+ 1 - 1
src/layout/components/search/components/SearchResult.vue

@@ -1,4 +1,4 @@
-<script lang="ts" setup>
+<script setup lang="ts">
 import { computed } from "vue";
 import { useI18n } from "vue-i18n";
 import { useEpThemeStoreHook } from "@/store/modules/epTheme";

+ 1 - 1
src/layout/components/search/index.vue

@@ -1,4 +1,4 @@
-<script lang="ts" setup>
+<script setup lang="ts">
 import { SearchModal } from "./components";
 import { useBoolean } from "../../hooks/useBoolean";
 const { bool: show, toggle } = useBoolean();

+ 1 - 1
src/layout/frameView.vue

@@ -1,4 +1,4 @@
-<script lang="ts" setup>
+<script setup lang="ts">
 import { useI18n } from "vue-i18n";
 import { useRoute } from "vue-router";
 import { ref, unref, onMounted, nextTick } from "vue";

+ 1 - 1
src/views/able/execl.vue

@@ -1,4 +1,4 @@
-<script lang="ts" setup>
+<script setup lang="ts">
 import { utils, writeFile } from "xlsx";
 
 defineOptions({

+ 1 - 1
src/views/able/infinite-scroll.vue

@@ -1,4 +1,4 @@
-<script lang="ts" setup>
+<script setup lang="ts">
 import { ref } from "vue";
 import { default as vElTableInfiniteScroll } from "el-table-infinite-scroll";
 

+ 1 - 1
src/views/system/user/tree.vue

@@ -1,4 +1,4 @@
-<script lang="ts" setup>
+<script setup lang="ts">
 import type { ElTree } from "element-plus";
 import { getDeptList } from "@/api/system";
 import { handleTree } from "@pureadmin/utils";