tntd 3.0.80 → 3.1.0
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/button/button.js +21 -13
- package/es/button/button.js.map +1 -1
- package/es/card/card.js +10 -4
- package/es/card/card.js.map +1 -1
- package/es/config-provider/index.js +5 -51
- package/es/config-provider/index.js.map +1 -1
- package/es/descriptions/descriptions.js +56 -51
- package/es/descriptions/descriptions.js.map +1 -1
- package/es/drawer/drawer.js +2 -2
- package/es/drawer/drawer.js.map +1 -1
- package/es/form/form.js +9 -4
- package/es/form/form.js.map +1 -1
- package/es/handle/index.js +1 -1
- package/es/handle/index.js.map +1 -1
- package/es/handle-icon/index.js +13 -4
- package/es/handle-icon/index.js.map +1 -1
- package/es/index.js +0 -14
- package/es/index.js.map +1 -1
- package/es/input/input.js +41 -30
- package/es/input/input.js.map +1 -1
- package/es/input-number/inputNumber.js +18 -12
- package/es/input-number/inputNumber.js.map +1 -1
- package/es/locale/ar_EG.js +116 -0
- package/es/locale/ar_EG.js.map +1 -0
- package/es/locale/en_US.js +42 -5
- package/es/locale/en_US.js.map +1 -1
- package/es/locale/es_ES.js +116 -0
- package/es/locale/es_ES.js.map +1 -0
- package/es/locale/index.js +55 -0
- package/es/locale/index.js.map +1 -1
- package/es/locale/ko_KR.js +116 -0
- package/es/locale/ko_KR.js.map +1 -0
- package/es/locale/th_TH.js +116 -0
- package/es/locale/th_TH.js.map +1 -0
- package/es/locale/zh_CN.js +40 -3
- package/es/locale/zh_CN.js.map +1 -1
- package/es/locale/zh_TW.js +116 -0
- package/es/locale/zh_TW.js.map +1 -0
- package/es/modal/modal.js +28 -23
- package/es/modal/modal.js.map +1 -1
- package/es/query-form/index.js +60 -61
- package/es/query-form/index.js.map +1 -1
- package/es/query-list-scene/List.js +43 -36
- package/es/query-list-scene/List.js.map +1 -1
- package/es/select/select.js +22 -20
- package/es/select/select.js.map +1 -1
- package/es/table/table.js +65 -64
- package/es/table/table.js.map +1 -1
- package/es/tabs/tabs.js +23 -15
- package/es/tabs/tabs.js.map +1 -1
- package/es/title/index.js +32 -27
- package/es/title/index.js.map +1 -1
- package/es/tntd-cascader/rc-cascader/Cascader.js +35 -32
- package/es/tntd-cascader/rc-cascader/Cascader.js.map +1 -1
- package/es/tntd-checkbox-select/index.js +102 -99
- package/es/tntd-checkbox-select/index.js.map +1 -1
- package/es/tntd-form/FormItemLabel.js +13 -3
- package/es/tntd-form/FormItemLabel.js.map +1 -1
- package/es/tntd-layout/Avatar.js +43 -41
- package/es/tntd-layout/Avatar.js.map +1 -1
- package/es/tntd-layout/EnterpriseLayout/Avatar.js +50 -47
- package/es/tntd-layout/EnterpriseLayout/Avatar.js.map +1 -1
- package/es/tntd-layout/GlobalNavigation/NavigationPopup.js +64 -60
- package/es/tntd-layout/GlobalNavigation/NavigationPopup.js.map +1 -1
- package/es/tntd-layout/GlobalNavigation/index.js +21 -17
- package/es/tntd-layout/GlobalNavigation/index.js.map +1 -1
- package/es/tntd-layout/createActions.js +0 -5
- package/es/tntd-layout/createActions.js.map +1 -1
- package/es/tntd-rc-select/index.js +29 -26
- package/es/tntd-rc-select/index.js.map +1 -1
- package/es/tntd-select/index.js +45 -43
- package/es/tntd-select/index.js.map +1 -1
- package/es/tntd-virtual-tree/index.js +64 -61
- package/es/tntd-virtual-tree/index.js.map +1 -1
- package/es/utils/index.js +3 -3
- package/es/utils/index.js.map +1 -1
- package/es/utils/lang.js +4 -3
- package/es/utils/lang.js.map +1 -1
- package/lib/button/button.d.ts.map +1 -1
- package/lib/button/button.js +21 -13
- package/lib/button/button.js.map +1 -1
- package/lib/card/card.d.ts.map +1 -1
- package/lib/card/card.js +14 -4
- package/lib/card/card.js.map +1 -1
- package/lib/config-provider/index.d.ts +1 -26
- package/lib/config-provider/index.d.ts.map +1 -1
- package/lib/config-provider/index.js +13 -63
- package/lib/config-provider/index.js.map +1 -1
- package/lib/descriptions/descriptions.d.ts.map +1 -1
- package/lib/descriptions/descriptions.js +56 -51
- package/lib/descriptions/descriptions.js.map +1 -1
- package/lib/drawer/drawer.d.ts.map +1 -1
- package/lib/drawer/drawer.js +2 -2
- package/lib/drawer/drawer.js.map +1 -1
- package/lib/form/form.js +9 -4
- package/lib/form/form.js.map +1 -1
- package/lib/handle/index.js +1 -1
- package/lib/handle/index.js.map +1 -1
- package/lib/handle-icon/index.d.ts +1 -1
- package/lib/handle-icon/index.d.ts.map +1 -1
- package/lib/handle-icon/index.js +13 -4
- package/lib/handle-icon/index.js.map +1 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -14
- package/lib/index.js.map +1 -1
- package/lib/input/input.d.ts.map +1 -1
- package/lib/input/input.js +41 -30
- package/lib/input/input.js.map +1 -1
- package/lib/input-number/inputNumber.d.ts +1 -0
- package/lib/input-number/inputNumber.d.ts.map +1 -1
- package/lib/input-number/inputNumber.js +18 -12
- package/lib/input-number/inputNumber.js.map +1 -1
- package/lib/locale/ar_EG.d.ts +164 -0
- package/lib/locale/ar_EG.d.ts.map +1 -0
- package/lib/locale/ar_EG.js +120 -0
- package/lib/locale/ar_EG.js.map +1 -0
- package/lib/locale/default.d.ts +37 -0
- package/lib/locale/default.d.ts.map +1 -1
- package/lib/locale/en_US.d.ts +37 -0
- package/lib/locale/en_US.d.ts.map +1 -1
- package/lib/locale/en_US.js +42 -5
- package/lib/locale/en_US.js.map +1 -1
- package/lib/locale/es_ES.d.ts +172 -0
- package/lib/locale/es_ES.d.ts.map +1 -0
- package/lib/locale/es_ES.js +120 -0
- package/lib/locale/es_ES.js.map +1 -0
- package/lib/locale/index.d.ts +5 -0
- package/lib/locale/index.d.ts.map +1 -1
- package/lib/locale/index.js +55 -0
- package/lib/locale/index.js.map +1 -1
- package/lib/locale/ko_KR.d.ts +156 -0
- package/lib/locale/ko_KR.d.ts.map +1 -0
- package/lib/locale/ko_KR.js +120 -0
- package/lib/locale/ko_KR.js.map +1 -0
- package/lib/locale/th_TH.d.ts +175 -0
- package/lib/locale/th_TH.d.ts.map +1 -0
- package/lib/locale/th_TH.js +120 -0
- package/lib/locale/th_TH.js.map +1 -0
- package/lib/locale/zh_CN.d.ts +37 -0
- package/lib/locale/zh_CN.d.ts.map +1 -1
- package/lib/locale/zh_CN.js +40 -3
- package/lib/locale/zh_CN.js.map +1 -1
- package/lib/locale/zh_TW.d.ts +159 -0
- package/lib/locale/zh_TW.d.ts.map +1 -0
- package/lib/locale/zh_TW.js +120 -0
- package/lib/locale/zh_TW.js.map +1 -0
- package/lib/modal/modal.d.ts.map +1 -1
- package/lib/modal/modal.js +28 -23
- package/lib/modal/modal.js.map +1 -1
- package/lib/notification/assets/svg-error-tip.d.ts +1 -1
- package/lib/notification/assets/svg-success-tip.d.ts +1 -1
- package/lib/query-form/index.d.ts +0 -1
- package/lib/query-form/index.d.ts.map +1 -1
- package/lib/query-form/index.js +60 -61
- package/lib/query-form/index.js.map +1 -1
- package/lib/query-list-scene/List.d.ts.map +1 -1
- package/lib/query-list-scene/List.js +43 -36
- package/lib/query-list-scene/List.js.map +1 -1
- package/lib/segmented/index.d.ts +1 -1
- package/lib/select/select.d.ts.map +1 -1
- package/lib/select/select.js +22 -20
- package/lib/select/select.js.map +1 -1
- 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.map +1 -1
- package/lib/table/table.js +65 -64
- package/lib/table/table.js.map +1 -1
- package/lib/tabs/tabs.d.ts.map +1 -1
- package/lib/tabs/tabs.js +23 -15
- package/lib/tabs/tabs.js.map +1 -1
- package/lib/title/index.d.ts.map +1 -1
- package/lib/title/index.js +32 -27
- package/lib/title/index.js.map +1 -1
- package/lib/tntd-cascader/rc-cascader/Cascader.d.ts.map +1 -1
- package/lib/tntd-cascader/rc-cascader/Cascader.js +35 -32
- package/lib/tntd-cascader/rc-cascader/Cascader.js.map +1 -1
- package/lib/tntd-checkbox-select/index.d.ts.map +1 -1
- package/lib/tntd-checkbox-select/index.js +102 -99
- package/lib/tntd-checkbox-select/index.js.map +1 -1
- package/lib/tntd-form/FormItemLabel.d.ts +3 -5
- package/lib/tntd-form/FormItemLabel.d.ts.map +1 -1
- package/lib/tntd-form/FormItemLabel.js +13 -3
- package/lib/tntd-form/FormItemLabel.js.map +1 -1
- package/lib/tntd-layout/Avatar.d.ts.map +1 -1
- package/lib/tntd-layout/Avatar.js +43 -41
- package/lib/tntd-layout/Avatar.js.map +1 -1
- package/lib/tntd-layout/EnterpriseLayout/Avatar.d.ts.map +1 -1
- package/lib/tntd-layout/EnterpriseLayout/Avatar.js +50 -47
- package/lib/tntd-layout/EnterpriseLayout/Avatar.js.map +1 -1
- package/lib/tntd-layout/GlobalNavigation/NavigationPopup.d.ts.map +1 -1
- package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +64 -60
- package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js.map +1 -1
- package/lib/tntd-layout/GlobalNavigation/index.js +21 -17
- package/lib/tntd-layout/GlobalNavigation/index.js.map +1 -1
- package/lib/tntd-layout/createActions.d.ts +0 -1
- package/lib/tntd-layout/createActions.d.ts.map +1 -1
- package/lib/tntd-layout/createActions.js +0 -5
- package/lib/tntd-layout/createActions.js.map +1 -1
- package/lib/tntd-rc-select/index.d.ts.map +1 -1
- package/lib/tntd-rc-select/index.js +29 -26
- package/lib/tntd-rc-select/index.js.map +1 -1
- package/lib/tntd-select/index.d.ts.map +1 -1
- package/lib/tntd-select/index.js +45 -43
- package/lib/tntd-select/index.js.map +1 -1
- package/lib/tntd-virtual-tree/index.d.ts.map +1 -1
- package/lib/tntd-virtual-tree/index.js +64 -61
- package/lib/tntd-virtual-tree/index.js.map +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/index.js +3 -3
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/lang.d.ts +1 -1
- package/lib/utils/lang.d.ts.map +1 -1
- package/lib/utils/lang.js +4 -3
- package/lib/utils/lang.js.map +1 -1
- package/package.json +2 -2
- package/es/prev-locale.js +0 -199
- package/es/prev-locale.js.map +0 -1
- package/es/query-form-backup/Field/Composition/FieldPopover.less +0 -35
- package/es/query-form-backup/Field/Composition/index.less +0 -114
- package/es/query-form-backup/index.less +0 -90
- package/es/tntd-action_backup/index.less +0 -114
- package/es/tntd-reference/AHref/index.js +0 -44
- package/es/tntd-reference/AHref/index.js.map +0 -1
- package/es/tntd-reference/ReferenceBatchCheck/index.js +0 -165
- package/es/tntd-reference/ReferenceBatchCheck/index.js.map +0 -1
- package/es/tntd-reference/ReferenceBatchCheck/index.less +0 -21
- package/es/tntd-reference/ReferenceBatchDrawer/index.js +0 -126
- package/es/tntd-reference/ReferenceBatchDrawer/index.js.map +0 -1
- package/es/tntd-reference/ReferenceBatchDrawer/index.less +0 -0
- package/es/tntd-reference/ReferenceCheck/index.js +0 -126
- package/es/tntd-reference/ReferenceCheck/index.js.map +0 -1
- package/es/tntd-reference/ReferenceCheck/index.less +0 -10
- package/es/tntd-reference/ReferenceDrawer/index.js +0 -93
- package/es/tntd-reference/ReferenceDrawer/index.js.map +0 -1
- package/es/tntd-reference/ReferenceDrawer/index.less +0 -0
- package/es/tntd-reference/ReferenceInfo/index.js +0 -164
- package/es/tntd-reference/ReferenceInfo/index.js.map +0 -1
- package/es/tntd-reference/ReferenceInfo/index.less +0 -31
- package/es/tntd-reference/index.js +0 -20
- package/es/tntd-reference/index.js.map +0 -1
- package/lib/prev-locale.d.ts +0 -174
- package/lib/prev-locale.d.ts.map +0 -1
- package/lib/prev-locale.js +0 -207
- package/lib/prev-locale.js.map +0 -1
- package/lib/query-form-backup/Field/Composition/FieldPopover.less +0 -35
- package/lib/query-form-backup/Field/Composition/index.less +0 -114
- package/lib/query-form-backup/index.less +0 -90
- package/lib/tntd-action_backup/index.less +0 -114
- package/lib/tntd-reference/AHref/index.d.ts +0 -4
- package/lib/tntd-reference/AHref/index.d.ts.map +0 -1
- package/lib/tntd-reference/AHref/index.js +0 -48
- package/lib/tntd-reference/AHref/index.js.map +0 -1
- package/lib/tntd-reference/ReferenceBatchCheck/index.d.ts +0 -3
- package/lib/tntd-reference/ReferenceBatchCheck/index.d.ts.map +0 -1
- package/lib/tntd-reference/ReferenceBatchCheck/index.js +0 -169
- package/lib/tntd-reference/ReferenceBatchCheck/index.js.map +0 -1
- package/lib/tntd-reference/ReferenceBatchCheck/index.less +0 -21
- package/lib/tntd-reference/ReferenceBatchDrawer/index.d.ts +0 -4
- package/lib/tntd-reference/ReferenceBatchDrawer/index.d.ts.map +0 -1
- package/lib/tntd-reference/ReferenceBatchDrawer/index.js +0 -203
- package/lib/tntd-reference/ReferenceBatchDrawer/index.js.map +0 -1
- package/lib/tntd-reference/ReferenceBatchDrawer/index.less +0 -0
- package/lib/tntd-reference/ReferenceCheck/index.d.ts +0 -3
- package/lib/tntd-reference/ReferenceCheck/index.d.ts.map +0 -1
- package/lib/tntd-reference/ReferenceCheck/index.js +0 -130
- package/lib/tntd-reference/ReferenceCheck/index.js.map +0 -1
- package/lib/tntd-reference/ReferenceCheck/index.less +0 -10
- package/lib/tntd-reference/ReferenceDrawer/index.d.ts +0 -4
- package/lib/tntd-reference/ReferenceDrawer/index.d.ts.map +0 -1
- package/lib/tntd-reference/ReferenceDrawer/index.js +0 -170
- package/lib/tntd-reference/ReferenceDrawer/index.js.map +0 -1
- package/lib/tntd-reference/ReferenceDrawer/index.less +0 -0
- package/lib/tntd-reference/ReferenceInfo/index.d.ts +0 -4
- package/lib/tntd-reference/ReferenceInfo/index.d.ts.map +0 -1
- package/lib/tntd-reference/ReferenceInfo/index.js +0 -168
- package/lib/tntd-reference/ReferenceInfo/index.js.map +0 -1
- package/lib/tntd-reference/ReferenceInfo/index.less +0 -31
- package/lib/tntd-reference/index.d.ts +0 -15
- package/lib/tntd-reference/index.d.ts.map +0 -1
- package/lib/tntd-reference/index.js +0 -24
- package/lib/tntd-reference/index.js.map +0 -1
package/es/prev-locale.js
DELETED
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.zh_CN = exports.registerLocales = exports.registerLocale = exports.ko_KR = exports.getText = exports.getLanguage = exports.en_US = exports["default"] = exports.TntdLocaleContext = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _storage = require("./tntd-layout/storage");
|
|
9
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
-
// 默认语言包
|
|
11
|
-
var defaultZhCN = {
|
|
12
|
-
globalNavigation: '全局导航',
|
|
13
|
-
menuSearch: '菜单搜索',
|
|
14
|
-
// QueryForm
|
|
15
|
-
search: '搜索',
|
|
16
|
-
reset: '重置',
|
|
17
|
-
moreFiltering: '更多过滤',
|
|
18
|
-
expand: '展开',
|
|
19
|
-
collapse: '收起',
|
|
20
|
-
// QueryListScene
|
|
21
|
-
totalRecords: '共%s条记录',
|
|
22
|
-
// user popover
|
|
23
|
-
nameNull: '暂无昵称',
|
|
24
|
-
personalSettings: '个人设置',
|
|
25
|
-
changePwd: '修改密码',
|
|
26
|
-
signOut: '退出',
|
|
27
|
-
// Handle
|
|
28
|
-
handleMore: '更多',
|
|
29
|
-
// Enter
|
|
30
|
-
enter: '请输入',
|
|
31
|
-
// Select
|
|
32
|
-
select: '请选择',
|
|
33
|
-
// Reference
|
|
34
|
-
onLineFail: '上线校验失败',
|
|
35
|
-
weakMsg: '存在弱引用(被下线、禁用、待提交/上线、导入待提交/上线、暂存、保存等相关状态组件引用)关系,谨慎操作',
|
|
36
|
-
strongMsg: '存在强引用(被上线、启用、上下线审批中和指标初始化等相关状态组件引用)关系,禁止操作',
|
|
37
|
-
cancel: '取消',
|
|
38
|
-
next: '下一步',
|
|
39
|
-
exist: '存在',
|
|
40
|
-
strong: '强引用',
|
|
41
|
-
weak: '弱引用',
|
|
42
|
-
relationFail: '查询关联关系失败',
|
|
43
|
-
reliableQuery: '请提供一个可靠的查询请求',
|
|
44
|
-
referenceFail: '查询引用关系失败',
|
|
45
|
-
inQuery: '查询中...',
|
|
46
|
-
noData: '暂无数据',
|
|
47
|
-
viewReference: '引用关系查看',
|
|
48
|
-
all: '全选'
|
|
49
|
-
};
|
|
50
|
-
var defaultEnUS = {
|
|
51
|
-
globalNavigation: 'Global Navigation',
|
|
52
|
-
menuSearch: 'Menu Search',
|
|
53
|
-
// QueryForm
|
|
54
|
-
search: 'Search',
|
|
55
|
-
reset: 'Reset',
|
|
56
|
-
moreFiltering: 'More filtering',
|
|
57
|
-
expand: 'Expand',
|
|
58
|
-
collapse: 'Collapse',
|
|
59
|
-
// QueryListScene
|
|
60
|
-
totalRecords: 'Totally %s Record(s)',
|
|
61
|
-
// user popover
|
|
62
|
-
nameNull: 'No nickname yet',
|
|
63
|
-
personalSettings: 'Setting',
|
|
64
|
-
changePwd: 'Change password',
|
|
65
|
-
signOut: 'Sign out',
|
|
66
|
-
// Handle
|
|
67
|
-
handleMore: 'More',
|
|
68
|
-
// Enter
|
|
69
|
-
enter: 'Enter',
|
|
70
|
-
// Select
|
|
71
|
-
select: 'Select',
|
|
72
|
-
// Reference
|
|
73
|
-
onLineFail: 'On-line verification failure',
|
|
74
|
-
weakMsg: 'Caution When performing this operation, weak references exist for status components, such as offline, disabled, to be submitted/online, Import to be submitted/online, temporary, and save',
|
|
75
|
-
strongMsg: 'A strong reference relationship exists (referenced by status components such as online, enabled, online and offline approval, and indicator initialization). Therefore, no operation is allowed',
|
|
76
|
-
cancel: 'Cancel',
|
|
77
|
-
next: 'Next',
|
|
78
|
-
exist: 'Exist',
|
|
79
|
-
strong: 'Strong',
|
|
80
|
-
weak: 'Weak',
|
|
81
|
-
relationFail: 'Description Failed to query the association relationship',
|
|
82
|
-
reliableQuery: 'Please provide a reliable query request',
|
|
83
|
-
referenceFail: 'Description Failed to query the reference relationship',
|
|
84
|
-
inQuery: 'In query...',
|
|
85
|
-
noData: 'No data',
|
|
86
|
-
viewReference: 'Reference relationship viewing',
|
|
87
|
-
all: 'all'
|
|
88
|
-
};
|
|
89
|
-
var defaultKoKR = {
|
|
90
|
-
globalNavigation: '전역 내비게이션',
|
|
91
|
-
menuSearch: '메뉴 검색',
|
|
92
|
-
// QueryForm
|
|
93
|
-
search: '검색',
|
|
94
|
-
reset: '재설정',
|
|
95
|
-
moreFiltering: '더 많은 필터링',
|
|
96
|
-
expand: '확장',
|
|
97
|
-
collapse: '축소',
|
|
98
|
-
// QueryListScene
|
|
99
|
-
totalRecords: '총 %s개 레코드',
|
|
100
|
-
// user popover
|
|
101
|
-
nameNull: '아직 닉네임이 없습니다',
|
|
102
|
-
personalSettings: '개인 설정',
|
|
103
|
-
changePwd: '비밀번호 변경',
|
|
104
|
-
signOut: '로그아웃',
|
|
105
|
-
// Handle
|
|
106
|
-
handleMore: '더보기',
|
|
107
|
-
// Enter
|
|
108
|
-
enter: '입력하세요',
|
|
109
|
-
// Select
|
|
110
|
-
select: '선택하세요',
|
|
111
|
-
// Reference
|
|
112
|
-
onLineFail: '온라인 확인 실패',
|
|
113
|
-
weakMsg: '약한 참조(오프라인, 비활성화, 제출/온라인 대기, 가져오기 제출/온라인 대기, 임시, 저장 등 관련 상태 구성 요소 참조)가 존재합니다. 신중하게 작업하세요',
|
|
114
|
-
strongMsg: '강한 참조 관계(온라인, 활성화, 온라인 및 오프라인 승인 및 지표 초기화 등 관련 상태 구성 요소에서 참조)가 존재합니다. 작업이 금지됩니다',
|
|
115
|
-
cancel: '취소',
|
|
116
|
-
next: '다음',
|
|
117
|
-
exist: '존재',
|
|
118
|
-
strong: '강함',
|
|
119
|
-
weak: '약함',
|
|
120
|
-
relationFail: '연관 관계 조회 실패',
|
|
121
|
-
reliableQuery: '신뢰할 수 있는 조회 요청을 제공하세요',
|
|
122
|
-
referenceFail: '참조 관계 조회 실패',
|
|
123
|
-
inQuery: '조회 중...',
|
|
124
|
-
noData: '데이터 없음',
|
|
125
|
-
viewReference: '참조 관계 보기',
|
|
126
|
-
all: '전체'
|
|
127
|
-
};
|
|
128
|
-
// 存储合并后的语言包(外部传入会覆盖默认值)
|
|
129
|
-
var localeStore = {
|
|
130
|
-
cn: Object.assign({}, defaultZhCN),
|
|
131
|
-
en: Object.assign({}, defaultEnUS),
|
|
132
|
-
ko: Object.assign({}, defaultKoKR)
|
|
133
|
-
};
|
|
134
|
-
// 导出当前语言包(兼容旧用法)
|
|
135
|
-
var zh_CN = exports.zh_CN = localeStore.cn;
|
|
136
|
-
var en_US = exports.en_US = localeStore.en;
|
|
137
|
-
var ko_KR = exports.ko_KR = localeStore.ko;
|
|
138
|
-
/**
|
|
139
|
-
* TntdLocale Context
|
|
140
|
-
* 用于通过 ConfigProvider 传递自定义语言包
|
|
141
|
-
*/
|
|
142
|
-
var TntdLocaleContext = exports.TntdLocaleContext = (0, _react.createContext)(null);
|
|
143
|
-
/**
|
|
144
|
-
* 获取文案(优先从 Context 获取,其次从 localeStore 获取)
|
|
145
|
-
* 如果当前语言包中找不到对应 key,则回退到中文
|
|
146
|
-
*/
|
|
147
|
-
var getText = exports.getText = function getText(key) {
|
|
148
|
-
var language = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getLanguage();
|
|
149
|
-
var _a, _b;
|
|
150
|
-
var messages = localeStore[language] || localeStore.cn;
|
|
151
|
-
// 如果当前语言包中找不到 key,回退到中文
|
|
152
|
-
var text = (_a = messages === null || messages === void 0 ? void 0 : messages[key]) !== null && _a !== void 0 ? _a : (_b = localeStore.cn) === null || _b === void 0 ? void 0 : _b[key];
|
|
153
|
-
for (var _len = arguments.length, params = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
154
|
-
params[_key - 2] = arguments[_key];
|
|
155
|
-
}
|
|
156
|
-
if ((params === null || params === void 0 ? void 0 : params.length) && text) {
|
|
157
|
-
return params.reduce(function (acc, cur) {
|
|
158
|
-
return acc.replace(/%s/, cur);
|
|
159
|
-
}, text);
|
|
160
|
-
}
|
|
161
|
-
return text;
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* 注册/覆盖整个语言包
|
|
165
|
-
* @param {string} langKey - 语言标识,如 'cn', 'en', 'ko', 'ja' 等
|
|
166
|
-
* @param {object} messages - 语言包对象
|
|
167
|
-
* @param {boolean} merge - 是否与现有语言包合并,默认 true;false 则完全覆盖
|
|
168
|
-
*/
|
|
169
|
-
var registerLocale = exports.registerLocale = function registerLocale(langKey, messages) {
|
|
170
|
-
var merge = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
171
|
-
if (!langKey || _typeof(messages) !== 'object') return;
|
|
172
|
-
if (merge && localeStore[langKey]) {
|
|
173
|
-
localeStore[langKey] = Object.assign(Object.assign({}, localeStore[langKey]), messages);
|
|
174
|
-
} else {
|
|
175
|
-
localeStore[langKey] = Object.assign({}, messages);
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
/**
|
|
179
|
-
* 批量注册多个语言包
|
|
180
|
-
* @param {object} locales - { cn: {...}, en: {...}, ja: {...} }
|
|
181
|
-
* @param {boolean} merge - 是否合并
|
|
182
|
-
*/
|
|
183
|
-
var registerLocales = exports.registerLocales = function registerLocales(locales) {
|
|
184
|
-
var merge = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
185
|
-
if (_typeof(locales) !== 'object') return;
|
|
186
|
-
Object.keys(locales).forEach(function (langKey) {
|
|
187
|
-
registerLocale(langKey, locales[langKey], merge);
|
|
188
|
-
});
|
|
189
|
-
};
|
|
190
|
-
var getLanguage = exports.getLanguage = function getLanguage() {
|
|
191
|
-
return (0, _storage.getLanguageStore)() || 'cn';
|
|
192
|
-
};
|
|
193
|
-
var _default = exports["default"] = {
|
|
194
|
-
registerLocale: registerLocale,
|
|
195
|
-
registerLocales: registerLocales,
|
|
196
|
-
getLanguage: getLanguage,
|
|
197
|
-
TntdLocaleContext: TntdLocaleContext,
|
|
198
|
-
getText: getText
|
|
199
|
-
};
|
package/es/prev-locale.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prev-locale.js","sourceRoot":"","sources":["../src/prev-locale.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,QAAQ;AACR,MAAM,WAAW,GAAG;IAClB,gBAAgB,EAAE,MAAM;IACxB,UAAU,EAAE,MAAM;IAElB,YAAY;IACZ,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IAEd,iBAAiB;IACjB,YAAY,EAAE,QAAQ;IAEtB,eAAe;IACf,QAAQ,EAAE,MAAM;IAChB,gBAAgB,EAAE,MAAM;IACxB,SAAS,EAAE,MAAM;IACjB,OAAO,EAAE,IAAI;IAEb,SAAS;IACT,UAAU,EAAE,IAAI;IAEhB,QAAQ;IACR,KAAK,EAAE,KAAK;IAEZ,SAAS;IACT,MAAM,EAAE,KAAK;IAEb,cAAc;IACd,UAAU,EAAE,QAAQ;IACpB,OAAO,EACL,qDAAq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QAAQ;QAAE,OAAO;IAExC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAGF,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,gBAAgB,EAAE,IAAI,IAAI,CAAC;AAE5D,eAAe;IACb,cAAc;IACd,eAAe;IACf,WAAW;IACX,iBAAiB;IACjB,OAAO;CACR,CAAC","sourcesContent":["import { createContext } from 'react';\nimport { getLanguageStore } from './tntd-layout/storage';\n\n// 默认语言包\nconst defaultZhCN = {\n globalNavigation: '全局导航',\n menuSearch: '菜单搜索',\n\n // QueryForm\n search: '搜索',\n reset: '重置',\n moreFiltering: '更多过滤',\n expand: '展开',\n collapse: '收起',\n\n // QueryListScene\n totalRecords: '共%s条记录',\n\n // user popover\n nameNull: '暂无昵称',\n personalSettings: '个人设置',\n changePwd: '修改密码',\n signOut: '退出',\n\n // Handle\n handleMore: '更多',\n\n // Enter\n enter: '请输入',\n\n // Select\n select: '请选择',\n\n // Reference\n onLineFail: '上线校验失败',\n weakMsg:\n '存在弱引用(被下线、禁用、待提交/上线、导入待提交/上线、暂存、保存等相关状态组件引用)关系,谨慎操作',\n strongMsg:\n '存在强引用(被上线、启用、上下线审批中和指标初始化等相关状态组件引用)关系,禁止操作',\n cancel: '取消',\n next: '下一步',\n exist: '存在',\n strong: '强引用',\n weak: '弱引用',\n relationFail: '查询关联关系失败',\n reliableQuery: '请提供一个可靠的查询请求',\n referenceFail: '查询引用关系失败',\n inQuery: '查询中...',\n noData: '暂无数据',\n viewReference: '引用关系查看',\n all: '全选',\n};\n\nconst defaultEnUS = {\n globalNavigation: 'Global Navigation',\n menuSearch: 'Menu Search',\n\n // QueryForm\n search: 'Search',\n reset: 'Reset',\n moreFiltering: 'More filtering',\n expand: 'Expand',\n collapse: 'Collapse',\n\n // QueryListScene\n totalRecords: 'Totally %s Record(s)',\n\n // user popover\n nameNull: 'No nickname yet',\n personalSettings: 'Setting',\n changePwd: 'Change password',\n signOut: 'Sign out',\n\n // Handle\n handleMore: 'More',\n\n // Enter\n enter: 'Enter',\n // Select\n select: 'Select',\n\n // Reference\n onLineFail: 'On-line verification failure',\n weakMsg:\n 'Caution When performing this operation, weak references exist for status components, such as offline, disabled, to be submitted/online, Import to be submitted/online, temporary, and save',\n strongMsg:\n 'A strong reference relationship exists (referenced by status components such as online, enabled, online and offline approval, and indicator initialization). Therefore, no operation is allowed',\n cancel: 'Cancel',\n next: 'Next',\n exist: 'Exist',\n strong: 'Strong',\n weak: 'Weak',\n relationFail: 'Description Failed to query the association relationship',\n reliableQuery: 'Please provide a reliable query request',\n referenceFail: 'Description Failed to query the reference relationship',\n inQuery: 'In query...',\n noData: 'No data',\n viewReference: 'Reference relationship viewing',\n all: 'all',\n};\n\nconst defaultKoKR = {\n globalNavigation: '전역 내비게이션',\n menuSearch: '메뉴 검색',\n\n // QueryForm\n search: '검색',\n reset: '재설정',\n moreFiltering: '더 많은 필터링',\n expand: '확장',\n collapse: '축소',\n\n // QueryListScene\n totalRecords: '총 %s개 레코드',\n\n // user popover\n nameNull: '아직 닉네임이 없습니다',\n personalSettings: '개인 설정',\n changePwd: '비밀번호 변경',\n signOut: '로그아웃',\n\n // Handle\n handleMore: '더보기',\n\n // Enter\n enter: '입력하세요',\n\n // Select\n select: '선택하세요',\n\n // Reference\n onLineFail: '온라인 확인 실패',\n weakMsg:\n '약한 참조(오프라인, 비활성화, 제출/온라인 대기, 가져오기 제출/온라인 대기, 임시, 저장 등 관련 상태 구성 요소 참조)가 존재합니다. 신중하게 작업하세요',\n strongMsg:\n '강한 참조 관계(온라인, 활성화, 온라인 및 오프라인 승인 및 지표 초기화 등 관련 상태 구성 요소에서 참조)가 존재합니다. 작업이 금지됩니다',\n cancel: '취소',\n next: '다음',\n exist: '존재',\n strong: '강함',\n weak: '약함',\n relationFail: '연관 관계 조회 실패',\n reliableQuery: '신뢰할 수 있는 조회 요청을 제공하세요',\n referenceFail: '참조 관계 조회 실패',\n inQuery: '조회 중...',\n noData: '데이터 없음',\n viewReference: '참조 관계 보기',\n all: '전체',\n};\n\n// 存储合并后的语言包(外部传入会覆盖默认值)\nconst localeStore = {\n cn: { ...defaultZhCN },\n en: { ...defaultEnUS },\n ko: { ...defaultKoKR },\n};\n\n// 导出当前语言包(兼容旧用法)\nexport const zh_CN = localeStore.cn;\nexport const en_US = localeStore.en;\nexport const ko_KR = localeStore.ko;\n\n/**\n * TntdLocale Context\n * 用于通过 ConfigProvider 传递自定义语言包\n */\nexport const TntdLocaleContext = createContext(null);\n\n/**\n * 获取文案(优先从 Context 获取,其次从 localeStore 获取)\n * 如果当前语言包中找不到对应 key,则回退到中文\n */\nexport const getText = (key, language = getLanguage(), ...params) => {\n const messages = localeStore[language] || localeStore.cn;\n // 如果当前语言包中找不到 key,回退到中文\n const text = messages?.[key] ?? localeStore.cn?.[key];\n\n if (params?.length && text) {\n return params.reduce((acc, cur) => {\n return acc.replace(/%s/, cur);\n }, text);\n }\n\n return text;\n};\n/**\n * 注册/覆盖整个语言包\n * @param {string} langKey - 语言标识,如 'cn', 'en', 'ko', 'ja' 等\n * @param {object} messages - 语言包对象\n * @param {boolean} merge - 是否与现有语言包合并,默认 true;false 则完全覆盖\n */\nexport const registerLocale = (langKey, messages, merge = true) => {\n if (!langKey || typeof messages !== 'object') return;\n\n if (merge && localeStore[langKey]) {\n localeStore[langKey] = { ...localeStore[langKey], ...messages };\n } else {\n localeStore[langKey] = { ...messages };\n }\n};\n\n/**\n * 批量注册多个语言包\n * @param {object} locales - { cn: {...}, en: {...}, ja: {...} }\n * @param {boolean} merge - 是否合并\n */\nexport const registerLocales = (locales, merge = true) => {\n if (typeof locales !== 'object') return;\n\n Object.keys(locales).forEach((langKey) => {\n registerLocale(langKey, locales[langKey], merge);\n });\n};\n\n\nexport const getLanguage = () => getLanguageStore() || 'cn';\n\nexport default {\n registerLocale,\n registerLocales,\n getLanguage,\n TntdLocaleContext,\n getText\n};\n"]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
.tnt-queryform-field-popover {
|
|
2
|
-
min-width: 280px;
|
|
3
|
-
.ant-popover-inner-content {
|
|
4
|
-
padding: @padding-sm 0;
|
|
5
|
-
}
|
|
6
|
-
.ant-calendar-picker {
|
|
7
|
-
margin: @margin-xxs 0;
|
|
8
|
-
}
|
|
9
|
-
label {
|
|
10
|
-
color: tint(@text-color, 50%);
|
|
11
|
-
margin-bottom: @margin-xs;
|
|
12
|
-
display: block;
|
|
13
|
-
padding: 0 @padding-sm;
|
|
14
|
-
}
|
|
15
|
-
.ant-select-dropdown-menu {
|
|
16
|
-
&-item {
|
|
17
|
-
padding: @padding-xxs @padding-sm;
|
|
18
|
-
&:hover {
|
|
19
|
-
background-color: @bg-color-quaternary;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
&-content {
|
|
24
|
-
padding: @padding-xxs @padding-sm;
|
|
25
|
-
}
|
|
26
|
-
.ant-select-selected-icon {
|
|
27
|
-
position: absolute;
|
|
28
|
-
right: @margin-base;
|
|
29
|
-
top: @margin-xs;
|
|
30
|
-
color: @blue-6;
|
|
31
|
-
}
|
|
32
|
-
.tnt-highlight {
|
|
33
|
-
color: @blue-6;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
@import '../../../style/themes/index';
|
|
2
|
-
@import '../../../style/mixins/index';
|
|
3
|
-
@import '../../../input/style/mixin';
|
|
4
|
-
|
|
5
|
-
.tnt-queryform-composition-input {
|
|
6
|
-
// width: 100%;
|
|
7
|
-
max-height: 162px;
|
|
8
|
-
overflow-x: hidden;
|
|
9
|
-
cursor: text;
|
|
10
|
-
padding: 2px @padding-xl;
|
|
11
|
-
position: relative;
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
background-color: @select-background;
|
|
14
|
-
border: @border-width-base @border-style-base @select-border-color;
|
|
15
|
-
border-top-width: calc(@border-width-base + 0.02px);
|
|
16
|
-
border-radius: @border-radius-base;
|
|
17
|
-
outline: none;
|
|
18
|
-
transition: all 0.3s @ease-in-out;
|
|
19
|
-
user-select: none;
|
|
20
|
-
margin-bottom: @margin-sm;
|
|
21
|
-
|
|
22
|
-
&-prefix {
|
|
23
|
-
position: absolute;
|
|
24
|
-
left: @padding-sm;
|
|
25
|
-
top: 50%;
|
|
26
|
-
transform: translateY(-50%);
|
|
27
|
-
i.anticon {
|
|
28
|
-
color: tint(@bg-color-spotilight, 50%);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&-width {
|
|
33
|
-
height: 0;
|
|
34
|
-
opacity: 0;
|
|
35
|
-
width: auto;
|
|
36
|
-
position: absolute;
|
|
37
|
-
max-width: 100%;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-items {
|
|
41
|
-
float: left;
|
|
42
|
-
padding: 0;
|
|
43
|
-
list-style: none;
|
|
44
|
-
margin: 0;
|
|
45
|
-
width: 100%;
|
|
46
|
-
&-item {
|
|
47
|
-
padding: 3px 0;
|
|
48
|
-
}
|
|
49
|
-
li {
|
|
50
|
-
float: left;
|
|
51
|
-
line-height: 1;
|
|
52
|
-
}
|
|
53
|
-
&-input {
|
|
54
|
-
.inputClass {
|
|
55
|
-
background: none;
|
|
56
|
-
border: none !important;
|
|
57
|
-
outline: none;
|
|
58
|
-
box-shadow: none !important;
|
|
59
|
-
width: 150px !important;
|
|
60
|
-
height: 26px;
|
|
61
|
-
line-height: 26px;
|
|
62
|
-
padding: 0;
|
|
63
|
-
input {
|
|
64
|
-
border: none !important;
|
|
65
|
-
outline: none !important;
|
|
66
|
-
box-shadow: none !important;
|
|
67
|
-
height: 26px;
|
|
68
|
-
line-height: 26px;
|
|
69
|
-
padding: 0;
|
|
70
|
-
}
|
|
71
|
-
textarea {
|
|
72
|
-
padding: 0;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
.inputClass-with-placeholder {
|
|
76
|
-
min-width: 398px !important;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
&-clear {
|
|
81
|
-
position: absolute;
|
|
82
|
-
right: @margin-sm;
|
|
83
|
-
top: 50%;
|
|
84
|
-
transform: translateY(-50%);
|
|
85
|
-
display: none;
|
|
86
|
-
i.anticon {
|
|
87
|
-
color: tint(@bg-color-spotilight, 50%);
|
|
88
|
-
}
|
|
89
|
-
&:hover {
|
|
90
|
-
.anticon {
|
|
91
|
-
color: @text-color-secondary !important;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
&:hover {
|
|
96
|
-
border-color: @blue-6;
|
|
97
|
-
outline: 0;
|
|
98
|
-
.tnt-queryform-composition-input-clear {
|
|
99
|
-
display: block;
|
|
100
|
-
}
|
|
101
|
-
// box-shadow: 0 0 0 2px rgb(18 107 251 / 20%);
|
|
102
|
-
}
|
|
103
|
-
&:focus,
|
|
104
|
-
&:active {
|
|
105
|
-
border-color: @blue-5;
|
|
106
|
-
outline: 0;
|
|
107
|
-
// box-shadow: 0 0 0 2px rgb(18 107 251 / 20%);
|
|
108
|
-
}
|
|
109
|
-
.ant-tag {
|
|
110
|
-
padding: 0 @padding-xs;
|
|
111
|
-
border: none;
|
|
112
|
-
background: @fill-color-tertiary;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
.tnt-queryform {
|
|
2
|
-
&-top {
|
|
3
|
-
display: flex;
|
|
4
|
-
&-body {
|
|
5
|
-
flex: 1;
|
|
6
|
-
.ant-btn {
|
|
7
|
-
margin-right: 10px;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&-extra {
|
|
13
|
-
& > * {
|
|
14
|
-
margin-left: 10px;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.ant-form {
|
|
19
|
-
// margin-bottom: @margin-sm;
|
|
20
|
-
&.ant-form-inline {
|
|
21
|
-
flex-wrap: unset;
|
|
22
|
-
position: relative;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&.ant-form-inline .ant-form-item {
|
|
26
|
-
margin-right: 10px;
|
|
27
|
-
margin-bottom: @margin-sm;
|
|
28
|
-
display: inline-block;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ant-form-item-control {
|
|
32
|
-
// min-width: 160px;
|
|
33
|
-
line-height: unset;
|
|
34
|
-
.ant-calendar-picker-input {
|
|
35
|
-
padding: 0 @padding-sm;
|
|
36
|
-
}
|
|
37
|
-
.ant-form-item-children {
|
|
38
|
-
& > .ant-input,
|
|
39
|
-
& > .ant-input-affix-wrapper {
|
|
40
|
-
width: 160px;
|
|
41
|
-
// width: 200px;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&-drawer {
|
|
48
|
-
margin-top: @margin-xxl;
|
|
49
|
-
&.large-size {
|
|
50
|
-
margin-top: 60px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&.ant-drawer.ant-drawer-open {
|
|
54
|
-
.ant-drawer-mask {
|
|
55
|
-
opacity: 0;
|
|
56
|
-
background: unset;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
.ant-drawer-body {
|
|
60
|
-
.ant-form-item {
|
|
61
|
-
display: block;
|
|
62
|
-
margin-right: 0;
|
|
63
|
-
margin-bottom: @margin-md;
|
|
64
|
-
width: 100%;
|
|
65
|
-
}
|
|
66
|
-
.ant-form-item-label {
|
|
67
|
-
display: block;
|
|
68
|
-
text-align: left;
|
|
69
|
-
line-height: 22px;
|
|
70
|
-
margin-bottom: 10px;
|
|
71
|
-
}
|
|
72
|
-
.ant-form-item-control-wrapper,
|
|
73
|
-
.ant-form-item-control,
|
|
74
|
-
.ant-calendar-picker,
|
|
75
|
-
.ant-input {
|
|
76
|
-
min-width: 100%;
|
|
77
|
-
width: 100%;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
& > .ant-btn {
|
|
81
|
-
display: block;
|
|
82
|
-
width: 100%;
|
|
83
|
-
margin-bottom: 10px;
|
|
84
|
-
&.ant-btn-primary {
|
|
85
|
-
margin-top: @margin-md;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
.tnt-action {
|
|
2
|
-
position: fixed;
|
|
3
|
-
// bottom: 100px;
|
|
4
|
-
// width: @tnt-action-width;
|
|
5
|
-
// left: calc(50vw - @tnt-action-width / 2);
|
|
6
|
-
padding: 10px 16px;
|
|
7
|
-
background-color: @text-color;
|
|
8
|
-
border-radius: @border-radius-base;
|
|
9
|
-
z-index: 200;
|
|
10
|
-
cursor: grab;
|
|
11
|
-
box-shadow: 0px 4px 7px 0px rgba(0, 0, 0, 0.25), 0px 1px 1px 0px #263354 inset;
|
|
12
|
-
|
|
13
|
-
&-text {
|
|
14
|
-
color: @white;
|
|
15
|
-
margin-left: 20px;
|
|
16
|
-
font-size: 14px;
|
|
17
|
-
user-select: none;
|
|
18
|
-
|
|
19
|
-
.num {
|
|
20
|
-
display: inline-block;
|
|
21
|
-
width: 16px;
|
|
22
|
-
height: 16px;
|
|
23
|
-
background: #454f64;
|
|
24
|
-
border-radius: 8px;
|
|
25
|
-
font-size: 10px;
|
|
26
|
-
margin-right: 4px;
|
|
27
|
-
vertical-align: text-bottom;
|
|
28
|
-
text-align: center;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
>.tnt-btn-tertiary {
|
|
33
|
-
opacity: 0.5;
|
|
34
|
-
background: #454f64;
|
|
35
|
-
color: @white;
|
|
36
|
-
border-width: 0;
|
|
37
|
-
width: @tnt-action-close-width;
|
|
38
|
-
height: @tnt-action-close-width;
|
|
39
|
-
min-width: @tnt-action-close-width;
|
|
40
|
-
line-height: @tnt-action-close-width;
|
|
41
|
-
margin-top: 4px;
|
|
42
|
-
font-size: 14px;
|
|
43
|
-
|
|
44
|
-
&:hover {
|
|
45
|
-
opacity: 0.8;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.fr {
|
|
50
|
-
float: right;
|
|
51
|
-
|
|
52
|
-
.ant-btn {
|
|
53
|
-
margin-left: 10px;
|
|
54
|
-
|
|
55
|
-
.tntd-anticon {
|
|
56
|
-
margin-right: 4px;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.ant-btn:not(.ant-btn-danger) {
|
|
61
|
-
background: rgba(69, 79, 100, 0.5);
|
|
62
|
-
color: @white;
|
|
63
|
-
border-width: 0;
|
|
64
|
-
|
|
65
|
-
&:hover {
|
|
66
|
-
background: rgba(69, 79, 100, 0.8);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&-dropdown {
|
|
72
|
-
&-btn {
|
|
73
|
-
margin-left: 8px !important;
|
|
74
|
-
border-radius: @border-radius-base !important;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.ant-dropdown-menu-item {
|
|
78
|
-
.ant-btn {
|
|
79
|
-
display: block;
|
|
80
|
-
padding: 0;
|
|
81
|
-
height: auto;
|
|
82
|
-
border: none;
|
|
83
|
-
background-color: transparent;
|
|
84
|
-
color: inherit;
|
|
85
|
-
width: calc(100% + 24px);
|
|
86
|
-
text-align: left;
|
|
87
|
-
padding: 5px 12px;
|
|
88
|
-
margin: -5px -12px;
|
|
89
|
-
|
|
90
|
-
&:hover,
|
|
91
|
-
&:active {
|
|
92
|
-
color: inherit;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&[disabled] {
|
|
96
|
-
color: @disabled-color;
|
|
97
|
-
|
|
98
|
-
&:hover,
|
|
99
|
-
&:active {
|
|
100
|
-
color: @disabled-color;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// 全局设置
|
|
109
|
-
.ant-btn-group:has(.tnt-action-dropdown-btn) {
|
|
110
|
-
&>.ant-btn:nth-last-child(2) {
|
|
111
|
-
border-top-right-radius: @border-radius-base;
|
|
112
|
-
border-bottom-right-radius: @border-radius-base;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
-
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
10
|
-
var t = {};
|
|
11
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
12
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
13
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
14
|
-
}
|
|
15
|
-
return t;
|
|
16
|
-
};
|
|
17
|
-
var _default = exports["default"] = function _default(props) {
|
|
18
|
-
var children = props.children,
|
|
19
|
-
href = props.href,
|
|
20
|
-
unmountHandle = props.unmountHandle,
|
|
21
|
-
rest = __rest(props, ["children", "href", "unmountHandle"]);
|
|
22
|
-
if (window.__isMultiTab__) {
|
|
23
|
-
return _react["default"].createElement("a", {
|
|
24
|
-
onClick: function onClick(evt) {
|
|
25
|
-
evt.preventDefault();
|
|
26
|
-
if (unmountHandle && typeof unmountHandle === 'function') {
|
|
27
|
-
unmountHandle();
|
|
28
|
-
}
|
|
29
|
-
var pathName = href;
|
|
30
|
-
if (href && href.includes('?')) {
|
|
31
|
-
pathName = href === null || href === void 0 ? void 0 : href.split('?')[0];
|
|
32
|
-
}
|
|
33
|
-
if (pathName === window.location.pathname) {
|
|
34
|
-
window.location.href = href;
|
|
35
|
-
} else {
|
|
36
|
-
window.push(href);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}, children);
|
|
40
|
-
}
|
|
41
|
-
return _react["default"].createElement("a", Object.assign({
|
|
42
|
-
href: href
|
|
43
|
-
}, rest), children);
|
|
44
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tntd-reference/AHref/index.js"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,eAAe,CAAC,KAAK,EAAE,EAAE;IACvB,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAAlD,qCAA0C,CAAQ,CAAC;IACzD,IAAI,MAAM,CAAC,cAAc,EAAE;QACzB,OAAO,CACL,2BACE,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;gBACf,GAAG,CAAC,cAAc,EAAE,CAAC;gBACrB,IAAI,aAAa,IAAI,OAAO,aAAa,KAAK,UAAU,EAAE;oBACxD,aAAa,EAAE,CAAC;iBACjB;gBACD,IAAI,QAAQ,GAAG,IAAI,CAAC;gBACpB,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;oBAC9B,QAAQ,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;iBAChC;gBACD,IAAI,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE;oBACzC,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;iBAC7B;qBAAM;oBACL,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACnB;YACH,CAAC,IAEA,QAAQ,CACP,CACL,CAAC;KACH;IACD,OAAO,CACL,yCAAG,IAAI,EAAE,IAAI,IAAM,IAAI,GACpB,QAAQ,CACP,CACL,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React from 'react';\nexport default (props) => {\n const { children, href, unmountHandle, ...rest } = props;\n if (window.__isMultiTab__) {\n return (\n <a\n onClick={(evt) => {\n evt.preventDefault();\n if (unmountHandle && typeof unmountHandle === 'function') {\n unmountHandle();\n }\n let pathName = href;\n if (href && href.includes('?')) {\n pathName = href?.split('?')[0];\n }\n if (pathName === window.location.pathname) {\n window.location.href = href;\n } else {\n window.push(href);\n }\n }}\n >\n {children}\n </a>\n );\n }\n return (\n <a href={href} {...rest}>\n {children}\n </a>\n );\n};\n"]}
|