@arim-aisdc/public-components 2.2.3 → 2.2.5

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.
@@ -17,7 +17,7 @@ export declare const foramtBaseInfoField: (data: any, dataField: BaseInfoFieldTy
17
17
  value: any;
18
18
  field: string;
19
19
  label?: string;
20
- text: string | Element | JSX.Element;
20
+ text: string | JSX.Element | Element;
21
21
  units?: string;
22
22
  width?: string;
23
23
  labelWidth?: string;
@@ -1,7 +1,8 @@
1
1
  import { CustomSearchFieldType } from '../type';
2
2
  interface IProps extends CustomSearchFieldType {
3
- value?: string;
4
- onChange?: (value: string) => void;
3
+ value?: string | string[];
4
+ onChange?: (value: string | string[]) => void;
5
+ item?: any;
5
6
  }
6
7
  /**
7
8
  * 图片上传组件
@@ -11,11 +11,25 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
11
11
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
12
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
13
13
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
14
- import { LoadingOutlined, PlusOutlined } from '@ant-design/icons';
15
- import { Upload, message } from 'antd';
14
+ import { PlusOutlined } from '@ant-design/icons';
15
+ import { Image, Spin, Upload, message } from 'antd';
16
16
  import { useEffect, useState } from 'react';
17
+ import { flushSync } from 'react-dom';
17
18
  import { jsx as _jsx } from "react/jsx-runtime";
18
19
  import { jsxs as _jsxs } from "react/jsx-runtime";
20
+ import { Fragment as _Fragment } from "react/jsx-runtime";
21
+ var getBase64 = function getBase64(file) {
22
+ return new Promise(function (resolve, reject) {
23
+ var reader = new FileReader();
24
+ reader.readAsDataURL(file);
25
+ reader.onload = function () {
26
+ return resolve(reader.result);
27
+ };
28
+ reader.onerror = function (error) {
29
+ return reject(error);
30
+ };
31
+ });
32
+ };
19
33
  /**
20
34
  * 图片上传组件
21
35
  * @param value - 图片ID
@@ -26,136 +40,286 @@ var UploadImg = function UploadImg(_ref) {
26
40
  var value = _ref.value,
27
41
  onChange = _ref.onChange,
28
42
  item = _objectWithoutProperties(_ref, _excluded);
29
- var _useState = useState(false),
43
+ var _useState = useState(''),
30
44
  _useState2 = _slicedToArray(_useState, 2),
31
- loading = _useState2[0],
32
- setLoading = _useState2[1];
33
- var _useState3 = useState(''),
45
+ previewImage = _useState2[0],
46
+ setPreviewImage = _useState2[1];
47
+ var _useState3 = useState(false),
34
48
  _useState4 = _slicedToArray(_useState3, 2),
35
- imageUrl = _useState4[0],
36
- setImageUrl = _useState4[1];
37
- var _useState5 = useState('上传'),
49
+ previewOpen = _useState4[0],
50
+ setPreviewOpen = _useState4[1];
51
+ var _useState5 = useState([]),
38
52
  _useState6 = _slicedToArray(_useState5, 2),
39
- operateText = _useState6[0],
40
- setOperateText = _useState6[1];
53
+ fileList = _useState6[0],
54
+ setFileList = _useState6[1];
55
+ var _useState7 = useState(false),
56
+ _useState8 = _slicedToArray(_useState7, 2),
57
+ loading = _useState8[0],
58
+ setLoading = _useState8[1];
41
59
 
42
- // 获取图片URL
60
+ // 根据id获取图片
43
61
  var getIMGUrl = /*#__PURE__*/function () {
44
62
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
45
- var url, query, response, data, baseIMG;
63
+ var url, response, data, baseIMG;
46
64
  return _regeneratorRuntime().wrap(function _callee$(_context) {
47
65
  while (1) switch (_context.prev = _context.next) {
48
66
  case 0:
49
- setLoading(true);
50
- setOperateText('获取中...');
67
+ if (id) {
68
+ _context.next = 2;
69
+ break;
70
+ }
71
+ return _context.abrupt("return", '');
72
+ case 2:
51
73
  url = "".concat(item === null || item === void 0 ? void 0 : item.baseUrl, "/api/file-management/file-descriptor/content");
52
- query = {
53
- id: id
54
- };
55
- _context.prev = 4;
56
- _context.next = 7;
57
- return fetch("".concat(url, "?id=").concat(query.id), {
74
+ _context.prev = 3;
75
+ _context.next = 6;
76
+ return fetch("".concat(url, "?id=").concat(id), {
58
77
  method: 'GET',
59
78
  headers: {
60
79
  Authorization: "Bearer ".concat(item === null || item === void 0 ? void 0 : item.token)
61
80
  }
62
81
  });
63
- case 7:
82
+ case 6:
64
83
  response = _context.sent;
65
84
  if (!response.ok) {
66
- _context.next = 14;
85
+ _context.next = 13;
67
86
  break;
68
87
  }
69
- _context.next = 11;
88
+ _context.next = 10;
70
89
  return response.text();
71
- case 11:
90
+ case 10:
72
91
  data = _context.sent.replace(/^"|"$/g, '');
73
92
  baseIMG = "data:image/png;base64,".concat(data);
74
- setImageUrl(baseIMG);
75
- case 14:
76
- _context.next = 20;
93
+ return _context.abrupt("return", baseIMG);
94
+ case 13:
95
+ _context.next = 19;
77
96
  break;
78
- case 16:
79
- _context.prev = 16;
80
- _context.t0 = _context["catch"](4);
81
- setImageUrl('');
97
+ case 15:
98
+ _context.prev = 15;
99
+ _context.t0 = _context["catch"](3);
82
100
  message.error('获取图片失败');
83
- case 20:
84
- setLoading(false);
85
- setOperateText('上传');
86
- case 22:
101
+ return _context.abrupt("return", '');
102
+ case 19:
87
103
  case "end":
88
104
  return _context.stop();
89
105
  }
90
- }, _callee, null, [[4, 16]]);
106
+ }, _callee, null, [[3, 15]]);
91
107
  }));
