UNPKG

@chief-editor/brick-control

Version:

Control Brick for chief editor

1 lines 780 B
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var n,a=1,e=arguments.length;a<e;a++)for(var r in n=arguments[a])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)};import{getNormalRenderConfig,getNullablePartBoardInfo}from"../../util/flow";export var BranchConfig=__assign(__assign({getInitialState:function(){return{}},getDynamicInitialState:function(t){var n=t.datasource,a=t.config.props.activeId;return{currentIndex:null!=a?a:n.length?String(n[0].value):void 0}},getInitialDatasource:function(){return[]},getDefaultValue:function(){return""},getDynamicDefaultValue:function(){return""},getDisplayData:function(){return{label:"",values:[]}}},getNormalRenderConfig()),getNullablePartBoardInfo());