add android icon font support
This commit is contained in:
@@ -1617,6 +1617,10 @@ var Text = /** @class */ (function (_super) {
|
||||
Property,
|
||||
__metadata$3("design:type", String)
|
||||
], Text.prototype, "fontStyle", void 0);
|
||||
__decorate$3([
|
||||
Property,
|
||||
__metadata$3("design:type", String)
|
||||
], Text.prototype, "font", void 0);
|
||||
return Text;
|
||||
}(View));
|
||||
function text(config) {
|
||||
|
@@ -1201,6 +1201,10 @@ __decorate$3([
|
||||
Property,
|
||||
__metadata$3("design:type", String)
|
||||
], Text.prototype, "fontStyle", void 0);
|
||||
__decorate$3([
|
||||
Property,
|
||||
__metadata$3("design:type", String)
|
||||
], Text.prototype, "font", void 0);
|
||||
function text(config) {
|
||||
const ret = new Text;
|
||||
ret.layoutConfig = layoutConfig().fit();
|
||||
|
@@ -2660,6 +2660,10 @@ __decorate$3([
|
||||
Property,
|
||||
__metadata$3("design:type", String)
|
||||
], Text.prototype, "fontStyle", void 0);
|
||||
__decorate$3([
|
||||
Property,
|
||||
__metadata$3("design:type", String)
|
||||
], Text.prototype, "font", void 0);
|
||||
function text(config) {
|
||||
const ret = new Text;
|
||||
ret.layoutConfig = layoutConfig().fit();
|
||||
|
2
doric-js/index.d.ts
vendored
2
doric-js/index.d.ts
vendored
@@ -462,6 +462,7 @@ declare module 'doric/lib/src/widget/text' {
|
||||
maxLines?: number;
|
||||
textAlignment?: Gravity;
|
||||
fontStyle?: "normal" | "bold" | "italic" | "bold_italic";
|
||||
font?: string;
|
||||
}
|
||||
export class Text extends View implements IText {
|
||||
text?: string;
|
||||
@@ -470,6 +471,7 @@ declare module 'doric/lib/src/widget/text' {
|
||||
maxLines?: number;
|
||||
textAlignment?: Gravity;
|
||||
fontStyle?: "normal" | "bold" | "italic" | "bold_italic";
|
||||
font?: string;
|
||||
}
|
||||
export function text(config: IText): Text;
|
||||
}
|
||||
|
2
doric-js/lib/src/widget/text.d.ts
vendored
2
doric-js/lib/src/widget/text.d.ts
vendored
@@ -8,6 +8,7 @@ export interface IText extends IView {
|
||||
maxLines?: number;
|
||||
textAlignment?: Gravity;
|
||||
fontStyle?: "normal" | "bold" | "italic" | "bold_italic";
|
||||
font?: string;
|
||||
}
|
||||
export declare class Text extends View implements IText {
|
||||
text?: string;
|
||||
@@ -16,5 +17,6 @@ export declare class Text extends View implements IText {
|
||||
maxLines?: number;
|
||||
textAlignment?: Gravity;
|
||||
fontStyle?: "normal" | "bold" | "italic" | "bold_italic";
|
||||
font?: string;
|
||||
}
|
||||
export declare function text(config: IText): Text;
|
||||
|
@@ -52,6 +52,10 @@ __decorate([
|
||||
Property,
|
||||
__metadata("design:type", String)
|
||||
], Text.prototype, "fontStyle", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", String)
|
||||
], Text.prototype, "font", void 0);
|
||||
export function text(config) {
|
||||
const ret = new Text;
|
||||
ret.layoutConfig = layoutConfig().fit();
|
||||
|
@@ -25,6 +25,7 @@ export interface IText extends IView {
|
||||
maxLines?: number
|
||||
textAlignment?: Gravity
|
||||
fontStyle?: "normal" | "bold" | "italic" | "bold_italic"
|
||||
font?: string
|
||||
}
|
||||
|
||||
export class Text extends View implements IText {
|
||||
@@ -45,6 +46,9 @@ export class Text extends View implements IText {
|
||||
|
||||
@Property
|
||||
fontStyle?: "normal" | "bold" | "italic" | "bold_italic"
|
||||
|
||||
@Property
|
||||
font?: string
|
||||
}
|
||||
|
||||
export function text(config: IText) {
|
||||
|
Reference in New Issue
Block a user