mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +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 maxLinesProperty: InheritedCssProperty<Style, number>;
|
||||||
export const textAlignmentProperty: InheritedCssProperty<Style, CoreTypes.TextAlignmentType>;
|
export const textAlignmentProperty: InheritedCssProperty<Style, CoreTypes.TextAlignmentType>;
|
||||||
export const textDecorationProperty: CssProperty<Style, CoreTypes.TextDecorationType>;
|
export const textDecorationProperty: CssProperty<Style, CoreTypes.TextDecorationType>;
|
||||||
export const textTransformProperty: CssProperty<Style, CoreTypes.TextTransformType>;
|
export const textTransformProperty: InheritedCssProperty<Style, CoreTypes.TextTransformType>;
|
||||||
export const textShadowProperty: CssProperty<Style, ShadowCSSValues>;
|
export const textShadowProperty: InheritedCssProperty<Style, ShadowCSSValues>;
|
||||||
export const textStrokeProperty: CssProperty<Style, StrokeCSSValues>;
|
export const textStrokeProperty: InheritedCssProperty<Style, StrokeCSSValues>;
|
||||||
export const whiteSpaceProperty: CssProperty<Style, CoreTypes.WhiteSpaceType>;
|
export const whiteSpaceProperty: InheritedCssProperty<Style, CoreTypes.WhiteSpaceType>;
|
||||||
export const textOverflowProperty: CssProperty<Style, CoreTypes.TextOverflowType>;
|
export const textOverflowProperty: CssProperty<Style, CoreTypes.TextOverflowType>;
|
||||||
export const letterSpacingProperty: CssProperty<Style, number>;
|
export const letterSpacingProperty: InheritedCssProperty<Style, number>;
|
||||||
export const lineHeightProperty: CssProperty<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 function getTransformedText(text: string, textTransform: CoreTypes.TextTransformType): string;
|
||||||
|
|
||||||
export const resetSymbol: symbol;
|
export const resetSymbol: symbol;
|
||||||
|
@ -290,7 +290,7 @@ export const textAlignmentProperty = new InheritedCssProperty<Style, CoreTypes.T
|
|||||||
textAlignmentProperty.register(Style);
|
textAlignmentProperty.register(Style);
|
||||||
|
|
||||||
const textTransformConverter = makeParser<CoreTypes.TextTransformType>(makeValidator<CoreTypes.TextTransformType>('initial', 'none', 'capitalize', 'uppercase', 'lowercase'));
|
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',
|
name: 'textTransform',
|
||||||
cssName: 'text-transform',
|
cssName: 'text-transform',
|
||||||
defaultValue: 'initial',
|
defaultValue: 'initial',
|
||||||
@ -298,7 +298,7 @@ export const textTransformProperty = new CssProperty<Style, CoreTypes.TextTransf
|
|||||||
});
|
});
|
||||||
textTransformProperty.register(Style);
|
textTransformProperty.register(Style);
|
||||||
|
|
||||||
export const textShadowProperty = new CssProperty<Style, string | ShadowCSSValues>({
|
export const textShadowProperty = new InheritedCssProperty<Style, string | ShadowCSSValues>({
|
||||||
name: 'textShadow',
|
name: 'textShadow',
|
||||||
cssName: 'text-shadow',
|
cssName: 'text-shadow',
|
||||||
affectsLayout: __APPLE__,
|
affectsLayout: __APPLE__,
|
||||||
@ -308,7 +308,7 @@ export const textShadowProperty = new CssProperty<Style, string | ShadowCSSValue
|
|||||||
});
|
});
|
||||||
textShadowProperty.register(Style);
|
textShadowProperty.register(Style);
|
||||||
|
|
||||||
export const textStrokeProperty = new CssProperty<Style, string | StrokeCSSValues>({
|
export const textStrokeProperty = new InheritedCssProperty<Style, string | StrokeCSSValues>({
|
||||||
name: 'textStroke',
|
name: 'textStroke',
|
||||||
cssName: 'text-stroke',
|
cssName: 'text-stroke',
|
||||||
affectsLayout: __APPLE__,
|
affectsLayout: __APPLE__,
|
||||||
@ -319,7 +319,7 @@ export const textStrokeProperty = new CssProperty<Style, string | StrokeCSSValue
|
|||||||
textStrokeProperty.register(Style);
|
textStrokeProperty.register(Style);
|
||||||
|
|
||||||
const whiteSpaceConverter = makeParser<CoreTypes.WhiteSpaceType>(makeValidator<CoreTypes.WhiteSpaceType>('initial', 'normal', 'nowrap'));
|
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',
|
name: 'whiteSpace',
|
||||||
cssName: 'white-space',
|
cssName: 'white-space',
|
||||||
defaultValue: 'initial',
|
defaultValue: 'initial',
|
||||||
|
Reference in New Issue
Block a user