@chaoswise/ui 3.1.20 → 3.1.22
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,14 @@ 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 类 new 出 ui 自己的实例:
|
|
16
|
+
// 1) 底层走 intl-messageformat v7,兼容 zh_CN 下划线 locale,避免外部 riu 2.14
|
|
17
|
+
// 拉入 v11 后 zh_CN 被判非法、ICU 变量不替换;
|
|
18
|
+
// 2) ui 组件的词条注册/语言切换由 ConfigProvider 通过 intlContext 自管理,
|
|
19
|
+
// 独立实例不会与宿主 @chaoswise/intl 单例互相覆盖词条。
|
|
20
|
+
import { intl } from '@chaoswise/intl';
|
|
21
|
+
var IntlInstance = new intl.constructor();
|
|
16
22
|
var createNewObject = function createNewObject() {
|
|
17
23
|
return {};
|
|
18
24
|
};
|
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.22",
|
|
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",
|