@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 CHANGED
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * @wibetter/json-editor v5.1.12
2
+ * @wibetter/json-editor v5.1.13
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Fri Jan 17 2025 15:43:17 GMT+0800 (中国标准时间)
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.12
2
+ * @wibetter/json-editor v5.1.13
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Fri Jan 17 2025 15:43:17 GMT+0800 (中国标准时间)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wibetter/json-editor",
3
- "version": "5.1.12",
3
+ "version": "5.1.13",
4
4
  "description": "JSON数据可视化/JSONEditor, 可视化界面编辑json数据",
5
5
  "keywords": [
6
6
  "json",
package/sdk/index.css CHANGED
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * @wibetter/json-editor v5.1.12
2
+ * @wibetter/json-editor v5.1.13
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Fri Jan 17 2025 15:43:26 GMT+0800 (中国标准时间)
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
  /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\