ydb-components-material 0.1.84 → 0.1.85

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.
@@ -8,7 +8,7 @@
8
8
  left: 0;
9
9
  top: 0;
10
10
  background: #919191;
11
- // padding-top: 100px;
11
+ overflow-y: scroll;
12
12
  #file_check_point {
13
13
  overflow: visible !important;
14
14
  overflow-clip-margin: unset !important;
@@ -94,6 +94,7 @@ export function dataURLtoBlob(dataUrl) {
94
94
 
95
95
  // 上传文件至申报端的服务器 [方法]
96
96
  export function uploadFilePromise(url, config) {
97
+ console.log('uploadFilePromise', config);
97
98
  return new Promise(function (resolve, reject) {
98
99
  var formData = new FormData();
99
100
  formData.append('file', url);
@@ -102,8 +103,8 @@ export function uploadFilePromise(url, config) {
102
103
  fetch(config.baseUrl + "/declaration/material/file/files/api", {
103
104
  method: 'POST',
104
105
  body: formData,
105
- header: {
106
- Authorization: config.tokenTY
106
+ headers: {
107
+ 'Authorization': config.tokenTY
107
108
  }
108
109
  }).then(function (response) {
109
110
  return response.json();
@@ -8,7 +8,7 @@
8
8
  left: 0;
9
9
  top: 0;
10
10
  background: #919191;
11
- // padding-top: 100px;
11
+ overflow-y: scroll;
12
12
  #file_check_point {
13
13
  overflow: visible !important;
14
14
  overflow-clip-margin: unset !important;
@@ -103,6 +103,7 @@ function dataURLtoBlob(dataUrl) {
103
103
 
104
104
  // 上传文件至申报端的服务器 [方法]
105
105
  function uploadFilePromise(url, config) {
106
+ console.log('uploadFilePromise', config);
106
107
  return new Promise(function (resolve, reject) {
107
108
  var formData = new FormData();
108
109
  formData.append('file', url);
@@ -111,8 +112,8 @@ function uploadFilePromise(url, config) {
111
112
  fetch(config.baseUrl + "/declaration/material/file/files/api", {
112
113
  method: 'POST',
113
114
  body: formData,
114
- header: {
115
- Authorization: config.tokenTY
115
+ headers: {
116
+ 'Authorization': config.tokenTY
116
117
  }
117
118
  }).then(function (response) {
118
119
  return response.json();
@@ -90,7 +90,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
90
90
  packageName = 'ydb-components-material';
91
91
  }
92
92
  if (version === void 0) {
93
- version = '0.1.84';
93
+ version = '0.1.85';
94
94
  }
95
95
  if (basicLibraryVersion === void 0) {
96
96
  basicLibraryVersion = {
@@ -95,7 +95,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
95
95
  packageName = 'ydb-components-material';
96
96
  }
97
97
  if (version === void 0) {
98
- version = '0.1.84';
98
+ version = '0.1.85';
99
99
  }
100
100
  if (basicLibraryVersion === void 0) {
101
101
  basicLibraryVersion = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-components-material",
3
- "version": "0.1.84",
3
+ "version": "0.1.85",
4
4
  "description": "ydb-components-material",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -97,10 +97,10 @@
97
97
  },
98
98
  "componentConfig": {
99
99
  "isComponentLibrary": true,
100
- "materialSchema": "https://unpkg.com/ydb-components-material@0.1.84/build/lowcode/assets-prod.json"
100
+ "materialSchema": "https://unpkg.com/ydb-components-material@0.1.85/build/lowcode/assets-prod.json"
101
101
  },
102
102
  "lcMeta": {
103
103
  "type": "component"
104
104
  },
105
- "homepage": "https://unpkg.com/ydb-components-material@0.1.84/build/index.html"
105
+ "homepage": "https://unpkg.com/ydb-components-material@0.1.85/build/index.html"
106
106
  }