92
108
  return function getIMGUrl(_x) {
93
109
  return _ref2.apply(this, arguments);
94
110
  };
95
111
  }();
96
112
 
113
+ // 设置图片列表
114
+ var setIMGList = /*#__PURE__*/function () {
115
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(values) {
116
+ var imgList;
117
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
118
+ while (1) switch (_context3.prev = _context3.next) {
119
+ case 0:
120
+ if (values !== null && values !== void 0 && values.length) {
121
+ _context3.next = 2;
122
+ break;
123
+ }
124
+ return _context3.abrupt("return");
125
+ case 2:
126
+ setLoading(true);
127
+ // message.loading({ content: '获取图片中...', key: 'imgLoading' });
128
+ _context3.prev = 3;
129
+ _context3.next = 6;
130
+ return Promise.all(values.map( /*#__PURE__*/function () {
131
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(id) {
132
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
133
+ while (1) switch (_context2.prev = _context2.next) {
134
+ case 0:
135
+ _context2.t0 = Math.random().toString(36).substring(2);
136
+ _context2.t1 = Math.random().toString(36).substring(2);
137
+ _context2.next = 4;
138
+ return getIMGUrl(id);
139
+ case 4:
140
+ _context2.t2 = _context2.sent;
141
+ _context2.t3 = {
142
+ id: id
143
+ };
144
+ return _context2.abrupt("return", {
145
+ uid: _context2.t0,
146
+ name: _context2.t1,
147
+ url: _context2.t2,
148
+ response: _context2.t3
149
+ });
150
+ case 7:
151
+ case "end":
152
+ return _context2.stop();
153
+ }
154
+ }, _callee2);
155
+ }));
156
+ return function (_x3) {
157
+ return _ref4.apply(this, arguments);
158
+ };
159
+ }()));
160
+ case 6:
161
+ imgList = _context3.sent;
162
+ setFileList(imgList);
163
+ setLoading(false);
164
+ // message.success({ content: '获取图片成功', key: 'imgLoading', duration: 2 });
165
+ _context3.next = 14;
166
+ break;
167
+ case 11:
168
+ _context3.prev = 11;
169
+ _context3.t0 = _context3["catch"](3);
170
+ setLoading(false);
171
+ // message.error({ content: '加载图片列表失败', key: 'imgLoading', duration: 2 });
172
+ case 14:
173
+ case "end":
174
+ return _context3.stop();
175
+ }
176
+ }, _callee3, null, [[3, 11]]);
177
+ }));
178
+ return function setIMGList(_x2) {
179
+ return _ref3.apply(this, arguments);
180
+ };
181
+ }();
182
+
97
183
  // 处理图片上传
