UNPKG

@chief-editor/brick-control

Version:

Control Brick for chief editor

1 lines 828 B
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(a){for(var t,e=1,l=arguments.length;e<l;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(a[n]=t[n]);return a}).apply(this,arguments)};import{getNormalRenderConfig,getNullableDisplayData,getNullablePartBoardInfo,getNullableState}from"../../util/flow";export var DatasourceConfig=__assign(__assign(__assign(__assign(__assign({},getNullableState()),getNormalRenderConfig()),getNullablePartBoardInfo()),getNullableDisplayData()),{getInitialDatasource:function(){return[{value:"local",label:"本地"},{value:"bind",label:"绑定"},{value:"func",label:"函数"}]},getDefaultValue:function(){return{type:"",data:[]}},getDynamicDefaultValue:function(a){return{type:a.datasource.length&&a.datasource[0].value||"",data:[]}}});