mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 07:48:22 +08:00
fix: const naming (merge request !8)
Squash merge branch 'fix/eslint/constnaming' into 'develop' fix: const naming
This commit is contained in:
parent
36cf70f2c9
commit
b322bceefc
4
globals.d.ts
vendored
4
globals.d.ts
vendored
|
@ -10,8 +10,8 @@ declare interface ImportMeta {
|
|||
}
|
||||
|
||||
declare module '*.svg' {
|
||||
const content: string;
|
||||
export default content;
|
||||
const CONTENT: string;
|
||||
export default CONTENT;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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%'], // 设置内圆和外圆半径
|
||||
},
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user