98
- var handleChange = function handleChange(_ref3) {
99
- var file = _ref3.file;
100
- if (file.status === 'uploading') {
101
- setLoading(true);
102
- setOperateText('上传中...');
103
- return;
104
- }
105
- if (file.status === 'done') {
106
- var _file$response;
107
- setLoading(false);
108
- message.success('上传成功');
109
- onChange === null || onChange === void 0 || onChange(file === null || file === void 0 || (_file$response = file.response) === null || _file$response === void 0 ? void 0 : _file$response.id);
110
- }
111
- if (file.status === 'error') {
112
- setLoading(false);
113
- message.error('上传失败');
114
- setOperateText('上传');
115
- }
184
+ var handleChange = function handleChange(_ref5) {
185
+ var file = _ref5.file,
186
+ fileList = _ref5.fileList;
187
+ flushSync(function () {
188
+ setFileList(fileList);
189
+ switch (file.status) {
190
+ case 'uploading':
191
+ return;
192
+ case 'done':
193
+ message.success('上传成功');
194
+ if (item !== null && item !== void 0 && item.multiple) {
195
+ onChange === null || onChange === void 0 || onChange(fileList.map(function (item) {
196
+ return item.response.id;
197
+ }));
198
+ } else {
199
+ var _file$response;
200
+ onChange === null || onChange === void 0 || onChange(file === null || file === void 0 || (_file$response = file.response) === null || _file$response === void 0 ? void 0 : _file$response.id);
201
+ }
202
+ break;
203
+ case 'error':
204
+ message.error('上传失败');
205
+ break;
206
+ case 'removed':
207
+ if (item !== null && item !== void 0 && item.multiple) {
208
+ onChange === null || onChange === void 0 || onChange(fileList.map(function (item) {
209
+ return item.response.id;
210
+ }));
211
+ } else {
212
+ onChange === null || onChange === void 0 || onChange('');
213
+ }
214
+ break;
215
+ }
216
+ });
116
217
  };
117
218
 
118
219
  // 初始化时如果有value则获取图片
119
220
  useEffect(function () {
120
- if (value) {
121
- getIMGUrl(value);
221
+ if (!value || (fileList === null || fileList === void 0 ? void 0 : fileList.length) > 0) return;
222
+ if (item !== null && item !== void 0 && item.multiple) {
223
+ setIMGList(value);
224
+ } else {
225
+ setIMGList([value]);
122
226
  }
123
- }, [value]);
124
- var uploadButton = /*#__PURE__*/_jsxs("div", {
125
- children: [loading ? /*#__PURE__*/_jsx(LoadingOutlined, {}) : /*#__PURE__*/_jsx(PlusOutlined, {}), /*#__PURE__*/_jsx("div", {
227
+ }, [value, fileList]);
228
+ var handlePreview = /*#__PURE__*/function () {
229
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(file) {
230
+ var previewUrl;
231
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
232
+ while (1) switch (_context4.prev = _context4.next) {
233
+ case 0:
234
+ if (file) {
235
+ _context4.next = 2;
236
+ break;
237
+ }
238
+ return _context4.abrupt("return");
239
+ case 2:
240
+ console.log('file...', file);
241
+ _context4.prev = 3;
242
+ if (!(file !== null && file !== void 0 && file.url)) {
243
+ _context4.next = 8;
244
+ break;
245
+ }
246
+ _context4.t0 = file === null || file === void 0 ? void 0 : file.url;
247
+ _context4.next = 11;
248
+ break;
249
+ case 8:
250
+ _context4.next = 10;
251
+ return getBase64(file.originFileObj);
252
+ case 10:
253
+ _context4.t0 = _context4.sent;
254
+ case 11:
255
+ previewUrl = _context4.t0;
256
+ setPreviewImage(previewUrl);
257
+ setPreviewOpen(true);
258
+ _context4.next = 19;
259
+ break;
260
+ case 16:
261
+ _context4.prev = 16;
262
+ _context4.t1 = _context4["catch"](3);
263
+ message.error('预览图片失败');
264
+ case 19:
265
+ case "end":
266
+ return _context4.stop();
267
+ }
268
+ }, _callee4, null, [[3, 16]]);
269
+ }));
270
+ return function handlePreview(_x4) {
271
+ return _ref6.apply(this, arguments);
272
+ };
273
+ }();
274
+ var uploadButton = loading ? /*#__PURE__*/_jsx(Spin, {
275
+ tip: "\u56FE\u7247\u83B7\u53D6\u4E2D..."
276
+ }) : /*#__PURE__*/_jsxs("div", {
277
+ children: [/*#__PURE__*/_jsx(PlusOutlined, {}), /*#__PURE__*/_jsx("div", {
126
278
  style: {
127
279
  marginTop: 8
128
280
  },
129
- children: operateText
281
+ children: "\u4E0A\u4F20"
130
282
  })]
131
283
  });
132
- return /*#__PURE__*/_jsx(Upload, {
133
- accept: ".jpg, .jpeg, .png, .gif",
134
- listType: "picture-card",
135
- name: "file",
136
- showUploadList: false,
137
- action: function action(file) {
138
- return "".concat(item === null || item === void 0 ? void 0 : item.baseUrl, "/api/file-management/file-descriptor/upload?name=").concat(encodeURI(file.name));
139
- },
140
- data: function data(file) {
141
- return {
142
- name: file.name
143
- };
144
- },
145
- headers: {
146
- Authorization: "Bearer ".concat(item === null || item === void 0 ? void 0 : item.token)
147
- },
148
- method: (item === null || item === void 0 ? void 0 : item.method) || 'POST',
149
- withCredentials: true,
150
- onChange: handleChange,
151
- maxCount: 1,
152
- children: imageUrl ? /*#__PURE__*/_jsx("img", {
153
- src: imageUrl,
154
- alt: "avatar",
155
- style: {
156
- width: '100%'
157
- }
158
- }) : uploadButton
284
+ return /*#__PURE__*/_jsxs(_Fragment, {
285
+ children: [/*#__PURE__*/_jsx(Upload, {
286
+ accept: ".jpg, .jpeg, .png, .gif",
287
+ listType: "picture-card",
288
+ name: "file",
289
+ action: function action(file) {
290
+ return "".concat(item === null || item === void 0 ? void 0 : item.baseUrl, "/api/file-management/file-descriptor/upload?name=").concat(encodeURI(file.name));
291
+ },
292
+ data: function data(file) {
293
+ return {
294
+ name: file.name
295
+ };
296
+ },
297
+ headers: {
298
+ Authorization: "Bearer ".concat(item === null || item === void 0 ? void 0 : item.token)
299
+ },
300
+ method: (item === null || item === void 0 ? void 0 : item.method) || 'POST',
301
+ withCredentials: true,
302
+ onChange: handleChange,
303
+ maxCount: item !== null && item !== void 0 && item.multiple ? 100 : 1,
304
+ fileList: fileList,
305
+ onPreview: handlePreview,
306
+ disabled: item === null || item === void 0 ? void 0 : item.disabled,
307
+ children: !(item !== null && item !== void 0 && item.multiple) && fileList.length > 0 ? null : uploadButton
308
+ }), previewImage && /*#__PURE__*/_jsx(Image, {
309
+ wrapperStyle: {
310
+ display: 'none'
311
+ },
312
+ preview: {
313
+ visible: previewOpen,
314
+ onVisibleChange: function onVisibleChange(visible) {
315
+ return setPreviewOpen(visible);
316
+ },
317
+ afterOpenChange: function afterOpenChange(visible) {
318
+ return !visible && setPreviewImage('');
319
+ }
320
+ },
321
+ src: previewImage
322
+ })]
159
323
  });
160
324
  };
161
325
  export default UploadImg;
@@ -69,7 +69,7 @@ export type CustomSearchFieldType = {
69
69
  inputTips?: string | any;
70
70
  setting?: any[];
71
71
  setting1?: any[];
72
- value?: string;
72
+ value?: string | string[];
73
73
  maxLength?: number;
74
74
  rows?: number;
75
75
  wapperWidth?: number;
@@ -28,11 +28,11 @@ var messageConfig = function messageConfig(_ref) {
28
28
  icon: /*#__PURE__*/_jsx("span", {
29
29
  className: "".concat(tipCode, "Icon"),
30
30
  style: {
31
- paddingRight: 8
31
+ paddingRight: 'var(--global-messageTip-content-iconSpan-padding-right, 8px)'
32
32
  },
33
33
  children: /*#__PURE__*/_jsx("i", {
34
34
  style: {
35
- fontSize: 18
35
+ fontSize: 'var(--global-messageTip-content-iconSpan-i-fontSize, 18px)'
36
36
  },
37
37
  className: tipCode ? tipIconMap[tipCode] : ''
38
38
  })
@@ -1,3 +1,16 @@
1
+ .ant-message-notice-content {
2
+ min-width: @global-messageTip-min-width !important;
3
+ min-height: @global-messageTip-min-height !important;
4
+ padding: @global-messageTip-padding !important;
5
+ background-color: @global-messageTip-background-color !important;
6
+ border-radius: @global-messageTip-border-radius !important;
7
+ font-size: @global-messageTip-font-size !important;
8
+ color: @global-messageTip-text-color !important;
9
+ .ant-message-custom-content {
10
+ height: @global-messageTip-content-min-height !important;
11
+ }
12
+ }
13
+
1
14
  .anticon-loading-spin {
2
15
  display: inline-block;
3
16
  animation: loong 1s infinite linear;
@@ -1,13 +1,13 @@
1
1
  import { TableMaxColumnType } from "../../type";
2
- export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
3
- export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
4
- export declare const numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
5
- export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
2
+ export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
3
+ export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
4
+ export declare const numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
5
+ export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
6
6
  declare const customSortFns: {
7
- numberSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
8
- stringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
9
- timeSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
10
- numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
7
+ numberSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
8
+ stringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
9
+ timeSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
10
+ numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
11
11
  };
12
12
  export default customSortFns;
13
13
  export type SortFnType = keyof typeof customSortFns | undefined;
@@ -68,3 +68,16 @@
68
68
  @global-table-max-body-font-weight: var(--global-table-max-body-font-weight);
69
69
  @global-table-max-header-cell-wapper-line-height: var(--global-table-max-header-cell-wapper-line-height, 16px);
70
70
  @global-table-body-tbody-tr-td-line-height: var(--global-table-body-tbody-tr-td-line-height, 32px);
71
+
72
+ // messageTip
73
+ @global-messageTip-background-color: var(--global-messageTip-background-color, #FFFFFF);
74
+ @global-messageTip-text-color: var(--global-messageTip-text-color, #FFFFFF);
75
+ @global-messageTip-font-size: var(--global-messageTip-font-size, 14px);
76
+ @global-messageTip-box-shadow: var(--global-messageTip-box-shadow, 0px 4px 8px rgba(0, 0, 0, 0.15));
77
+ @global-messageTip-border-radius: var(--global-messageTip-border-radius, 8px);
78
+ @global-messageTip-min-width: var(--global-messageTip-min-width, 106px);
79
+ @global-messageTip-min-height: var(--global-messageTip-min-height, 46px);
80
+ @global-messageTip-padding: var(--global-messageTip-padding, 9px 12px);
81
+ @global-messageTip-content-min-height: var(--global-messageTip-content-min-height, 22px);
82
+ @global-messageTip-content-iconSpan-padding-right: var(--global-messageTip-content-iconSpan-padding-right, 8px);
83
+ @global-messageTip-content-iconSpan-i-fontSize: var(--global-messageTip-content-iconSpan-i-fontSize, 18);
@@ -16,7 +16,15 @@ var tableMaxCommonStyle = {
16
16
  '--global-table-max-header-font-weight': '400',
17
17
  '--global-table-max-body-font-weight': '400',
18
18
  '--global-table-max-header-cell-wapper-line-height': '16px',
19
- '--global-table-body-tbody-tr-td-line-height': '32px'
19
+ '--global-table-body-tbody-tr-td-line-height': '32px',
20
+ '--global-messageTip-border-radius': '8px',
21
+ '--global-messageTip-min-width': '112px',
22
+ '--global-messageTip-min-height': '40px',
23
+ '--global-messageTip-padding': '9px 12px',
24
+ '--global-messageTip-content-min-height': '22px',
25
+ '--global-messageTip-content-iconSpan-padding-right': '8px',
26
+ '--global-messageTip-content-iconSpan-i-fontSize': '18px',
27
+ '--global-messageTip-font-size': '14px'
20
28
  };
21
29
  var tableMaxCommonStyleTwo = {
22
30
  '--global-table-max-padding-top': '8px',
@@ -29,10 +37,18 @@ var tableMaxCommonStyleTwo = {
29
37
  '--global-table-max-header-font-weight': '500',
30
38
  '--global-table-max-body-font-weight': '400',
31
39
  '--global-table-max-header-cell-wapper-line-height': '32px',
32
- '--global-table-body-tbody-tr-td-line-height': '42px'
40
+ '--global-table-body-tbody-tr-td-line-height': '42px',
41
+ '--global-messageTip-border-radius': '4px',
42
+ '--global-messageTip-min-width': '156px',
43
+ '--global-messageTip-min-height': '58px',
44
+ '--global-messageTip-padding': '16px 24px',
45
+ '--global-messageTip-content-min-height': '26px',
46
+ '--global-messageTip-content-iconSpan-padding-right': '12px',
47
+ '--global-messageTip-content-iconSpan-i-fontSize': '22px',
48
+ '--global-messageTip-font-size': '18px'
33
49
  };
34
50
  export var PublicThemeVariablesConfig = {
35
- light: _objectSpread({
51
+ light: _objectSpread(_objectSpread({
36
52
  '--global-curd-input-background-color': '#f5f6f7ff',
37
53
  '--global-primary-color': '#fa541c',
38
54
  '--scrollThumb': '#E8E8E8',
@@ -110,8 +126,13 @@ export var PublicThemeVariablesConfig = {
110
126
  '--global-default-text-color': '#242A30',
111
127
  '--global-table-max-scrollbar-track': 'transparent',
112
128
  '--global-table-line-color': '#f0f0f0'
113
- }, tableMaxCommonStyle),
114
- dark: _objectSpread({
129
+ }, tableMaxCommonStyle), {}, {
130
+ // messageTip
131
+ '--global-messageTip-background-color': '#0c1b3b',
132
+ '--global-messageTip-text-color': '#eaeaea',
133
+ '--global-messageTip-box-shadow': '0px 5px 12px 4px rgba(3,5,33,0.45)'
134
+ }),
135
+ dark: _objectSpread(_objectSpread({
115
136
  '--global-curd-input-background-color': '#494c5dff',
116
137
  '--global-primary-color': '#fa541c',
117
138
  '--primaryColor': 'blue',
@@ -191,10 +212,15 @@ export var PublicThemeVariablesConfig = {
191
212
  '--global-card-effect-background-color': '#1E345B',
192
213
  '--global-default-text-color': '#fff',
193
214
  '--global-table-max-scrollbar-track': 'transparent'
194
- }, tableMaxCommonStyle)
215
+ }, tableMaxCommonStyle), {}, {
216
+ // messageTip
217
+ '--global-messageTip-background-color': '#ffffff',
218
+ '--global-messageTip-text-color': '#242A30',
219
+ '--global-messageTip-box-shadow': '0px 5px 12px 4px rgba(3,6,33,0.15)'
220
+ })
195
221
  };
196
222
  export var PublicThemeVariablesConfigTwo = {
197
- light: _objectSpread({
223
+ light: _objectSpread(_objectSpread({
198
224
  '--global-curd-input-background-color': '#f5f6f7ff',
199
225
  '--global-primary-color': '#fa541c',
200
226
  '--scrollThumb': '#CCCCCC',
@@ -273,8 +299,13 @@ export var PublicThemeVariablesConfigTwo = {
273
299
  '--global-default-text-color': '#242A30',
274
300
  '--global-table-max-scrollbar-track': '#E8E8E8',
275
301
  '--global-table-max-border': '1px solid #D9D9D9'
276
- }, tableMaxCommonStyleTwo),
277
- dark: _objectSpread({
302
+ }, tableMaxCommonStyleTwo), {}, {
303
+ // messageTip
304
+ '--global-messageTip-background-color': 'rgb(71,85,105,0.95)',
305
+ '--global-messageTip-text-color': '#FFFFFF',
306
+ '--global-messageTip-box-shadow': '0px 5px 12px 4px rgba(3,5,33,0.45)'
307
+ }),
308
+ dark: _objectSpread(_objectSpread({
278
309
  '--global-curd-input-background-color': '#494c5dff',
279
310
  '--global-primary-color': '#fa541c',
280
311
  '--primaryColor': 'blue',
@@ -355,7 +386,12 @@ export var PublicThemeVariablesConfigTwo = {
355
386
  '--global-default-text-color': '#fff',
356
387
  '--global-table-max-scrollbar-track': '#334155',
357
388
  '--global-table-max-border': '1px solid #475569'
358
- }, tableMaxCommonStyleTwo)
389
+ }, tableMaxCommonStyleTwo), {}, {
390
+ // messageTip
391
+ '--global-messageTip-background-color': 'rgb(255,255,255,0.95)',
392
+ '--global-messageTip-text-color': '#242A30',
393
+ '--global-messageTip-box-shadow': '0px 5px 12px 4px rgba(3,6,33,0.15)'
394
+ })
359
395
  };
360
396
  export var publicThemeMap = {
361
397
  'DefaultThemePackage': PublicThemeVariablesConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arim-aisdc/public-components",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "description": "前端组件库",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",