tntd 2.0.22 → 2.0.24
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/es/descriptions/descriptions.js +47 -0
- package/es/descriptions/descriptions.js.map +1 -0
- package/es/descriptions/descriptions.less +46 -0
- package/es/descriptions/index.js +12 -2
- package/es/descriptions/index.js.map +1 -1
- package/es/locale-provider/index.js +5 -0
- package/es/locale-provider/index.js.map +1 -1
- package/es/table/table.js +4 -2
- package/es/table/table.js.map +1 -1
- package/es/table/table.less +7 -0
- package/lib/descriptions/descriptions.d.ts +13 -0
- package/lib/descriptions/descriptions.d.ts.map +1 -0
- package/lib/descriptions/descriptions.js +68 -0
- package/lib/descriptions/descriptions.js.map +1 -0
- package/lib/descriptions/descriptions.less +46 -0
- package/lib/descriptions/index.d.ts +3 -2
- package/lib/descriptions/index.d.ts.map +1 -1
- package/lib/descriptions/index.js +13 -6
- package/lib/descriptions/index.js.map +1 -1
- package/lib/locale/default.d.ts +163 -1
- package/lib/locale/default.d.ts.map +1 -1
- package/lib/locale/en_US.d.ts +96 -1
- package/lib/locale/en_US.d.ts.map +1 -1
- package/lib/locale/zh_CN.d.ts +95 -1
- package/lib/locale/zh_CN.d.ts.map +1 -1
- package/lib/locale-provider/index.d.ts.map +1 -1
- package/lib/locale-provider/index.js +5 -0
- package/lib/locale-provider/index.js.map +1 -1
- package/lib/query-form/Field/fieldsMap.d.ts +1 -1
- package/lib/query-form/index.d.ts +1 -1
- package/lib/query-form/index.d.ts.map +1 -1
- package/lib/query-list-scene/List.d.ts +2 -2
- package/lib/query-list-scene/List.d.ts.map +1 -1
- package/lib/query-list-scene/createActions.d.ts +4 -4
- package/lib/query-list-scene/index.d.ts +4 -4
- package/lib/query-list-scene/useActions.d.ts +4 -4
- package/lib/svg-components/illustration-403.d.ts +1 -1
- package/lib/svg-components/illustration-404.d.ts +1 -1
- package/lib/svg-components/illustration-500.d.ts +1 -1
- package/lib/svg-components/illustration-empty.d.ts +1 -1
- package/lib/svg-components/illustration-failure.d.ts +1 -1
- package/lib/svg-components/illustration-no-access.d.ts +1 -1
- package/lib/svg-components/illustration-no-chart.d.ts +1 -1
- package/lib/svg-components/illustration-no-result.d.ts +1 -1
- package/lib/svg-components/illustration-offline.d.ts +1 -1
- package/lib/svg-components/illustration-success.d.ts +1 -1
- package/lib/table/assets/image-loading-background.d.ts +1 -1
- package/lib/table/assets/image-loading.d.ts +1 -1
- package/lib/table/table.d.ts +2 -1
- package/lib/table/table.d.ts.map +1 -1
- package/lib/table/table.js +4 -2
- package/lib/table/table.js.map +1 -1
- package/lib/table/table.less +7 -0
- package/lib/tntd-select/index.d.ts +1 -2
- package/lib/tntd-select/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/es/tnt-second-page/index.js +0 -27
- package/es/tnt-second-page/index.js.map +0 -1
- package/es/tntd-layout/tntdLayout.stories.js +0 -275
- package/es/tntd-layout/tntdLayout.stories.js.map +0 -1
- package/lib/tnt-second-page/index.d.ts +0 -17
- package/lib/tnt-second-page/index.d.ts.map +0 -1
- package/lib/tnt-second-page/index.js +0 -33
- package/lib/tnt-second-page/index.js.map +0 -1
- package/lib/tntd-layout/tntdLayout.stories.d.ts +0 -5
- package/lib/tntd-layout/tntdLayout.stories.d.ts.map +0 -1
- package/lib/tntd-layout/tntdLayout.stories.js +0 -304
- package/lib/tntd-layout/tntdLayout.stories.js.map +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
/*
|
|
13
|
+
* @Author: 周泽飞 zefei.zhou@tongdun.net
|
|
14
|
+
* @Date: 2023-05-05 15:48:09
|
|
15
|
+
* @LastEditors: 周泽飞 zefei.zhou@tongdun.net
|
|
16
|
+
* @LastEditTime: 2023-05-05 15:59:07
|
|
17
|
+
* @FilePath: /tntd/packages/tntd/src/descriptions/descriptions.tsx
|
|
18
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
19
|
+
*/
|
|
20
|
+
import React from 'react';
|
|
21
|
+
import 'antd/es/locale-provider/LocaleReceiver';
|
|
22
|
+
import classNames from 'classnames';
|
|
23
|
+
import { ConfigConsumer } from 'antd/es/config-provider';
|
|
24
|
+
import { default as AntdDescriptions } from 'antd/es/descriptions';
|
|
25
|
+
export * from 'antd/es/descriptions';
|
|
26
|
+
export function Descriptions(_a) {
|
|
27
|
+
var { className, tdType } = _a, rest = __rest(_a, ["className", "tdType"]);
|
|
28
|
+
let tdDescriptions = false;
|
|
29
|
+
const { layout, ellipsis, widthAuto } = rest || {};
|
|
30
|
+
if (layout !== 'vertical' && tdType) {
|
|
31
|
+
tdDescriptions = true;
|
|
32
|
+
}
|
|
33
|
+
return (React.createElement(ConfigConsumer, null, ({ getPrefixCls }) => {
|
|
34
|
+
const prefixCls = getPrefixCls('descriptions');
|
|
35
|
+
return (React.createElement(AntdDescriptions, Object.assign({ className: classNames(prefixCls, 'tntd-descriptions', {
|
|
36
|
+
'td-descriptions': tdDescriptions,
|
|
37
|
+
}, {
|
|
38
|
+
'tntd-ellipsis': ellipsis,
|
|
39
|
+
}, {
|
|
40
|
+
'tntd-wrap': !ellipsis,
|
|
41
|
+
}, {
|
|
42
|
+
'width-160': !widthAuto,
|
|
43
|
+
}, className) }, rest)));
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
Descriptions.Item = AntdDescriptions.Item;
|
|
47
|
+
//# sourceMappingURL=descriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptions.js","sourceRoot":"","sources":["../../src/descriptions/descriptions.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAA2B,wCAAwC,CAAA;AAEnE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAElE,cAAc,sBAAsB,CAAA;AAQpC,MAAM,UAAU,YAAY,CAAC,EAAiD;QAAjD,EAAE,SAAS,EAAE,MAAM,OAA8B,EAAzB,IAAI,cAA5B,uBAA8B,CAAF;IACvD,IAAI,cAAc,GAAG,KAAK,CAAA;IAC1B,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,IAAI,EAAE,CAAA;IAClD,IAAI,MAAM,KAAK,UAAU,IAAI,MAAM,EAAE;QACnC,cAAc,GAAG,IAAI,CAAA;KACtB;IACD,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,cAAc,CAAC,CAAA;QAC9C,OAAO,CACL,oBAAC,gBAAgB,kBACf,SAAS,EAAE,UAAU,CACnB,SAAS,EACT,mBAAmB,EACnB;gBACE,iBAAiB,EAAE,cAAc;aAClC,EACD;gBACE,eAAe,EAAE,QAAQ;aAC1B,EACD;gBACE,WAAW,EAAE,CAAC,QAAQ;aACvB,EACD;gBACE,WAAW,EAAE,CAAC,SAAS;aACxB,EACD,SAAS,CACV,IACG,IAAI,EACR,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC;AAED,YAAY,CAAC,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-05-05 15:48:09\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2023-05-05 15:59:07\n * @FilePath: /tntd/packages/tntd/src/descriptions/descriptions.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React from 'react'\nimport LocaleReceiver from 'antd/es/locale-provider/LocaleReceiver'\nimport type { DescriptionsProps as AntdDescriptionsProps } from 'antd/es/descriptions'\nimport classNames from 'classnames'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport { default as AntdDescriptions } from 'antd/es/descriptions'\n\nexport * from 'antd/es/descriptions'\n\nexport interface DescriptionsProps extends AntdDescriptionsProps {\n tdType: boolean\n ellipsis: boolean\n widthAuto: boolean\n}\n\nexport function Descriptions({ className, tdType, ...rest }: DescriptionsProps): JSX.Element {\n let tdDescriptions = false\n const { layout, ellipsis, widthAuto } = rest || {}\n if (layout !== 'vertical' && tdType) {\n tdDescriptions = true\n }\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('descriptions')\n return (\n <AntdDescriptions\n className={classNames(\n prefixCls,\n 'tntd-descriptions',\n {\n 'td-descriptions': tdDescriptions,\n },\n {\n 'tntd-ellipsis': ellipsis,\n },\n {\n 'tntd-wrap': !ellipsis,\n },\n {\n 'width-160': !widthAuto,\n },\n className\n )}\n {...rest}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nDescriptions.Item = AntdDescriptions.Item\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@descriptions-prefix-cls: ~'@{ant-prefix}-descriptions';
|
|
2
|
+
|
|
3
|
+
@descriptions-default-padding: 16px 24px;
|
|
4
|
+
@descriptions-middle-padding: 12px 24px;
|
|
5
|
+
@descriptions-small-padding: 8px 16px;
|
|
6
|
+
@descriptions-bg: #e1e6ee;
|
|
7
|
+
|
|
8
|
+
.@{descriptions-prefix-cls} {
|
|
9
|
+
&-bordered {
|
|
10
|
+
&.td-descriptions {
|
|
11
|
+
&.tntd-ellipsis{
|
|
12
|
+
.@{descriptions-prefix-cls}-item-label,
|
|
13
|
+
.@{descriptions-prefix-cls}-item-content {
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
text-overflow: ellipsis;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
&.tntd-wrap{
|
|
20
|
+
.@{descriptions-prefix-cls}-item-label,
|
|
21
|
+
.@{descriptions-prefix-cls}-item-content {
|
|
22
|
+
white-space: pre-wrap;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
.@{descriptions-prefix-cls}-view > table {
|
|
26
|
+
table-layout: fixed;
|
|
27
|
+
}
|
|
28
|
+
&.width-160{
|
|
29
|
+
.@{descriptions-prefix-cls}-item-label{
|
|
30
|
+
width: 160px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
.@{descriptions-prefix-cls}-item-label{
|
|
38
|
+
background-color: fade(@descriptions-bg, 40%); ;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.@{descriptions-prefix-cls}-item-label,
|
|
42
|
+
.@{descriptions-prefix-cls}-item-content {
|
|
43
|
+
padding: 10px 16px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
package/es/descriptions/index.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 周泽飞 zefei.zhou@tongdun.net
|
|
3
|
+
* @Date: 2023-04-10 16:10:31
|
|
4
|
+
* @LastEditors: 周泽飞 zefei.zhou@tongdun.net
|
|
5
|
+
* @LastEditTime: 2023-05-05 15:57:16
|
|
6
|
+
* @FilePath: /tntd/packages/tntd/src/descriptions/index.ts
|
|
7
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
+
*/
|
|
9
|
+
// import Descriptions from 'antd/es/descriptions'
|
|
2
10
|
import 'antd/es/descriptions/style';
|
|
3
|
-
|
|
11
|
+
import { Descriptions } from './descriptions';
|
|
12
|
+
import './descriptions.less';
|
|
13
|
+
export * from './descriptions';
|
|
4
14
|
export default Descriptions;
|
|
5
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/descriptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/descriptions/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,kDAAkD;AAElD,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,qBAAqB,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAE9B,eAAe,YAAY,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-04-10 16:10:31\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2023-05-05 15:57:16\n * @FilePath: /tntd/packages/tntd/src/descriptions/index.ts\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\n// import Descriptions from 'antd/es/descriptions'\n\nimport 'antd/es/descriptions/style'\nimport { Descriptions } from './descriptions'\n\nimport './descriptions.less'\nexport * from './descriptions'\n\nexport default Descriptions\n"]}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import LocaleProvider from 'antd/es/locale-provider';
|
|
2
|
+
import { changeConfirmLocale } from 'antd/es/modal/locale';
|
|
3
|
+
// https://github.com/ant-design/ant-design/pull/29570/files
|
|
4
|
+
LocaleProvider.prototype.componentWillUnmount = function () {
|
|
5
|
+
changeConfirmLocale(this.props.locale && this.props.locale.Modal);
|
|
6
|
+
};
|
|
2
7
|
import 'antd/es/locale-provider/style';
|
|
3
8
|
export * from 'antd/es/locale-provider';
|
|
4
9
|
export default LocaleProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/locale-provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,yBAAyB,CAAA;AAEpD,OAAO,+BAA+B,CAAA;AAEtC,cAAc,yBAAyB,CAAA;AAEvC,eAAe,cAAc,CAAA","sourcesContent":["import LocaleProvider from 'antd/es/locale-provider'\n\nimport 'antd/es/locale-provider/style'\n\nexport * from 'antd/es/locale-provider'\n\nexport default LocaleProvider\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/locale-provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,yBAAyB,CAAA;AAEpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D,4DAA4D;AAC5D,cAAc,CAAC,SAAS,CAAC,oBAAoB,GAAG;IAC9C,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AACnE,CAAC,CAAA;AAED,OAAO,+BAA+B,CAAA;AAEtC,cAAc,yBAAyB,CAAA;AAEvC,eAAe,cAAc,CAAA","sourcesContent":["import LocaleProvider from 'antd/es/locale-provider'\n\nimport { changeConfirmLocale } from 'antd/es/modal/locale'\n\n// https://github.com/ant-design/ant-design/pull/29570/files\nLocaleProvider.prototype.componentWillUnmount = function () {\n changeConfirmLocale(this.props.locale && this.props.locale.Modal)\n}\n\nimport 'antd/es/locale-provider/style'\n\nexport * from 'antd/es/locale-provider'\n\nexport default LocaleProvider\n"]}
|
package/es/table/table.js
CHANGED
|
@@ -20,9 +20,9 @@ import { TableContext } from './context';
|
|
|
20
20
|
import { useColumnSetting } from './hooks';
|
|
21
21
|
import { normalizeColumns } from './utils';
|
|
22
22
|
export const Table = (_a) => {
|
|
23
|
-
var { className, locale, bordered, refresh, size, storageKey, columns, children, pagination = {
|
|
23
|
+
var { className, locale, bordered, refresh, size, storageKey, columns, children, showCellBorders = false, pagination = {
|
|
24
24
|
showTotal: (total) => `共 ${total} 条记录`,
|
|
25
|
-
}, enableToolbar = false } = _a, rest = __rest(_a, ["className", "locale", "bordered", "refresh", "size", "storageKey", "columns", "children", "pagination", "enableToolbar"]);
|
|
25
|
+
}, enableToolbar = false } = _a, rest = __rest(_a, ["className", "locale", "bordered", "refresh", "size", "storageKey", "columns", "children", "showCellBorders", "pagination", "enableToolbar"]);
|
|
26
26
|
const tableContainer = useRef(null);
|
|
27
27
|
// const [innerSize, setInnerSize] = useLocalStorage<TableProps<T>['size']>(
|
|
28
28
|
// TABLE_SIZE_STORAGE_KEY,
|
|
@@ -53,8 +53,10 @@ export const Table = (_a) => {
|
|
|
53
53
|
const locale = localeObject;
|
|
54
54
|
return (React.createElement(AntdTable, Object.assign({ className: classNames(prefixCls, {
|
|
55
55
|
[`${prefixCls}-borderless`]: !bordered,
|
|
56
|
+
[`${prefixCls}-hide-cell-borders`]: !showCellBorders,
|
|
56
57
|
[`${prefixCls}-size-small`]: size === 'small',
|
|
57
58
|
[`${prefixCls}-size-middle`]: size === 'middle',
|
|
59
|
+
[`${prefixCls}-size-middle`]: size === 'middle',
|
|
58
60
|
}, className), locale: locale, bordered: bordered, size: size, columns: displayColumns, pagination: pagination }, rest)));
|
|
59
61
|
})));
|
|
60
62
|
})));
|
package/es/table/table.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../src/table/table.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,cAAc,MAAM,wCAAwC,CAAA;AAEnE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,MAAM,MAAM,sBAAsB,CAAA;AACzC,OAAO,WAAW,MAAM,2BAA2B,CAAA;AACnD,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../src/table/table.tsx"],"names":[],"mappings":"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","sourcesContent":["import { ConfigConsumer } from 'antd/es/config-provider'\nimport LocaleReceiver from 'antd/es/locale-provider/LocaleReceiver'\nimport type { TableProps as AntdTableProps } from 'antd/es/table'\nimport { default as AntdTable } from 'antd/es/table'\nimport Column from 'antd/es/table/Column'\nimport ColumnGroup from 'antd/es/table/ColumnGroup'\nimport classNames from 'classnames'\nimport React, { useMemo, useRef } from 'react'\n\nimport { TableContext } from './context'\nimport { useColumnSetting } from './hooks'\nimport { normalizeColumns } from './utils'\n\nexport type TableProps<T> = Omit<AntdTableProps<T>, 'locale'> & {\n storageKey?: string\n enableToolbar?: boolean\n showCellBorders?: boolean\n locale?: AntdTableProps<T>['locale'] & {\n loadingDescription?: string\n emptyText?: string\n }\n refresh?(): void\n}\n\nexport const Table = <T,>({\n className,\n locale,\n bordered,\n refresh,\n size,\n storageKey,\n columns,\n children,\n showCellBorders = false,\n pagination = {\n showTotal: (total) => `共 ${total} 条记录`,\n },\n enableToolbar = false,\n ...rest\n}: TableProps<T>) => {\n const tableContainer = useRef<HTMLDivElement>(null)\n // const [innerSize, setInnerSize] = useLocalStorage<TableProps<T>['size']>(\n // TABLE_SIZE_STORAGE_KEY,\n // 'default'\n // )\n const normalizedColumns = useMemo(\n () => columns || normalizeColumns<T>(children as React.ReactChildren),\n [children, columns]\n )\n const [displayColumns, columnSetting, setColumnSetting] = useColumnSetting(\n normalizedColumns,\n storageKey\n )\n\n /**\n * update the innerSize when props size changes\n */\n // useEffect(() => {\n // if (size) {\n // setInnerSize(size)\n // }\n // }, [setInnerSize, size])\n\n return (\n <TableContext.Provider\n value={{\n // size: innerSize,\n tableContainer,\n columnSetting,\n refresh,\n // setSize: setInnerSize,\n setColumnSetting,\n }}\n >\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('table')\n\n return (\n <div ref={tableContainer}>\n <LocaleReceiver componentName=\"Table\" defaultLocale={locale}>\n {(localeObject) => {\n const locale = localeObject as Record<string, string>\n\n return (\n <AntdTable\n className={classNames(\n prefixCls,\n {\n [`${prefixCls}-borderless`]: !bordered,\n [`${prefixCls}-hide-cell-borders`]: !showCellBorders,\n [`${prefixCls}-size-small`]: size === 'small',\n [`${prefixCls}-size-middle`]: size === 'middle',\n [`${prefixCls}-size-middle`]: size === 'middle',\n },\n className\n )}\n locale={locale}\n bordered={bordered}\n size={size}\n columns={displayColumns}\n pagination={pagination}\n {...rest}\n />\n )\n }}\n </LocaleReceiver>\n </div>\n )\n }}\n </ConfigConsumer>\n </TableContext.Provider>\n )\n}\n\nTable.Column = Column\nTable.ColumnGroup = ColumnGroup\nTable.displayName = 'Table'\n"]}
|
package/es/table/table.less
CHANGED
|
@@ -19,6 +19,13 @@
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
&.@{table-prefix-cls}-hide-cell-borders {
|
|
23
|
+
.@{table-prefix-cls}-thead > tr > th:not(:last-child),
|
|
24
|
+
.@{table-prefix-cls}-tbody > tr > td:not(:last-child) {
|
|
25
|
+
border-right: none;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
22
29
|
// middle table override
|
|
23
30
|
&.@{table-prefix-cls}-size-middle {
|
|
24
31
|
.@{table-prefix-cls}-pagination.@{pagination-prefix-cls} {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { DescriptionsProps as AntdDescriptionsProps } from 'antd/es/descriptions';
|
|
3
|
+
export * from 'antd/es/descriptions';
|
|
4
|
+
export interface DescriptionsProps extends AntdDescriptionsProps {
|
|
5
|
+
tdType: boolean;
|
|
6
|
+
ellipsis: boolean;
|
|
7
|
+
widthAuto: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function Descriptions({ className, tdType, ...rest }: DescriptionsProps): JSX.Element;
|
|
10
|
+
export declare namespace Descriptions {
|
|
11
|
+
var Item: React.SFC<import("antd/es/descriptions").DescriptionsItemProps>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=descriptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptions.d.ts","sourceRoot":"","sources":["../../src/descriptions/descriptions.tsx"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAKtF,cAAc,sBAAsB,CAAA;AAEpC,MAAM,WAAW,iBAAkB,SAAQ,qBAAqB;IAC9D,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAmC3F;yBAnCe,YAAY"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
+
var t = {};
|
|
18
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
+
t[p] = s[p];
|
|
20
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
+
t[p[i]] = s[p[i]];
|
|
24
|
+
}
|
|
25
|
+
return t;
|
|
26
|
+
};
|
|
27
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
28
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.Descriptions = void 0;
|
|
32
|
+
/*
|
|
33
|
+
* @Author: 周泽飞 zefei.zhou@tongdun.net
|
|
34
|
+
* @Date: 2023-05-05 15:48:09
|
|
35
|
+
* @LastEditors: 周泽飞 zefei.zhou@tongdun.net
|
|
36
|
+
* @LastEditTime: 2023-05-05 15:59:07
|
|
37
|
+
* @FilePath: /tntd/packages/tntd/src/descriptions/descriptions.tsx
|
|
38
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
39
|
+
*/
|
|
40
|
+
const react_1 = __importDefault(require("react"));
|
|
41
|
+
require("antd/es/locale-provider/LocaleReceiver");
|
|
42
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
43
|
+
const config_provider_1 = require("antd/es/config-provider");
|
|
44
|
+
const descriptions_1 = __importDefault(require("antd/es/descriptions"));
|
|
45
|
+
__exportStar(require("antd/es/descriptions"), exports);
|
|
46
|
+
function Descriptions(_a) {
|
|
47
|
+
var { className, tdType } = _a, rest = __rest(_a, ["className", "tdType"]);
|
|
48
|
+
let tdDescriptions = false;
|
|
49
|
+
const { layout, ellipsis, widthAuto } = rest || {};
|
|
50
|
+
if (layout !== 'vertical' && tdType) {
|
|
51
|
+
tdDescriptions = true;
|
|
52
|
+
}
|
|
53
|
+
return (react_1.default.createElement(config_provider_1.ConfigConsumer, null, ({ getPrefixCls }) => {
|
|
54
|
+
const prefixCls = getPrefixCls('descriptions');
|
|
55
|
+
return (react_1.default.createElement(descriptions_1.default, Object.assign({ className: (0, classnames_1.default)(prefixCls, 'tntd-descriptions', {
|
|
56
|
+
'td-descriptions': tdDescriptions,
|
|
57
|
+
}, {
|
|
58
|
+
'tntd-ellipsis': ellipsis,
|
|
59
|
+
}, {
|
|
60
|
+
'tntd-wrap': !ellipsis,
|
|
61
|
+
}, {
|
|
62
|
+
'width-160': !widthAuto,
|
|
63
|
+
}, className) }, rest)));
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
exports.Descriptions = Descriptions;
|
|
67
|
+
Descriptions.Item = descriptions_1.default.Item;
|
|
68
|
+
//# sourceMappingURL=descriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptions.js","sourceRoot":"","sources":["../../src/descriptions/descriptions.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,kDAAyB;AACzB,kDAAmE;AAEnE,4DAAmC;AACnC,6DAAwD;AACxD,wEAAkE;AAElE,uDAAoC;AAQpC,SAAgB,YAAY,CAAC,EAAiD;QAAjD,EAAE,SAAS,EAAE,MAAM,OAA8B,EAAzB,IAAI,cAA5B,uBAA8B,CAAF;IACvD,IAAI,cAAc,GAAG,KAAK,CAAA;IAC1B,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,IAAI,EAAE,CAAA;IAClD,IAAI,MAAM,KAAK,UAAU,IAAI,MAAM,EAAE;QACnC,cAAc,GAAG,IAAI,CAAA;KACtB;IACD,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,cAAc,CAAC,CAAA;QAC9C,OAAO,CACL,8BAAC,sBAAgB,kBACf,SAAS,EAAE,IAAA,oBAAU,EACnB,SAAS,EACT,mBAAmB,EACnB;gBACE,iBAAiB,EAAE,cAAc;aAClC,EACD;gBACE,eAAe,EAAE,QAAQ;aAC1B,EACD;gBACE,WAAW,EAAE,CAAC,QAAQ;aACvB,EACD;gBACE,WAAW,EAAE,CAAC,SAAS;aACxB,EACD,SAAS,CACV,IACG,IAAI,EACR,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC;AAnCD,oCAmCC;AAED,YAAY,CAAC,IAAI,GAAG,sBAAgB,CAAC,IAAI,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-05-05 15:48:09\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2023-05-05 15:59:07\n * @FilePath: /tntd/packages/tntd/src/descriptions/descriptions.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React from 'react'\nimport LocaleReceiver from 'antd/es/locale-provider/LocaleReceiver'\nimport type { DescriptionsProps as AntdDescriptionsProps } from 'antd/es/descriptions'\nimport classNames from 'classnames'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport { default as AntdDescriptions } from 'antd/es/descriptions'\n\nexport * from 'antd/es/descriptions'\n\nexport interface DescriptionsProps extends AntdDescriptionsProps {\n tdType: boolean\n ellipsis: boolean\n widthAuto: boolean\n}\n\nexport function Descriptions({ className, tdType, ...rest }: DescriptionsProps): JSX.Element {\n let tdDescriptions = false\n const { layout, ellipsis, widthAuto } = rest || {}\n if (layout !== 'vertical' && tdType) {\n tdDescriptions = true\n }\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('descriptions')\n return (\n <AntdDescriptions\n className={classNames(\n prefixCls,\n 'tntd-descriptions',\n {\n 'td-descriptions': tdDescriptions,\n },\n {\n 'tntd-ellipsis': ellipsis,\n },\n {\n 'tntd-wrap': !ellipsis,\n },\n {\n 'width-160': !widthAuto,\n },\n className\n )}\n {...rest}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nDescriptions.Item = AntdDescriptions.Item\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@descriptions-prefix-cls: ~'@{ant-prefix}-descriptions';
|
|
2
|
+
|
|
3
|
+
@descriptions-default-padding: 16px 24px;
|
|
4
|
+
@descriptions-middle-padding: 12px 24px;
|
|
5
|
+
@descriptions-small-padding: 8px 16px;
|
|
6
|
+
@descriptions-bg: #e1e6ee;
|
|
7
|
+
|
|
8
|
+
.@{descriptions-prefix-cls} {
|
|
9
|
+
&-bordered {
|
|
10
|
+
&.td-descriptions {
|
|
11
|
+
&.tntd-ellipsis{
|
|
12
|
+
.@{descriptions-prefix-cls}-item-label,
|
|
13
|
+
.@{descriptions-prefix-cls}-item-content {
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
text-overflow: ellipsis;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
&.tntd-wrap{
|
|
20
|
+
.@{descriptions-prefix-cls}-item-label,
|
|
21
|
+
.@{descriptions-prefix-cls}-item-content {
|
|
22
|
+
white-space: pre-wrap;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
.@{descriptions-prefix-cls}-view > table {
|
|
26
|
+
table-layout: fixed;
|
|
27
|
+
}
|
|
28
|
+
&.width-160{
|
|
29
|
+
.@{descriptions-prefix-cls}-item-label{
|
|
30
|
+
width: 160px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
.@{descriptions-prefix-cls}-item-label{
|
|
38
|
+
background-color: fade(@descriptions-bg, 40%); ;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.@{descriptions-prefix-cls}-item-label,
|
|
42
|
+
.@{descriptions-prefix-cls}-item-content {
|
|
43
|
+
padding: 10px 16px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import Descriptions from 'antd/es/descriptions';
|
|
2
1
|
import 'antd/es/descriptions/style';
|
|
3
|
-
|
|
2
|
+
import { Descriptions } from './descriptions';
|
|
3
|
+
import './descriptions.less';
|
|
4
|
+
export * from './descriptions';
|
|
4
5
|
export default Descriptions;
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/descriptions/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/descriptions/index.ts"],"names":[],"mappings":"AAUA,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,qBAAqB,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAE9B,eAAe,YAAY,CAAA"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* @Author: 周泽飞 zefei.zhou@tongdun.net
|
|
4
|
+
* @Date: 2023-04-10 16:10:31
|
|
5
|
+
* @LastEditors: 周泽飞 zefei.zhou@tongdun.net
|
|
6
|
+
* @LastEditTime: 2023-05-05 15:57:16
|
|
7
|
+
* @FilePath: /tntd/packages/tntd/src/descriptions/index.ts
|
|
8
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
9
|
+
*/
|
|
10
|
+
// import Descriptions from 'antd/es/descriptions'
|
|
2
11
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
12
|
if (k2 === undefined) k2 = k;
|
|
4
13
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -13,12 +22,10 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
22
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
23
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
24
|
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
const descriptions_1 = __importDefault(require("antd/es/descriptions"));
|
|
21
26
|
require("antd/es/descriptions/style");
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
const descriptions_1 = require("./descriptions");
|
|
28
|
+
require("./descriptions.less");
|
|
29
|
+
__exportStar(require("./descriptions"), exports);
|
|
30
|
+
exports.default = descriptions_1.Descriptions;
|
|
24
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/descriptions/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/descriptions/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;AACH,kDAAkD;;;;;;;;;;;;;;;;AAElD,sCAAmC;AACnC,iDAA6C;AAE7C,+BAA4B;AAC5B,iDAA8B;AAE9B,kBAAe,2BAAY,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-04-10 16:10:31\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2023-05-05 15:57:16\n * @FilePath: /tntd/packages/tntd/src/descriptions/index.ts\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\n// import Descriptions from 'antd/es/descriptions'\n\nimport 'antd/es/descriptions/style'\nimport { Descriptions } from './descriptions'\n\nimport './descriptions.less'\nexport * from './descriptions'\n\nexport default Descriptions\n"]}
|
package/lib/locale/default.d.ts
CHANGED
|
@@ -1,3 +1,165 @@
|
|
|
1
|
-
declare const defaultLocale:
|
|
1
|
+
declare const defaultLocale: {
|
|
2
|
+
locale: string;
|
|
3
|
+
Pagination: any;
|
|
4
|
+
DatePicker: {
|
|
5
|
+
lang: any;
|
|
6
|
+
timePickerLocale: {
|
|
7
|
+
placeholder: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
TimePicker: {
|
|
11
|
+
placeholder: string;
|
|
12
|
+
};
|
|
13
|
+
Calendar: {
|
|
14
|
+
lang: any;
|
|
15
|
+
timePickerLocale: {
|
|
16
|
+
placeholder: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
global: {
|
|
20
|
+
placeholder: string;
|
|
21
|
+
};
|
|
22
|
+
Table: {
|
|
23
|
+
filterTitle: string;
|
|
24
|
+
filterConfirm: string;
|
|
25
|
+
filterReset: string;
|
|
26
|
+
selectAll: string;
|
|
27
|
+
selectInvert: string;
|
|
28
|
+
sortTitle: string;
|
|
29
|
+
expand: string;
|
|
30
|
+
collapse: string;
|
|
31
|
+
};
|
|
32
|
+
Modal: {
|
|
33
|
+
okText: string;
|
|
34
|
+
cancelText: string;
|
|
35
|
+
justOkText: string;
|
|
36
|
+
};
|
|
37
|
+
Popconfirm: {
|
|
38
|
+
okText: string;
|
|
39
|
+
cancelText: string;
|
|
40
|
+
};
|
|
41
|
+
Transfer: {
|
|
42
|
+
titles: string[];
|
|
43
|
+
searchPlaceholder: string;
|
|
44
|
+
itemUnit: string;
|
|
45
|
+
itemsUnit: string;
|
|
46
|
+
};
|
|
47
|
+
Upload: {
|
|
48
|
+
uploading: string;
|
|
49
|
+
removeFile: string;
|
|
50
|
+
uploadError: string;
|
|
51
|
+
previewFile: string;
|
|
52
|
+
downloadFile: string;
|
|
53
|
+
};
|
|
54
|
+
Empty: {
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
Icon: {
|
|
58
|
+
icon: string;
|
|
59
|
+
};
|
|
60
|
+
Text: {
|
|
61
|
+
edit: string;
|
|
62
|
+
copy: string;
|
|
63
|
+
copied: string;
|
|
64
|
+
expand: string;
|
|
65
|
+
};
|
|
66
|
+
PageHeader: {
|
|
67
|
+
back: string;
|
|
68
|
+
};
|
|
69
|
+
} & {
|
|
70
|
+
locale: string;
|
|
71
|
+
Pagination: any;
|
|
72
|
+
DatePicker: {
|
|
73
|
+
lang: any;
|
|
74
|
+
timePickerLocale: {
|
|
75
|
+
placeholder: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
TimePicker: {
|
|
79
|
+
placeholder: string;
|
|
80
|
+
};
|
|
81
|
+
Calendar: {
|
|
82
|
+
lang: any;
|
|
83
|
+
timePickerLocale: {
|
|
84
|
+
placeholder: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
global: {
|
|
88
|
+
placeholder: string;
|
|
89
|
+
};
|
|
90
|
+
Table: {
|
|
91
|
+
filterTitle: string;
|
|
92
|
+
filterConfirm: string;
|
|
93
|
+
filterReset: string;
|
|
94
|
+
selectAll: string;
|
|
95
|
+
selectInvert: string;
|
|
96
|
+
sortTitle: string;
|
|
97
|
+
expand: string;
|
|
98
|
+
collapse: string;
|
|
99
|
+
};
|
|
100
|
+
Modal: {
|
|
101
|
+
okText: string;
|
|
102
|
+
cancelText: string;
|
|
103
|
+
justOkText: string;
|
|
104
|
+
};
|
|
105
|
+
Popconfirm: {
|
|
106
|
+
cancelText: string;
|
|
107
|
+
okText: string;
|
|
108
|
+
};
|
|
109
|
+
Transfer: {
|
|
110
|
+
searchPlaceholder: string;
|
|
111
|
+
itemUnit: string;
|
|
112
|
+
itemsUnit: string;
|
|
113
|
+
};
|
|
114
|
+
Upload: {
|
|
115
|
+
uploading: string;
|
|
116
|
+
removeFile: string;
|
|
117
|
+
uploadError: string;
|
|
118
|
+
previewFile: string;
|
|
119
|
+
downloadFile: string;
|
|
120
|
+
};
|
|
121
|
+
Empty: {
|
|
122
|
+
description: string;
|
|
123
|
+
};
|
|
124
|
+
Icon: {
|
|
125
|
+
icon: string;
|
|
126
|
+
};
|
|
127
|
+
Text: {
|
|
128
|
+
edit: string;
|
|
129
|
+
copy: string;
|
|
130
|
+
copied: string;
|
|
131
|
+
expand: string;
|
|
132
|
+
};
|
|
133
|
+
PageHeader: {
|
|
134
|
+
back: string;
|
|
135
|
+
};
|
|
136
|
+
} & {
|
|
137
|
+
Table: {
|
|
138
|
+
loadingDescription: string;
|
|
139
|
+
emptyDescription: string;
|
|
140
|
+
};
|
|
141
|
+
Empty: {
|
|
142
|
+
noGraphData: string;
|
|
143
|
+
noPermission: string;
|
|
144
|
+
createdSuccessfully: string;
|
|
145
|
+
creationFailed: string;
|
|
146
|
+
noNetwork: string;
|
|
147
|
+
noData: string;
|
|
148
|
+
};
|
|
149
|
+
Handle: {
|
|
150
|
+
more: string;
|
|
151
|
+
};
|
|
152
|
+
Exception: {
|
|
153
|
+
'403': string;
|
|
154
|
+
'404': string;
|
|
155
|
+
'500': string;
|
|
156
|
+
};
|
|
157
|
+
TntdCascader: {
|
|
158
|
+
noDate: string;
|
|
159
|
+
};
|
|
160
|
+
TntdSecondPage: {
|
|
161
|
+
back: string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
2
164
|
export default defaultLocale;
|
|
3
165
|
//# sourceMappingURL=default.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/locale/default.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/locale/default.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiC,CAAA;AAEpD,eAAe,aAAa,CAAA"}
|