@pointcloud/pcloud-components 0.1.5 → 0.1.7

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 +17 -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 -4
  10. package/dist/esm/DForm/index.js +45 -12
  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 +5 -2
  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 +5 -2
  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
@@ -1,12 +1,12 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
- var _excluded = ["loadMore", "columnsProp", "actionColumn", "showErrorMsg", "extraParams", "dataSource", "rowKey", "scroll", "className", "pagination", "columns", "loading"];
4
+ var _excluded = ["loadMore", "defaultColumnProps", "actionColumn", "showErrorMsg", "extraParams", "dataSource", "rowKey", "scroll", "className", "pagination", "columns", "loading"];
5
5
  /*
6
6
  * @Author : wangfeihu
7
7
  * @Date : 2023-05-09 15:04:48
8
8
  * @LastEditors : wangfeihu
9
- * @LastEditTime : 2023-07-11 17:22:24
9
+ * @LastEditTime : 2023-08-16 16:45:15
10
10
  * @Description : 基于antd的Table组件
11
11
  */
12
12
  import React, { forwardRef, useEffect, useRef, useState, useContext } from 'react';
@@ -31,20 +31,33 @@ var defaultPagination = {
31
31
  }
32
32
  };
33
33
 
34
+ // 数据列
35
+ function getColumns(columns, defaultColumnProps) {
36
+ return columns === null || columns === void 0 ? void 0 : columns.map(function (item) {
37
+ var _item = _objectSpread(_objectSpread({
38
+ align: 'center',
39
+ ellipsis: {
40
+ showTitle: false
41
+ },
42
+ cellEllipsis: true
43
+ }, defaultColumnProps), item);
44
+ if (_item.cellEllipsis === false) {
45
+ _item.className = _item !== null && _item !== void 0 && _item.className ? 'd-table-cell-wrap ' + _item.className : 'd-table-cell-wrap';
46
+ }
47
+ return _item;
48
+ });
49
+ }
50
+
34
51
  // 操作列
