js: padding currently only support group or text,input
This commit is contained in:
@@ -104,6 +104,14 @@ export class Input extends View {
|
||||
replacement: string,
|
||||
}) => boolean
|
||||
|
||||
@Property
|
||||
padding?: {
|
||||
left?: number,
|
||||
right?: number,
|
||||
top?: number,
|
||||
bottom?: number,
|
||||
}
|
||||
|
||||
getText(context: BridgeContext) {
|
||||
return this.nativeChannel(context, 'getText')() as Promise<string>
|
||||
}
|
||||
|
@@ -69,6 +69,14 @@ export class Text extends View implements JSX.ElementChildrenAttribute {
|
||||
@Property
|
||||
truncateAt?: TruncateAt
|
||||
|
||||
@Property
|
||||
padding?: {
|
||||
left?: number,
|
||||
right?: number,
|
||||
top?: number,
|
||||
bottom?: number,
|
||||
}
|
||||
|
||||
set innerElement(e: string) {
|
||||
this.text = e
|
||||
}
|
||||
|
Reference in New Issue
Block a user