fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
893 B

8 years ago
/**
* guy a元素
* @class BI.Link
* @extends BI.Text
*/
import { shortcut, extend } from "../../../core";
import { Label } from "../label/label";
@shortcut()
export class Link extends Label {
static xtype = "bi.link";
_defaultConfig() {
const conf = super._defaultConfig(...arguments);
return extend(conf, {
7 years ago
baseCls: (conf.baseCls || "") + " bi-link display-block",
tagName: "a",
8 years ago
href: "",
target: "_blank",
7 years ago
});
}
8 years ago
_createJson() {
const { textAlign, whiteSpace, textHeight, text, keyword, value, py, href, target } = this.options;
8 years ago
return {
7 years ago
type: "bi.a",
textAlign,
whiteSpace,
lineHeight: textHeight,
text,
keyword,
value,
py,
href,
target,
8 years ago
};
}
}