@pointcloud/pcloud-components 0.1.5 → 0.1.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +16 -29
  3. package/dist/esm/DCascader/index.js +6 -6
  4. package/dist/esm/DCascader/index.less +24 -24
  5. package/dist/esm/DForm/DItem/index.js +4 -1
  6. package/dist/esm/DForm/DItem/itemsRender.d.ts +4 -3
  7. package/dist/esm/DForm/DItem/itemsRender.js +8 -3
  8. package/dist/esm/DForm/helper.js +6 -6
  9. package/dist/esm/DForm/index.d.ts +7 -3
  10. package/dist/esm/DForm/index.js +40 -7
  11. package/dist/esm/DForm/index.less +32 -32
  12. package/dist/esm/DInput/index.js +5 -2
  13. package/dist/esm/DSelect/index.js +6 -6
  14. package/dist/esm/DTable/index.d.ts +15 -8
  15. package/dist/esm/DTable/index.js +39 -29
  16. package/dist/esm/DTable/index.less +3 -2
  17. package/dist/esm/DTreeSelect/index.js +6 -6
  18. package/dist/esm/DTreeSelect/index.less +11 -11
  19. package/dist/esm/DUpload/helper.js +47 -47
  20. package/dist/esm/DUpload/index.js +45 -44
  21. package/dist/esm/DUpload/index.less +19 -19
  22. package/dist/esm/ErrorBoundary/index.less +44 -44
  23. package/dist/esm/LModal/styles/index.less +27 -27
  24. package/dist/esm/LabelValue/styles/index.less +23 -23
  25. package/dist/esm/Loading/styles/index.less +25 -25
  26. package/dist/esm/NoData/styles/index.less +24 -24
  27. package/dist/esm/index.d.ts +2 -2
  28. package/dist/umd/pcloud-components.min.css +1 -1
  29. package/dist/umd/pcloud-components.min.js +1 -1
  30. package/package.json +4 -1
  31. package/dist/umd/images/favicon.png +0 -0
  32. package/dist/umd/mock/dcascader/china_region_city.json +0 -2962
  33. package/dist/umd/mock/dcascader/china_region_county.json +0 -9991
  34. package/dist/umd/mock/dcascader/china_region_province.json +0 -36
  35. package/dist/umd/mock/dupload/other/ZJ-TZ-001_/346/212/244/345/233/275/345/272/231/346/210/217/345/217/260/345/216/206/345/217/262/345/273/272/347/255/221/346/241/243/346/241/210/350/241/250.pdf +0 -0
  36. package/dist/umd/mock/dupload/other//346/234/210/347/211/231/346/271/276 - /351/243/236/345/204/277/344/271/220/345/233/242.mp3 +0 -0
  37. package/dist/umd/mock/dupload/picture/110500-thumb.jpg +0 -0
  38. package/dist/umd/mock/dupload/picture/110500.jpg +0 -0
  39. package/dist/umd/mock/dupload/picture/110502-thumb.jpg +0 -0
  40. package/dist/umd/mock/dupload/picture/110502.jpg +0 -0
  41. package/dist/umd/mock/dupload/picture/110504.png +0 -0
  42. package/dist/umd/mock/dupload/picture/default.png +0 -0
  43. package/dist/umd/mock/dupload/picture//346/255/243/351/227/250/345/205/250/346/231/257.jpg +0 -0
@@ -20,13 +20,14 @@
20
20
 
