Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/pages/dashboard/base/components/OutputOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@
</t-card>
</template>

<script lang="ts">
export default {
name: 'DashboardBase',
};
</script>

<script setup lang="ts">
import { useWindowSize } from '@vueuse/core';
import { LineChart } from 'echarts/charts';
Expand All @@ -86,6 +80,10 @@ import { LAST_7_DAYS } from '@/utils/date';

import { constructInitDataset } from '../index';

defineOptions({
name: 'DashboardBase',
});

echarts.use([TooltipComponent, LegendComponent, GridComponent, LineChart, CanvasRenderer]);

const store = useSettingStore();
Expand Down
10 changes: 4 additions & 6 deletions src/pages/dashboard/base/components/TopPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@
</t-row>
</template>

<script lang="ts">
export default {
name: 'DashboardBase',
};
</script>

<script setup lang="ts">
import { useWindowSize } from '@vueuse/core';
import { BarChart, LineChart } from 'echarts/charts';
Expand All @@ -70,6 +64,10 @@ import { changeChartsTheme } from '@/utils/color';

import { constructInitDashboardDataset } from '../index';

defineOptions({
name: 'DashboardBase',
});

echarts.use([LineChart, BarChart, CanvasRenderer]);

const store = useSettingStore();
Expand Down
10 changes: 4 additions & 6 deletions src/pages/dashboard/base/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,15 @@
</div>
</template>

<script lang="ts">
export default {
name: 'DashboardBase',
};
</script>

<script setup lang="ts">
import MiddleChart from './components/MiddleChart.vue';
import OutputOverview from './components/OutputOverview.vue';
import RankList from './components/RankList.vue';
import TopPanel from './components/TopPanel.vue';

defineOptions({
name: 'DashboardBase',
});
</script>

<style scoped>
Expand Down
9 changes: 3 additions & 6 deletions src/pages/dashboard/detail/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@
</div>
</template>

<script lang="ts">
export default {
name: 'DashboardDetail',
};
</script>

<script setup lang="ts">
import { useWindowSize } from '@vueuse/core';
import { LineChart, ScatterChart } from 'echarts/charts';
Expand All @@ -86,6 +80,9 @@ import { LAST_7_DAYS } from '@/utils/date';
import { PANE_LIST_DATA, PRODUCT_LIST } from './constants';
import { getFolderLineDataSet, getScatterDataSet } from './index';

defineOptions({
name: 'DashboardDetail',
});
echarts.use([GridComponent, LegendComponent, TooltipComponent, LineChart, ScatterChart, CanvasRenderer]);

const store = useSettingStore();
Expand Down
10 changes: 4 additions & 6 deletions src/pages/detail/advanced/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,6 @@
</div>
</template>

<script lang="ts">
export default {
name: 'DetailAdvanced',
};
</script>

<script setup lang="ts">
import { onMounted, ref } from 'vue';

Expand All @@ -146,6 +140,10 @@ import { t } from '@/locales';
import Product from './components/Product.vue';
import { BASE_INFO_DATA, PRODUCT_LIST } from './constants';

defineOptions({
name: 'DetailAdvanced',
});

