@innoways/form-generator 8.0.5 → 8.0.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - fixed fieldKey default to apiKey version 8.0.6
8
+ - Updated dependencies
9
+ - @innoways/drip-form-theme-antd@8.0.6
10
+ - @innoways/drip-form@8.0.6
11
+ - @innoways/hooks@8.0.6
12
+ - @innoways/utils@8.0.6
13
+
3
14
  ## 8.0.5
4
15
 
5
16
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { atom, selector, DefaultValue, atomFamily, selectorFamily, useRecoilValu
3
3
  import cx from 'classnames';
4
4
  import { message, Modal, Input, Button, Select, Tabs, Drawer, Upload, Popover, Breadcrumb, TreeSelect, InputNumber, Switch, Space, Collapse, ConfigProvider } from 'antd';
5
5
  import { CopyOutlined, SaveOutlined, LogoutOutlined, ExclamationCircleOutlined, CompressOutlined, SettingOutlined, DownloadOutlined, EditOutlined, UploadOutlined } from '@ant-design/icons';
6
- import { parseUnitedSchema, getThemeAndType, generateReg, setDeepProp, deleteDeepProp, deepClone, typeCheck, removeSpaceAndmakeStringCamelCase, isEmpty, injectVcontrol, combine } from '@innoways/utils';
6
+ import { parseUnitedSchema, getThemeAndType, generateReg, setDeepProp, deleteDeepProp, deepClone, typeCheck, isEmpty, injectVcontrol, combine } from '@innoways/utils';
7
7
  import antd, { config as config$2 } from '@innoways/drip-form-theme-antd';
8
8
  import { nanoid } from 'nanoid';
9
9
  import produce$1, { produce, original } from 'immer';
@@ -4540,8 +4540,8 @@ var PropertyConfig = function PropertyConfig() {
4540
4540
 
4541
4541
  return _objectSpread$b(_objectSpread$b(_objectSpread$b({
4542
4542
  type: themeAndType,
4543
- $fieldKey: dataSchema.$fieldKey || fieldKey,
4544
- apiKey: dataSchema !== null && dataSchema !== void 0 && dataSchema.apiKey ? dataSchema.apiKey : dataSchema !== null && dataSchema !== void 0 && dataSchema.title ? removeSpaceAndmakeStringCamelCase(dataSchema.title) : '',
4543
+ $fieldKey: dataSchema !== null && dataSchema !== void 0 && dataSchema.apiKey ? dataSchema.apiKey : dataSchema.$fieldKey || fieldKey,
4544
+ apiKey: dataSchema !== null && dataSchema !== void 0 && dataSchema.apiKey ? dataSchema.apiKey : '',
4545
4545
  hideOnViewMode: (dataSchema === null || dataSchema === void 0 ? void 0 : dataSchema.hideOnViewMode) || false,
4546
4546
  title: uiSchema.title || {},
4547
4547
  containerStyle: uiSchema.containerStyle || {},
@@ -4866,6 +4866,11 @@ var PropertyConfig = function PropertyConfig() {
4866
4866
  if (changeKey === 'footer.url' || changeKey === 'footer.method' || changeKey === 'footer.token' || changeKey === 'footer.jsonkey' || changeKey === 'footer.apiJson') {
4867
4867
  addOnChangeKey = 'footer.fetchData';
4868
4868
  addOnChangeValue = false;
4869
+ }
4870
+
4871
+ if (changeKey === 'apiKey') {
4872
+ addOnChangeKey = '$fieldKey';
4873
+ addOnChangeValue = data;
4869
4874
  } // 填充渲染区Schema
4870
4875
 
4871
4876
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innoways/form-generator",
3
- "version": "8.0.5",
3
+ "version": "8.0.6",
4
4
  "description": "drip-form 生成器",
5
5
  "keywords": [
6
6
  "hooks",
@@ -37,10 +37,10 @@
37
37
  "@dnd-kit/modifiers": "^4.0.0",
38
38
  "@dnd-kit/sortable": "^5.0.0",
39
39
  "@dnd-kit/utilities": "^3.0.0",
40
- "@innoways/drip-form": "^8.0.5",
41
- "@innoways/drip-form-theme-antd": "^8.0.5",
42
- "@innoways/hooks": "^8.0.5",
43
- "@innoways/utils": "^8.0.5",
40
+ "@innoways/drip-form": "^8.0.6",
41
+ "@innoways/drip-form-theme-antd": "^8.0.6",
42
+ "@innoways/hooks": "^8.0.6",
43
+ "@innoways/utils": "^8.0.6",
44
44
  "@monaco-editor/react": "^4.2.2",
45
45
  "antd": "^4.16.13",
46
46
  "classnames": "^2.3.1",