mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 01:43:14 +08:00
fix(core): added missing inheritance support for text css properties (#10699)
This commit is contained in:

committed by
GitHub

parent
c8bb0d7ccf
commit
70e7248c97
14
packages/core/ui/text-base/index.d.ts
vendored
14
packages/core/ui/text-base/index.d.ts
vendored
@ -194,15 +194,15 @@ export const formattedTextProperty: Property<TextBase, FormattedString>;
|
||||
export const maxLinesProperty: InheritedCssProperty<Style, number>;
|
||||
export const textAlignmentProperty: InheritedCssProperty<Style, CoreTypes.TextAlignmentType>;
|
||||
export const textDecorationProperty: CssProperty<Style, CoreTypes.TextDecorationType>;
|
||||
export const textTransformProperty: CssProperty<Style, CoreTypes.TextTransformType>;
|
||||
export const textShadowProperty: CssProperty<Style, ShadowCSSValues>;
|
||||
export const textStrokeProperty: CssProperty<Style, StrokeCSSValues>;
|
||||
export const whiteSpaceProperty: CssProperty<Style, CoreTypes.WhiteSpaceType>;
|
||||
export const textTransformProperty: InheritedCssProperty<Style, CoreTypes.TextTransformType>;
|
||||
export const textShadowProperty: InheritedCssProperty<Style, ShadowCSSValues>;
|
||||
export const textStrokeProperty: InheritedCssProperty<Style, StrokeCSSValues>;
|
||||
export const whiteSpaceProperty: InheritedCssProperty<Style, CoreTypes.WhiteSpaceType>;
|
||||
export const textOverflowProperty: CssProperty<Style, CoreTypes.TextOverflowType>;
|
||||
export const letterSpacingProperty: CssProperty<Style, number>;
|
||||
export const lineHeightProperty: CssProperty<Style, number>;
|
||||
export const letterSpacingProperty: InheritedCssProperty<Style, number>;
|
||||
export const lineHeightProperty: InheritedCssProperty<Style, number>;
|
||||
|
||||
//Used by tab view
|
||||
// Used by tab view
|
||||
export function getTransformedText(text: string, textTransform: CoreTypes.TextTransformType): string;
|
||||
|
||||
export const resetSymbol: symbol;
|
||||
|
@ -290,7 +290,7 @@ export const textAlignmentProperty = new InheritedCssProperty<Style, CoreTypes.T
|
||||
textAlignmentProperty.register(Style);
|
||||
|
||||
const textTransformConverter = makeParser<CoreTypes.TextTransformType>(makeValidator<CoreTypes.TextTransformType>('initial', 'none', 'capitalize', 'uppercase', 'lowercase'));
|
||||
export const textTransformProperty = new CssProperty<Style, CoreTypes.TextTransformType>({
|
||||
export const textTransformProperty = new InheritedCssProperty<Style, CoreTypes.TextTransformType>({
|
||||
name: 'textTransform',
|
||||
cssName: 'text-transform',
|
||||
defaultValue: 'initial',
|
||||
@ -298,7 +298,7 @@ export const textTransformProperty = new CssProperty<Style, CoreTypes.TextTransf
|
||||
});
|
||||
textTransformProperty.register(Style);
|
||||
|
||||
export const textShadowProperty = new CssProperty<Style, string | ShadowCSSValues>({
|
||||
export const textShadowProperty = new InheritedCssProperty<Style, string | ShadowCSSValues>({
|
||||
name: 'textShadow',
|
||||
cssName: 'text-shadow',
|
||||
affectsLayout: __APPLE__,
|
||||
@ -308,7 +308,7 @@ export const textShadowProperty = new CssProperty<Style, string | ShadowCSSValue
|
||||
});
|
||||
textShadowProperty.register(Style);
|
||||
|
||||
export const textStrokeProperty = new CssProperty<Style, string | StrokeCSSValues>({
|
||||
export const textStrokeProperty = new InheritedCssProperty<Style, string | StrokeCSSValues>({
|
||||
name: 'textStroke',
|
||||
cssName: 'text-stroke',
|
||||
affectsLayout: __APPLE__,
|
||||
@ -319,7 +319,7 @@ export const textStrokeProperty = new CssProperty<Style, string | StrokeCSSValue
|
||||
textStrokeProperty.register(Style);
|
||||
|
||||
const whiteSpaceConverter = makeParser<CoreTypes.WhiteSpaceType>(makeValidator<CoreTypes.WhiteSpaceType>('initial', 'normal', 'nowrap'));
|
||||
export const whiteSpaceProperty = new CssProperty<Style, CoreTypes.WhiteSpaceType>({
|
||||
export const whiteSpaceProperty = new InheritedCssProperty<Style, CoreTypes.WhiteSpaceType>({
|
||||
name: 'whiteSpace',
|
||||
cssName: 'white-space',
|
||||
defaultValue: 'initial',
|
||||
|
Reference in New Issue
Block a user