@chief-editor/brick-control
Version:
Control Brick for chief editor
1 lines • 836 B
JavaScript
;var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});var react_1=__importDefault(require("react"));function BindBrick(e){var t=e.config.props,r=t.bind,n=t.bindRender,i=e.styles,a=e.datasource,s=e.layout,o=e.creator,u=e.value,l=e.setValue,_=(0,e.getHook)(n||"buildInBindRender");return _||console.warn("BindBrick: hook name = "+n+" is undefined"),react_1.default.createElement("div",{"data-id":o,style:__assign(__assign({},i),s)},r&&_?_(a||[],u,l):null)}exports.BindBrick=BindBrick;