@duoduo-oba/ng-devui
Version:
DevUI components based on Angular
2 lines • 1.83 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("ng-devui/status",["exports","@angular/core","@angular/common"],t):t(((e=e||self)["ng-devui"]=e["ng-devui"]||{},e["ng-devui"].status={}),e.ng.core,e.ng.common)}(this,(function(e,t,s){"use strict";var n=function(){function e(){this.classMap={}}return Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(e){this._type=e,this.setClassMap()},enumerable:!0,configurable:!0}),e.prototype.setClassMap=function(){this.classMap="devui-status-bg-"+this.type},e.decorators=[{type:t.Component,args:[{selector:"d-status",template:'<span class="devui-status" [ngClass]="classMap">\r\n <ng-content></ng-content>\r\n</span>\r\n',styles:[":host{display:block}.devui-status{line-height:20px;display:inline-block;height:20px}.devui-status::before{display:inline-block;content:'';width:8px;height:8px;margin-right:8px;border-radius:100%}.devui-status.devui-status-bg-success::before{background:#50d4ab}.devui-status.devui-status-bg-error::before{background:#f66f6a}.devui-status.devui-status-bg-warning::before{background:#fac20a}.devui-status.devui-status-bg-waiting::before{background:#9faad7}.devui-status.devui-status-bg-running::before{background:#5e7ce0}.devui-status.devui-status-bg-invalid::before{background:#adb0b8}.devui-status.devui-status-bg-initial::before{background:#f2f5fc}"]}]}],e.propDecorators={type:[{type:t.Input}]},e}();var u=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[s.CommonModule],exports:[n],declarations:[n],providers:[]}]}],e}();e.StatusComponent=n,e.StatusModule=u,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ng-devui-status.umd.min.js.map