35
- function getActionColumnProps(props, columnsProp) {
52
+ function getActionColumnProps(props, defaultColumnProps) {
36
53
  var defaultProps = {
37
54
  width: 140,
38
55
  title: '操作',
39
56
  dataIndex: 'action'
40
57
  };
41
- if (typeof props === 'function') {
42
- return _objectSpread(_objectSpread(_objectSpread({}, columnsProp), defaultProps), {}, {
43
- render: props
44
- });
45
- } else {
46
- return _objectSpread(_objectSpread(_objectSpread({}, columnsProp), defaultProps), props);
47
- }
58
+ return typeof props === 'function' ? _objectSpread(_objectSpread(_objectSpread({}, defaultColumnProps), defaultProps), {}, {
59
+ render: props
60
+ }) : _objectSpread(_objectSpread(_objectSpread({}, defaultColumnProps), defaultProps), props);
48
61
  }
49
62
 
50
63
  // 分页配置
@@ -61,7 +74,7 @@ function getTablePage(_pagination) {
61
74
  }
62
75
  function InternalTable(props, ref) {
63
76
  var loadMore = props.loadMore,
64
- columnsProp = props.columnsProp,
77
+ defaultColumnProps = props.defaultColumnProps,
65
78
  actionColumn = props.actionColumn,
66
79
  _props$showErrorMsg = props.showErrorMsg,
67
80
  showErrorMsg = _props$showErrorMsg === void 0 ? true : _props$showErrorMsg,
@@ -100,17 +113,13 @@ function InternalTable(props, ref) {
100
113
  y: 'calc(100% - 56px)'
101
114
  };
102
115
 
103
- // 修改列对齐方式为居中
104
- var _columns = columns === null || columns === void 0 ? void 0 : columns.map(function (item) {
105
- return _objectSpread(_objectSpread({
106
- align: 'center',
107
- ellipsis: true
108
- }, columnsProp), item);
109
- });
116
+ // 合并列属性
117
+ var _columns = getColumns(columns, defaultColumnProps);
110
118
 
111
119
  // 加入操作列
112
- var _actionColumn = actionColumn ? getActionColumnProps(actionColumn, columnsProp) : undefined;
113
- _actionColumn && ((_columns === null || _columns === void 0 ? void 0 : _columns.push(_actionColumn)) || []);
120
+ // 加入操作列
121
+ var _actionColumn = actionColumn ? getActionColumnProps(actionColumn, defaultColumnProps) : undefined;
122
+ if (_actionColumn && _columns instanceof Array) _columns.push(_actionColumn);
114
123
 
115
124
  // pcf-table 样式中已经包含对_scroll的支持
116
125
  var _className = "".concat(getPrefixCls('table'), " ").concat(className || '', " ").concat(_pagination ? 'height-on-page' : '');
@@ -134,15 +143,15 @@ function InternalTable(props, ref) {
134
143
  var paramsString = JSON.stringify(_tableQuery);
135
144
  loadingParamsRef.current = paramsString;
136
145
  setTableParams(_tableQuery);
137
- loadMore(_tableQuery).then(function (response) {
146
+ loadMore(_tableQuery, tableSource.records).then(function (response) {
138
147
  if (loadingParamsRef.current === paramsString) {
139
148
  var _response$total = response.total,
140
149
  total = _response$total === void 0 ? 0 : _response$total,
141
150
  _response$records = response.records,
142
- records = _response$records === void 0 ? [] : _response$records;
151
+ _records = _response$records === void 0 ? [] : _response$records;
143
152
  setTableSource({
144
153
  total: total,
145
- records: records,
154
+ records: _records,
146
155
  loading: false
147
156
  });
148
157
  }
@@ -184,6 +193,12 @@ function InternalTable(props, ref) {
184
193
  }));
185
194
  }
186
195
  };
196
+ var _tablePagination = _pagination ? _objectSpread(_objectSpread({}, _pagination), {}, {
197
+ total: tableSource.total,
198
+ current: tableParams.current,
199
+ pageSize: tableParams.size,
200
+ onChange: onChange
201
+ }) : _pagination;
187
202
 
188
203
  // 数据初始加载
189
204
  useEffect(function () {
@@ -195,12 +210,7 @@ function InternalTable(props, ref) {
195
210
  className: _className,
196
211
  columns: _columns,
197
212
  dataSource: tableSource.records,
198
- pagination: _objectSpread(_objectSpread({}, _pagination), {}, {
199
- total: tableSource.total,
200
- current: tableParams.current,
201
- pageSize: tableParams.size,
202
- onChange: onChange
203
- }),
213
+ pagination: _tablePagination,
204
214
  scroll: _scroll,
205
215
  loading: _objectSpread(_objectSpread({}, _loading), {}, {
206
216
  spinning: tableSource.loading
@@ -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
+ }
@@ -4,7 +4,7 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";
4
4
  * @Author : wangfeihu
5
5
  * @Date : 2023-06-16 11:25:57
6
6
  * @LastEditors : wangfeihu
7
- * @LastEditTime : 2023-06-29 18:10:04
7
+ * @LastEditTime : 2023-08-30 11:26:22
8
8
  * @Description : 辅助方法集合
9
9
  */
10
10
 
@@ -106,7 +106,10 @@ function imageToBase64(blob, options) {
106
106
  function getUploadFile(files, maxCount) {
107
107
  if (files) {
108
108
  var list = files instanceof Array ? files : [files];
109
- return maxCount && maxCount > 0 ? list.slice(0, maxCount) : list;
109
+ var removedCount = list.filter(function (item) {
110
+ return (item === null || item === void 0 ? void 0 : item.status) === 'removed';
111
+ }).length;
112
+ return maxCount && maxCount > 0 ? list.slice(0, maxCount + removedCount) : list;
110
113
  }
111
114
  return [];
112
115
  }
@@ -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
+ }