Skip to content

Commit

Permalink
V8.0.1 (#631)
Browse files Browse the repository at this point in the history
* fix: 修复数据合并导致的折叠问题

* fix: 修复股吧数据

* fix: 修复row折叠问题

* fix: 修复QuotationFlow样式

* fix: 修复基金经理页面错误

* bump: 8.0.1
  • Loading branch information
1zilc authored Jul 20, 2023
1 parent 948c9d5 commit 1e40123
Show file tree
Hide file tree
Showing 7 changed files with 210 additions and 103 deletions.
2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fishing-funds",
"productName": "Fishing Funds",
"version": "8.0.0",
"version": "8.0.1",
"main": "./dist/main/index.js",
"description": "基金,大盘,股票,虚拟货币状态栏显示小应用,基于Electron开发,支持 MacOS,Windows,Linux客户端,数据源来自天天基金,蚂蚁基金,爱基金,腾讯证券等",
"author": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ export const DetailFund: React.FC<DetailFundProps> = (props) => {
const { star: fundStar, type: fundType } = useFundRating(code);
const codeMap = useAppSelector((state) => state.wallet.fundConfigCodeMap);
const { data: addCode, show: showAddDrawer, set: setAddDrawer, close: closeAddDrawer } = useDrawer(code);
const [showManagerDrawer, { setTrue: openManagerDrawer, setFalse: closeManagerDrawer, toggle: ToggleManagerDrawer }] =
useBoolean(false);
const [showManagerDrawer, { setTrue: openManagerDrawer, setFalse: closeManagerDrawer }] = useBoolean(false);

const { data: fund = {} } = useRequest(() => Services.Fund.GetFixFromEastMoney(code));
const { data: pingzhongdata = {} as Fund.PingzhongData | Record<string, any>, run: runGetFundDetailFromEastmoney } =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface ManagerDetail {
}

const FundManagerContent: React.FC<FundManagerContentProps> = (props) => {
const { manager } = props;
const { manager = {} as Fund.Manager.Info } = props;
const ref = useRef(null);
const position = useScroll(ref, (val) => val.top <= 520);
const miniMode = position && position.top > 40;
Expand All @@ -37,6 +37,7 @@ const FundManagerContent: React.FC<FundManagerContentProps> = (props) => {
},
} = useRequest(Services.Fund.GetFundManagerDetailFromEastMoney, {
defaultParams: [manager.id],
ready: !!manager.id,
});

return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.content {
display: block;
height: calc(100vh - 202px);
height: calc(100vh - 220px);
}
10 changes: 10 additions & 0 deletions src/renderer/helpers/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ export function Update<T extends {}>(config: { key: keyof T; list: T[]; data: T
return list as Required<T>[];
}

export function Merge<T extends {}>(config: { data: T; overide: Partial<T> }) {
const { overide, data } = config;

Object.keys(overide).forEach((k) => {
(data[k as keyof T] as any) = overide[k as keyof T];
});

return data;
}

export function Delete<T extends {}>(config: { key: keyof T; list: T[]; data: string }) {
const { list, key, data } = config;

Expand Down
Loading

0 comments on commit 1e40123

Please sign in to comment.