@signalplus/params-about 0.1.28 → 0.1.31

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.
Files changed (2) hide show
  1. package/lib/es/index.js +6 -5
  2. package/package.json +5 -2
package/lib/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Bundle of @signalplus/params-about
3
- * Generated: 2022-04-12
4
- * Version: 0.1.28
3
+ * Generated: 2022-04-13
4
+ * Version: 0.1.31
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
@@ -413,7 +413,7 @@ function keyValidator(val, allKeys) {
413
413
  var error = emptyValidator(val);
414
414
  if (error) return error;
415
415
 
416
- if (/^[_.a-zA-Z0-9]+$/.test(val)) {
416
+ if (!/^[_.a-zA-Z0-9]+$/.test(val)) {
417
417
  return 'Out of format: should be a combination of the following chars `_.0-9a-zA-Z`';
418
418
  }
419
419
 
@@ -1428,7 +1428,8 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1428
1428
  name: 'valueType',
1429
1429
  Comp: function Comp(props) {
1430
1430
  return /*#__PURE__*/React.createElement(Select, Object.assign({}, props, {
1431
- placeholder: '请选择'
1431
+ placeholder: '请选择',
1432
+ defaultValue: 1
1432
1433
  }), ParamTypeOptions.map(function (it) {
1433
1434
  return /*#__PURE__*/React.createElement(Select.Option, {
1434
1435
  key: it.value,
@@ -2120,7 +2121,7 @@ _defineProperty(ParamGroupEditorModal, "el", new ReactGlobalComp('param-group-ed
2120
2121
 
2121
2122
  function genOptions(props) {
2122
2123
  var _props$maxLevel = props.maxLevel,
2123
- maxLevel = _props$maxLevel === void 0 ? 3 : _props$maxLevel;
2124
+ maxLevel = _props$maxLevel === void 0 ? 4 : _props$maxLevel;
2124
2125
 
2125
2126
  var filter = function filter(it, level) {
2126
2127
  return it.valueType === ParamType.ParamGroup && level < maxLevel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "0.1.28",
3
+ "version": "0.1.31",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",
@@ -10,7 +10,7 @@
10
10
  "build:css": "cross-env NODE_ENV=production node-sass ./src/css/index.scss ./lib/css/index.css --output-style compressed && ncp ./src/css ./lib/css",
11
11
  "build:js": "cross-env NODE_ENV=production rollup -c",
12
12
  "build:dts": "cross-env NODE_ENV=production BUILD_ENV=dts rollup -c",
13
- "dev": "rimraf ./lib && cross-env BUILD_ENV=watch node watch.js",
13
+ "dev": "rm -rf ./lib && cross-env BUILD_ENV=watch node watch.js",
14
14
  "build": "rimraf ./lib && npm run build:css && npm run build:js && npm run build:dts",
15
15
  "build:test": "rimraf ./test-lib && cross-env NODE_ENV=test rollup -c rollup.config.test.js --sourcemap",
16
16
  "test": "npm run build:test && cross-env NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- ./test",
@@ -87,5 +87,8 @@
87
87
  "dayjs": "^1.11.0",
88
88
  "lodash-es": "^4.17.21",
89
89
  "react-global-comp": "^2.0.1"
90
+ },
91
+ "dependencies": {
92
+ "rimraf": "^3.0.2"
90
93
  }
91
94
  }