@noah-libjs/components 0.0.49 → 0.0.51

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.
@@ -61,7 +61,7 @@ function ArrayInputInner(props) {
61
61
  var C = componentMap[opt.inputType];
62
62
  var props = (_opt$props = opt.props) !== null && _opt$props !== void 0 ? _opt$props : {};
63
63
  var style = (_props$style = props.style) !== null && _props$style !== void 0 ? _props$style : {};
64
- if (['MyInput', 'Input', 'MA', 'MyAutoComplete', 'input'].includes(opt.inputType)) {
64
+ if (['MyInput', 'Input', 'MA', 'MyAutoComplete', 'input', 'input_number'].includes(opt.inputType)) {
65
65
  style = _objectSpread({
66
66
  width: inputWidth
67
67
  }, style);
@@ -605,13 +605,13 @@ function use_options(props) {
605
605
  function process_frugal_local(props, changedValue) {
606
606
  var frugal = props.frugal;
607
607
  if (!frugal) return changedValue;
608
- console.log('frugal_value local', changedValue[0]);
608
+ // console.log('frugal_value local', changedValue[0])
609
609
  return changedValue[0];
610
610
  }
611
611
  function process_frugal_remote(value, frugal) {
612
612
  if (!frugal) return safe_json_parse_arr(value, value);
613
613
  var frugal_value = safe_json_parse(value);
614
- console.log('frugal_value remote', frugal_value);
614
+ // console.log('frugal_value remote', frugal_value)
615
615
  if (isNil(frugal_value === null || frugal_value === void 0 ? void 0 : frugal_value.value)) return [];
616
616
  return [frugal_value];
617
617
  }
@@ -1068,7 +1068,7 @@ function MyButton(props) {
1068
1068
  var _icon = visible ? defaultIcon !== null && defaultIcon !== void 0 ? defaultIcon : /*#__PURE__*/React__default.createElement(MyIcon, {
1069
1069
  value: 'LoadingOutlined'
1070
1070
  }) : icon;
1071
- if (primary) {
1071
+ if (primary && !type) {
1072
1072
  type = 'primary';
1073
1073
  }
1074
1074
  useEffect(function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noah-libjs/components",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -38,12 +38,12 @@
38
38
  "rollup-plugin-postcss": "^4.0.2"
39
39
  },
40
40
  "dependencies": {
41
- "@noah-libjs/request": "^0.0.49",
42
- "@noah-libjs/utils": "^0.0.49"
41
+ "@noah-libjs/request": "^0.0.51",
42
+ "@noah-libjs/utils": "^0.0.51"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
47
  "license": "MIT",
48
- "gitHead": "79e2242954102e2d87978912eff9ab8d7cbd1b7d"
48
+ "gitHead": "4c844e0aafdce556ef23eed4a1cdce196814c4d6"
49
49
  }