refactor(projects): 抽离格式化相关依赖配置

This commit is contained in:
Soybean
2022-08-10 21:31:59 +08:00
parent 16dce9a4ce
commit f4d37cf7f0
78 changed files with 324 additions and 437 deletions

View File

@ -8,7 +8,7 @@
</template>
<script setup lang="ts">
import { ProjectIntroduction, ProjectInfo, ProDependency, DevDependency } from './components';
import { DevDependency, ProDependency, ProjectInfo, ProjectIntroduction } from './components';
</script>
<style scoped></style>

View File

@ -15,7 +15,7 @@
</template>
<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { onMounted, ref } from 'vue';
import type { DataTableColumn } from 'naive-ui';
import { useLoadingEmpty } from '@/hooks';
import { getRandomInteger } from '@/utils';

View File

@ -32,7 +32,7 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useEcharts, type ECOption } from '@/composables';
import { type ECOption, useEcharts } from '@/composables';
defineOptions({ name: 'DashboardAnalysisTopCard' });

View File

@ -7,7 +7,7 @@
</template>
<script lang="ts" setup>
import { TopChart, DataCard, BottomPart } from './components';
import { BottomPart, DataCard, TopChart } from './components';
</script>
<style scoped></style>

View File

@ -45,7 +45,7 @@
</template>
<script setup lang="ts">
import { TechnologyCard, ShortcutsCard } from './components';
import { ShortcutsCard, TechnologyCard } from './components';
defineOptions({ name: 'DashboardWorkbenchMain' });

View File

@ -29,7 +29,7 @@
</template>
<script setup lang="ts">
import { reactive, computed, watch } from 'vue';
import { computed, reactive, watch } from 'vue';
defineOptions({ name: 'TableActionModal' });

View File

@ -26,11 +26,11 @@
</template>
<script setup lang="tsx">
import { ref, reactive } from 'vue';
import { NSwitch, NTag, NSpace, NPopconfirm, NButton } from 'naive-ui';
import { reactive, ref } from 'vue';
import { NButton, NPopconfirm, NSpace, NSwitch, NTag } from 'naive-ui';
import type { DataTableColumns, PaginationProps } from 'naive-ui';
import { fetchUserManagementList } from '@/service';
import { useLoading, useBoolean } from '@/hooks';
import { useBoolean, useLoading } from '@/hooks';
import { TableActionModal } from './components';
const { loading, startLoading, endLoading } = useLoading(false);

View File

@ -22,7 +22,7 @@
</template>
<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { onMounted, ref } from 'vue';
import DataSet from '@antv/data-set';
import { Chart } from '@antv/g2';

View File

@ -25,9 +25,9 @@
</template>
<script setup lang="ts">
import { ref, onUnmounted } from 'vue';
import { onUnmounted, ref } from 'vue';
import { graphic } from 'echarts';
import { useEcharts, type ECOption } from '@/composables';
import { type ECOption, useEcharts } from '@/composables';
const pieOptions = ref<ECOption>({
legend: {},

View File

@ -10,7 +10,7 @@
</template>
<script setup lang="ts">
import { ref, watch, onMounted, onUnmounted } from 'vue';
import { onMounted, onUnmounted, ref, watch } from 'vue';
import Vditor from 'vditor';
import 'vditor/dist/index.css';
import { useThemeStore } from '@/store';

View File

@ -10,7 +10,7 @@
</template>
<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { onMounted, ref } from 'vue';
import WangEditor from 'wangeditor';
const editor = ref<WangEditor>();

View File

@ -3,7 +3,7 @@
</template>
<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { onMounted, ref } from 'vue';
import { useScriptTag } from '@vueuse/core';
import { BAIDU_MAP_SDK_URL } from '@/config';

View File

@ -3,7 +3,7 @@
</template>
<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { onMounted, ref } from 'vue';
import { useScriptTag } from '@vueuse/core';
import { GAODE_MAP_SDK_URL } from '@/config';

View File

@ -3,7 +3,7 @@
</template>
<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { onMounted, ref } from 'vue';
import { useScriptTag } from '@vueuse/core';
import { TENCENT_MAP_SDK_URL } from '@/config';

View File

@ -12,7 +12,7 @@
<script setup lang="ts">
import type { Component } from 'vue';
import { GaodeMap, TencentMap, BaiduMap } from './components';
import { BaiduMap, GaodeMap, TencentMap } from './components';
interface Map {
id: string;

View File

@ -7,7 +7,7 @@
</template>
<script setup lang="ts">
import { ref, onMounted, onUnmounted } from 'vue';
import { onMounted, onUnmounted, ref } from 'vue';
import Player from 'xgplayer';
const domRef = ref<HTMLElement>();

View File

@ -12,7 +12,7 @@
<script lang="ts" setup>
import { computed } from 'vue';
import { getColorPalette } from '@/utils';
import { CornerTop, CornerBottom } from './components';
import { CornerBottom, CornerTop } from './components';
interface Props {
/** 主题颜色 */

View File

@ -34,7 +34,7 @@ import { EnumLoginModule } from '@/enum';
import { useThemeStore } from '@/store';
import { useAppInfo } from '@/composables';
import { getColorPalette, mixColor } from '@/utils';
import { LoginBg, PwdLogin, CodeLogin, Register, ResetPwd, BindWechat } from './components';
import { BindWechat, CodeLogin, LoginBg, PwdLogin, Register, ResetPwd } from './components';
interface Props {
/** 登录模块分类 */