@arim-aisdc/public-components 2.1.0 → 2.1.1

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.
@@ -2,3 +2,5 @@
2
2
  @import url('./theme-dark/four/iconfont.css');
3
3
  @import url('./menu-gray/iconfont.css');
4
4
  @import url('./table/iconfont.css');
5
+ @import url('./public/iconfont.css');
6
+
@@ -0,0 +1,69 @@
1
+ @font-face {
2
+ font-family: "iconfont-public"; /* Project id 4386651 */
3
+ src: url('./iconfont.ttf?t=1730099749830') format('truetype');
4
+ }
5
+
6
+ .iconfont-public {
7
+ font-family: "iconfont-public" !important;
8
+ font-size: 16px;
9
+ font-style: normal;
10
+ -webkit-font-smoothing: antialiased;
11
+ -moz-osx-font-smoothing: grayscale;
12
+ }
13
+
14
+ .icon-public-guanbiqita:before {
15
+ content: "\e6db";
16
+ }
17
+
18
+ .icon-public-shuaxinbiaoqian:before {
19
+ content: "\e6dc";
20
+ }
21
+
22
+ .icon-public-guanbibiaoqian:before {
23
+ content: "\e6dd";
24
+ }
25
+
26
+ .icon-public-upload:before {
27
+ content: "\e877";
28
+ }
29
+
30
+ .icon-public-download:before {
31
+ content: "\e878";
32
+ }
33
+
34
+ .icon-public-refresh:before {
35
+ content: "\e7c1";
36
+ }
37
+
38
+ .icon-public-edit:before {
39
+ content: "\e7c2";
40
+ }
41
+
42
+ .icon-public-calendar:before {
43
+ content: "\e7c3";
44
+ }
45
+
46
+ .icon-public-reduce:before {
47
+ content: "\e7c4";
48
+ }
49
+
50
+ .icon-public-setting:before {
51
+ content: "\e7bc";
52
+ }
53
+
54
+ .icon-public-delete:before {
55
+ content: "\e7bd";
56
+ }
57
+
58
+ .icon-public-drag:before {
59
+ content: "\e7be";
60
+ }
61
+
62
+ .icon-public-down:before {
63
+ content: "\e7bf";
64
+ }
65
+
66
+ .icon-public-pin:before {
67
+ content: "\e7c0";
68
+ }
69
+
@@ -1,69 +1,61 @@
1
- @font-face {
2
- font-family: "iconfont-table"; /* Project id 4386651 */
3
- src: url('./iconfont.ttf?t=1729650040389') format('truetype');
4
- }
5
-
6
- .iconfont-table {
7
- font-family: "iconfont-table" !important;
8
- font-size: 16px;
9
- font-style: normal;
10
- -webkit-font-smoothing: antialiased;
11
- -moz-osx-font-smoothing: grayscale;
12
- }
13
-
14
- .icon-table-guanbiqita:before {
15
- content: "\e6db";
16
- }
17
-
18
- .icon-table-shuaxinbiaoqian:before {
19
- content: "\e6dc";
20
- }
21
-
22
- .icon-table-guanbibiaoqian:before {
23
- content: "\e6dd";
24
- }
25
-
26
- .icon-table-upload:before {
27
- content: "\e877";
28
- }
29
-
30
- .icon-table-download:before {
31
- content: "\e878";
32
- }
33
-
34
- .icon-table-refresh:before {
35
- content: "\e7c1";
36
- }
37
-
38
- .icon-table-edit:before {
39
- content: "\e7c2";
40
- }
41
-
42
- .icon-table-calendar:before {
43
- content: "\e7c3";
44
- }
45
-
46
- .icon-table-reduce:before {
47
- content: "\e7c4";
48
- }
49
-
50
- .icon-table-setting:before {
51
- content: "\e7bc";
52
- }
53
-
54
- .icon-table-delete:before {
55
- content: "\e7bd";
56
- }
57
-
58
- .icon-table-drag:before {
59
- content: "\e7be";
60
- }
61
-
62
- .icon-table-down:before {
63
- content: "\e7bf";
64
- }
65
-
66
- .icon-table-pin:before {
67
- content: "\e7c0";
68
- }
69
-
1
+ @font-face {
2
+ font-family: "iconfont-table"; /* Project id 4453758 */
3
+ src: url('./iconfont.ttf?t=1730099737796') format('truetype');
4
+ }
5
+
6
+ .iconfont-table {
7
+ font-family: "iconfont-table" !important;
8
+ font-size: 16px;
9
+ font-style: normal;
10
+ -webkit-font-smoothing: antialiased;
11
+ -moz-osx-font-smoothing: grayscale;
12
+ }
13
+
14
+ .icon-table-a-xinzeng21:before {
15
+ content: "\e62e";
16
+ }
17
+
18
+ .icon-table-a-download11:before {
19
+ content: "\e62f";
20
+ }
21
+
22
+ .icon-table-tight:before {
23
+ content: "\e87e";
24
+ }
25
+
26
+ .icon-table-normal:before {
27
+ content: "\e87f";
28
+ }
29
+
30
+ .icon-table-shenglvehao:before {
31
+ content: "\e62d";
32
+ }
33
+
34
+ .icon-table-delete:before {
35
+ content: "\e87c";
36
+ }
37
+
38
+ .icon-table-shuaxin:before {
39
+ content: "\e87b";
40
+ }
41
+
42
+ .icon-table-upload:before {
43
+ content: "\e878";
44
+ }
45
+
46
+ .icon-table-download:before {
47
+ content: "\e87a";
48
+ }
49
+
50
+ .icon-table-shezhi:before {
51
+ content: "\e643";
52
+ }
53
+
54
+ .icon-table-zhexian:before {
55
+ content: "\e644";
56
+ }
57
+
58
+ .icon-table-biaoge:before {
59
+ content: "\e645";
60
+ }
61
+
@@ -5,6 +5,7 @@ export type CacheTabsProps = {
5
5
  pathname: string;
6
6
  history: any;
7
7
  nodeList?: any;
8
+ shouldCache: boolean;
8
9
  };
