@luck-design-biz/luckda 0.0.20-UI-2 → 0.0.21

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.
@@ -25,7 +25,7 @@ import { LuckDaPopContext } from '../LdPop';
25
25
  import createModel from './model';
26
26
  import { onBatchSubmitAction } from '../../helper/action';
27
27
  import { isArray, sortBy, mapValues } from 'lodash';
28
- import { BpmButton } from '@luck-design-biz/base/bpm';
28
+ import { BpmButton } from '@luck-design-biz/bpm';
29
29
  import { readBehaviorCall } from '../../services';
30
30
  import { parse, stringify } from 'querystring';
31
31
 
@@ -71,7 +71,7 @@ var LdFormList = function LdFormList(_ref) {
71
71
  bizData = _useState6[0],
72
72
  setBizData = _useState6[1];
73
73
  var luckTheme = useCreation(function () {
74
- return document.body.getAttribute("luck-theme");
74
+ return document.body.getAttribute('luck-theme');
75
75
  }, []);
76
76
  var _ref2 = useContext(LuckDaPopContext) || {},
77
77
  defaultLayout = _ref2.affixLayout;
@@ -121,7 +121,7 @@ var LdFormList = function LdFormList(_ref) {
121
121
  bizData: bizData,
122
122
  suppressDept: false,
123
123
  showHistory: luckTheme === 'base' ? 'sider' : 'drawer',
124
- placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? "topRight" : "bottomRight"
124
+ placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? 'topRight' : 'bottomRight'
125
125
  }, bpmButtonProps)));
126
126
  };
127
127
  useAsyncEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
package/es/services.js CHANGED
@@ -30,7 +30,10 @@ function _readBehaviorCall() {
30
30
  case 0:
31
31
  return _context2.abrupt("return", request("".concat(api.LUCKDA_HOST, "/to/behavior/call?").concat(stringify(get)), {
32
32
  method: 'POST',
33
- body: post
33
+ body: post,
34
+ headers: {
35
+ 'Content-Type': 'application/json;charset=UTF-8'
36
+ }
34
37
  }));
35
38
  case 1:
36
39
  case "end":
@@ -29,7 +29,7 @@ var _LdPop = require("../LdPop");
29
29
  var _model = _interopRequireDefault(require("./model"));
30
30
  var _action = require("../../helper/action");
31
31
  var _lodash = require("lodash");
32
- var _bpm = require("@luck-design-biz/base/bpm");
32
+ var _bpm = require("@luck-design-biz/bpm");
33
33
  var _services = require("../../services");
34
34
  var _querystring = require("querystring");
35
35
  var _excluded = ["namespace", "formState", "formMode", "formOperates", "loading", "wrapperRef", "readOnly", "mainFormLdId", "renderFormList", "renderAffixLeft", "renderAffixRight", "beforeSubmit", "showSaveBtn", "saveBtnTitle", "affixLayout", "onValueChange", "afterSubmit", "renderFormExtra", "bpmButtonProps"],
@@ -78,7 +78,7 @@ var LdFormList = function LdFormList(_ref) {
78
78
  bizData = _useState6[0],
79
79
  setBizData = _useState6[1];
80
80
  var luckTheme = (0, _ahooks.useCreation)(function () {
81
- return document.body.getAttribute("luck-theme");
81
+ return document.body.getAttribute('luck-theme');
82
82
  }, []);
83
83
  var _ref2 = (0, _react.useContext)(_LdPop.LuckDaPopContext) || {},
84
84
  defaultLayout = _ref2.affixLayout;
@@ -128,7 +128,7 @@ var LdFormList = function LdFormList(_ref) {
128
128
  bizData: bizData,
129
129
  suppressDept: false,
130
130
  showHistory: luckTheme === 'base' ? 'sider' : 'drawer',
131
- placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? "topRight" : "bottomRight"
131
+ placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? 'topRight' : 'bottomRight'
132
132
  }, bpmButtonProps)));
133
133
  };
134
134
  (0, _ahooks.useAsyncEffect)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
package/lib/services.js CHANGED
@@ -38,7 +38,10 @@ function _readBehaviorCall() {
38
38
  case 0:
39
39
  return _context2.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.LUCKDA_HOST, "/to/behavior/call?").concat((0, _querystring.stringify)(get)), {
40
40
  method: 'POST',
41
- body: post
41
+ body: post,
42
+ headers: {
43
+ 'Content-Type': 'application/json;charset=UTF-8'
44
+ }
42
45
  }));
43
46
  case 1:
44
47
  case "end":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luck-design-biz/luckda",
3
- "version": "0.0.20-UI-2",
3
+ "version": "0.0.21",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -62,6 +62,7 @@
62
62
  },
63
63
  "peerDependencies": {
64
64
  "@luck-design-biz/base": ">= 0.0.10",
65
+ "@luck-design-biz/bpm": ">= 0.0.1",
65
66
  "luck-design": ">=0.1.51"
66
67
  },
67
68
  "description": "前端配置管理中心业务组件库",