@aloudata/aloudata-design 0.3.0-beta.1 → 0.3.2
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.
- package/README.md +15 -5
- package/es/Breadcrumb/index.d.ts +0 -1
- package/es/Breadcrumb/style/index.less +11 -3
- package/es/Button/index.js +17 -2
- package/es/Button/style/index.less +41 -39
- package/es/Button/style/variables.less +9 -2
- package/es/Card/index.d.ts +3 -0
- package/es/Card/index.js +3 -0
- package/es/{Message → Card}/style/index.d.ts +0 -0
- package/es/{Message → Card}/style/index.js +0 -0
- package/es/{Message → Card}/style/index.less +0 -0
- package/es/Checkbox/index.d.ts +0 -1
- package/es/Checkbox/style/index.less +19 -0
- package/es/Drawer/index.d.ts +4 -0
- package/es/Drawer/index.js +3 -0
- package/es/{Notification → Drawer}/style/index.d.ts +0 -0
- package/es/{Notification → Drawer}/style/index.js +0 -0
- package/es/{Notification → Drawer}/style/index.less +0 -0
- package/es/Dropdown/Button.js +3 -3
- package/es/Empty/image/Authority.d.ts +0 -1
- package/es/Empty/image/Dataspace.d.ts +0 -1
- package/es/Empty/image/Search.d.ts +0 -1
- package/es/Empty/image/Simple.d.ts +0 -1
- package/es/Empty/image/Worksheet.d.ts +0 -1
- package/es/Empty/image/empty.d.ts +0 -1
- package/es/Form/style/index.less +8 -0
- package/es/Icon/antdIconfont.d.ts +4 -0
- package/es/Icon/antdIconfont.js +2 -0
- package/es/Icon/components/Icon.d.ts +32 -0
- package/es/Icon/components/Icon.js +27 -0
- package/es/Icon/components/createFromScripts.d.ts +1 -0
- package/es/Icon/components/createFromScripts.js +35 -0
- package/es/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/es/Icon/icons/AddLine.d.ts +13 -0
- package/es/Icon/icons/AddLine.js +66 -0
- package/es/Icon/icons/AlertFill.d.ts +13 -0
- package/es/Icon/icons/AlertFill.js +73 -0
- package/es/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/es/Icon/icons/ArrowsDownLine.js +66 -0
- package/es/Icon/icons/CancelFill.d.ts +13 -0
- package/es/Icon/icons/CancelFill.js +73 -0
- package/es/Icon/icons/CheckFill.d.ts +13 -0
- package/es/Icon/icons/CheckFill.js +73 -0
- package/es/Icon/icons/CheckLine.d.ts +13 -0
- package/es/Icon/icons/CheckLine.js +73 -0
- package/es/Icon/icons/CloseLine.d.ts +13 -0
- package/es/Icon/icons/CloseLine.js +66 -0
- package/es/Icon/icons/DatabaseLine.d.ts +13 -0
- package/es/Icon/icons/DatabaseLine.js +66 -0
- package/es/Icon/icons/Deleteline.d.ts +13 -0
- package/es/Icon/icons/Deleteline.js +66 -0
- package/es/Icon/icons/DownloadLine.d.ts +13 -0
- package/es/Icon/icons/DownloadLine.js +73 -0
- package/es/Icon/icons/ErrorFill.d.ts +13 -0
- package/es/Icon/icons/ErrorFill.js +73 -0
- package/es/Icon/icons/EyeOffLine.d.ts +13 -0
- package/es/Icon/icons/EyeOffLine.js +73 -0
- package/es/Icon/icons/EyeOnLine.d.ts +13 -0
- package/es/Icon/icons/EyeOnLine.js +66 -0
- package/es/Icon/icons/FileLine.d.ts +13 -0
- package/es/Icon/icons/FileLine.js +73 -0
- package/es/Icon/icons/HomeFill.d.ts +13 -0
- package/es/Icon/icons/HomeFill.js +73 -0
- package/es/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/es/Icon/icons/LightningLine.d.ts +13 -0
- package/es/Icon/icons/LightningLine.js +66 -0
- package/es/Icon/icons/Loading.d.ts +13 -0
- package/es/Icon/icons/Loading.js +66 -0
- package/es/Icon/icons/More.d.ts +13 -0
- package/es/Icon/icons/More.js +66 -0
- package/es/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/es/Icon/icons/NewWindowsLine.js +74 -0
- package/es/Icon/icons/SearchLine.d.ts +13 -0
- package/es/Icon/icons/SearchLine.js +73 -0
- package/es/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/es/Icon/icons/SortAscendingLine.js +66 -0
- package/es/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/es/Icon/icons/SortDescendingLine.js +66 -0
- package/es/Icon/icons/TextLine.d.ts +13 -0
- package/es/Icon/icons/TextLine.js +73 -0
- package/es/Icon/icons/UserLine.d.ts +13 -0
- package/es/Icon/icons/UserLine.js +73 -0
- package/es/Icon/icons/style.css +9 -0
- package/es/Icon/icons/style.css.d.ts +10 -0
- package/es/Icon/index.d.ts +2 -13
- package/es/Icon/index.js +2 -53
- package/es/Icon/index.less +9 -17
- package/es/Icon/style/index.d.ts +1 -0
- package/es/Icon/style/index.js +1 -0
- package/es/Icon/style/index.less +0 -0
- package/es/Input/components/Group/index.d.ts +0 -1
- package/es/Input/components/Password/index.js +6 -5
- package/es/Input/style/index.less +1 -1
- package/es/InputNumber/index.d.ts +0 -1
- package/es/InputNumber/style/index.less +88 -16
- package/es/Menu/Divider.d.ts +0 -1
- package/es/Menu/style/index.less +4 -3
- package/es/Modal/index.js +21 -12
- package/es/Modal/locale.d.ts +7 -0
- package/es/Modal/locale.js +20 -0
- package/es/Modal/style/index.less +3 -3
- package/es/Navigator/components/Header/index.d.ts +0 -1
- package/es/Navigator/components/Menu/index.d.ts +0 -1
- package/es/Navigator/components/MenuItem/index.d.ts +1 -1
- package/es/Navigator/index.d.ts +1 -1
- package/es/Navigator/style/index.less +46 -5
- package/es/Popover/index.d.ts +0 -1
- package/es/Select/index.d.ts +2 -1
- package/es/Select/index.js +2 -1
- package/es/Select/rc-select/OptionList.js +3 -4
- package/es/Select/rc-select/Selector/MultipleSelector.js +13 -3
- package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/es/Select/style/index.d.ts +0 -1
- package/es/Select/style/index.js +0 -1
- package/es/Select/style/index.less +105 -10
- package/es/Select/style/variables.less +20 -9
- package/es/Select/style/variables.less.d.ts +4 -1
- package/es/Select/utils/iconUtil.d.ts +2 -2
- package/es/Select/utils/iconUtil.js +10 -13
- package/es/Table/Table.d.ts +0 -1
- package/es/Table/Table.js +23 -14
- package/es/Table/style/index.less +7 -0
- package/es/Tabs/index.d.ts +2 -1
- package/es/Tabs/index.js +9 -6
- package/es/Tabs/style/index.less +67 -1
- package/es/index.d.ts +8 -3
- package/es/index.js +6 -3
- package/es/locale/default.d.ts +2 -0
- package/es/locale/default.js +2 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +132 -0
- package/es/locale/zh_CN.d.ts +3 -2
- package/es/locale/zh_CN.js +131 -2
- package/es/locale-provider/LocaleReceiver.d.ts +4 -0
- package/es/locale-provider/LocaleReceiver.js +3 -0
- package/es/locale-provider/context.d.ts +7 -0
- package/es/locale-provider/context.js +3 -0
- package/es/locale-provider/default.d.ts +2 -0
- package/es/locale-provider/default.js +2 -0
- package/es/locale-provider/en_US.d.ts +2 -0
- package/es/locale-provider/en_US.js +2 -0
- package/es/locale-provider/index.d.ts +61 -0
- package/es/locale-provider/index.js +102 -0
- package/es/locale-provider/style/index.d.ts +1 -0
- package/es/locale-provider/style/index.js +1 -0
- package/es/locale-provider/style/index.less +2 -0
- package/es/locale-provider/zh_CN.d.ts +2 -0
- package/es/locale-provider/zh_CN.js +2 -0
- package/es/{Message → message}/index.d.ts +0 -0
- package/es/{Message → message}/index.js +0 -0
- package/{lib/Message → es/message}/style/index.d.ts +0 -0
- package/es/message/style/index.js +2 -0
- package/{lib/Message → es/message}/style/index.less +0 -0
- package/es/{Notification → notification}/index.d.ts +0 -0
- package/es/{Notification → notification}/index.js +0 -0
- package/{lib/Notification → es/notification}/style/index.d.ts +0 -0
- package/es/notification/style/index.js +2 -0
- package/{lib/Notification → es/notification}/style/index.less +0 -0
- package/es/style/index.less +1 -0
- package/es/style/themes/default/scrollBar.less +13 -0
- package/lib/Breadcrumb/index.d.ts +0 -1
- package/lib/Breadcrumb/style/index.less +11 -3
- package/lib/Button/index.js +18 -2
- package/lib/Button/style/index.less +41 -39
- package/lib/Button/style/variables.less +9 -2
- package/lib/Card/index.d.ts +3 -0
- package/lib/Card/index.js +15 -0
- package/lib/Card/style/index.d.ts +2 -0
- package/lib/{Message → Card}/style/index.js +0 -0
- package/lib/Card/style/index.less +1 -0
- package/lib/Checkbox/index.d.ts +0 -1
- package/lib/Checkbox/style/index.less +19 -0
- package/lib/Drawer/index.d.ts +4 -0
- package/lib/Drawer/index.js +15 -0
- package/lib/Drawer/style/index.d.ts +2 -0
- package/lib/{Notification → Drawer}/style/index.js +0 -0
- package/lib/Drawer/style/index.less +1 -0
- package/lib/Dropdown/Button.js +3 -3
- package/lib/Empty/image/Authority.d.ts +0 -1
- package/lib/Empty/image/Dataspace.d.ts +0 -1
- package/lib/Empty/image/Search.d.ts +0 -1
- package/lib/Empty/image/Simple.d.ts +0 -1
- package/lib/Empty/image/Worksheet.d.ts +0 -1
- package/lib/Empty/image/empty.d.ts +0 -1
- package/lib/Form/style/index.less +8 -0
- package/lib/Icon/antdIconfont.d.ts +4 -0
- package/lib/Icon/antdIconfont.js +13 -0
- package/lib/Icon/components/Icon.d.ts +32 -0
- package/lib/Icon/components/Icon.js +38 -0
- package/lib/Icon/components/createFromScripts.d.ts +1 -0
- package/lib/Icon/components/createFromScripts.js +41 -0
- package/lib/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/lib/Icon/icons/AddLine.d.ts +13 -0
- package/lib/Icon/icons/AddLine.js +83 -0
- package/lib/Icon/icons/AlertFill.d.ts +13 -0
- package/lib/Icon/icons/AlertFill.js +90 -0
- package/lib/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/lib/Icon/icons/ArrowsDownLine.js +83 -0
- package/lib/Icon/icons/CancelFill.d.ts +13 -0
- package/lib/Icon/icons/CancelFill.js +90 -0
- package/lib/Icon/icons/CheckFill.d.ts +13 -0
- package/lib/Icon/icons/CheckFill.js +90 -0
- package/lib/Icon/icons/CheckLine.d.ts +13 -0
- package/lib/Icon/icons/CheckLine.js +90 -0
- package/lib/Icon/icons/CloseLine.d.ts +13 -0
- package/lib/Icon/icons/CloseLine.js +83 -0
- package/lib/Icon/icons/DatabaseLine.d.ts +13 -0
- package/lib/Icon/icons/DatabaseLine.js +83 -0
- package/lib/Icon/icons/Deleteline.d.ts +13 -0
- package/lib/Icon/icons/Deleteline.js +83 -0
- package/lib/Icon/icons/DownloadLine.d.ts +13 -0
- package/lib/Icon/icons/DownloadLine.js +90 -0
- package/lib/Icon/icons/ErrorFill.d.ts +13 -0
- package/lib/Icon/icons/ErrorFill.js +90 -0
- package/lib/Icon/icons/EyeOffLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOffLine.js +90 -0
- package/lib/Icon/icons/EyeOnLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOnLine.js +83 -0
- package/lib/Icon/icons/FileLine.d.ts +13 -0
- package/lib/Icon/icons/FileLine.js +90 -0
- package/lib/Icon/icons/HomeFill.d.ts +13 -0
- package/lib/Icon/icons/HomeFill.js +90 -0
- package/lib/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/lib/Icon/icons/LightningLine.d.ts +13 -0
- package/lib/Icon/icons/LightningLine.js +83 -0
- package/lib/Icon/icons/Loading.d.ts +13 -0
- package/lib/Icon/icons/Loading.js +83 -0
- package/lib/Icon/icons/More.d.ts +13 -0
- package/lib/Icon/icons/More.js +83 -0
- package/lib/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/lib/Icon/icons/NewWindowsLine.js +91 -0
- package/lib/Icon/icons/SearchLine.d.ts +13 -0
- package/lib/Icon/icons/SearchLine.js +90 -0
- package/lib/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortAscendingLine.js +83 -0
- package/lib/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortDescendingLine.js +83 -0
- package/lib/Icon/icons/TextLine.d.ts +13 -0
- package/lib/Icon/icons/TextLine.js +90 -0
- package/lib/Icon/icons/UserLine.d.ts +13 -0
- package/lib/Icon/icons/UserLine.js +90 -0
- package/lib/Icon/icons/style.css +9 -0
- package/lib/Icon/icons/style.css.d.ts +10 -0
- package/lib/Icon/index.d.ts +2 -13
- package/lib/Icon/index.js +2 -59
- package/lib/Icon/index.less +9 -17
- package/lib/Icon/style/index.d.ts +1 -0
- package/lib/Icon/style/index.js +1 -0
- package/lib/Icon/style/index.less +0 -0
- package/lib/Input/components/Group/index.d.ts +0 -1
- package/lib/Input/components/Password/index.js +7 -5
- package/lib/Input/style/index.less +1 -1
- package/lib/InputNumber/index.d.ts +0 -1
- package/lib/InputNumber/style/index.less +88 -16
- package/lib/Menu/Divider.d.ts +0 -1
- package/lib/Menu/style/index.less +4 -3
- package/lib/Modal/index.js +23 -12
- package/lib/Modal/locale.d.ts +7 -0
- package/lib/Modal/locale.js +31 -0
- package/lib/Modal/style/index.less +3 -3
- package/lib/Navigator/components/Header/index.d.ts +0 -1
- package/lib/Navigator/components/Menu/index.d.ts +0 -1
- package/lib/Navigator/components/MenuItem/index.d.ts +1 -1
- package/lib/Navigator/index.d.ts +1 -1
- package/lib/Navigator/style/index.less +46 -5
- package/lib/Popover/index.d.ts +0 -1
- package/lib/Select/index.d.ts +2 -1
- package/lib/Select/index.js +2 -1
- package/lib/Select/rc-select/OptionList.js +3 -4
- package/lib/Select/rc-select/Selector/MultipleSelector.js +13 -3
- package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/lib/Select/style/index.d.ts +0 -1
- package/lib/Select/style/index.js +0 -2
- package/lib/Select/style/index.less +105 -10
- package/lib/Select/style/variables.less +20 -9
- package/lib/Select/style/variables.less.d.ts +4 -1
- package/lib/Select/utils/iconUtil.d.ts +2 -2
- package/lib/Select/utils/iconUtil.js +11 -14
- package/lib/Table/Table.d.ts +0 -1
- package/lib/Table/Table.js +25 -15
- package/lib/Table/style/index.less +7 -0
- package/lib/Tabs/index.d.ts +2 -1
- package/lib/Tabs/index.js +9 -6
- package/lib/Tabs/style/index.less +67 -1
- package/lib/index.d.ts +8 -3
- package/lib/index.js +38 -14
- package/lib/locale/default.d.ts +2 -0
- package/lib/locale/default.js +13 -0
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.js +146 -0
- package/lib/locale/zh_CN.d.ts +3 -2
- package/lib/locale/zh_CN.js +134 -2
- package/lib/locale-provider/LocaleReceiver.d.ts +4 -0
- package/lib/locale-provider/LocaleReceiver.js +23 -0
- package/lib/locale-provider/context.d.ts +7 -0
- package/lib/locale-provider/context.js +12 -0
- package/lib/locale-provider/default.d.ts +2 -0
- package/lib/locale-provider/default.js +13 -0
- package/lib/locale-provider/en_US.d.ts +2 -0
- package/lib/locale-provider/en_US.js +13 -0
- package/lib/locale-provider/index.d.ts +61 -0
- package/lib/locale-provider/index.js +116 -0
- package/lib/locale-provider/style/index.d.ts +1 -0
- package/lib/locale-provider/style/index.js +3 -0
- package/lib/locale-provider/style/index.less +2 -0
- package/lib/locale-provider/zh_CN.d.ts +2 -0
- package/lib/locale-provider/zh_CN.js +13 -0
- package/lib/{Message → message}/index.d.ts +0 -0
- package/lib/{Message → message}/index.js +0 -0
- package/lib/message/style/index.d.ts +2 -0
- package/lib/message/style/index.js +5 -0
- package/lib/message/style/index.less +1 -0
- package/lib/{Notification → notification}/index.d.ts +0 -0
- package/lib/{Notification → notification}/index.js +0 -0
- package/lib/notification/style/index.d.ts +2 -0
- package/lib/notification/style/index.js +5 -0
- package/lib/notification/style/index.less +1 -0
- package/lib/style/index.less +1 -0
- package/lib/style/themes/default/scrollBar.less +13 -0
- package/package.json +10 -8
- package/es/Icon/iconfont/demo.css +0 -539
- package/es/Icon/iconfont/demo_index.html +0 -720
- package/es/Icon/iconfont/iconfont.css +0 -109
- package/es/Icon/iconfont/iconfont.js +0 -46
- package/es/Icon/iconfont/iconfont.json +0 -170
- package/es/Icon/iconfont/iconfont.ttf +0 -0
- package/es/Icon/iconfont/iconfont.woff +0 -0
- package/es/Icon/iconfont/iconfont.woff2 +0 -0
- package/es/Table/components/Empty/empty-img.png +0 -0
- package/es/Table/components/Empty/index.d.ts +0 -4
- package/es/Table/components/Empty/index.js +0 -16
- package/es/Table/components/Empty/index.less +0 -24
- package/lib/Icon/iconfont/demo.css +0 -539
- package/lib/Icon/iconfont/demo_index.html +0 -720
- package/lib/Icon/iconfont/iconfont.css +0 -109
- package/lib/Icon/iconfont/iconfont.js +0 -48
- package/lib/Icon/iconfont/iconfont.json +0 -170
- package/lib/Icon/iconfont/iconfont.ttf +0 -0
- package/lib/Icon/iconfont/iconfont.woff +0 -0
- package/lib/Icon/iconfont/iconfont.woff2 +0 -0
- package/lib/Table/components/Empty/empty-img.png +0 -0
- package/lib/Table/components/Empty/index.d.ts +0 -4
- package/lib/Table/components/Empty/index.js +0 -30
- package/lib/Table/components/Empty/index.less +0 -24
package/es/Table/Table.js
CHANGED
|
@@ -27,14 +27,16 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
27
27
|
/// <reference types ='./react-table-config' />
|
|
28
28
|
import _ from 'lodash';
|
|
29
29
|
import classnames from 'classnames';
|
|
30
|
-
import
|
|
30
|
+
import Descending from '../Icon/icons/SortDescendingLine';
|
|
31
|
+
import Ascending from '../Icon/icons/SortAscendingLine';
|
|
32
|
+
import LoadingIcon from '../Icon/icons/Loading';
|
|
31
33
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
32
34
|
import usePrefixCls from '../_utils/hooks/usePrefixCls';
|
|
33
35
|
import InfiniteScroll from 'react-infinite-scroll-component';
|
|
34
|
-
import TableEmpty from './components/Empty';
|
|
35
36
|
import ResizeObserver from 'rc-resize-observer';
|
|
36
|
-
import
|
|
37
|
-
import './style/index';
|
|
37
|
+
import Empty from '../Empty';
|
|
38
|
+
import { useTable, useBlockLayout, useRowSelect, useSortBy, useResizeColumns } from 'react-table'; // import './style/index';
|
|
39
|
+
|
|
38
40
|
var ARRAY_FIRST_INDEX = 0;
|
|
39
41
|
var DEFAULT_ROW_WIDTH = 0;
|
|
40
42
|
var DEFAULT_BODY_HEIGHT = 0;
|
|
@@ -329,13 +331,13 @@ function Table(props, ref) {
|
|
|
329
331
|
return null;
|
|
330
332
|
}
|
|
331
333
|
|
|
332
|
-
return desc ? /*#__PURE__*/React.createElement(
|
|
334
|
+
return desc ? /*#__PURE__*/React.createElement(Descending, {
|
|
333
335
|
className: "".concat(prefixCls, "-sortIcon"),
|
|
334
|
-
|
|
336
|
+
fill: "currentColor",
|
|
335
337
|
size: 12
|
|
336
|
-
}) : /*#__PURE__*/React.createElement(
|
|
338
|
+
}) : /*#__PURE__*/React.createElement(Ascending, {
|
|
337
339
|
className: "".concat(prefixCls, "-sortIcon"),
|
|
338
|
-
|
|
340
|
+
fill: "currentColor",
|
|
339
341
|
size: 12
|
|
340
342
|
});
|
|
341
343
|
};
|
|
@@ -357,9 +359,10 @@ function Table(props, ref) {
|
|
|
357
359
|
});
|
|
358
360
|
var LoadingNode = /*#__PURE__*/React.createElement("div", {
|
|
359
361
|
className: classnames("".concat(prefixCls, "-loading"))
|
|
360
|
-
}, /*#__PURE__*/React.createElement(
|
|
361
|
-
type: "waiting",
|
|
362
|
+
}, /*#__PURE__*/React.createElement(LoadingIcon, {
|
|
362
363
|
size: 16,
|
|
364
|
+
fill: "currentColor",
|
|
365
|
+
spin: true,
|
|
363
366
|
className: classnames("".concat(prefixCls, "-loading-icon"))
|
|
364
367
|
}), "Loading");
|
|
365
368
|
|
|
@@ -369,7 +372,13 @@ function Table(props, ref) {
|
|
|
369
372
|
}
|
|
370
373
|
|
|
371
374
|
if (!loading && !rows.length) {
|
|
372
|
-
return /*#__PURE__*/React.createElement(
|
|
375
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
376
|
+
className: classnames("".concat(prefixCls, "-empty-icon"))
|
|
377
|
+
}, /*#__PURE__*/React.createElement(Empty, {
|
|
378
|
+
title: "No Data",
|
|
379
|
+
size: "large",
|
|
380
|
+
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
381
|
+
}));
|
|
373
382
|
}
|
|
374
383
|
|
|
375
384
|
var renderRowList = function renderRowList() {
|
|
@@ -393,7 +402,7 @@ function Table(props, ref) {
|
|
|
393
402
|
}), row.cells.map(function (cell) {
|
|
394
403
|
return /*#__PURE__*/React.createElement("div", Object.assign({}, cell.getCellProps(), {
|
|
395
404
|
className: classnames("".concat(prefixCls, "-cell"))
|
|
396
|
-
}), cell.render('Cell'));
|
|
405
|
+
}), /*#__PURE__*/React.createElement(React.Fragment, null, cell.render('Cell')));
|
|
397
406
|
}));
|
|
398
407
|
});
|
|
399
408
|
};
|
|
@@ -447,9 +456,9 @@ function Table(props, ref) {
|
|
|
447
456
|
style: {
|
|
448
457
|
width: '100%'
|
|
449
458
|
}
|
|
450
|
-
}), column.render('Header'), /*#__PURE__*/React.createElement(SortIcons, {
|
|
459
|
+
}), /*#__PURE__*/React.createElement(React.Fragment, null, column.render('Header'), /*#__PURE__*/React.createElement(SortIcons, {
|
|
451
460
|
id: column.id
|
|
452
|
-
})), /*#__PURE__*/React.createElement("div", Object.assign({}, barPorps, {
|
|
461
|
+
}))), /*#__PURE__*/React.createElement("div", Object.assign({}, barPorps, {
|
|
453
462
|
className: classnames(_defineProperty({}, "".concat(prefixCls, "-dragBar"), resizeColumn), "".concat(prefixCls, "-bar"))
|
|
454
463
|
})));
|
|
455
464
|
}));
|
package/es/Tabs/index.d.ts
CHANGED
package/es/Tabs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "antd/es/tabs/style";
|
|
2
2
|
import _Tabs from "antd/es/tabs";
|
|
3
|
-
var _excluded = ["size", "className", "adaptHeight"];
|
|
3
|
+
var _excluded = ["size", "className", "popupClassName", "adaptHeight"];
|
|
4
4
|
|
|
5
5
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
6
|
|
|
@@ -14,12 +14,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
14
14
|
|
|
15
15
|
import React from 'react'; // import AntdTabs, { TabsProps } from 'antd/lib/tabs';
|
|
16
16
|
|
|
17
|
-
import
|
|
17
|
+
import More from '../Icon/icons/More';
|
|
18
18
|
import TabPane from './TabPane';
|
|
19
19
|
import classNames from 'classnames';
|
|
20
20
|
export default function Tabs(props) {
|
|
21
21
|
var size = props.size,
|
|
22
22
|
className = props.className,
|
|
23
|
+
popupClassName = props.popupClassName,
|
|
23
24
|
adaptHeight = props.adaptHeight,
|
|
24
25
|
otherProps = _objectWithoutProperties(props, _excluded);
|
|
25
26
|
|
|
@@ -30,11 +31,13 @@ export default function Tabs(props) {
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
return /*#__PURE__*/React.createElement(_Tabs, Object.assign({
|
|
33
|
-
moreIcon: /*#__PURE__*/React.createElement(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
moreIcon: /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
className: "ald-tabs-moreIcon"
|
|
36
|
+
}, /*#__PURE__*/React.createElement(More, {
|
|
37
|
+
color: "currentColor"
|
|
38
|
+
})),
|
|
37
39
|
tabBarGutter: 24,
|
|
40
|
+
popupClassName: classNames(popupClassName, 'ald-tabs-dropdown'),
|
|
38
41
|
className: classNames('ald-tabs', className, {
|
|
39
42
|
'ald-adapt-height': adaptHeight,
|
|
40
43
|
'ald-tabs-default': size !== 'large'
|
package/es/Tabs/style/index.less
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/* stylelint-disable no-descending-specificity */
|
|
1
2
|
@import '../../style/index.less';
|
|
2
|
-
|
|
3
|
+
@import '../../Button/style/index.less';
|
|
3
4
|
//status- default
|
|
4
5
|
@Tabs-color: @NL30;
|
|
5
6
|
@Tabs-fontWeight: 400;
|
|
@@ -60,6 +61,12 @@
|
|
|
60
61
|
.ant-tabs-ink-bar {
|
|
61
62
|
height: @Tabs-ink-link-bar-height-large;
|
|
62
63
|
}
|
|
64
|
+
|
|
65
|
+
.ald-tabs-moreIcon {
|
|
66
|
+
width: 36px;
|
|
67
|
+
height: 36px;
|
|
68
|
+
border-radius: 8px;
|
|
69
|
+
}
|
|
63
70
|
}
|
|
64
71
|
|
|
65
72
|
&.ald-tabs-default {
|
|
@@ -67,10 +74,35 @@
|
|
|
67
74
|
font-size: @Tabs-fontSize;
|
|
68
75
|
line-height: @Tabs-lineHeight;
|
|
69
76
|
}
|
|
77
|
+
|
|
78
|
+
.ald-tabs-moreIcon {
|
|
79
|
+
width: 32px;
|
|
80
|
+
height: 32px;
|
|
81
|
+
border-radius: 6px;
|
|
82
|
+
}
|
|
70
83
|
}
|
|
71
84
|
|
|
72
85
|
.ant-tabs-nav-more {
|
|
86
|
+
display: inline-flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
justify-content: center;
|
|
73
89
|
margin: 0 !important;
|
|
90
|
+
padding: 2px;
|
|
91
|
+
|
|
92
|
+
.ald-tabs-moreIcon {
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
color: inherit;
|
|
97
|
+
font-size: inherit;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&.ant-tabs-dropdown-open {
|
|
101
|
+
.ald-tabs-moreIcon {
|
|
102
|
+
color: @B60;
|
|
103
|
+
background-color: @NL97;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
74
106
|
}
|
|
75
107
|
|
|
76
108
|
/* body自适应高度 */
|
|
@@ -98,3 +130,37 @@
|
|
|
98
130
|
}
|
|
99
131
|
}
|
|
100
132
|
}
|
|
133
|
+
|
|
134
|
+
.ald-tabs-dropdown {
|
|
135
|
+
.ant-tabs-dropdown-menu {
|
|
136
|
+
padding: 4px;
|
|
137
|
+
border-radius: 6px;
|
|
138
|
+
box-shadow: @shadow-L;
|
|
139
|
+
|
|
140
|
+
.ant-tabs-dropdown-menu-item-active {
|
|
141
|
+
background-color: @NL97;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.ant-tabs-dropdown-menu-item {
|
|
145
|
+
padding: 8px 12px;
|
|
146
|
+
line-height: 20px;
|
|
147
|
+
border-radius: 6px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.ant-tabs-dropdown-menu-item,
|
|
151
|
+
.ant-tabs-dropdown-menu-submenu-title {
|
|
152
|
+
&:hover {
|
|
153
|
+
background-color: @NL97;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&.ant-tabs-dropdown-menu-item-disabled {
|
|
157
|
+
color: @NL80;
|
|
158
|
+
cursor: default;
|
|
159
|
+
|
|
160
|
+
&:hover {
|
|
161
|
+
background-color: @BG100;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
package/es/index.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export { default as Navigator } from './Navigator';
|
|
|
20
20
|
export type { INavigatorProps as NavigatorProps, IMenuItem as NavigatorMenu, ISelectedMenuInfo as SelectedMenuInfo, } from './Navigator';
|
|
21
21
|
export { default as Alert } from './Alert';
|
|
22
22
|
export type { AlertProps } from './Alert';
|
|
23
|
+
export { default as Card } from './Card';
|
|
24
|
+
export type { CardProps } from './Card';
|
|
23
25
|
export { default as Col } from './Col';
|
|
24
26
|
export type { ColProps } from './Col';
|
|
25
27
|
export type { TypographyProps } from './Typography';
|
|
@@ -31,9 +33,9 @@ export { default as DatePicker } from './DatePicker';
|
|
|
31
33
|
export type { DatePickerProps } from './DatePicker';
|
|
32
34
|
export { default as Layout } from './Layout';
|
|
33
35
|
export type { LayoutProps } from './Layout';
|
|
34
|
-
export { default as
|
|
35
|
-
export type { MessageArgsProps } from './
|
|
36
|
-
export { default as
|
|
36
|
+
export { default as message } from './message';
|
|
37
|
+
export type { MessageArgsProps } from './message';
|
|
38
|
+
export { default as notification } from './notification';
|
|
37
39
|
export type { TreeProps, AntTreeNodeProps as TreeNodeProps, DataNode as TreeDataNode, } from './Tree';
|
|
38
40
|
export { default as Tree } from './Tree';
|
|
39
41
|
export type { SkeletonProps } from './Skeleton';
|
|
@@ -52,6 +54,8 @@ export { default as Form } from './Form';
|
|
|
52
54
|
export type { FormInstance, FormProps, FormItemProps } from './Form';
|
|
53
55
|
export { default as Divider } from './Divider';
|
|
54
56
|
export type { DividerProps } from './Divider';
|
|
57
|
+
export { default as Drawer } from './Drawer';
|
|
58
|
+
export type { DrawerProps } from './Drawer';
|
|
55
59
|
export { default as Radio } from './Radio';
|
|
56
60
|
export type { RadioProps, RadioChangeEvent, RadioGroupProps } from './Radio';
|
|
57
61
|
export { default as Checkbox } from './Checkbox';
|
|
@@ -68,3 +72,4 @@ export { default as Empty } from './Empty';
|
|
|
68
72
|
export type { IEmptyProps as EmptyProps } from './Empty';
|
|
69
73
|
export { default as Avatar } from './Avatar';
|
|
70
74
|
export type { IAvatarProps as AvatarProps } from './Avatar';
|
|
75
|
+
export { default as Icon } from './Icon';
|
package/es/index.js
CHANGED
|
@@ -9,14 +9,15 @@ export { default as Select } from './Select';
|
|
|
9
9
|
export { default as Table } from './Table';
|
|
10
10
|
export { default as Navigator } from './Navigator';
|
|
11
11
|
export { default as Alert } from './Alert';
|
|
12
|
+
export { default as Card } from './Card';
|
|
12
13
|
export { default as Col } from './Col';
|
|
13
14
|
export { default as Typography } from './Typography';
|
|
14
15
|
export { default as Upload } from './Upload';
|
|
15
16
|
export { default as ConfigProvider } from './ConfigProvider';
|
|
16
17
|
export { default as DatePicker } from './DatePicker';
|
|
17
18
|
export { default as Layout } from './Layout';
|
|
18
|
-
export { default as
|
|
19
|
-
export { default as
|
|
19
|
+
export { default as message } from './message';
|
|
20
|
+
export { default as notification } from './notification';
|
|
20
21
|
export { default as Tree } from './Tree';
|
|
21
22
|
export { default as Skeleton } from './Skeleton';
|
|
22
23
|
export { default as Row } from './Row';
|
|
@@ -26,6 +27,7 @@ export { default as Switch } from './Switch';
|
|
|
26
27
|
export { default as Steps } from './Steps';
|
|
27
28
|
export { default as Form } from './Form';
|
|
28
29
|
export { default as Divider } from './Divider';
|
|
30
|
+
export { default as Drawer } from './Drawer';
|
|
29
31
|
export { default as Radio } from './Radio';
|
|
30
32
|
export { default as Checkbox } from './Checkbox';
|
|
31
33
|
export { default as Modal } from './Modal';
|
|
@@ -33,4 +35,5 @@ export { default as Popover } from './Popover';
|
|
|
33
35
|
export { default as InputNumber } from './InputNumber';
|
|
34
36
|
export { default as Breadcrumb } from './Breadcrumb';
|
|
35
37
|
export { default as Empty } from './Empty';
|
|
36
|
-
export { default as Avatar } from './Avatar';
|
|
38
|
+
export { default as Avatar } from './Avatar';
|
|
39
|
+
export { default as Icon } from './Icon';
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/* eslint-disable no-template-curly-in-string */
|
|
2
|
+
import Pagination from 'rc-pagination/lib/locale/en_US';
|
|
3
|
+
import Calendar from 'antd/es/calendar/locale/en_US';
|
|
4
|
+
import DatePicker from 'antd/es/date-picker/locale/en_US';
|
|
5
|
+
import TimePicker from 'antd/es/time-picker/locale/en_US';
|
|
6
|
+
var typeTemplate = '${label} is not a valid ${type}';
|
|
7
|
+
var localeValues = {
|
|
8
|
+
locale: 'en',
|
|
9
|
+
Pagination: Pagination,
|
|
10
|
+
DatePicker: DatePicker,
|
|
11
|
+
TimePicker: TimePicker,
|
|
12
|
+
Calendar: Calendar,
|
|
13
|
+
global: {
|
|
14
|
+
placeholder: 'Please select'
|
|
15
|
+
},
|
|
16
|
+
Table: {
|
|
17
|
+
filterTitle: 'Filter menu',
|
|
18
|
+
filterConfirm: 'OK',
|
|
19
|
+
filterReset: 'Reset',
|
|
20
|
+
filterEmptyText: 'No filters',
|
|
21
|
+
filterCheckall: 'Select all items',
|
|
22
|
+
filterSearchPlaceholder: 'Search in filters',
|
|
23
|
+
emptyText: 'No data',
|
|
24
|
+
selectAll: 'Select current page',
|
|
25
|
+
selectInvert: 'Invert current page',
|
|
26
|
+
selectNone: 'Clear all data',
|
|
27
|
+
selectionAll: 'Select all data',
|
|
28
|
+
sortTitle: 'Sort',
|
|
29
|
+
expand: 'Expand row',
|
|
30
|
+
collapse: 'Collapse row',
|
|
31
|
+
triggerDesc: 'Click to sort descending',
|
|
32
|
+
triggerAsc: 'Click to sort ascending',
|
|
33
|
+
cancelSort: 'Click to cancel sorting'
|
|
34
|
+
},
|
|
35
|
+
Modal: {
|
|
36
|
+
okText: 'OK',
|
|
37
|
+
cancelText: 'Cancel',
|
|
38
|
+
justOkText: 'OK'
|
|
39
|
+
},
|
|
40
|
+
Popconfirm: {
|
|
41
|
+
okText: 'OK',
|
|
42
|
+
cancelText: 'Cancel'
|
|
43
|
+
},
|
|
44
|
+
Transfer: {
|
|
45
|
+
titles: ['', ''],
|
|
46
|
+
searchPlaceholder: 'Search here',
|
|
47
|
+
itemUnit: 'item',
|
|
48
|
+
itemsUnit: 'items',
|
|
49
|
+
remove: 'Remove',
|
|
50
|
+
selectCurrent: 'Select current page',
|
|
51
|
+
removeCurrent: 'Remove current page',
|
|
52
|
+
selectAll: 'Select all data',
|
|
53
|
+
removeAll: 'Remove all data',
|
|
54
|
+
selectInvert: 'Invert current page'
|
|
55
|
+
},
|
|
56
|
+
Upload: {
|
|
57
|
+
uploading: 'Uploading...',
|
|
58
|
+
removeFile: 'Remove file',
|
|
59
|
+
uploadError: 'Upload error',
|
|
60
|
+
previewFile: 'Preview file',
|
|
61
|
+
downloadFile: 'Download file'
|
|
62
|
+
},
|
|
63
|
+
Empty: {
|
|
64
|
+
description: 'No Data'
|
|
65
|
+
},
|
|
66
|
+
Icon: {
|
|
67
|
+
icon: 'icon'
|
|
68
|
+
},
|
|
69
|
+
Text: {
|
|
70
|
+
edit: 'Edit',
|
|
71
|
+
copy: 'Copy',
|
|
72
|
+
copied: 'Copied',
|
|
73
|
+
expand: 'Expand'
|
|
74
|
+
},
|
|
75
|
+
PageHeader: {
|
|
76
|
+
back: 'Back'
|
|
77
|
+
},
|
|
78
|
+
Form: {
|
|
79
|
+
optional: '(optional)',
|
|
80
|
+
defaultValidateMessages: {
|
|
81
|
+
default: 'Field validation error for ${label}',
|
|
82
|
+
required: 'Please enter ${label}',
|
|
83
|
+
enum: '${label} must be one of [${enum}]',
|
|
84
|
+
whitespace: '${label} cannot be a blank character',
|
|
85
|
+
date: {
|
|
86
|
+
format: '${label} date format is invalid',
|
|
87
|
+
parse: '${label} cannot be converted to a date',
|
|
88
|
+
invalid: '${label} is an invalid date'
|
|
89
|
+
},
|
|
90
|
+
types: {
|
|
91
|
+
string: typeTemplate,
|
|
92
|
+
method: typeTemplate,
|
|
93
|
+
array: typeTemplate,
|
|
94
|
+
object: typeTemplate,
|
|
95
|
+
number: typeTemplate,
|
|
96
|
+
date: typeTemplate,
|
|
97
|
+
boolean: typeTemplate,
|
|
98
|
+
integer: typeTemplate,
|
|
99
|
+
float: typeTemplate,
|
|
100
|
+
regexp: typeTemplate,
|
|
101
|
+
email: typeTemplate,
|
|
102
|
+
url: typeTemplate,
|
|
103
|
+
hex: typeTemplate
|
|
104
|
+
},
|
|
105
|
+
string: {
|
|
106
|
+
len: '${label} must be ${len} characters',
|
|
107
|
+
min: '${label} must be at least ${min} characters',
|
|
108
|
+
max: '${label} must be up to ${max} characters',
|
|
109
|
+
range: '${label} must be between ${min}-${max} characters'
|
|
110
|
+
},
|
|
111
|
+
number: {
|
|
112
|
+
len: '${label} must be equal to ${len}',
|
|
113
|
+
min: '${label} must be minimum ${min}',
|
|
114
|
+
max: '${label} must be maximum ${max}',
|
|
115
|
+
range: '${label} must be between ${min}-${max}'
|
|
116
|
+
},
|
|
117
|
+
array: {
|
|
118
|
+
len: 'Must be ${len} ${label}',
|
|
119
|
+
min: 'At least ${min} ${label}',
|
|
120
|
+
max: 'At most ${max} ${label}',
|
|
121
|
+
range: 'The amount of ${label} must be between ${min}-${max}'
|
|
122
|
+
},
|
|
123
|
+
pattern: {
|
|
124
|
+
mismatch: '${label} does not match the pattern ${pattern}'
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
Image: {
|
|
129
|
+
preview: 'Preview'
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
export default localeValues;
|
package/es/locale/zh_CN.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import type { Locale } from '../locale-provider';
|
|
2
|
+
declare const localeValues: Locale;
|
|
3
|
+
export default localeValues;
|
package/es/locale/zh_CN.js
CHANGED
|
@@ -1,2 +1,131 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/* eslint-disable no-template-curly-in-string */
|
|
2
|
+
import Pagination from 'rc-pagination/lib/locale/zh_CN';
|
|
3
|
+
import Calendar from 'antd/es/calendar/locale/zh_CN';
|
|
4
|
+
import DatePicker from 'antd/es/date-picker/locale/zh_CN';
|
|
5
|
+
import TimePicker from 'antd/es/time-picker/locale/zh_CN';
|
|
6
|
+
var typeTemplate = '${label}不是一个有效的${type}';
|
|
7
|
+
var localeValues = {
|
|
8
|
+
locale: 'zh-cn',
|
|
9
|
+
Pagination: Pagination,
|
|
10
|
+
DatePicker: DatePicker,
|
|
11
|
+
TimePicker: TimePicker,
|
|
12
|
+
Calendar: Calendar,
|
|
13
|
+
// locales for all components
|
|
14
|
+
global: {
|
|
15
|
+
placeholder: '请选择'
|
|
16
|
+
},
|
|
17
|
+
Table: {
|
|
18
|
+
filterTitle: '筛选',
|
|
19
|
+
filterConfirm: '确定',
|
|
20
|
+
filterReset: '重置',
|
|
21
|
+
filterEmptyText: '无筛选项',
|
|
22
|
+
filterCheckall: '全选',
|
|
23
|
+
filterSearchPlaceholder: '在筛选项中搜索',
|
|
24
|
+
selectAll: '全选当页',
|
|
25
|
+
selectInvert: '反选当页',
|
|
26
|
+
selectNone: '清空所有',
|
|
27
|
+
selectionAll: '全选所有',
|
|
28
|
+
sortTitle: '排序',
|
|
29
|
+
expand: '展开行',
|
|
30
|
+
collapse: '关闭行',
|
|
31
|
+
triggerDesc: '点击降序',
|
|
32
|
+
triggerAsc: '点击升序',
|
|
33
|
+
cancelSort: '取消排序'
|
|
34
|
+
},
|
|
35
|
+
Modal: {
|
|
36
|
+
okText: '确定',
|
|
37
|
+
cancelText: '取消',
|
|
38
|
+
justOkText: '知道了'
|
|
39
|
+
},
|
|
40
|
+
Popconfirm: {
|
|
41
|
+
cancelText: '取消',
|
|
42
|
+
okText: '确定'
|
|
43
|
+
},
|
|
44
|
+
Transfer: {
|
|
45
|
+
searchPlaceholder: '请输入搜索内容',
|
|
46
|
+
itemUnit: '项',
|
|
47
|
+
itemsUnit: '项',
|
|
48
|
+
remove: '删除',
|
|
49
|
+
selectCurrent: '全选当页',
|
|
50
|
+
removeCurrent: '删除当页',
|
|
51
|
+
selectAll: '全选所有',
|
|
52
|
+
removeAll: '删除全部',
|
|
53
|
+
selectInvert: '反选当页'
|
|
54
|
+
},
|
|
55
|
+
Upload: {
|
|
56
|
+
uploading: '文件上传中',
|
|
57
|
+
removeFile: '删除文件',
|
|
58
|
+
uploadError: '上传错误',
|
|
59
|
+
previewFile: '预览文件',
|
|
60
|
+
downloadFile: '下载文件'
|
|
61
|
+
},
|
|
62
|
+
Empty: {
|
|
63
|
+
description: '暂无数据'
|
|
64
|
+
},
|
|
65
|
+
Icon: {
|
|
66
|
+
icon: '图标'
|
|
67
|
+
},
|
|
68
|
+
Text: {
|
|
69
|
+
edit: '编辑',
|
|
70
|
+
copy: '复制',
|
|
71
|
+
copied: '复制成功',
|
|
72
|
+
expand: '展开'
|
|
73
|
+
},
|
|
74
|
+
PageHeader: {
|
|
75
|
+
back: '返回'
|
|
76
|
+
},
|
|
77
|
+
Form: {
|
|
78
|
+
optional: '(可选)',
|
|
79
|
+
defaultValidateMessages: {
|
|
80
|
+
default: '字段验证错误${label}',
|
|
81
|
+
required: '请输入${label}',
|
|
82
|
+
enum: '${label}必须是其中一个[${enum}]',
|
|
83
|
+
whitespace: '${label}不能为空字符',
|
|
84
|
+
date: {
|
|
85
|
+
format: '${label}日期格式无效',
|
|
86
|
+
parse: '${label}不能转换为日期',
|
|
87
|
+
invalid: '${label}是一个无效日期'
|
|
88
|
+
},
|
|
89
|
+
types: {
|
|
90
|
+
string: typeTemplate,
|
|
91
|
+
method: typeTemplate,
|
|
92
|
+
array: typeTemplate,
|
|
93
|
+
object: typeTemplate,
|
|
94
|
+
number: typeTemplate,
|
|
95
|
+
date: typeTemplate,
|
|
96
|
+
boolean: typeTemplate,
|
|
97
|
+
integer: typeTemplate,
|
|
98
|
+
float: typeTemplate,
|
|
99
|
+
regexp: typeTemplate,
|
|
100
|
+
email: typeTemplate,
|
|
101
|
+
url: typeTemplate,
|
|
102
|
+
hex: typeTemplate
|
|
103
|
+
},
|
|
104
|
+
string: {
|
|
105
|
+
len: '${label}须为${len}个字符',
|
|
106
|
+
min: '${label}最少${min}个字符',
|
|
107
|
+
max: '${label}最多${max}个字符',
|
|
108
|
+
range: '${label}须在${min}-${max}字符之间'
|
|
109
|
+
},
|
|
110
|
+
number: {
|
|
111
|
+
len: '${label}必须等于${len}',
|
|
112
|
+
min: '${label}最小值为${min}',
|
|
113
|
+
max: '${label}最大值为${max}',
|
|
114
|
+
range: '${label}须在${min}-${max}之间'
|
|
115
|
+
},
|
|
116
|
+
array: {
|
|
117
|
+
len: '须为${len}个${label}',
|
|
118
|
+
min: '最少${min}个${label}',
|
|
119
|
+
max: '最多${max}个${label}',
|
|
120
|
+
range: '${label}数量须在${min}-${max}之间'
|
|
121
|
+
},
|
|
122
|
+
pattern: {
|
|
123
|
+
mismatch: '${label}与模式不匹配${pattern}'
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
Image: {
|
|
128
|
+
preview: '预览'
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
export default localeValues;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Locale } from '.';
|
|
3
|
+
export declare type LocaleContextProps = Partial<Locale> & {
|
|
4
|
+
exist?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const LocaleContext: import("react").Context<LocaleContextProps | undefined>;
|
|
7
|
+
export default LocaleContext;
|