import dome from '../templates/Ncdowncard.ejs';
import { map } from '../../../decorator/controlmap';
import { ControlEditor } from '../../../editor/ControlEditor';
@map("证书下载", 'nc.teas.ncdowncard', 'Ncdowncard')
export class Ncdowncard extends dsf.Controls.Control {
constructor(id, isPart) {
super(id, isPart);
this._desingerClass = ControlEditor;
}
initTemplate() {
return dome(this);
}
createElement() {
super.createElement();
}
renderContext(refresh) {
super.renderContext();
}
renderReady() { //组件加载完成后执行
super.renderReady();
}
initEvent() {
}
}
<div class="ds_nc_downcard">
证书下载
</div>
[
{
"name": "基础属性",
"attributes": [
{
"text": "组件标识",
"bindControlAttr": "caption",
"showType": "text"
},
{
"text": "是否可见",
"showType": "boolean",
"bindControlAttr": "visible",
"changeExecFunction": "renderContext"
},
{
"text": "是否失效",
"showType": "boolean",
"bindControlAttr": "disabled",
"changeExecFunction": "renderContext"
}
]
}
]