@signalplus/params-about 0.1.7 → 0.1.8

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.
package/index.d.ts CHANGED
@@ -282,7 +282,7 @@ declare function paramValidator(val: any, values: {
282
282
  valueType: ParamType;
283
283
  }): string;
284
284
  declare const ParamTypeOptions: {
285
- value: string;
285
+ value: number;
286
286
  label: string;
287
287
  name: string;
288
288
  key?: string | undefined;
package/lib/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Bundle of @signalplus/params-about
3
3
  * Generated: 2022-04-08
4
- * Version: 0.1.7
4
+ * Version: 0.1.8
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
@@ -1204,7 +1204,7 @@ var ParamTypeOptions = Object.entries(ParamTypeConfig).map(function (_ref) {
1204
1204
  config = _ref2[1];
1205
1205
 
1206
1206
  return _objectSpread2(_objectSpread2({}, config), {}, {
1207
- value: value,
1207
+ value: Number(value),
1208
1208
  label: config.name
1209
1209
  });
1210
1210
  });
@@ -1309,6 +1309,7 @@ function ParentSelector(props) {
1309
1309
  options = _useMemo.options;
1310
1310
 
1311
1311
  return /*#__PURE__*/React.createElement(Cascader, {
1312
+ changeOnSelect: true,
1312
1313
  style: props.style,
1313
1314
  disabled: props.readonly,
1314
1315
  placeholder: '请选择',
@@ -1392,9 +1393,9 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1392
1393
  label: '参数类型',
1393
1394
  name: 'valueType',
1394
1395
  Comp: function Comp(props) {
1395
- return /*#__PURE__*/React.createElement(Select, Object.assign({
1396
+ return /*#__PURE__*/React.createElement(Select, Object.assign({}, props, {
1396
1397
  placeholder: '请选择'
1397
- }, props), ParamTypeOptions.map(function (it) {
1398
+ }), ParamTypeOptions.map(function (it) {
1398
1399
  return /*#__PURE__*/React.createElement(Select.Option, {
1399
1400
  key: it.value,
1400
1401
  value: it.value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",