feat:Text add htmlText

This commit is contained in:
pengfei.zhou
2020-04-14 11:44:22 +08:00
committed by osborn
parent e73ad1db2b
commit 9e0b3e067b
14 changed files with 437 additions and 1 deletions

View File

@@ -1690,6 +1690,10 @@ var Text = /** @class */ (function (_super) {
Property,
__metadata$3("design:type", Boolean)
], Text.prototype, "underline", void 0);
__decorate$3([
Property,
__metadata$3("design:type", String)
], Text.prototype, "htmlText", void 0);
return Text;
}(View));
function text(config) {

View File

@@ -1258,6 +1258,10 @@ __decorate$3([
Property,
__metadata$3("design:type", Boolean)
], Text.prototype, "underline", void 0);
__decorate$3([
Property,
__metadata$3("design:type", String)
], Text.prototype, "htmlText", void 0);
function text(config) {
const ret = new Text;
ret.layoutConfig = layoutConfig().fit();

View File

@@ -2717,6 +2717,10 @@ __decorate$3([
Property,
__metadata$3("design:type", Boolean)
], Text.prototype, "underline", void 0);
__decorate$3([
Property,
__metadata$3("design:type", String)
], Text.prototype, "htmlText", void 0);
function text(config) {
const ret = new Text;
ret.layoutConfig = layoutConfig().fit();

2
doric-js/index.d.ts vendored
View File

@@ -486,6 +486,7 @@ declare module 'doric/lib/src/widget/text' {
lineSpacing?: number;
strikethrough?: boolean;
underline?: boolean;
htmlText?: string;
}
export class Text extends View implements IText {
text?: string;
@@ -500,6 +501,7 @@ declare module 'doric/lib/src/widget/text' {
lineSpacing?: number;
strikethrough?: boolean;
underline?: boolean;
htmlText?: string;
}
export function text(config: IText): Text;
}

View File

@@ -14,6 +14,7 @@ export interface IText extends IView {
lineSpacing?: number;
strikethrough?: boolean;
underline?: boolean;
htmlText?: string;
}
export declare class Text extends View implements IText {
text?: string;
@@ -28,5 +29,6 @@ export declare class Text extends View implements IText {
lineSpacing?: number;
strikethrough?: boolean;
underline?: boolean;
htmlText?: string;
}
export declare function text(config: IText): Text;

View File

@@ -76,6 +76,10 @@ __decorate([
Property,
__metadata("design:type", Boolean)
], Text.prototype, "underline", void 0);
__decorate([
Property,
__metadata("design:type", String)
], Text.prototype, "htmlText", void 0);
export function text(config) {
const ret = new Text;
ret.layoutConfig = layoutConfig().fit();

View File

@@ -31,6 +31,7 @@ export interface IText extends IView {
lineSpacing?: number
strikethrough?: boolean
underline?: boolean
htmlText?: string
}
export class Text extends View implements IText {
@@ -69,6 +70,9 @@ export class Text extends View implements IText {
@Property
underline?: boolean
@Property
htmlText?: string
}
export function text(config: IText) {