本文整理匯總了TypeScript中@compo/exports.Component.signal.emitIn方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Component.signal.emitIn方法的具體用法?TypeScript Component.signal.emitIn怎麽用?TypeScript Component.signal.emitIn使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類@compo/exports.Component.signal
的用法示例。
在下文中一共展示了Component.signal.emitIn方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: function
Proto[method] = function(mix, model, cntx, ctr) {
if (ctr == null) {
ctr = this;
}
if (mix.nodeType != null && typeof mix.appendChild === 'function') {
mix.appendChild(this.render(model, cntx, null, ctr));
Component.signal.emitIn(ctr, 'domInsert');
return this;
}
jMask(mix).append(this);
return this;
};
示例2: list_update
export function list_update (self, deleteIndex, deleteCount, insertIndex?, rangeModel?){
var node = self.node,
compos = node.components
;
if (compos == null)
compos = node.components = []
var prop1 = self.prop1,
prop2 = self.prop2,
type = self.type,
ctx = self.ctx,
ctr = self.node
;
if (deleteIndex != null && deleteCount != null) {
var i = deleteIndex,
length = deleteIndex + deleteCount;
if (length > compos.length)
length = compos.length;
for (; i < length; i++) {
if (compo_dispose(compos[i], node)){
i--;
length--;
}
}
}
if (insertIndex != null && rangeModel && rangeModel.length) {
var i = compos.length,
imax,
fragment = self._build(node, rangeModel, ctx, ctr),
new_ = compos.splice(i)
;
compo_fragmentInsert(node, insertIndex, fragment, self.placeholder);
compos.splice.apply(compos, [insertIndex, 0].concat(new_));
i = 0;
imax = new_.length;
for(; i < imax; i++){
Component.signal.emitIn(new_[i], 'domInsert');
}
}
};
示例3: flush
function flush() {
if (is_Function(ctr.renderEnd)) {
ctr.renderEnd(container, model);
}
Component.signal.emitIn(ctr, 'domInsert');
}
示例4: compo_inserted
export function compo_inserted (compo) {
Component.signal.emitIn(compo, 'domInsert');
};
示例5: compo_emitInserted
export function compo_emitInserted (ctr) {
Component.signal.emitIn(ctr, 'domInsert');
};