Skip to content

Commit b23b538

Browse files
authored
Merge pull request #111 from codingapi/dev
fix version
2 parents c8d03c0 + c161a37 commit b23b538

File tree

6 files changed

+28
-26
lines changed

6 files changed

+28
-26
lines changed

admin-ui/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"@ant-design/icons": "^5.4.0",
77
"@ant-design/pro-components": "^2.8.7",
88
"@babel/standalone": "^7.25.6",
9-
"@codingapi/flow-pc": "^0.0.37",
10-
"@codingapi/form-pc": "^0.0.37",
11-
"@codingapi/ui-framework": "^0.0.37",
9+
"@codingapi/flow-pc": "^0.0.38",
10+
"@codingapi/form-pc": "^0.0.38",
11+
"@codingapi/ui-framework": "^0.0.38",
1212
"@dnd-kit/core": "^6.2.0",
1313
"@dnd-kit/sortable": "^9.0.0",
1414
"@handsontable/react-wrapper": "^15.0.0",

admin-ui/src/config/theme.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
import {ThemeConfig} from "antd";
2-
3-
export const theme = {
4-
token: {
5-
colorPrimary: '#4a79d8',
6-
}
7-
} as ThemeConfig;
8-
91

102
export const config = {
11-
// 主题配置
12-
theme: theme,
133
// 后台名称
144
title: 'Admin UI',
155
// 后台logo

admin-ui/src/index.tsx

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,34 @@ import {Provider} from "react-redux";
66
import store from "@/store/Redux";
77
import {ConfigProvider} from "antd";
88
import zhCN from 'antd/es/locale/zh_CN';
9-
import {theme} from "@/config/theme";
109
import '@/styles/index.scss';
1110
import "@/config/register.component";
11+
import {CSSUtils, ThemeConfig, ThemeProvider} from "@codingapi/ui-framework";
1212

1313
const root = ReactDOM.createRoot(
1414
document.getElementById('root') as HTMLElement
1515
);
1616

17+
export const theme = {
18+
token: {
19+
colorPrimary: CSSUtils.getRootVariable('--primary-color'),
20+
contentFontSize: CSSUtils.getRootVariable('--content-font-size'),
21+
}
22+
} as ThemeConfig;
23+
24+
1725
root.render(
1826
<React.StrictMode>
19-
<Provider store={store}>
20-
27+
<ThemeProvider theme={theme}>
2128
<ConfigProvider
2229
locale={zhCN}
23-
theme={{
24-
...theme
25-
}}
30+
theme={theme}
2631
>
27-
<RoutesProvider/>
32+
<Provider store={store}>
33+
<RoutesProvider/>
34+
</Provider>
2835
</ConfigProvider>
29-
</Provider>
36+
</ThemeProvider>
3037
</React.StrictMode>
3138
);
3239

admin-ui/src/styles/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:root {
2-
--primary-color: #4a79d8;
2+
--primary-color: #094edc;
33
--body-background-color: #fdfdfd;
44

55
--content-font-size-large: 24px;

mobile-ui/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"private": true,
55
"dependencies": {
66
"@babel/standalone": "^7.25.6",
7-
"@codingapi/flow-mobile": "^0.0.37",
8-
"@codingapi/form-mobile": "^0.0.37",
9-
"@codingapi/ui-framework": "^0.0.37",
7+
"@codingapi/flow-mobile": "^0.0.38",
8+
"@codingapi/form-mobile": "^0.0.38",
9+
"@codingapi/ui-framework": "^0.0.38",
1010
"@logicflow/core": "^2.0.10",
1111
"@logicflow/extension": "^2.0.14",
1212
"@reduxjs/toolkit": "^2.2.7",

mobile-ui/src/styles/index.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:root {
2-
--primary-color: #4a79d8;
2+
--primary-color: #0f58ea;
33
--body-background-color: #e6e7ea;
44

55
--content-font-size-large: 24px;
@@ -10,6 +10,11 @@
1010
}
1111

1212

13+
:root:root{
14+
--adm-color-primary: var(--primary-color);
15+
}
16+
17+
1318
body {
1419
margin: 0;
1520
padding: 0;

0 commit comments

Comments
 (0)