UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

14 lines 2.26 kB
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ export function getStatusClassNames(prefixCls, status, hasFeedback) { return { [`${prefixCls}-status-success`]: status === 'success', [`${prefixCls}-status-warning`]: status === 'warning', [`${prefixCls}-status-error`]: status === 'error', [`${prefixCls}-status-validating`]: status === 'validating', [`${prefixCls}-has-feedback`]: hasFeedback }; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLXV0aWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL2NvcmUvdXRpbC9zdGF0dXMtdXRpbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFJSCxNQUFNLFVBQVUsbUJBQW1CLENBQ2pDLFNBQWlCLEVBQ2pCLE1BQXlCLEVBQ3pCLFdBQXFCO0lBRXJCLE9BQU87UUFDTCxDQUFDLEdBQUcsU0FBUyxpQkFBaUIsQ0FBQyxFQUFFLE1BQU0sS0FBSyxTQUFTO1FBQ3JELENBQUMsR0FBRyxTQUFTLGlCQUFpQixDQUFDLEVBQUUsTUFBTSxLQUFLLFNBQVM7UUFDckQsQ0FBQyxHQUFHLFNBQVMsZUFBZSxDQUFDLEVBQUUsTUFBTSxLQUFLLE9BQU87UUFDakQsQ0FBQyxHQUFHLFNBQVMsb0JBQW9CLENBQUMsRUFBRSxNQUFNLEtBQUssWUFBWTtRQUMzRCxDQUFDLEdBQUcsU0FBUyxlQUFlLENBQUMsRUFBRSxXQUFXO0tBQzNDLENBQUM7QUFDSixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSV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