21
21
  .ant-table-body {
22
22
  position: absolute;
23
+ overflow-y: auto !important;
23
24
  min-width: 100%;
24
25
  max-width: 100%;
25
26
  min-height: calc(100% - 56px);
26
27
  max-height: calc(100% - 56px);
27
28
 
28
- // 表头显示省略号,但表内单元格不省略
29
- .ant-table-tbody > tr > td.ant-table-cell.ant-table-cell-ellipsis {
29
+ // 表内单元格不省略
30
+ .ant-table-tbody > tr > td.ant-table-cell.d-table-cell-wrap {
30
31
  white-space: initial;
31
32
  }
32
33
 
@@ -3,12 +3,12 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
5
  var _excluded = ["className", "popupClassName", "treeData", "fieldNames", "loadData", "onLoadData", "loading"];
6
- /*
7
- * @Author : wangfeihu
8
- * @Date : 2023-05-22 10:38:17
9
- * @LastEditors : wangfeihu
10
- * @LastEditTime : 2023-06-30 16:24:47
11
- * @Description : 基于antd的TreeSelect组件
6
+ /*
7
+ * @Author : wangfeihu
8
+ * @Date : 2023-05-22 10:38:17
9
+ * @LastEditors : wangfeihu
10
+ * @LastEditTime : 2023-06-30 16:24:47
11
+ * @Description : 基于antd的TreeSelect组件
12
12
  */
13
13
 
14
14
  import React, { useRef, forwardRef, useState, useEffect, useMemo, useContext } from 'react';
@@ -1,11 +1,11 @@
1
- @import '../commonStyle/index.less';
2
-
3
- .@{prefix}-tree-select-dropdown .ant-select-tree-node-content-wrapper {
4
- overflow: hidden;
5
- white-space: nowrap;
6
- text-overflow: ellipsis;
7
- }
8
-
9
- .@{prefix}-tree-select-dropdown .ant-select-tree-node-content-wrapper .ant-select-tree-title {
10
- overflow: hidden;
11
- }
1
+ @import '../commonStyle/index.less';
2
+
3
+ .@{prefix}-tree-select-dropdown .ant-select-tree-node-content-wrapper {
4
+ overflow: hidden;
5
+ white-space: nowrap;
6
+ text-overflow: ellipsis;
7
+ }
8
+
9
+ .@{prefix}-tree-select-dropdown .ant-select-tree-node-content-wrapper .ant-select-tree-title {
10
+ overflow: hidden;
11
+ }
@@ -1,11 +1,11 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _typeof from "@babel/runtime/helpers/esm/typeof";
3
- /*
4
- * @Author : wangfeihu
5
- * @Date : 2023-06-16 11:25:57
6
- * @LastEditors : wangfeihu
7
- * @LastEditTime : 2023-06-29 18:10:04
8
- * @Description : 辅助方法集合
3
+ /*
4
+ * @Author : wangfeihu
5
+ * @Date : 2023-06-16 11:25:57
6
+ * @LastEditors : wangfeihu
7
+ * @LastEditTime : 2023-06-29 18:10:04
8
+ * @Description : 辅助方法集合
9
9
  */
10
10
 
11
11
  /** 转换base64时的参数 */
@@ -41,12 +41,12 @@ function getType(value) {
41
41
  }
42
42
  }
43
43
 
44
- /**
45
- * @description : 将图像文件转换为Base64格式
46
- * @param {Blob} blob 图像文件
47
- * @param {CompressProps} options 指定图像压缩参数,其格式为: {width:300,height:200,quality:0.7}
48
- * @return {Promise<string>} 包含Base64字符串的Promise对象
49
- * @example : imageToBase64(file,{ width: 300, height: 200, quality: 0.7 }).then( url => console.log( url ) )
44
+ /**
45
+ * @description : 将图像文件转换为Base64格式
46
+ * @param {Blob} blob 图像文件
47
+ * @param {CompressProps} options 指定图像压缩参数,其格式为: {width:300,height:200,quality:0.7}
48
+ * @return {Promise<string>} 包含Base64字符串的Promise对象
49
+ * @example : imageToBase64(file,{ width: 300, height: 200, quality: 0.7 }).then( url => console.log( url ) )
50
50
  */
51
51
  function imageToBase64(blob, options) {
52
52
  return new Promise(function (resolve, reject) {
@@ -97,11 +97,11 @@ function imageToBase64(blob, options) {
97
97
  });
98
98
  }
99
99
 
100
- /**
101
- * @description : 将传入的文件转换为UploadFile数组
102
- * @param {any} files 目标文件对象
103
- * @return {UploadFile[]} UploadFile数组
104
- * @example :
100
+ /**
101
+ * @description : 将传入的文件转换为UploadFile数组
102
+ * @param {any} files 目标文件对象
103
+ * @return {UploadFile[]} UploadFile数组
104
+ * @example :
105
105
  */
106
106
  function getUploadFile(files, maxCount) {
107
107
  if (files) {
@@ -111,11 +111,11 @@ function getUploadFile(files, maxCount) {
111
111
  return [];
112
112
  }
113
113
 
114
- /**
115
- * @description : 根据传入的option对象获取缩略图参数
116
- * @param {ThumbOptionProps} option 缩略图参数对象
117
- * @return {ThumbOptionProps} ThumbOption对象
118
- * @example :
114
+ /**
115
+ * @description : 根据传入的option对象获取缩略图参数
116
+ * @param {ThumbOptionProps} option 缩略图参数对象
117
+ * @return {ThumbOptionProps} ThumbOption对象
118
+ * @example :
119
119
  */
120
120
  function getThumbOption(option) {
121
121
  var _ref2 = option || {},
@@ -149,12 +149,12 @@ function getThumbOption(option) {
149
149
  return _option;
150
150
  }
151
151
 
152
- /**
153
- * @description : a标签下载文件
154
- * @param {Blob | string} url a标签的下载url或文件流
155
- * @param {string} fileName 下载文件的名称,如果缺省则尝试从url中获取,默认为: "新建文件"
156
- * @return {*}
157
- * @example :
152
+ /**
153
+ * @description : a标签下载文件
154
+ * @param {Blob | string} url a标签的下载url或文件流
155
+ * @param {string} fileName 下载文件的名称,如果缺省则尝试从url中获取,默认为: "新建文件"
156
+ * @return {*}
157
+ * @example :
158
158
  */
159
159
  function downloadFile(url, fileName) {
160
160
  var eLink = document.createElement('a');
@@ -167,11 +167,11 @@ function downloadFile(url, fileName) {
167
167
  document.body.removeChild(eLink);
168
168
  }
169
169
 
170
- /**
171
- * @description : a标签预览文件
172
- * @param {Blob | string} url a标签的预览url或文件流
173
- * @return {*}
174
- * @example :
170
+ /**
171
+ * @description : a标签预览文件
172
+ * @param {Blob | string} url a标签的预览url或文件流
173
+ * @return {*}
174
+ * @example :
175
175
  */
176
176
  function previewFile(url) {
177
177
  var eLink = document.createElement('a');
@@ -184,13 +184,13 @@ function previewFile(url) {
184
184
  document.body.removeChild(eLink);
185
185
  }
186
186
 
187
- /**
188
- * @description : 以递归方式深度查找一个对象
189
- * @param {Record} object 待查找的对象
190
- * @param {function} fn 查找函数,每次递归时执行,如果执行结果为true,则递归过程并返回当前对象
191
- * @param {number} maxDepth 递归的最大深度,默认10
192
- * @return {*} 查找到的对象,未查找到则返回undefined
193
- * @example :
187
+ /**
188
+ * @description : 以递归方式深度查找一个对象
189
+ * @param {Record} object 待查找的对象
190
+ * @param {function} fn 查找函数,每次递归时执行,如果执行结果为true,则递归过程并返回当前对象
191
+ * @param {number} maxDepth 递归的最大深度,默认10
192
+ * @return {*} 查找到的对象,未查找到则返回undefined
193
+ * @example :
194
194
  */
195
195
  // eslint-disable-next-line no-unused-vars
196
196
  function deepFindObject(object, fn) {
@@ -220,13 +220,13 @@ function deepFindObject(object, fn) {
220
220
  return recursive(object, undefined, '', fn, {});
221
221
  }
222
222
 
223
- /**
224
- * @description : 以递归方式深度查找一个Jsx对象
225
- * @param {Record} object 待查找的Jsx对象
226
- * @param {function} fn 查找函数,每次递归时执行,如果执行结果为true,则停止递归过程并返回当前对象
227
- * @param {number} maxDepth 递归的最大深度,默认10
228
- * @return {*} 查找到的对象,未查找到则返回undefined
229
- * @example :
223
+ /**
224
+ * @description : 以递归方式深度查找一个Jsx对象
225
+ * @param {Record} object 待查找的Jsx对象
226
+ * @param {function} fn 查找函数,每次递归时执行,如果执行结果为true,则停止递归过程并返回当前对象
227
+ * @param {number} maxDepth 递归的最大深度,默认10
228
+ * @return {*} 查找到的对象,未查找到则返回undefined
229
+ * @example :
230
230
  */
231
231
  // eslint-disable-next-line no-unused-vars
232
232
  function deepFindJsx(object, fn) {
@@ -10,11 +10,11 @@ var _excluded = ["value", "thumbOption", "uploadButton", "itemClassName", "enabl
10
10
  * @Author : wangfeihu
11
11
  * @Date : 2023-06-16 09:37:07
12
12
  * @LastEditors : wangfeihu
13
- * @LastEditTime : 2023-06-30 16:32:19
13
+ * @LastEditTime : 2023-08-16 16:32:55
14
14
  * @Description : 基于antd的Upload组件
15
15
  */
16
16
 
17
- import React, { forwardRef, useEffect, useMemo, useRef, useState, useContext } from 'react';
17
+ import React, { forwardRef, useEffect, useMemo, useState, useContext } from 'react';
18
18
  import { Upload } from 'antd';
19
19
  import helper from "./helper";
20
20
  import { ConfigContext } from "../ConfigProvider";
@@ -98,10 +98,10 @@ function InternalUpload(props, ref) {
98
98
  setFileList = _useState2[1];
99
99
 
100
100
  // 缓存的文件列表
101
- var listRef = useRef({
102
- timer: null,
103
- list: []
104
- });
101
+ var _useState3 = useState([]),
102
+ _useState4 = _slicedToArray(_useState3, 2),
103
+ tempList = _useState4[0],
104
+ setTempList = _useState4[1];
105
105
 
106
106
  // 缩略图相关选项
107
107
  var _thumbOption = useMemo(function () {
@@ -113,7 +113,7 @@ function InternalUpload(props, ref) {
113
113
  file.status = status;
114
114
  file.thumbUrl = thumbUrl;
115
115
  file.id = file.uid;
116
- var list = _toConsumableArray(listRef.current.list);
116
+ var list = _toConsumableArray(tempList);
117
117
  setFileList(list);
118
118
  if (onChange && needChange) {
119
119
  onChange(list, {
@@ -129,7 +129,7 @@ function InternalUpload(props, ref) {
129
129
  while (1) switch (_context.prev = _context.next) {
130
130
  case 0:
131
131
  file = requestOption.file; // 若超出最大限制则不上传
132
- if (!(listRef.current.list.filter(function (item) {
132
+ if (!(tempList.filter(function (item) {
133
133
  return (item === null || item === void 0 ? void 0 : item.status) !== 'removed';
134
134
  }).length >= maxCount)) {
135
135
  _context.next = 3;
@@ -145,12 +145,12 @@ function InternalUpload(props, ref) {
145
145
  _context.next = 9;
146
146
  break;
147
147
  }
148
- _list = customRequest(file, listRef.current.list, requestOption);
148
+ _list = customRequest(file, tempList, requestOption);
149
149
  if (_list && 'then' in _list && typeof _list.then === 'function') {
150
150
  _list.then(function (list) {
151
151
  if (list) {
152
152
  setFileList(_toConsumableArray(list));
153
- listRef.current.list = _toConsumableArray(list);
153
+ setTempList(_toConsumableArray(list));
154
154
  onChange === null || onChange === void 0 ? void 0 : onChange(list, {
155
155
  file: file,
156
156
  fileList: list
@@ -160,69 +160,70 @@ function InternalUpload(props, ref) {
160
160
  } else if (_list instanceof Array) {
161
161
  if (_list) {
162
162
  setFileList(_toConsumableArray(_list));
163
- listRef.current.list = _toConsumableArray(_list);
163
+ setTempList(_toConsumableArray(_list));
164
164
  onChange === null || onChange === void 0 ? void 0 : onChange(_list, {
165
165
  file: file,
166
166
  fileList: _list
167
167
  });
168
168
  }
169
169
  }
170
- _context.next = 42;
170
+ _context.next = 43;
171
171
  break;
172
172
  case 9:
173
173
  // 默认的上传逻辑
174
- listRef.current.list.push(file);
174
+ tempList.push(file);
175
+ setTempList(_toConsumableArray(tempList));
175
176
  if (!(_thumbOption && typeof _thumbOption.getThumbUrl === 'function')) {
176
- _context.next = 25;
177
+ _context.next = 26;
177
178
  break;
178
179
  }
179
180
  updateFileList(file, 'uploading');
180
- _context.prev = 12;
181
- _context.next = 15;
181
+ _context.prev = 13;
182
+ _context.next = 16;
182
183
  return _thumbOption.getThumbUrl(file, _thumbOption);
183
- case 15:
184
+ case 16:
184
185
  base64Url = _context.sent;
185
186
  updateFileList(file, 'done', false, base64Url);
186
- _context.next = 23;
187
+ _context.next = 24;
187
188
  break;
188
- case 19:
189
- _context.prev = 19;
190
- _context.t0 = _context["catch"](12);
189
+ case 20:
190
+ _context.prev = 20;
191
+ _context.t0 = _context["catch"](13);
191
192
  (_thumbOption$onError = _thumbOption.onError) === null || _thumbOption$onError === void 0 ? void 0 : _thumbOption$onError.call(_thumbOption, _context.t0);
192
193
  updateFileList(file, 'done', false);
193
- case 23:
194
- _context.next = 42;
194
+ case 24:
195
+ _context.next = 43;
195
196
  break;
196
- case 25:
197
+ case 26:
197
198
  if (!(_thumbOption && (_thumbOption$filter = _thumbOption.filter) !== null && _thumbOption$filter !== void 0 && _thumbOption$filter.call(_thumbOption, file))) {
198
- _context.next = 41;
199
+ _context.next = 42;
199
200
  break;
200
201
  }
201
202
  _compress = file.size > _thumbOption.size ? _thumbOption.compress : null;
202
203
  updateFileList(file, 'uploading');
203
- _context.prev = 28;
204
- _context.next = 31;
204
+ _context.prev = 29;
205
+ _context.next = 32;
205
206
  return helper.imageToBase64(file, _compress);
206
- case 31:
207
+ case 32:
207
208
  _base64Url = _context.sent;
208
209
  updateFileList(file, 'done', false, _base64Url);
209
- _context.next = 39;
210
+ _context.next = 40;
210
211
  break;
211
- case 35:
212
- _context.prev = 35;
213
- _context.t1 = _context["catch"](28);
212
+ case 36:
213
+ _context.prev = 36;
214
+ _context.t1 = _context["catch"](29);
214
215
  (_thumbOption$onError2 = _thumbOption.onError) === null || _thumbOption$onError2 === void 0 ? void 0 : _thumbOption$onError2.call(_thumbOption, _context.t1);
215
216
  updateFileList(file, 'done', false);
216
- case 39:
217
- _context.next = 42;
217
+ case 40:
218
+ _context.next = 43;
218
219
  break;
219
- case 41:
220
- updateFileList(file, 'done');
221
220
  case 42:
221
+ updateFileList(file, 'done');
222
+ case 43:
222
223
  case "end":
223
224
  return _context.stop();
224
225
  }
225
- }, _callee, null, [[12, 19], [28, 35]]);
226
+ }, _callee, null, [[13, 20], [29, 36]]);
226
227
  }));
227
228
  return function customRequestFun(_x) {
228
229
  return _ref.apply(this, arguments);
@@ -231,7 +232,7 @@ function InternalUpload(props, ref) {
231
232
  var onRemoveFun = function onRemoveFun(file) {
232
233
  // 用户自定义的删除逻辑
233
234
  if (typeof onRemove === 'function') {
234
- var _list2 = onRemove(file, listRef.current.list);
235
+ var _list2 = onRemove(file, tempList);
235
236
  if (_list2 && 'then' in _list2 && typeof _list2.then === 'function') {
236
237
  _list2.then(function (list) {
237
238
  if (list) {
@@ -254,15 +255,15 @@ function InternalUpload(props, ref) {
254
255
  } else {
255
256
  // 默认的删除逻辑
256
257
  if (file.source === 'upload') {
257
- var index = listRef.current.list.findIndex(function (item) {
258
+ var index = fileList.findIndex(function (item) {
258
259
  return item.uid === file.uid;
259
260
  });
260
- if (index >= 0) listRef.current.list.splice(index, 1);
261
+ if (index >= 0) fileList.splice(index, 1);
261
262
  } else {
262
263
  file.status = 'removed';
263
264
  }
264
- var _list3 = _toConsumableArray(listRef.current.list);
265
- setFileList(_list3);
265
+ var _list3 = _toConsumableArray(fileList);
266
+ setTempList(_list3);
266
267
  onChange === null || onChange === void 0 ? void 0 : onChange(_list3, {
267
268
  file: file,
268
269
  fileList: _list3
@@ -337,7 +338,7 @@ function InternalUpload(props, ref) {
337
338
  showPreviewIcon: true,
338
339
  showDownloadIcon: true
339
340
  });
340
- var _finalFileList = listRef.current.list.filter(function (item) {
341
+ var _finalFileList = fileList.filter(function (item) {
341
342
  return item.status !== 'removed';
342
343
  });
343
344
  var _props = _objectSpread({
@@ -356,7 +357,7 @@ function InternalUpload(props, ref) {
356
357
  var _uploadButton = uploadButton === null ? null : uploadButton || children || defaultUploadButton;
357
358
  useEffect(function () {
358
359
  var list = helper.getUploadFile(_fileList || value || defaultFileList, maxCount);
359
- listRef.current.list = list;
360
+ setTempList(list);
360
361
  setFileList(list);
361
362
  }, [_fileList, value, defaultFileList]);
362
363
  return /*#__PURE__*/_jsx(Upload, _objectSpread(_objectSpread({
@@ -1,19 +1,19 @@
1
- @import '../commonStyle/index.less';
2
-
3
- .@{prefix}-upload {
4
- .preview .ant-upload-list-item-actions a[target='_blank'][rel='noopener noreferrer'] {
5
- opacity: initial !important;
6
- pointer-events: initial !important;
7
- }
8
-
9
- .ant-upload-list.ant-upload-list-picture-card .ant-upload-span {
10
- .ant-upload-list-item-thumbnail {
11
- height: 46px;
12
- }
13
-
14
- .ant-upload-list-item-name {
15
- position: absolute;
16
- display: initial;
17
- }
18
- }
19
- }
1
+ @import '../commonStyle/index.less';
2
+
3
+ .@{prefix}-upload {
4
+ .preview .ant-upload-list-item-actions a[target='_blank'][rel='noopener noreferrer'] {
5
+ opacity: initial !important;
6
+ pointer-events: initial !important;
7
+ }
8
+
9
+ .ant-upload-list.ant-upload-list-picture-card .ant-upload-span {
10
+ .ant-upload-list-item-thumbnail {
11
+ height: 46px;
12
+ }
13
+
14
+ .ant-upload-list-item-name {
15
+ position: absolute;
16
+ display: initial;
17
+ }
18
+ }
19
+ }
@@ -1,44 +1,44 @@
1
- @import '../commonStyle/index.less';
2
-
3
- .@{prefix}-error-boundary {
4
- display: flex;
5
- flex-direction: column;
6
- align-items: center;
7
- justify-content: center;
8
- width: auto;
9
- margin: 20px;
10
- padding: 15px;
11
- background-color: rgb(221, 127, 127);
12
- border-radius: 10px;
13
-
14
- .error-text {
15
- margin-top: 20px;
16
- }
17
-
18
- .error-refresh {
19
- width: 140px;
20
- height: 40px;
21
- color: white;
22
- font-weight: bold;
23
- line-height: 40px;
24
- text-align: center;
25
- background-color: #4593ef;
26
- border-radius: 5px;
27
- cursor: pointer;
28
- }
29
-
30
- .errorDetiles {
31
- .detilesLink {
32
- color: blue;
33
- }
34
-
35
- .errordetails {
36
- padding: 10px;
37
- color: #777;
38
- font-size: 80%;
39
- background-color: rgb(204, 198, 190);
40
- border: 1px solid #777;
41
- border-radius: 5px;
42
- }
43
- }
44
- }
1
+ @import '../commonStyle/index.less';
2
+
3
+ .@{prefix}-error-boundary {
4
+ display: flex;
5
+ flex-direction: column;
6
+ align-items: center;
7
+ justify-content: center;
8
+ width: auto;
9
+ margin: 20px;
10
+ padding: 15px;
11
+ background-color: rgb(221, 127, 127);
12
+ border-radius: 10px;
13
+
14
+ .error-text {
15
+ margin-top: 20px;
16
+ }
17
+
18
+ .error-refresh {
19
+ width: 140px;
20
+ height: 40px;
21
+ color: white;
22
+ font-weight: bold;
23
+ line-height: 40px;
24
+ text-align: center;
25
+ background-color: #4593ef;
26
+ border-radius: 5px;
27
+ cursor: pointer;
28
+ }
29
+
30
+ .errorDetiles {
31
+ .detilesLink {
32
+ color: blue;
33
+ }
34
+
35
+ .errordetails {
36
+ padding: 10px;
37
+ color: #777;
38
+ font-size: 80%;
39
+ background-color: rgb(204, 198, 190);
40
+ border: 1px solid #777;
41
+ border-radius: 5px;
42
+ }
43
+ }
44
+ }
@@ -1,27 +1,27 @@
1
- @import '../../commonStyle/index.less';
2
-
3
- .@{prefix}-modal-container {
4
- .ant-modal-wrap {
5
- .ant-modal {
6
- max-width: unset;
7
- height: 100%;
8
-
9
- .ant-modal-content {
10
- width: 100%;
11
- height: 100%;
12
- }
13
- }
14
- }
15
- }
16
-
17
- .@{prefix}-absolute-modal-container {
18
- .ant-modal-wrap {
19
- position: fixed;
20
- }
21
- }
22
-
23
- .@{prefix}-relative-modal-container {
24
- .ant-modal-wrap {
25
- position: absolute;
26
- }
27
- }
1
+ @import '../../commonStyle/index.less';
2
+
3
+ .@{prefix}-modal-container {
4
+ .ant-modal-wrap {
5
+ .ant-modal {
6
+ max-width: unset;
7
+ height: 100%;
8
+
9
+ .ant-modal-content {
10
+ width: 100%;
11
+ height: 100%;
12
+ }
13
+ }
14
+ }
15
+ }
16
+
17
+ .@{prefix}-absolute-modal-container {
18
+ .ant-modal-wrap {
19
+ position: fixed;
20
+ }
21
+ }
22
+
23
+ .@{prefix}-relative-modal-container {
24
+ .ant-modal-wrap {
25
+ position: absolute;
26
+ }
27
+ }
@@ -1,23 +1,23 @@
1
- @import '../../commonStyle/index.less';
2
-
3
- .@{prefix}-label-value {
4
- display: inline-flex;
5
-
6
- span {
7
- &:first-child {
8
- max-width: 120px;
9
- padding-right: 4px;
10
- white-space: nowrap;
11
- }
12
-
13
- &:last-child {
14
- flex: 1;
15
-
16
- &.no-wrap {
17
- overflow: hidden;
18
- white-space: nowrap;
19
- text-overflow: ellipsis;
20
- }
21
- }
22
- }
23
- }
1
+ @import '../../commonStyle/index.less';
2
+
3
+ .@{prefix}-label-value {
4
+ display: inline-flex;
5
+
6
+ span {
7
+ &:first-child {
8
+ max-width: 120px;
9
+ padding-right: 4px;
10
+ white-space: nowrap;
11
+ }
12
+
13
+ &:last-child {
14
+ flex: 1;
15
+
16
+ &.no-wrap {
17
+ overflow: hidden;
18
+ white-space: nowrap;
19
+ text-overflow: ellipsis;
20
+ }
21
+ }
22
+ }
23
+ }