[]
Sheets.Designer.AtomicComponentBase
| Name |
|---|
ValueType |
OptionsType |
• new AtomicComponentBase<ValueType, OptionsType>(host, options)
表示定义原子组件的抽象类。
| Name |
|---|
ValueType |
OptionsType |
| Name | Type | Description |
|---|---|---|
host |
HTMLElement |
组件挂载的HTML区域 |
options |
OptionsType |
组件选项 |
▸ getTemplate(options): string
在此设置内部HTML。当主机挂载到DOM时调用。
| Name | Type |
|---|---|
options |
OptionsType |
string
▸ onDestroy(host): void
组件即将销毁时调用。
| Name | Type |
|---|---|
host |
HTMLElement |
void
▸ onEnableChanged(prevEnable, nextEnable, host, options): void
值状态改变时调用此函数。
| Name | Type |
|---|---|
prevEnable |
boolean |
nextEnable |
boolean |
host |
HTMLElement |
options |
OptionsType |
void
▸ onInit(options): void
组件初始化自身时调用。
| Name | Type |
|---|---|
options |
OptionsType |
void
▸ onMounted(host, options): void
组件的主机附加到DOM树时调用。
| Name | Type |
|---|---|
host |
HTMLElement |
options |
OptionsType |
void
▸ onValueChanged(prevValue, nextValue, host, options): void
启用状态改变时调用此函数。
| Name | Type |
|---|---|
prevValue |
ValueType |
nextValue |
ValueType |
host |
HTMLElement |
options |
OptionsType |
void
▸ raiseValueChanged(): void
向设计器触发值改变事件,这将调用命令的execute函数。
void
▸ updateValue(host, options): ValueType
获取组件最新值。框架需要组件值时调用。
| Name | Type |
|---|---|
host |
HTMLElement |
options |
OptionsType |
ValueType