fix(core): tag color should use palette-line-color (#6315)

This commit is contained in:
JimmFly 2024-03-26 04:57:41 +00:00
parent 095f8c2359
commit 669ca325a1
No known key found for this signature in database
GPG Key ID: 14A6F56854E1BED7

View File

@ -3,6 +3,7 @@ import type { PageRecordList } from '@toeverything/infra';
import { LiveData } from '@toeverything/infra';
import type { WorkspaceLegacyProperties } from '../../workspace';
import { tagColorMap } from './utils';
export class Tag {
constructor(
@ -17,7 +18,7 @@ export class Tag {
value$ = this.tagOption$.map(tag => tag?.value || '');
color$ = this.tagOption$.map(tag => tag?.color || '');
color$ = this.tagOption$.map(tag => tagColorMap(tag?.color) || '');
createDate$ = this.tagOption$.map(tag => tag?.createDate || Date.now());