1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/renderkid/lib/renderKid/styles/Rule.js

31 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

2024-01-16 21:26:16 +08:00
"use strict";
2023-12-18 13:12:25 +08:00
2024-01-16 21:26:16 +08:00
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
2023-12-18 13:12:25 +08:00
2024-01-16 21:26:16 +08:00
// Generated by CoffeeScript 2.5.1
var DeclarationBlock, Rule, Selector;
Selector = require('./rule/Selector');
2023-12-18 13:12:25 +08:00
DeclarationBlock = require('./rule/DeclarationBlock');
2024-01-16 21:26:16 +08:00
module.exports = Rule = /*#__PURE__*/function () {
2023-12-18 13:12:25 +08:00
function Rule(selector) {
2024-01-16 21:26:16 +08:00
_classCallCheck(this, Rule);
2023-12-18 13:12:25 +08:00
this.selector = new Selector(selector);
2024-01-16 21:26:16 +08:00
this.styles = new DeclarationBlock();
2023-12-18 13:12:25 +08:00
}
2024-01-16 21:26:16 +08:00
_createClass(Rule, [{
key: "setStyles",
value: function setStyles(styles) {
this.styles.set(styles);
return this;
}
}]);
2023-12-18 13:12:25 +08:00
return Rule;
2024-01-16 21:26:16 +08:00
}();