@byteluck-fe/model-driven-settings 7.0.0-props.15 → 7.0.0-props.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,6 +34,7 @@ export var BaseProps = /*#__PURE__*/ function() {
34
34
  "use strict";
35
35
  function BaseProps(props) {
36
36
  _class_call_check(this, BaseProps);
37
+ var _ref, _ref1, _ref2;
37
38
  /**
38
39
  * 显示隐藏
39
40
  * */ _define_property(this, "visible", void 0);
@@ -44,12 +45,9 @@ export var BaseProps = /*#__PURE__*/ function() {
44
45
  *
45
46
  * 是否改变父属性
46
47
  */ _define_property(this, "updateParent", void 0);
47
- var _props_visible;
48
- this.visible = (_props_visible = props === null || props === void 0 ? void 0 : props.visible) !== null && _props_visible !== void 0 ? _props_visible : true;
49
- var _props_expression;
50
- this.expression = (_props_expression = props === null || props === void 0 ? void 0 : props.expression) !== null && _props_expression !== void 0 ? _props_expression : false;
51
- var _props_updateParent;
52
- this.updateParent = (_props_updateParent = props === null || props === void 0 ? void 0 : props.updateParent) !== null && _props_updateParent !== void 0 ? _props_updateParent : false;
48
+ this.visible = (_ref = props === null || props === void 0 ? void 0 : props.visible) !== null && _ref !== void 0 ? _ref : true;
49
+ this.expression = (_ref1 = props === null || props === void 0 ? void 0 : props.expression) !== null && _ref1 !== void 0 ? _ref1 : false;
50
+ this.updateParent = (_ref2 = props === null || props === void 0 ? void 0 : props.updateParent) !== null && _ref2 !== void 0 ? _ref2 : false;
53
51
  }
54
52
  _create_class(BaseProps, [
55
53
  {
@@ -77,11 +77,11 @@ export var CheckboxProps = /*#__PURE__*/ function(BaseProps) {
77
77
  function CheckboxProps(props) {
78
78
  _class_call_check(this, CheckboxProps);
79
79
  var _this;
80
+ var _ref;
80
81
  _this = _call_super(this, CheckboxProps, [
81
82
  props
82
83
  ]), _define_property(_this, "options", void 0);
83
- var _props_options;
84
- _this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
84
+ _this.options = (_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [];
85
85
  return _this;
86
86
  }
87
87
  return CheckboxProps;
@@ -77,15 +77,13 @@ export var InputNumberProps = /*#__PURE__*/ function(BaseProps) {
77
77
  function InputNumberProps(props) {
78
78
  _class_call_check(this, InputNumberProps);
79
79
  var _this;
80
+ var _ref, _ref1, _ref2;
80
81
  _this = _call_super(this, InputNumberProps, [
81
82
  props
82
83
  ]), _define_property(_this, "max", void 0), _define_property(_this, "min", void 0), _define_property(_this, "placeholder", void 0);
83
- var _props_max;
84
- _this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : '';
85
- var _props_min;
86
- _this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : '';
87
- var _props_placeholder;
88
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '';
84
+ _this.max = (_ref = props === null || props === void 0 ? void 0 : props.max) !== null && _ref !== void 0 ? _ref : '';
85
+ _this.min = (_ref1 = props === null || props === void 0 ? void 0 : props.min) !== null && _ref1 !== void 0 ? _ref1 : '';
86
+ _this.placeholder = (_ref2 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref2 !== void 0 ? _ref2 : '';
89
87
  return _this;
90
88
  }
91
89
  return InputNumberProps;
@@ -77,17 +77,14 @@ export var InputProps = /*#__PURE__*/ function(BaseProps) {
77
77
  function InputProps(props) {
78
78
  _class_call_check(this, InputProps);
79
79
  var _this;
80
+ var _ref, _ref1, _ref2, _ref3;
80
81
  _this = _call_super(this, InputProps, [
81
82
  props
82
83
  ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "placeholder", void 0), _define_property(_this, "i18n", void 0);
83
- var _props_maxLength;
84
- _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : '';
85
- var _props_minLength;
86
- _this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : '';
87
- var _props_placeholder;
88
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '';
89
- var _props_i18n;
90
- _this.i18n = (_props_i18n = props === null || props === void 0 ? void 0 : props.i18n) !== null && _props_i18n !== void 0 ? _props_i18n : false;
84
+ _this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : '';
85
+ _this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : '';
86
+ _this.placeholder = (_ref2 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref2 !== void 0 ? _ref2 : '';
87
+ _this.i18n = (_ref3 = props === null || props === void 0 ? void 0 : props.i18n) !== null && _ref3 !== void 0 ? _ref3 : false;
91
88
  return _this;
92
89
  }
93
90
  return InputProps;
@@ -77,13 +77,12 @@ export var RadioProps = /*#__PURE__*/ function(BaseProps) {
77
77
  function RadioProps(props) {
78
78
  _class_call_check(this, RadioProps);
79
79
  var _this;
80
+ var _ref, _ref1;
80
81
  _this = _call_super(this, RadioProps, [
81
82
  props
82
83
  ]), _define_property(_this, "options", void 0), _define_property(_this, "showType", void 0);
83
- var _props_options;
84
- _this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
85
- var _props_showType;
86
- _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'outline';
84
+ _this.options = (_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [];
85
+ _this.showType = (_ref1 = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref1 !== void 0 ? _ref1 : 'outline';
87
86
  return _this;
88
87
  }
89
88
  return RadioProps;
@@ -77,13 +77,12 @@ export var SelectProps = /*#__PURE__*/ function(BaseProps) {
77
77
  function SelectProps(props) {
78
78
  _class_call_check(this, SelectProps);
79
79
  var _this;
80
+ var _ref, _ref1;
80
81
  _this = _call_super(this, SelectProps, [
81
82
  props
82
83
  ]), _define_property(_this, "placeholder", void 0), _define_property(_this, "options", void 0);
83
- var _props_placeholder;
84
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '';
85
- var _props_options;
86
- _this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
84
+ _this.placeholder = (_ref = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref !== void 0 ? _ref : '';
85
+ _this.options = (_ref1 = props === null || props === void 0 ? void 0 : props.options) !== null && _ref1 !== void 0 ? _ref1 : [];
87
86
  return _this;
88
87
  }
89
88
  return SelectProps;
@@ -77,15 +77,13 @@ export var SwitchProps = /*#__PURE__*/ function(BaseProps) {
77
77
  function SwitchProps(props) {
78
78
  _class_call_check(this, SwitchProps);
79
79
  var _this;
80
+ var _ref, _ref1, _ref2;
80
81
  _this = _call_super(this, SwitchProps, [
81
82
  props
82
83
  ]), _define_property(_this, "showType", void 0), _define_property(_this, "tips", void 0), _define_property(_this, "disabled", void 0);
83
- var _props_showType;
84
- _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'switch';
85
- var _props_tips;
86
- _this.tips = (_props_tips = props === null || props === void 0 ? void 0 : props.tips) !== null && _props_tips !== void 0 ? _props_tips : '';
87
- var _props_disabled;
88
- _this.disabled = (_props_disabled = props === null || props === void 0 ? void 0 : props.disabled) !== null && _props_disabled !== void 0 ? _props_disabled : false;
84
+ _this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'switch';
85
+ _this.tips = (_ref1 = props === null || props === void 0 ? void 0 : props.tips) !== null && _ref1 !== void 0 ? _ref1 : '';
86
+ _this.disabled = (_ref2 = props === null || props === void 0 ? void 0 : props.disabled) !== null && _ref2 !== void 0 ? _ref2 : false;
89
87
  return _this;
90
88
  }
91
89
  return SwitchProps;
@@ -77,21 +77,16 @@ export var TextareaProps = /*#__PURE__*/ function(BaseProps) {
77
77
  function TextareaProps(props) {
78
78
  _class_call_check(this, TextareaProps);
79
79
  var _this;
80
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
80
81
  _this = _call_super(this, TextareaProps, [
81
82
  props
82
83
  ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "placeholder", void 0), _define_property(_this, "i18n", void 0), _define_property(_this, "maxRows", void 0), _define_property(_this, "minRows", void 0);
83
- var _props_maxLength;
84
- _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : '';
85
- var _props_minLength;
86
- _this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : '';
87
- var _props_placeholder;
88
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '';
89
- var _props_maxRows;
90
- _this.maxRows = (_props_maxRows = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _props_maxRows !== void 0 ? _props_maxRows : '';
91
- var _props_minRows;
92
- _this.minRows = (_props_minRows = props === null || props === void 0 ? void 0 : props.minRows) !== null && _props_minRows !== void 0 ? _props_minRows : '';
93
- var _props_i18n;
94
- _this.i18n = (_props_i18n = props === null || props === void 0 ? void 0 : props.i18n) !== null && _props_i18n !== void 0 ? _props_i18n : false;
84
+ _this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : '';
85
+ _this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : '';
86
+ _this.placeholder = (_ref2 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref2 !== void 0 ? _ref2 : '';
87
+ _this.maxRows = (_ref3 = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _ref3 !== void 0 ? _ref3 : '';
88
+ _this.minRows = (_ref4 = props === null || props === void 0 ? void 0 : props.minRows) !== null && _ref4 !== void 0 ? _ref4 : '';
89
+ _this.i18n = (_ref5 = props === null || props === void 0 ? void 0 : props.i18n) !== null && _ref5 !== void 0 ? _ref5 : false;
95
90
  return _this;
96
91
  }
97
92
  return TextareaProps;
@@ -19,6 +19,7 @@ function _define_property(obj, key, value) {
19
19
  export var Group = function Group(schema) {
20
20
  "use strict";
21
21
  _class_call_check(this, Group);
22
+ var _schema_title, _schema_required;
22
23
  _define_property(this, "type", 'group');
23
24
  _define_property(this, "title", void 0);
24
25
  _define_property(this, "required", void 0);
@@ -26,9 +27,7 @@ export var Group = function Group(schema) {
26
27
  _define_property(this, "tips", void 0);
27
28
  _define_property(this, "fromId", void 0);
28
29
  _define_property(this, "visible", void 0);
29
- var _schema_title;
30
30
  this.title = (_schema_title = schema.title) !== null && _schema_title !== void 0 ? _schema_title : '';
31
- var _schema_required;
32
31
  this.required = (_schema_required = schema.required) !== null && _schema_required !== void 0 ? _schema_required : false;
33
32
  this.items = schema.items;
34
33
  this.tips = schema.tips;
@@ -36,6 +36,7 @@ export var Setting = /*#__PURE__*/ function() {
36
36
  "use strict";
37
37
  function Setting(schema) {
38
38
  _class_call_check(this, Setting);
39
+ var _schema_effect, _schema_scopeEffect, _schema_props;
39
40
  _define_property(this, "type", void 0);
40
41
  _define_property(this, "label", void 0);
41
42
  _define_property(this, "key", void 0);
@@ -50,13 +51,10 @@ export var Setting = /*#__PURE__*/ function() {
50
51
  this.label = schema.label;
51
52
  this.key = schema.key;
52
53
  this.component = schema.component;
53
- var _schema_effect;
54
54
  this.effect = (_schema_effect = schema.effect) !== null && _schema_effect !== void 0 ? _schema_effect : {};
55
- var _schema_scopeEffect;
56
55
  this.scopeEffect = (_schema_scopeEffect = schema.scopeEffect) !== null && _schema_scopeEffect !== void 0 ? _schema_scopeEffect : noop;
57
56
  this.defaultValue = schema.defaultValue;
58
57
  this.validator = schema.validator;
59
- var _schema_props;
60
58
  this.props = (_schema_props = schema.props) !== null && _schema_props !== void 0 ? _schema_props : new BaseProps();
61
59
  // private init
62
60
  this.effectKeys = Object.keys(this.effect);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-settings",
3
- "version": "7.0.0-props.15",
3
+ "version": "7.0.0-props.19",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -27,9 +27,9 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@byteluck-fe/locale-message": "^1.0.8",
30
- "@byteluck-fe/model-driven-core": "7.0.0-props.15",
31
- "@byteluck-fe/model-driven-shared": "7.0.0-props.15",
30
+ "@byteluck-fe/model-driven-core": "7.0.0-props.19",
31
+ "@byteluck-fe/model-driven-shared": "7.0.0-props.19",
32
32
  "tslib": "^2.1.0"
33
33
  },
34
- "gitHead": "81fe8a604f5ea178d38eabab85ba6c6a8e0feb53"
34
+ "gitHead": "073db5892c45afd0d1e1c2ff8614683331248c95"
35
35
  }