Skip to content

fix style #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions admin-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"@ant-design/icons": "^5.4.0",
"@ant-design/pro-components": "^2.8.7",
"@babel/standalone": "^7.25.6",
"@codingapi/flow-pc": "^0.0.36",
"@codingapi/form-pc": "^0.0.36",
"@codingapi/ui-framework": "^0.0.36",
"@codingapi/flow-pc": "^0.0.37",
"@codingapi/form-pc": "^0.0.37",
"@codingapi/ui-framework": "^0.0.37",
"@dnd-kit/core": "^6.2.0",
"@dnd-kit/sortable": "^9.0.0",
"@handsontable/react-wrapper": "^15.0.0",
Expand Down
5 changes: 1 addition & 4 deletions admin-ui/src/components/flow/PostponedFormView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const PostponedFormView:React.FC<PostponedFormProps> = (props)=>{
onCancel: () => {
props.setVisible(false);
},
onClose: () => {
props.setVisible(false);
},
destroyOnClose:true,
destroyOnHidden:true,
}}
onFinish={async (values) => {
props.onFinish(values.hours);
Expand Down
4 changes: 1 addition & 3 deletions admin-ui/src/components/flow/UserSelectView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ const UserSelectView: React.FC<UserSelectFormProps> = (props) => {
onCancel: () => {
props.setVisible(false);
},
onClose: () => {
props.setVisible(false);
}
destroyOnHidden:true,
}}
onFinish={async (values) => {
const users = values.users;
Expand Down
9 changes: 0 additions & 9 deletions admin-ui/src/config/variables.scss

This file was deleted.

10 changes: 0 additions & 10 deletions admin-ui/src/index.scss

This file was deleted.

2 changes: 1 addition & 1 deletion admin-ui/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import store from "@/store/Redux";
import {ConfigProvider} from "antd";
import zhCN from 'antd/es/locale/zh_CN';
import {theme} from "@/config/theme";
import './index.scss';
import '@/styles/index.scss';
import "@/config/register.component";

const root = ReactDOM.createRoot(
Expand Down
3 changes: 0 additions & 3 deletions admin-ui/src/pages/flow/user/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,6 @@ const UserPage = () => {
title={"编辑用户"}
open={visible}
destroyOnHidden={true}
onClose={()=>{
setVisible(false);
}}
onCancel={()=>{
setVisible(false);
}}
Expand Down
1 change: 0 additions & 1 deletion admin-ui/src/pages/flow/user/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const UserSelect:React.FC<UserSelectProps> = (props) => {
width={"60%"}
open={props.visible}
onCancel={() => props.setVisible(false)}
onClose={() => props.setVisible(false)}
destroyOnHidden={true}
title={"选择用户"}
onOk={() => {
Expand Down
3 changes: 0 additions & 3 deletions admin-ui/src/pages/flow/work/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,6 @@ const FlowPage = () => {
title="编辑流程"
open={editorVisible}
destroyOnHidden={true}
onClose={()=>{
setEditorVisible(false)
}}
onCancel={()=>{
setEditorVisible(false)
}}
Expand Down
1 change: 0 additions & 1 deletion admin-ui/src/pages/flow/work/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ const FlowSelect: React.FC<FlowSelectProps> = (props) => {
width={"60%"}
open={props.visible}
onCancel={() => props.setVisible(false)}
onClose={() => props.setVisible(false)}
destroyOnHidden={true}
title={"选择流程"}
onOk={() => {
Expand Down
25 changes: 25 additions & 0 deletions admin-ui/src/styles/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
:root {
--primary-color: #4a79d8;
--body-background-color: #fdfdfd;

--content-font-size-large: 24px;
--content-font-size-middle: 16px;
--content-font-size-small: 12px;

--content-font-size: var(--content-font-size-middle);
}


body {
margin: 0;
padding: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: var(--body-background-color);
font-size: var(--content-font-size);
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
13 changes: 13 additions & 0 deletions admin-ui/src/styles/mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@mixin flex-center {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
}

@mixin flex-right {
display: flex;
justify-content: right;
align-items: center;
width: 100%;
}
9 changes: 9 additions & 0 deletions admin-ui/src/styles/variable.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// 主题颜色
$theme-primary-color: var(--primary-color, #4a79d8);
// 背景颜色
$body-background-color: var(--body-background-color, #fdfdfd);

// 标题字体大小
$title-font-size: var(--content-font-size-middle, 16px);
// 内容字体大小
$content-font-size:var(--content-font-size, 12px);
6 changes: 3 additions & 3 deletions mobile-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"private": true,
"dependencies": {
"@babel/standalone": "^7.25.6",
"@codingapi/flow-mobile": "^0.0.36",
"@codingapi/form-mobile": "^0.0.36",
"@codingapi/ui-framework": "^0.0.36",
"@codingapi/flow-mobile": "^0.0.37",
"@codingapi/form-mobile": "^0.0.37",
"@codingapi/ui-framework": "^0.0.37",
"@logicflow/core": "^2.0.10",
"@logicflow/extension": "^2.0.14",
"@reduxjs/toolkit": "^2.2.7",
Expand Down
14 changes: 0 additions & 14 deletions mobile-ui/src/index.scss

This file was deleted.

2 changes: 1 addition & 1 deletion mobile-ui/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {createContext} from 'react';
import ReactDOM from 'react-dom/client';
import reportWebVitals from './reportWebVitals';
import './index.scss';
import '@/styles/index.scss';
import {createHashRouter, RouterProvider} from "react-router-dom";
import {routes} from "@/config/route";
import zhCN from "antd-mobile/es/locales/zh-CN";
Expand Down
2 changes: 1 addition & 1 deletion mobile-ui/src/layout/Footer/index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@/config/variables" as *;
@use "@/styles/variable" as *;

.page-footer {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion mobile-ui/src/layout/Header/index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@/config/variables" as *;
@use "@/styles/variable" as *;

.page-header {
background-color: white;
Expand Down
2 changes: 1 addition & 1 deletion mobile-ui/src/pages/flow/index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@/config/variables" as *;
@use "@/styles/variable" as *;

$flow-tabs-height: 45px;

Expand Down
25 changes: 25 additions & 0 deletions mobile-ui/src/styles/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
:root {
--primary-color: #4a79d8;
--body-background-color: #e6e7ea;

--content-font-size-large: 24px;
--content-font-size-middle: 16px;
--content-font-size-small: 12px;

--content-font-size: var(--content-font-size-middle);
}


body {
margin: 0;
padding: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: var(--body-background-color);
font-size: var(--content-font-size);
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
}
13 changes: 13 additions & 0 deletions mobile-ui/src/styles/mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@mixin flex-center {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
}

@mixin flex-right {
display: flex;
justify-content: right;
align-items: center;
width: 100%;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// 主题颜色
$theme-primary-color: #4a79d8;
$theme-primary-color: var(--primary-color,#4a79d8);
// 背景颜色
$body-background-color: #e6e7ea;
$body-background-color: var(--body-background-color,#e6e7ea);
// header颜色
$header-background-color: white;
// FormPlaceholder颜色
Expand All @@ -13,6 +13,6 @@ $page-footer-height: 50px;
// 页面内容区域的高度
$page-content-height: calc(100vh - #{$page-header-height} - #{$page-footer-height});
// 标题字体大小
$title-font-size: 16px;
$title-font-size: var(--content-font-size-middle,16px);
// 内容字体大小
$content-font-size:14px;
$content-font-size:var(--content-font-size,12px);