UNPKG

react-antd-admin-panel

Version:

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

46 lines (45 loc) 1.01 kB
"use strict"; 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; } } exports.BaseBuilder = BaseBuilder; //# sourceMappingURL=BaseBuilder-ByZeEu3_.cjs.map