UNPKG

@chief-editor/brick-control

Version:

Control Brick for chief editor

1 lines 996 B
"use strict";var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},__importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0});var editor_1=require("../../util/editor"),schema_json_1=__importDefault(require("./schema.json"));exports.SizeConfig=__assign(__assign(__assign(__assign(__assign(__assign({type:"Size",category:"FormItem",isContainer:!1,schema:schema_json_1.default},editor_1.getNormalLayout()),editor_1.getNormalPartBoardInfo()),{getValueFromBrickData:function(t){var e=t.config.props,i=e.defaultWidth,a=void 0===i?0:i,r=e.defaultHeight;return{width:a,height:void 0===r?0:r}},setValueToBrickData:function(){}}),editor_1.getNullableDatasource()),editor_1.getNullableDisplay()),editor_1.getNullableState());