fix(core): tag color should use palette-line-color (#6315)
This commit is contained in:
@@ -3,6 +3,7 @@ import type { PageRecordList } from '@toeverything/infra';
|
|||||||
import { LiveData } from '@toeverything/infra';
|
import { LiveData } from '@toeverything/infra';
|
||||||
|
|
||||||
import type { WorkspaceLegacyProperties } from '../../workspace';
|
import type { WorkspaceLegacyProperties } from '../../workspace';
|
||||||
|
import { tagColorMap } from './utils';
|
||||||
|
|
||||||
export class Tag {
|
export class Tag {
|
||||||
constructor(
|
constructor(
|
||||||
@@ -17,7 +18,7 @@ export class Tag {
|
|||||||
|
|
||||||
value$ = this.tagOption$.map(tag => tag?.value || '');
|
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());
|
createDate$ = this.tagOption$.map(tag => tag?.createDate || Date.now());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user