9
- declare const _default: ({ useAliveController, pathname, history, nodeList }: CacheTabsProps) => React.ReactElement;
10
+ declare const _default: ({ useAliveController, pathname, history, nodeList, shouldCache }: CacheTabsProps) => React.ReactElement;
10
11
  export default _default;
@@ -1,3 +1,9 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
7
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
8
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
9
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -5,20 +11,21 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
5
11
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
13
  import { Dropdown, Tabs, Tooltip } from 'antd';
8
- import React, { useState } from 'react';
14
+ import React, { useState, useMemo, useRef, useEffect } from 'react';
9
15
  import "./index.less";
10
16
  import { jsx as _jsx } from "react/jsx-runtime";
11
17
  export default (function (_ref) {
12
18
  var useAliveController = _ref.useAliveController,
13
19
  pathname = _ref.pathname,
14
20
  history = _ref.history,
15
- nodeList = _ref.nodeList;
21
+ nodeList = _ref.nodeList,
22
+ shouldCache = _ref.shouldCache;
16
23
  // 获取缓存列表
17
- var _useAliveController = useAliveController === null || useAliveController === void 0 ? void 0 : useAliveController(),
18
- getCachingNodes = _useAliveController.getCachingNodes,
19
- dropScope = _useAliveController.dropScope,
20
- clear = _useAliveController.clear,
21
- refreshScope = _useAliveController.refreshScope;
24
+ var _ref2 = (useAliveController === null || useAliveController === void 0 ? void 0 : useAliveController()) || {},
25
+ getCachingNodes = _ref2.getCachingNodes,
26
+ dropScope = _ref2.dropScope,
27
+ clear = _ref2.clear,
28
+ refreshScope = _ref2.refreshScope;
22
29
  var cachingNodes = ((getCachingNodes === null || getCachingNodes === void 0 ? void 0 : getCachingNodes()) || nodeList).filter(function (item) {
23
30
  return item === null || item === void 0 ? void 0 : item.tabName;
24
31
  });
@@ -31,7 +38,7 @@ export default (function (_ref) {
31
38
  setOpen = _useState2[1];
32
39
 
33
40
  // 阻止右键事件冒泡
34
- var onRightClick = function onRightClick(e, name) {
41
+ var _onRightClick = function onRightClick(e, name) {
35
42
  return open.open && open.path === name && e.stopPropagation();
36
43
  };
37
44
 
@@ -125,117 +132,142 @@ export default (function (_ref) {
125
132
  var targetKey = JSON.parse(e === null || e === void 0 ? void 0 : e.key).name;
126
133
  refreshScope === null || refreshScope === void 0 || refreshScope(targetKey);
127
134
  };
128
- var labelDropdown = function labelDropdown(name, label) {
129
- var lastIndex = cachingNodes.findIndex(function (item) {
130
- return item.name === name;
135
+ var menuItems = useMemo(function () {
136
+ return [{
137
+ icon: /*#__PURE__*/_jsx("i", {
138
+ className: "iconfont-public icon-public-shuaxinbiaoqian"
139
+ }),
140
+ label: '刷新标签',
141
+ key: 'refresh',
142
+ onClick: onRefresh
143
+ }, {
144
+ icon: /*#__PURE__*/_jsx("i", {
145
+ className: "iconfont-public icon-public-guanbibiaoqian"
146
+ }),
147
+ label: '关闭标签',
148
+ key: 'current',
149
+ disabled: cachingNodes.length <= 1,
150
+ onClick: onCurrent
151
+ }, {
152
+ icon: /*#__PURE__*/_jsx("i", {
153
+ className: "iconfont-public icon-public-guanbiqita"
154
+ }),
155
+ label: '关闭其他标签页',
156
+ key: 'other',
157
+ disabled: cachingNodes.length <= 1,
158
+ onClick: onOther
159
+ }
160
+ // ... other menu items ...
161
+ ];
162
+ }, [cachingNodes.length, onRefresh, onCurrent, onOther]);
163
+ var tabItems = useMemo(function () {
164
+ return cachingNodes.map(function (item) {
165
+ return {
166
+ label: /*#__PURE__*/_jsx(LabelDropdown, {
167
+ name: item.name,
168
+ label: item.tabName,
169
+ onRightClick: function onRightClick(e) {
170
+ return _onRightClick(e, item.name);
171
+ },
172
+ cachingNodes: cachingNodes,
173
+ setOpen: setOpen,
174
+ menuItems: menuItems.map(function (menuItem) {
175
+ return _objectSpread(_objectSpread({}, menuItem), {}, {
176
+ key: JSON.stringify({
177
+ name: item.name,
178
+ key: menuItem.key
179
+ })
180
+ });
181
+ })
182
+ }),
183
+ key: item.name,
184
+ closable: cachingNodes.length > 1
185
+ };
131
186
  });
132
- console.log(cachingNodes, lastIndex, 'cachingNodes');
133
- return /*#__PURE__*/_jsx("div", {
134
- onClick: function onClick(e) {
135
- return onRightClick(e, name);
187
+ }, [cachingNodes, _onRightClick, menuItems]);
188
+ return /*#__PURE__*/_jsx("div", {
189
+ style: {
190
+ display: shouldCache ? 'block' : 'none'
191
+ },
192
+ children: /*#__PURE__*/_jsx(Tabs, {
193
+ hideAdd: true,
194
+ size: "middle",
195
+ type: "editable-card",
196
+ className: "cache-tabs",
197
+ activeKey: pathname,
198
+ onTabClick: clickTab,
199
+ onEdit: editTab,
200
+ items: tabItems,
201
+ tabBarGutter: 0
202
+ })
203
+ });
204
+ });
205
+ var LabelDropdown = /*#__PURE__*/React.memo(function (_ref3) {
206
+ var name = _ref3.name,
207
+ label = _ref3.label,
208
+ onRightClick = _ref3.onRightClick,
209
+ cachingNodes = _ref3.cachingNodes,
210
+ setOpen = _ref3.setOpen,
211
+ menuItems = _ref3.menuItems;
212
+ var _useState3 = useState(false),
213
+ _useState4 = _slicedToArray(_useState3, 2),
214
+ isOverflowing = _useState4[0],
215
+ setIsOverflowing = _useState4[1];
216
+ var labelRef = useRef(null);
217
+ useEffect(function () {
218
+ var checkOverflow = function checkOverflow() {
219
+ if (labelRef.current) {
220
+ setIsOverflowing(labelRef.current.offsetWidth < labelRef.current.scrollWidth);
221
+ }
222
+ };
223
+ checkOverflow();
224
+ window.addEventListener('resize', checkOverflow);
225
+ return function () {
226
+ return window.removeEventListener('resize', checkOverflow);
227
+ };
228
+ }, [label]);
229
+ return /*#__PURE__*/_jsx("div", {
230
+ onClick: function onClick(e) {
231
+ return onRightClick(e, name);
232
+ },
233
+ children: /*#__PURE__*/_jsx(Dropdown, {
234
+ overlayClassName: "cache-tabs-dropdown",
235
+ trigger: ['contextMenu'],
236
+ onOpenChange: function onOpenChange(e) {
237
+ return setOpen({
238
+ path: name,
239
+ open: e
240
+ });
136
241
  },
137
- children: /*#__PURE__*/_jsx(Dropdown, {
138
- overlayClassName: "cache-tabs-dropdown",
139
- trigger: ['contextMenu'],
140
- onOpenChange: function onOpenChange(e) {
141
- return setOpen({
142
- path: name,
143
- open: e
144
- });
242
+ menu: {
243
+ items: menuItems
244
+ },
245
+ children: /*#__PURE__*/_jsx(Tooltip, {
246
+ title: isOverflowing ? label : '',
247
+ color: "var(--globalColor7)",
248
+ overlayStyle: {
249
+ border: '1px solid var(--tableColor2)',
250
+ borderRadius: '6px'
145
251
  },
146
- menu: {
147
- items: [{
148
- icon: /*#__PURE__*/_jsx("i", {
149
- className: "iconfont-table icon-table-shuaxinbiaoqian"
150
- }),
151
- label: '刷新标签',
152
- key: JSON.stringify({
153
- name: name,
154
- key: 'refresh'
155
- }),
156
- onClick: onRefresh
157
- }, {
158
- icon: /*#__PURE__*/_jsx("i", {
159
- className: "iconfont-table icon-table-guanbibiaoqian"
160
- }),
161
- label: '关闭标签',
162
- key: JSON.stringify({
163
- name: name,
164
- key: 'current'
165
- }),
166
- disabled: cachingNodes.length <= 1,
167
- onClick: onCurrent
168
- }, {
169
- icon: /*#__PURE__*/_jsx("i", {
170
- className: "iconfont-table icon-table-guanbiqita"
171
- }),
172
- label: '关闭其他标签页',
173
- key: JSON.stringify({
174
- name: name,
175
- key: 'other'
176
- }),
177
- disabled: cachingNodes.length <= 1,
178
- onClick: onOther
179
- }
180
- // {
181
- // icon: '',
182
- // label: '关闭左侧',
183
- // key: JSON.stringify({ name, key: 'left' }),
184
- // disabled: lastIndex === 0,
185
- // onClick: onLeft,
186
- // },
187
- // {
188
- // label: '关闭右侧',
189
- // key: JSON.stringify({ name, key: 'right' }),
190
- // disabled: lastIndex === cachingNodes.length - 1,
191
- // onClick: onRight,
192
- // },
193
- // {
194
- // label: '重新加载',
195
- // key: JSON.stringify({ name, key: 'refresh' }),
196
- // onClick: onRefresh,
197
- // },
198
- ]
252
+ overlayInnerStyle: {
253
+ padding: '6px 16px',
254
+ borderRadius: '6px',
255
+ color: 'var(--globalColor1)',
256
+ background: 'var(--globalColor1)',
257
+ fontSize: '14px',
258
+ lineHeight: '28px'
199
259
  },
200
- children: /*#__PURE__*/_jsx(Tooltip, {
201
- title: name,
202
- color: "var(--globalColor7)",
203
- overlayStyle: {
204
- border: '1px solid var(--tableColor2)',
205
- borderRadius: '6px'
206
- },
207
- overlayInnerStyle: {
208
- padding: '6px 16px',
209
- borderRadius: '6px',
210
- color: 'var(--globalColor1)',
211
- background: 'var(--globalColor1)',
212
- fontSize: '14px',
213
- lineHeight: '28px'
260
+ children: /*#__PURE__*/_jsx("div", {
261
+ ref: labelRef,
262
+ className: cachingNodes.length > 1 ? 'dropdown-label' : '',
263
+ style: {
264
+ overflow: 'hidden',
265
+ textOverflow: 'ellipsis',
266
+ whiteSpace: 'nowrap'
214
267
  },
215
- children: /*#__PURE__*/_jsx("div", {
216
- className: cachingNodes.length > 1 ? 'dropdown-label' : '',
217
- children: label
218
- })
219
- }, name)
220
- })
221
- });
222
- };
223
- var tabItems = cachingNodes.map(function (item) {
224
- return {
225
- label: labelDropdown(item.name, item.tabName),
226
- key: item.name,
227
- closable: cachingNodes.length > 1
228
- };
229
- });
230
- return /*#__PURE__*/_jsx(Tabs, {
231
- hideAdd: true,
232
- size: "middle",
233
- type: "editable-card",
234
- className: "cache-tabs",
235
- activeKey: pathname,
236
- onTabClick: clickTab,
237
- onEdit: editTab,
238
- items: tabItems,
239
- tabBarGutter: 0
268
+ children: label
269
+ })
270
+ }, name)
271
+ })
240
272
  });
241
273
  });
@@ -20,6 +20,7 @@
20
20
  color: @globalColor2;
21
21
  height: 100% !important;
22
22
  padding: 0 12px !important;
23
+ pointer-events: auto;
23
24
  }
24
25
  &>.ant-tabs-nav .ant-tabs-tab-active {
25
26
  background: @globalColor7 !important;
@@ -29,6 +30,11 @@
29
30
  color: @globalColor1 !important;
30
31
  }
31
32
  }
33
+ &>.ant-tabs-nav .ant-tabs-tab:hover {
34
+ background: @globalColor7 !important;
35
+ border-radius: 6px 6px 0 0 !important;
36
+ border: 0 !important;
37
+ }
32
38
  &>.ant-tabs-nav::before {
33
39
  z-index: 1;
34
40
  border-bottom: 1px solid @tableColor7;
@@ -49,11 +55,11 @@
49
55
  border-left: none !important;
50
56
  content: '';
51
57
  }
52
- .dropdown-label {
58
+ .ant-dropdown-trigger,.dropdown-label {
53
59
  text-overflow: ellipsis;
54
60
  white-space: nowrap;
55
61
  overflow: hidden;
56
- max-width: 84px;
62
+ max-width: 96px;
57
63
  }
58
64
  &>.ant-tabs-nav .ant-tabs-tab .ant-tabs-tab-remove {
59
65
  padding: 0 !important;
@@ -80,7 +86,7 @@
80
86
  .ant-dropdown-menu {
81
87
  padding: 0 !important;
82
88
  border-radius: 6px !important;
83
- background: @global-row-hover-background-color;
89
+ background: @global-hover-background-color;
84
90
  box-shadow: 0px 5px 12px -4px @global-hover-box-shadow-color;
85
91
  border-radius: 6px 6px 6px 6px;
86
92
  border: 1px solid @tableColor7;
@@ -97,6 +103,9 @@
97
103
  .ant-dropdown-menu-item-active, .ant-dropdown-menu-item:hover {
98
104
  background: @globalColor_14 !important;
99
105
  }
106
+ .ant-dropdown-menu-item-disabled, .ant-dropdown-menu-item-disabled:hover {
107
+ background: @global-disabled-background-color !important;
108
+ }
100
109
  .iconfont-table {
101
110
  font-size: 16px !important;
102
111
  line-height: 22px !important;
@@ -1244,7 +1244,7 @@ var TableMax = function TableMax(_ref) {
1244
1244
  },
1245
1245
  placement: "bottomRight",
1246
1246
  children: /*#__PURE__*/_jsx("i", {
1247
- className: "iconfont-table icon-table-midu handleRightItem",
1247
+ className: "iconfont-table icon-table-normal handleRightItem",
1248
1248
  style: {
1249
1249
  fontSize: '16px',
1250
1250
  marginRight: 0
@@ -4,6 +4,7 @@
4
4
  opacity: 0.5;
5
5
  left: 0;
6
6
  top: 0;
7
+ z-index: 9999;
7
8
 
8
9
  .tbody-tr,
9
10
  .tbody-tr-selected {
@@ -46,5 +46,6 @@
46
46
  @tableSettingModalBgc: var(--tableSettingModalBgc, #ffffff); // 表格的body的背景底色
47
47
  @global-tip-text-color: var(--global-tip-text-color, rgba(255,255,255,0.45)); //提醒色/暂无数据颜色/placeholder颜色
48
48
  @global-icon-color: var(--global-icon-color, #ffffff); //图标色
49
- @global-row-hover-background-color: var(--global-row-hover-background-color, #010C31f2); // 表格行hover背景色
49
+ @global-hover-background-color: var(--global-hover-background-color, #010C31f2); // 表格行hover背景色
50
50
  @global-hover-box-shadow-color: var(--global-hover-box-shadow-color, #03062173); // hover/右键框投影颜色
51
+ @global-disabled-background-color: var(--global-disabled-background-color, #0F2347); // 禁用背景色
@@ -65,8 +65,9 @@ export var PublicThemeVariablesConfig = {
65
65
  // 表格的body的背景底色
66
66
  '--global-tip-text-color': "rgba(36,42,48,0.45)",
67
67
  '--global-icon-color': "#455169",
68
- '--global-row-hover-background-color': "#ebebebf2",
69
- '--global-hover-box-shadow-color': "#0306211a"
68
+ '--global-hover-background-color': "#ebebebf2",
69
+ '--global-hover-box-shadow-color': "#0306211a",
70
+ '--global-disabled-background-color': "#F2F2F2"
70
71
  },
71
72
  dark: {
72
73
  '--global-curd-input-background-color': '#494c5dff',
@@ -136,7 +137,8 @@ export var PublicThemeVariablesConfig = {
136
137
  '--global-tip-text-color': "rgba(255,255,255,0.45)",
137
138
  // 提醒色/暂无数据颜色/placeholder颜
138
139
  '--global-icon-color': "#fff",
139
- '--global-row-hover-background-color': "#010C31f2",
140
- '--global-hover-box-shadow-color': "#03062173"
140
+ '--global-hover-background-color': "#010C31f2",
141
+ '--global-hover-box-shadow-color': "#03062173",
142
+ '--global-disabled-background-color': "#0F2347"
141
143
  }
142
144
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arim-aisdc/public-components",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "前端组件库",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",