File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
packages/core/src/components Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 6
6
defineComponent ,
7
7
onUpdated ,
8
8
} from '@vue/runtime-core'
9
+ import type { LiteralUnion } from '../utils'
9
10
import type { Styles } from '../renderer/styles'
10
11
import { scheduleUpdateSymbol } from '../injectionSymbols'
11
12
import { colorize } from '../renderer/textColor'
@@ -17,8 +18,8 @@ export const defaultStyle: Styles = {
17
18
}
18
19
19
20
export interface TuiTextProps {
20
- color ?: ForegroundColor
21
- bgColor ?: ForegroundColor
21
+ color ?: LiteralUnion < ForegroundColor , string >
22
+ bgColor ?: LiteralUnion < ForegroundColor , string >
22
23
dimmed ?: boolean
23
24
bold ?: boolean
24
25
italic ?: boolean
@@ -32,8 +33,8 @@ export const TuiText = defineComponent({
32
33
name : 'TuiText' ,
33
34
34
35
props : {
35
- color : String as PropType < ForegroundColor > ,
36
- bgColor : String as PropType < ForegroundColor > ,
36
+ color : String as PropType < LiteralUnion < ForegroundColor , string > > ,
37
+ bgColor : String as PropType < LiteralUnion < ForegroundColor , string > > ,
37
38
dimmed : Boolean ,
38
39
bold : Boolean ,
39
40
italic : Boolean ,
You can’t perform that action at this time.
0 commit comments