当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript exports.Component.signal类代码示例

本文整理汇总了TypeScript中@compo/exports.Component.signal的典型用法代码示例。如果您正苦于以下问题:TypeScript Component.signal类的具体用法?TypeScript Component.signal怎么用?TypeScript Component.signal使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Component.signal类的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;
	};
开发者ID:atmajs,项目名称:MaskJS,代码行数:13,代码来源:proto.ts

示例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');
        }
    }
};
开发者ID:atmajs,项目名称:MaskJS,代码行数:48,代码来源:utils.ts

示例3: flush

		function flush() {
			if (is_Function(ctr.renderEnd)) {
				ctr.renderEnd(container, model);
			}
			Component.signal.emitIn(ctr, 'domInsert');
		}
开发者ID:atmajs,项目名称:MaskJS,代码行数:6,代码来源:run.ts

示例4: compo_inserted

export function compo_inserted (compo) {
    Component.signal.emitIn(compo, 'domInsert');
};
开发者ID:atmajs,项目名称:MaskJS,代码行数:3,代码来源:compo.ts

示例5: compo_emitInserted

export function compo_emitInserted (ctr) {
    Component.signal.emitIn(ctr, 'domInsert');
};
开发者ID:atmajs,项目名称:MaskJS,代码行数:3,代码来源:compo.ts


注:本文中的@compo/exports.Component.signal类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。