UNPKG

react-antd-admin-panel

Version:

Modern TypeScript-first React admin panel builder with Ant Design 6

47 lines (46 loc) 992 B
var __defProp = Object.defineProperty; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); class BaseBuilder { constructor() { __publicField(this, "_key"); __publicField(this, "_config", {}); } /** * Set a unique key for the component */ key(k) { this._key = k; return this; } /** * Set disabled state */ disabled(value) { this._config.disabled = value; return this; } /** * Set hidden state */ hidden(value) { this._config.hidden = value; return this; } /** * Get the component key */ getKey() { return this._key; } /** * Get the configuration */ getConfig() { return this._config; } } export { BaseBuilder as B }; //# sourceMappingURL=BaseBuilder-dOpE6Uh1.js.map