fix: const naming (merge request !8)

Squash merge branch 'fix/eslint/constnaming' into 'develop'
fix: const naming
This commit is contained in:
pengYYYYY 2021-09-02 10:36:32 +08:00
parent 36cf70f2c9
commit b322bceefc
7 changed files with 22 additions and 23 deletions

4
globals.d.ts vendored
View File

@ -10,8 +10,8 @@ declare interface ImportMeta {
}
declare module '*.svg' {
const content: string;
export default content;
const CONTENT: string;
export default CONTENT;
}

View File

@ -1,11 +1,11 @@
export const Prefix = 'tdesign-pro';
export const Theme = 'light';
export const PREFIX = 'tdesign-pro';
export const THEME = 'light';
// 登录方式设定authenticationMethod取值有smartProxy(走智能网关内网登录,要求.oa.co../.woa.co.. 等域名,且要求域名申请接入智能网关)
// customize(自定义登录,外网域名,统一重定向到登录页面)
// export const authenticationMethod = 'smartProxy';
export const AuthenticationMethod = 'customize';
export const AUTHENTICATION_METHOD = 'customize';
export default {
Prefix,
Theme,
AuthenticationMethod,
PREFIX,
THEME,
AUTHENTICATION_METHOD,
};

View File

@ -97,7 +97,7 @@ export function getLineChartDataSet(dateTime: Array<string> = []): any {
];
}
/** 图表颜色 */
export const chartListColor: Array<string> = ['#0052D9', '#00A870', '#7D46BD', '#0594FA', '#ED7B2F'];
export const CHART_LIST_COLOR: Array<string> = ['#0052D9', '#00A870', '#7D46BD', '#0594FA', '#ED7B2F'];
/**
*
@ -190,7 +190,7 @@ export function getAreaChartDataSet(text = ''): any {
area: {
smooth: true,
},
injectOption: option => ({ ...option, color: chartListColor }),
injectOption: option => ({ ...option, color: CHART_LIST_COLOR }),
};
}
@ -220,7 +220,7 @@ export function getColumnChartDataSet(isMonth = false): any {
getRandomNum(Math.random() * 100),
],
],
injectOption: option => ({ ...option, color: chartListColor }),
injectOption: option => ({ ...option, color: CHART_LIST_COLOR }),
};
}
return {
@ -240,7 +240,7 @@ export function getColumnChartDataSet(isMonth = false): any {
getRandomNum(Math.random() * 100),
],
],
injectOption: option => ({ ...option, color: chartListColor }),
injectOption: option => ({ ...option, color: CHART_LIST_COLOR }),
};
}
@ -260,7 +260,7 @@ export function getPieChartDataSet(radius = 42): any {
['状态', '审核中', '待履行', '履行中', '已完成'],
['数量', 67, 45, radius, 36],
],
injectOption: option => ({ ...option, color: chartListColor }),
injectOption: option => ({ ...option, color: CHART_LIST_COLOR }),
pie: {
radius: ['45%', '60%'], // 设置内圆和外圆半径
},

View File

@ -173,10 +173,9 @@
@click="deleteClickOp(slotProps)"
>删除</a>
</template>
<t-icon
slot="op-column"
name="descending-order"
/>
<template #op-column>
<t-icon name="descending-order" />
</template>
</t-table>
</div>
<t-dialog
@ -184,7 +183,7 @@
header="基本信息"
@confirm="onConfirm"
>
<div slot="body">
<template #body>
<div class="dialog-info-block">
<div
v-for="(item, index) in baseInfoData"
@ -203,14 +202,14 @@
</span>
</div>
</div>
</div>
</template>
</t-dialog>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import model from './index';
import { Prefix as prefix } from '@/config/global';
import { PREFIX as prefix } from '@/config/global';
//
import './index.less';

View File

@ -64,7 +64,7 @@
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { Prefix as prefix } from '@/config/global';
import { PREFIX as prefix } from '@/config/global';
import model from './index';
import './index.less';

View File

@ -225,7 +225,7 @@
<script lang="ts">
import { defineComponent } from 'vue';
import { mapState, mapGetters } from 'vuex';
import { Prefix as prefix } from '@/config/global';
import { PREFIX as prefix } from '@/config/global';
//
import './index.less';

View File

@ -306,7 +306,7 @@
<script lang="ts">
import { defineComponent } from 'vue';
import { Prefix as prefix } from '@/config/global';
import { PREFIX as prefix } from '@/config/global';
//
import './index.less';