UNPKG

react-antd-admin-panel

Version:

Easy prototyping admin panel using React and Antd

23 lines 668 B
import Default from "./Default"; export default class Radio extends Default { constructor() { super('Radio'); this._format = (v) => v.value; } clearSelf() { this._defaultObject = undefined; try { this.tsxClear(); window.localStorage.removeItem(`radio:${this._key}`); } catch (e) { console.log(e); } } defaultFromCache() { let store = window.localStorage.getItem(`radio:${this._key}`); this._defaultObject = store ? JSON.parse(store) : this._defaultObject; return this; } } //# sourceMappingURL=Radio.js.map