@chief-editor/brick-control
Version:
Control Brick for chief editor
1 lines • 821 B
JavaScript
;var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var a in e=arguments[n])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}).apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0});var flow_1=require("../../util/flow");exports.BranchConfig=__assign(__assign({getInitialState:function(){return{}},getDynamicInitialState:function(t){var e=t.datasource,n=t.config.props.activeId;return{currentIndex:null!=n?n:e.length?String(e[0].value):void 0}},getInitialDatasource:function(){return[]},getDefaultValue:function(){return""},getDynamicDefaultValue:function(){return""},getDisplayData:function(){return{label:"",values:[]}}},flow_1.getNormalRenderConfig()),flow_1.getNullablePartBoardInfo());