|
@@ -0,0 +1,37 @@
|
|
|
+import _ from 'lodash'
|
|
|
+import $ from 'jquery'
|
|
|
+import {baseConfig} from "./base";
|
|
|
+import {fieldSet} from "../Defaults";
|
|
|
+import {
|
|
|
+ disabled,
|
|
|
+ fieldLabel,
|
|
|
+ gravity, height, metaId,
|
|
|
+ PropertyDescriptionTable,
|
|
|
+ tooltip,
|
|
|
+ value, width,
|
|
|
+ YvBase
|
|
|
+} from "../PropertyDescriptionTable";
|
|
|
+import {PropertyDescription} from "../PropertyDescription";
|
|
|
+
|
|
|
+export default function () {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ const ct = Ext.form.FieldSet.prototype.constructor
|
|
|
+ Ext.form.FieldSet.override({
|
|
|
+ constructor: function (config) {
|
|
|
+ const newConfig = _.defaultsDeep({}, config, baseConfig(config, "rows-container"), fieldSet)
|
|
|
+ ct.call(this, newConfig)
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ PropertyDescriptionTable.set(
|
|
|
+ 'fieldSet',
|
|
|
+ new PropertyDescription(YvBase, {
|
|
|
+ props: [
|
|
|
+ fieldLabel, value, disabled,
|
|
|
+ gravity, tooltip, metaId, width, height
|
|
|
+ ],
|
|
|
+ })
|
|
|
+ )
|
|
|
+}
|