@signalplus/params-about 0.1.46 → 0.1.47
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 +4 -0
- package/lib/es/index.js +14 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -127,6 +127,10 @@ interface ParamValueEditorData {
|
|
|
127
127
|
valueId?: string;
|
|
128
128
|
[key: string]: any;
|
|
129
129
|
};
|
|
130
|
+
defaultValue?: {
|
|
131
|
+
valueId?: string;
|
|
132
|
+
[key: string]: any;
|
|
133
|
+
};
|
|
130
134
|
}
|
|
131
135
|
interface ParamValueEditorProps {
|
|
132
136
|
allParams: ParentSelectorProps['parentOptions'];
|
package/lib/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Bundle of @signalplus/params-about
|
|
3
|
-
* Generated: 2022-04-
|
|
4
|
-
* Version: 0.1.
|
|
3
|
+
* Generated: 2022-04-27
|
|
4
|
+
* Version: 0.1.47
|
|
5
5
|
* License: MIT
|
|
6
6
|
* Author: 2631541504@qq.com
|
|
7
7
|
*/
|
|
@@ -1667,6 +1667,18 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
|
|
|
1667
1667
|
}
|
|
1668
1668
|
}, props.value || '-');
|
|
1669
1669
|
}
|
|
1670
|
+
}, {
|
|
1671
|
+
label: 'Default Value',
|
|
1672
|
+
name: 'defaultValue',
|
|
1673
|
+
className: 'param-default-value',
|
|
1674
|
+
Comp: function Comp(props) {
|
|
1675
|
+
console.log("props", props);
|
|
1676
|
+
return /*#__PURE__*/React.createElement(ParamRenderer, Object.assign({}, props, {
|
|
1677
|
+
readonly: true,
|
|
1678
|
+
expiriesOptions: _this2.props.expiriesOptions,
|
|
1679
|
+
valueType: _this2.props.valueType
|
|
1680
|
+
}));
|
|
1681
|
+
}
|
|
1670
1682
|
}, {
|
|
1671
1683
|
label: 'Value before',
|
|
1672
1684
|
name: 'valueBefore',
|