mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-22 22:36:32 +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' {
|
declare module '*.svg' {
|
||||||
const content: string;
|
const CONTENT: string;
|
||||||
export default content;
|
export default CONTENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
export const Prefix = 'tdesign-pro';
|
export const PREFIX = 'tdesign-pro';
|
||||||
export const Theme = 'light';
|
export const THEME = 'light';
|
||||||
// 登录方式设定,authenticationMethod取值有:smartProxy(走智能网关内网登录,要求.oa.co../.woa.co.. 等域名,且要求域名申请接入智能网关)
|
// 登录方式设定,authenticationMethod取值有:smartProxy(走智能网关内网登录,要求.oa.co../.woa.co.. 等域名,且要求域名申请接入智能网关)
|
||||||
// customize(自定义登录,外网域名,统一重定向到登录页面)
|
// customize(自定义登录,外网域名,统一重定向到登录页面)
|
||||||
// export const authenticationMethod = 'smartProxy';
|
// export const authenticationMethod = 'smartProxy';
|
||||||
export const AuthenticationMethod = 'customize';
|
export const AUTHENTICATION_METHOD = 'customize';
|
||||||
export default {
|
export default {
|
||||||
Prefix,
|
PREFIX,
|
||||||
Theme,
|
THEME,
|
||||||
AuthenticationMethod,
|
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: {
|
area: {
|
||||||
smooth: true,
|
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),
|
getRandomNum(Math.random() * 100),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
injectOption: option => ({ ...option, color: chartListColor }),
|
injectOption: option => ({ ...option, color: CHART_LIST_COLOR }),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
@ -240,7 +240,7 @@ export function getColumnChartDataSet(isMonth = false): any {
|
||||||
getRandomNum(Math.random() * 100),
|
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],
|
['数量', 67, 45, radius, 36],
|
||||||
],
|
],
|
||||||
injectOption: option => ({ ...option, color: chartListColor }),
|
injectOption: option => ({ ...option, color: CHART_LIST_COLOR }),
|
||||||
pie: {
|
pie: {
|
||||||
radius: ['45%', '60%'], // 设置内圆和外圆半径
|
radius: ['45%', '60%'], // 设置内圆和外圆半径
|
||||||
},
|
},
|
||||||
|
|
|
@ -173,10 +173,9 @@
|
||||||
@click="deleteClickOp(slotProps)"
|
@click="deleteClickOp(slotProps)"
|
||||||
>删除</a>
|
>删除</a>
|
||||||
</template>
|
</template>
|
||||||
<t-icon
|
<template #op-column>
|
||||||
slot="op-column"
|
<t-icon name="descending-order" />
|
||||||
name="descending-order"
|
</template>
|
||||||
/>
|
|
||||||
</t-table>
|
</t-table>
|
||||||
</div>
|
</div>
|
||||||
<t-dialog
|
<t-dialog
|
||||||
|
@ -184,7 +183,7 @@
|
||||||
header="基本信息"
|
header="基本信息"
|
||||||
@confirm="onConfirm"
|
@confirm="onConfirm"
|
||||||
>
|
>
|
||||||
<div slot="body">
|
<template #body>
|
||||||
<div class="dialog-info-block">
|
<div class="dialog-info-block">
|
||||||
<div
|
<div
|
||||||
v-for="(item, index) in baseInfoData"
|
v-for="(item, index) in baseInfoData"
|
||||||
|
@ -203,14 +202,14 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</template>
|
||||||
</t-dialog>
|
</t-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import model from './index';
|
import model from './index';
|
||||||
import { Prefix as prefix } from '@/config/global';
|
import { PREFIX as prefix } from '@/config/global';
|
||||||
|
|
||||||
// 导入样式
|
// 导入样式
|
||||||
import './index.less';
|
import './index.less';
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { Prefix as prefix } from '@/config/global';
|
import { PREFIX as prefix } from '@/config/global';
|
||||||
import model from './index';
|
import model from './index';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
|
|
||||||
|
|
|
@ -225,7 +225,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { mapState, mapGetters } from 'vuex';
|
import { mapState, mapGetters } from 'vuex';
|
||||||
import { Prefix as prefix } from '@/config/global';
|
import { PREFIX as prefix } from '@/config/global';
|
||||||
|
|
||||||
// 导入样式
|
// 导入样式
|
||||||
import './index.less';
|
import './index.less';
|
||||||
|
|
|
@ -306,7 +306,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { Prefix as prefix } from '@/config/global';
|
import { PREFIX as prefix } from '@/config/global';
|
||||||
// 导入样式
|
// 导入样式
|
||||||
import './index.less';
|
import './index.less';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user