@chaoswise/ui 3.1.20 → 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
|
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",
|