|
|
|
@ -11,7 +11,9 @@ module.exports = {
|
|
|
|
type: 'json',
|
|
|
|
type: 'json',
|
|
|
|
custom: (value) =>
|
|
|
|
custom: (value) =>
|
|
|
|
_.isPlainObject(value) &&
|
|
|
|
_.isPlainObject(value) &&
|
|
|
|
(_.isUndefined(value.background) || _.isPlainObject(value.background)) &&
|
|
|
|
(_.isUndefined(value.background) ||
|
|
|
|
|
|
|
|
_.isNull(value.background) ||
|
|
|
|
|
|
|
|
_.isPlainObject(value.background)) &&
|
|
|
|
(_.isUndefined(value.backgroundImage) || _.isNull(value.backgroundImage)),
|
|
|
|
(_.isUndefined(value.backgroundImage) || _.isNull(value.backgroundImage)),
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|