Skip to content

Commit

Permalink
- [人物] 重写数据分析逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
czy0729 committed Aug 28, 2024
1 parent 3a5af82 commit 632bfb9
Show file tree
Hide file tree
Showing 9 changed files with 178 additions and 272 deletions.
2 changes: 1 addition & 1 deletion src/screens/_/base/html/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const HTML = ({
return (
<Component id='base-html' data-type='split'>
<Expand ratio={ratio} checkLayout={false} onExpand={onExpand}>
<RenderHtml {...passProps} html={expand ? html : html.slice(0, 200)} />
<RenderHtml {...passProps} html={expand ? html : html.slice(0, length)} />
</Expand>
</Component>
)
Expand Down
1 change: 0 additions & 1 deletion src/screens/home/mono/component/cover/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ function Cover({ thumb, src, monoId }) {
style={!loaded && styles.loading}
src={getCoverLarge(src, 200)}
autoSize={_.r(_.window.contentWidth * 0.5)}
shadow
imageViewer
imageViewerSrc={getCoverLarge(src)}
fallback
Expand Down
10 changes: 2 additions & 8 deletions src/screens/home/persons/component/list/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,11 @@
import React from 'react'
import { ItemCharacter } from '@_'
import { _ } from '@stores'

import { EVENT } from './ds'

export function renderItem({ item, index }) {
return (
<ItemCharacter
style={_.container.item}
index={index}
event={EVENT}
type='person'
{...item}
cover={item.cover || 'https://bgm.tv/img/info_only.png'}
/>
<ItemCharacter style={_.container.item} index={index} event={EVENT} type='person' {...item} />
)
}
2 changes: 1 addition & 1 deletion src/stores/mono/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: czy0729
* @Date: 2019-07-15 09:33:32
* @Last Modified by: czy0729
* @Last Modified time: 2024-08-27 15:05:19
* @Last Modified time: 2024-08-27 15:30:37
*/
import { $, cData, cMap, cText } from '@utils'

Expand Down
Loading

0 comments on commit 632bfb9

Please sign in to comment.