beautify ui; fix current ticket card title display bug

This commit is contained in:
Dawn1Ocean
2024-03-19 02:19:39 +08:00
parent 31d7aea480
commit f20a38af9b
7 changed files with 46 additions and 30 deletions
-1
View File
@@ -3,7 +3,6 @@ import { Component, ReactNode } from 'react';
import { TicketNote, StatusStr } from '@/pages/TicketDetail/TicketNote';
import pt from '@/plain-text';
import { timeFormat } from '@/utils';
import { AtDivider } from 'taro-ui';
import './NoteCard.scss';
interface NoteCardProps {
+6 -1
View File
@@ -3,6 +3,7 @@ import NoteCard from '@/components/NoteCard/NoteCard';
import { TicketNote } from '@/pages/TicketDetail/TicketNote';
import { View } from '@tarojs/components';
import { AtDivider } from 'taro-ui';
import pt from '@/plain-text';
interface NoteListProps {
noteList: Array<TicketNote>;
@@ -15,7 +16,11 @@ export default class NoteList extends Component<NoteListProps, {}> {
render(): ReactNode {
return (
<View>
<AtDivider height={40} />
<AtDivider
fontColor='#CCC'
content={pt.get().ticketDetail.divider}
height={40}
/>
{this.props.noteList.map((note, idx) => (
<View key={idx}>
<NoteCard note={note} />