@wibetter/json-editor 5.1.12 → 5.1.13
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/lib/index.css +2 -2
- package/lib/index.js +4 -3
- package/package.json +1 -1
- package/sdk/index.css +2 -2
- package/sdk/index.js +1680 -2956
package/lib/index.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.13
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Mon Jan 20 2025 16:58:20 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
package/lib/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.13
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Mon Jan 20 2025 16:58:20 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -2863,7 +2863,8 @@ var ObjectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
2863
2863
|
}
|
|
2864
2864
|
}
|
|
2865
2865
|
if (currentJsonKey === 'range') {
|
|
2866
|
-
if (curJsonData.valueType === 'select' && (curJsonData.type === 'ContentStaticConfig' || curJsonData.type === 'ResourceCenter')) {
|
|
2866
|
+
if (curJsonData.valueType === 'select' && (!currentSchemaData.options || currentSchemaData.options.length === 0) && (curJsonData.type === 'ContentStaticConfig' || curJsonData.type === 'ResourceCenter')) {
|
|
2867
|
+
// 如果 range 没有可选项则从 value 中获取可选项
|
|
2867
2868
|
var _valueSchema = targetJsonSchema.properties['value'];
|
|
2868
2869
|
if (['select', 'radio', 'checkboxes'].includes(_valueSchema.type) && _valueSchema.options && _valueSchema.options.length > 0) {
|
|
2869
2870
|
// range 和 value 复用 options
|
package/package.json
CHANGED
package/sdk/index.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.13
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Mon Jan 20 2025 16:57:33 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|