const columns = [
{
width: 280,
Expand Down
10 changes: 4 additions & 6 deletions src/pages/detail/base/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,13 @@
</div>
</template>

<script lang="ts">
export default {
name: 'DetailBase',
};
</script>

<script setup lang="ts">
import { t } from '@/locales';

defineOptions({
name: 'DetailBase',
});

const BASE_INFO_DATA = [
{
name: t('constants.contract.name'),
Expand Down
10 changes: 4 additions & 6 deletions src/pages/detail/deploy/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@
</div>
</template>

<script lang="ts">
export default {
name: 'DetailDeploy',
};
</script>

<script setup lang="ts">
import { BarChart, LineChart } from 'echarts/charts';
import { GridComponent, LegendComponent, TitleComponent, ToolboxComponent, TooltipComponent } from 'echarts/components';
Expand All @@ -95,6 +89,10 @@ import { changeChartsTheme } from '@/utils/color';
import { BASE_INFO_DATA } from './constants';
import { get2ColBarChartDataSet, getSmoothLineDataSet } from './index';

defineOptions({
name: 'DetailDeploy',
});

const columns = [
{
width: '280',
Expand Down
10 changes: 4 additions & 6 deletions src/pages/detail/secondary/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@
</div>
</template>

<script lang="ts">
export default {
name: 'DetailSecondary',
};
</script>

<script setup lang="ts">
import { storeToRefs } from 'pinia';
import { computed, ref } from 'vue';
Expand All @@ -66,6 +60,10 @@ import { t } from '@/locales';
import { useNotificationStore } from '@/store';
import type { NotificationItem } from '@/types/interface';

defineOptions({
name: 'DetailSecondary',
});

const TAB_LIST = [
{
label: t('pages.detailSecondary.all'),
Expand Down
10 changes: 4 additions & 6 deletions src/pages/form/base/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,6 @@
</t-form>
</template>

<script lang="ts">
export default {
name: 'FormBase',
};
</script>

<script setup lang="ts">
import type { SubmitContext, UploadFailContext, UploadFile } from 'tdesign-vue-next';
import { MessagePlugin } from 'tdesign-vue-next';
Expand All @@ -172,6 +166,10 @@ import { t } from '@/locales';

import { FORM_RULES, INITIAL_DATA, PARTY_A_OPTIONS, PARTY_B_OPTIONS, TYPE_OPTIONS } from './constants';

defineOptions({
name: 'FormBase',
});

const formData = ref({ ...INITIAL_DATA });

const onReset = () => {
Expand Down
10 changes: 4 additions & 6 deletions src/pages/form/step/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,6 @@
</div>
</template>

<script lang="ts">
export default {
name: 'FormStep',
};
</script>

<script setup lang="ts">
import { SubmitContext } from 'tdesign-vue-next';
import { computed, ref } from 'vue';
Expand All @@ -189,6 +183,10 @@ import {
TYPE_OPTIONS,
} from './constants';

defineOptions({
name: 'FormStep',
});

const formData1 = ref({ ...INITIAL_DATA1 });
const formData2 = ref({ ...INITIAL_DATA2 });
const formData3 = ref({ ...INITIAL_DATA3 });
Expand Down
10 changes: 4 additions & 6 deletions src/pages/list/base/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@
</div>
</template>

<script lang="ts">
export default {
name: 'ListBase',
};
</script>

<script setup lang="ts">
import { SearchIcon } from 'tdesign-icons-vue-next';
import { MessagePlugin, PrimaryTableCol, TableRowData } from 'tdesign-vue-next';
Expand All @@ -104,6 +98,10 @@ import { CONTRACT_PAYMENT_TYPES, CONTRACT_STATUS, CONTRACT_TYPES } from '@/const
import { t } from '@/locales';
import { useSettingStore } from '@/store';

defineOptions({
name: 'ListBase',
});

const store = useSettingStore();

const COLUMNS: PrimaryTableCol<TableRowData>[] = [
Expand Down
10 changes: 4 additions & 6 deletions src/pages/list/card/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@
</div>
</template>

<script lang="ts">
export default {
name: 'ListCard',
};
</script>

<script setup lang="ts">
import { SearchIcon } from 'tdesign-icons-vue-next';
import { MessagePlugin } from 'tdesign-vue-next';
Expand All @@ -80,6 +74,10 @@ import { t } from '@/locales';
import type { FormData } from './components/DialogForm.vue';
import DialogForm from './components/DialogForm.vue';

defineOptions({
name: 'ListCard',
});

const INITIAL_DATA: FormData = {
name: '',
status: '',
Expand Down
10 changes: 5 additions & 5 deletions src/pages/list/filter/index.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template>
<common-table />
</template>
<script lang="ts">
export default {
name: 'ListFilter',
};
</script>

<script setup lang="ts">
import CommonTable from '@/components/common-table/index.vue';

defineOptions({
name: 'ListFilter',
});
</script>
10 changes: 4 additions & 6 deletions src/pages/list/tree/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
</div>
</template>

<script lang="ts">
export default {
name: 'ListTree',
};
</script>

<script setup lang="ts">
import { SearchIcon } from 'tdesign-icons-vue-next';
import type { TreeNodeModel } from 'tdesign-vue-next';
Expand All @@ -32,6 +26,10 @@ import { t } from '@/locales';

import { TREE_DATA } from './constants';

defineOptions({
name: 'ListTree',
});

const filterByText = ref();
const filterText = ref();

Expand Down
9 changes: 4 additions & 5 deletions src/pages/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@
<footer class="copyright">Copyright @ 2021-2023 Tencent. All Rights Reserved</footer>
</div>
</template>
<script lang="ts">
export default {
name: 'LoginIndex',
};
</script>

<script setup lang="ts">
import { ref } from 'vue';

Expand All @@ -37,6 +33,9 @@ import LoginHeader from './components/Header.vue';
import Login from './components/Login.vue';
import Register from './components/Register.vue';

defineOptions({
name: 'LoginIndex',
});
const type = ref('login');
const switchType = (val: string) => {
type.value = val;
Expand Down
10 changes: 5 additions & 5 deletions src/pages/result/403/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<t-button @click="() => $router.push('/')">{{ t('pages.result.403.back') }}</t-button>
</result>
</template>
<script lang="ts">
export default {
name: 'Result403',
};
</script>

<script setup lang="ts">
import Result from '@/components/result/index.vue';
import { t } from '@/locales';

defineOptions({
name: 'Result403',
});
</script>
10 changes: 4 additions & 6 deletions src/pages/result/404/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
</result>
</template>

<script lang="ts">
export default {
name: 'Result404',
};
</script>

<script setup lang="ts">
import Result from '@/components/result/index.vue';
import { t } from '@/locales';

defineOptions({
name: 'Result404',
});
</script>
10 changes: 5 additions & 5 deletions src/pages/result/500/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<t-button @click="() => $router.push('/')">{{ t('pages.result.500.back') }}</t-button>
</result>
</template>
<script lang="ts">
export default {
name: 'Result500',
};
</script>

<script setup lang="ts">
import Result from '@/components/result/index.vue';
import { t } from '@/locales';

defineOptions({
name: 'Result500',
});
</script>
Loading