hzerojs-plugin-yqcloud-jssdk 1.0.17 → 1.0.19

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.
Files changed (2) hide show
  1. package/lib/index.js +5 -5
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -41,7 +41,7 @@ var import_index = require("./index.css");
41
41
  var YQ_API_HOST = "https://api.test.yqcloud.com";
42
42
  var src_default = (props) => {
43
43
  var _a, _b;
44
- const { token, entryDetail, apiHost = YQ_API_HOST, tokenPath = "/iam/v1/zknow/encrypt/quick" } = props;
44
+ const { token, entryDetail, apiHost = YQ_API_HOST, tokenPath = "/iam/v1/zknow/encrypt/quick", modalBodyStyle, modalStyle } = props;
45
45
  const eleRef = import_react.default.useRef(null);
46
46
  const tenantIdRef = import_react.default.useRef(null);
47
47
  const [appConfig, setAppConfig] = import_react.default.useState(false);
@@ -121,22 +121,22 @@ var src_default = (props) => {
121
121
  secret
122
122
  // code,
123
123
  });
124
- const authParam = `redirectFlag&access_token=${res.accessToken}&token_type=bearer&state=&expires_in=86399&scope=default`;
124
+ const authParam = `&redirectFlag&access_token=${res.accessToken}&token_type=bearer&state=&expires_in=86399&scope=default`;
125
125
  const fieldData = sessionStorage.getItem("YQ_FIELD_DATA");
126
126
  let urlParam = authParam;
127
127
  if (fieldData) {
128
- urlParam = `&fieldData=${fieldData}&${authParam}`;
128
+ urlParam = `&fieldData=${fieldData}${authParam}`;
129
129
  }
130
130
  const modal = import_modal.default.open({
131
131
  // title: '测试',
132
132
  maskClosable: true,
133
- bodyStyle: {
133
+ bodyStyle: modalBodyStyle || {
134
134
  width: (openFunction == null ? void 0 : openFunction.viewSize) || 800,
135
135
  padding: 0,
136
136
  height: "100%",
137
137
  overflow: "hidden"
138
138
  },
139
- style: {
139
+ style: modalStyle || {
140
140
  // top: 50,
141
141
  },
142
142
  contentStyle: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hzerojs-plugin-yqcloud-jssdk",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "main": "lib/index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {