@chaoswise/ui 3.1.19 → 3.1.21
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.
|
@@ -536,7 +536,7 @@ var useSelection = function useSelection(config, rowSelection) {
|
|
|
536
536
|
var _cloneColumns = cloneColumns,
|
|
537
537
|
_cloneColumns2 = _toArray(_cloneColumns),
|
|
538
538
|
expandColumn = _cloneColumns2[0],
|
|
539
|
-
restColumns = _cloneColumns2.slice(1);
|
|
539
|
+
restColumns = _arrayLikeToArray(_cloneColumns2).slice(1);
|
|
540
540
|
cloneColumns = [expandColumn, SELECTION_COLUMN].concat(_toConsumableArray(restColumns));
|
|
541
541
|
} else {
|
|
542
542
|
// Normal insert at first column
|
|
@@ -99,12 +99,12 @@ var TabList = function TabList(props) {
|
|
|
99
99
|
var _message$title, _message$summary;
|
|
100
100
|
return /*#__PURE__*/React.createElement("div", {
|
|
101
101
|
className: classnames("".concat(messagePrefixCls, "-content-tabs-list"), _defineProperty({}, "".concat(messagePrefixCls, "-content-tabs-list-invalid"), message.showMode === 'invalid')),
|
|
102
|
-
key: message.userMessageId
|
|
103
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
104
|
-
className: "".concat(messagePrefixCls, "-content-tabs-list-title"),
|
|
102
|
+
key: message.userMessageId,
|
|
105
103
|
onClick: function onClick() {
|
|
106
104
|
return onHandleMessage(message);
|
|
107
105
|
}
|
|
106
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
107
|
+
className: "".concat(messagePrefixCls, "-content-tabs-list-title")
|
|
108
108
|
}, message.showMode === 'top' && /*#__PURE__*/React.createElement(_Tag, {
|
|
109
109
|
className: "".concat(messagePrefixCls, "-content-tabs-list-title-top")
|
|
110
110
|
}, intl.get('5cc44ee5-8da3-446b-b962-3fe7f77d4f38').d('置顶')), (_message$title = message.title) !== null && _message$title !== void 0 ? _message$title : ''), /*#__PURE__*/React.createElement("div", {
|
|
@@ -125,8 +125,20 @@ var genCustomCWMessageStyle = function genCustomCWMessageStyle(token) {
|
|
|
125
125
|
marginRight: "16px"
|
|
126
126
|
}
|
|
127
127
|
})), "".concat(messagePrefixCls, "-content-tabs-list"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
padding: "16px 12px 8px",
|
|
129
|
+
margin: "0 -12px",
|
|
130
|
+
borderRadius: "8px",
|
|
131
|
+
transition: "background-color 0.2s ease",
|
|
132
|
+
"&:hover": {
|
|
133
|
+
cursor: "pointer",
|
|
134
|
+
backgroundColor: token.controlItemBgHover || token.colorFillSecondary || token.colorPrimaryBg
|
|
135
|
+
}
|
|
136
|
+
}, "&".concat(messagePrefixCls, "-content-tabs-list-invalid"), _defineProperty({
|
|
137
|
+
"&:hover": {
|
|
138
|
+
cursor: "default",
|
|
139
|
+
backgroundColor: "transparent"
|
|
140
|
+
}
|
|
141
|
+
}, "".concat(messagePrefixCls, "-content-tabs-list-title,").concat(messagePrefixCls, "-content-tabs-list-desc,").concat(messagePrefixCls, "-content-tabs-list-date"), {
|
|
130
142
|
color: token.colorTextDisabled,
|
|
131
143
|
"&:hover": {
|
|
132
144
|
color: token.colorTextDisabled
|
package/lib/locales/intl.js
CHANGED
|
@@ -11,8 +11,11 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
11
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; } }
|
|
12
12
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
13
|
import { useCallback, useState } from 'react';
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
|
|
15
|
+
// 复用 @chaoswise/intl 内嵌的 react-intl-universal 实例(其依赖 intl-messageformat v7,
|
|
16
|
+
// 兼容 zh_CN 下划线 locale),避免直接 require 外部 riu 2.14 拉入 intl-messageformat v11
|
|
17
|
+
// 导致 zh_CN 被判为非法 locale、ICU 变量不替换的问题。
|
|
18
|
+
import { intl as IntlInstance } from '@chaoswise/intl';
|
|
16
19
|
var createNewObject = function createNewObject() {
|
|
17
20
|
return {};
|
|
18
21
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chaoswise/ui",
|
|
3
3
|
"packageName": "chaoswiseUI",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.21",
|
|
5
5
|
"description": "公共UI库",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ui",
|
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
"react-custom-scrollbars": "^4.2.1",
|
|
96
96
|
"react-dnd": "^13.1.1",
|
|
97
97
|
"react-dnd-html5-backend": "^12.1.1",
|
|
98
|
+
"react-draggable": "4.4.6",
|
|
98
99
|
"react-infinite-scroller": "^1.2.6",
|
|
99
100
|
"react-joyride": "^2.3.2",
|
|
100
101
|
"react-resizable": "^3.0.5",
|
|
@@ -105,15 +106,14 @@
|
|
|
105
106
|
"socket.io-client": "2.5.0",
|
|
106
107
|
"styled-components": "^5.3.11",
|
|
107
108
|
"throttle-debounce": "^5.0.2",
|
|
108
|
-
"use-merge-value": "^1.2.0"
|
|
109
|
-
"react-draggable": "4.4.6"
|
|
109
|
+
"use-merge-value": "^1.2.0"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
112
|
"@ant-design/moment-webpack-plugin": "^1.0.0",
|
|
113
113
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
114
114
|
"@babel/plugin-proposal-decorators": "^7.25.9",
|
|
115
115
|
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
116
|
-
"@chaoswise/intl": "^
|
|
116
|
+
"@chaoswise/intl": "^3.1.6",
|
|
117
117
|
"@storybook/addon-essentials": "7.5.3",
|
|
118
118
|
"@storybook/addon-interactions": "7.5.3",
|
|
119
119
|
"@storybook/addon-links": "7.5.3",
|