Skip to content

Commit

Permalink
fix(配置): 添加静态配置
Browse files Browse the repository at this point in the history
  • Loading branch information
白唯 committed Dec 2, 2020
1 parent 51987b2 commit 5c6cca5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/api/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ class TeamService {
const path = list.map(item => item.id).join(',')
console.log('deletepath', path)
return Axios(`/bus/teamMember/${path}`, {
method: 'delete',
params: {
teamId: Store.state.console.selectedTeam.id
}
method: 'delete'
})
}

Expand Down
1 change: 1 addition & 0 deletions src/config/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const AppConfig = {
$message: message
}
const StaticConfig = {
MaxPageSize: 1000,
IconfontURL: '//at.alicdn.com/t/font_2092412_rr3rb5vksd8.js'
}
export { AppConfig, StaticConfig }
22 changes: 22 additions & 0 deletions src/config/color.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* 所有的颜色静态配置,与 styles/antd.less 一致 */
const Color = {
antd: {
primary: '#00a971', // 全局主色
link: '#00a971', // 链接色
success: '#52c41a', // 成功色
warning: '#faad14', // 警告色
error: '#f5222d', // 错误色
fontSizeBase: '14px', // 主字号
headingColor: 'rgba(0, 0, 0, 0.85)', // 标题色
textColor: 'rgba(0, 0, 0, 0.65)', // 主文本色
textColorSecondary: 'rgba(0, 0, 0, 0.45)', // 次文本色
disabledColor: 'rgba(0, 0, 0, 0.25)', // 失效色
borderRadiusBase: '2px', // 组件/浮层圆角
borderColorBase: '#d9d9d9', // 边框色
boxShadowBase: '0 2px 8px rgba(0, 0, 0, 0.15);' //
}
}

type ColorType = typeof Color

export { Color, ColorType }

0 comments on commit 5c6cca5

Please sign in to comment.