@hi-ui/hiui 4.0.0-beta.93 → 4.0.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.
Files changed (28) hide show
  1. package/lib/cjs/index.js +8 -18
  2. package/lib/cjs/ui/locale-context/lib/esm/LocaleContext.js +68 -0
  3. package/lib/cjs/ui/locale-context/lib/esm/LocaleProvider.js +84 -0
  4. package/lib/cjs/ui/locale-context/lib/esm/locale/en-US.js +193 -0
  5. package/lib/cjs/ui/locale-context/lib/esm/locale/index.js +41 -0
  6. package/lib/cjs/ui/locale-context/lib/esm/locale/zh-CN.js +197 -0
  7. package/lib/cjs/ui/locale-context/lib/esm/locale/zh-HK.js +197 -0
  8. package/lib/cjs/ui/locale-context/lib/esm/locale/zh-TW.js +197 -0
  9. package/lib/cjs/ui/locale-context/lib/esm/types.js +32 -0
  10. package/lib/cjs/utils/array-utils/lib/esm/index.js +37 -0
  11. package/lib/cjs/utils/env/lib/esm/index.js +53 -0
  12. package/lib/cjs/utils/object-utils/lib/esm/index.js +61 -0
  13. package/lib/cjs/utils/type-assertion/lib/esm/index.js +32 -0
  14. package/lib/esm/index.js +3 -3
  15. package/lib/esm/ui/locale-context/lib/esm/LocaleContext.js +55 -0
  16. package/lib/esm/ui/locale-context/lib/esm/LocaleProvider.js +61 -0
  17. package/lib/esm/ui/locale-context/lib/esm/locale/en-US.js +188 -0
  18. package/lib/esm/ui/locale-context/lib/esm/locale/index.js +31 -0
  19. package/lib/esm/ui/locale-context/lib/esm/locale/zh-CN.js +192 -0
  20. package/lib/esm/ui/locale-context/lib/esm/locale/zh-HK.js +192 -0
  21. package/lib/esm/ui/locale-context/lib/esm/locale/zh-TW.js +192 -0
  22. package/lib/esm/ui/locale-context/lib/esm/types.js +27 -0
  23. package/lib/esm/utils/array-utils/lib/esm/index.js +30 -0
  24. package/lib/esm/utils/env/lib/esm/index.js +47 -0
  25. package/lib/esm/utils/object-utils/lib/esm/index.js +53 -0
  26. package/lib/esm/utils/type-assertion/lib/esm/index.js +24 -0
  27. package/lib/types/index.d.ts +2 -2
  28. package/package.json +68 -66
package/lib/cjs/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * @hi-ui/hiui
3
3
  * https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
4
4
  *
5
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
@@ -67,7 +67,9 @@ var list = require('@hi-ui/list');
67
67
 
68
68
  var loading = require('@hi-ui/loading');
69
69
 
70
- var localeContext = require('@hi-ui/locale-context');
70
+ var LocaleContext = require('./ui/locale-context/lib/esm/LocaleContext.js');
71
+
72
+ var LocaleProvider = require('./ui/locale-context/lib/esm/LocaleProvider.js');
71
73
 
72
74
  var menu = require('@hi-ui/menu');
73
75
 
@@ -195,8 +197,6 @@ var list__default = /*#__PURE__*/_interopDefaultLegacy(list);
195
197
 
196
198
  var loading__default = /*#__PURE__*/_interopDefaultLegacy(loading);
197
199
 
198
- var localeContext__default = /*#__PURE__*/_interopDefaultLegacy(localeContext);
199
-
200
200
  var menu__default = /*#__PURE__*/_interopDefaultLegacy(menu);
201
201
 
202
202
  var message__default = /*#__PURE__*/_interopDefaultLegacy(message);
@@ -421,12 +421,10 @@ Object.defineProperty(exports, 'Loading', {
421
421
  return loading__default["default"];
422
422
  }
423
423
  });
424
- Object.defineProperty(exports, 'LocaleContext', {
425
- enumerable: true,
426
- get: function get() {
427
- return localeContext__default["default"];
428
- }
429
- });
424
+ exports.getLanguage = LocaleContext.getLanguage;
425
+ exports.useLocaleContext = LocaleContext.useLocaleContext;
426
+ exports.LocaleContext = LocaleProvider.LocaleProvider;
427
+ exports.LocaleProvider = LocaleProvider.LocaleProvider;
430
428
  Object.defineProperty(exports, 'Menu', {
431
429
  enumerable: true,
432
430
  get: function get() {
@@ -839,14 +837,6 @@ Object.keys(loading).forEach(function (k) {
839
837
  }
840
838
  });
841
839
  });
842
- Object.keys(localeContext).forEach(function (k) {
843
- if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
844
- enumerable: true,
845
- get: function get() {
846
- return localeContext[k];
847
- }
848
- });
849
- });
850
840
  Object.keys(menu).forEach(function (k) {
851
841
  if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
852
842
  enumerable: true,
@@ -0,0 +1,68 @@
1
+ /** @LICENSE
2
+ * @hi-ui/hiui
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+
16
+ var React = require('react');
17
+
18
+ var types = require('./types.js');
19
+
20
+ var zhCN = require('./locale/zh-CN.js');
21
+
22
+ var index = require('../../../../utils/object-utils/lib/esm/index.js');
23
+
24
+ var index$1 = require('../../../../utils/env/lib/esm/index.js');
25
+ /** @LICENSE
26
+ * @hi-ui/locale-context
27
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/locale-context#readme
28
+ *
29
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */
34
+
35
+
36
+ var getLanguage = function getLanguage(languageData) {
37
+ return function (key, data) {
38
+ var value = index.getNested(languageData, key.split('.'));
39
+ index$1.invariant(!!value, "The " + key + " in language package is missing.");
40
+
41
+ if (data) {
42
+ Object.keys(data).forEach(function (key) {
43
+ value = value.replace("{{" + key + "}}", data[key]);
44
+ });
45
+ }
46
+
47
+ return value;
48
+ };
49
+ };
50
+
51
+ var LocaleContext = /*#__PURE__*/React.createContext(Object.assign(Object.assign({}, zhCN["default"]), {
52
+ locale: types.LocaleEnum.ZH_CN,
53
+ get: getLanguage(zhCN["default"])
54
+ }));
55
+
56
+ var useLocaleContext = function useLocaleContext() {
57
+ var context = React.useContext(LocaleContext);
58
+
59
+ if (!context) {
60
+ throw new Error('The locale context should be wrapped by <LocaleContext locale={locale} /> in App.');
61
+ }
62
+
63
+ return context;
64
+ };
65
+
66
+ exports.LocaleContext = LocaleContext;
67
+ exports.getLanguage = getLanguage;
68
+ exports.useLocaleContext = useLocaleContext;
@@ -0,0 +1,84 @@
1
+ /** @LICENSE
2
+ * @hi-ui/hiui
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ var _typeof2 = require("@babel/runtime/helpers/typeof");
13
+
14
+ Object.defineProperty(exports, '__esModule', {
15
+ value: true
16
+ });
17
+
18
+ var _typeof = require('@babel/runtime/helpers/esm/typeof');
19
+
20
+ var React = require('react');
21
+
22
+ var index$1 = require('../../../../utils/env/lib/esm/index.js');
23
+
24
+ var LocaleContext = require('./LocaleContext.js');
25
+
26
+ var index = require('./locale/index.js');
27
+
28
+ function _interopDefaultLegacy(e) {
29
+ return e && _typeof2(e) === 'object' && 'default' in e ? e : {
30
+ 'default': e
31
+ };
32
+ }
33
+
34
+ var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
35
+
36
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
37
+
38
+ var DEFAULT_LOCALE = 'zh-CN'; // 自定义语言包注册表
39
+
40
+ var USER_LANGUAGES_TABLES = {};
41
+ /**
42
+ * TODO: What is LocaleContext
43
+ */
44
+
45
+ var LocaleProvider = function LocaleProvider(_ref) {
46
+ var children = _ref.children,
47
+ _ref$locale = _ref.locale,
48
+ locale = _ref$locale === void 0 ? DEFAULT_LOCALE : _ref$locale,
49
+ languages = _ref.languages;
50
+ var get = React.useMemo(function () {
51
+ var languageData = _typeof__default["default"](languages) === 'object' ? languages : USER_LANGUAGES_TABLES[locale] || index["default"][locale];
52
+
53
+ if (!languageData) {
54
+ index$1.invariant(false, "Will use " + DEFAULT_LOCALE + " as default locale because of the " + locale + " language package is missing.");
55
+ languageData = index["default"][DEFAULT_LOCALE];
56
+ }
57
+
58
+ return LocaleContext.getLanguage(languageData);
59
+ }, [locale, languages]);
60
+ var providedValue = React.useMemo(function () {
61
+ return Object.assign(Object.assign({}, index["default"][locale]), {
62
+ get: get,
63
+ locale: locale
64
+ });
65
+ }, [locale, get]);
66
+ return /*#__PURE__*/React__default["default"].createElement(LocaleContext.LocaleContext.Provider, {
67
+ value: providedValue
68
+ }, children);
69
+ };
70
+
71
+ if (index$1.__DEV__) {
72
+ LocaleProvider.displayName = 'LocaleProvider';
73
+ }
74
+
75
+ var extendsLanguage = function extendsLanguage(locale, languages) {
76
+ if (!languages) {
77
+ delete USER_LANGUAGES_TABLES[locale];
78
+ } else {
79
+ USER_LANGUAGES_TABLES[locale] = languages;
80
+ }
81
+ };
82
+
83
+ LocaleProvider["extends"] = extendsLanguage;
84
+ exports.LocaleProvider = LocaleProvider;
@@ -0,0 +1,193 @@
1
+ /** @LICENSE
2
+ * @hi-ui/hiui
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ /** @LICENSE
16
+ * @hi-ui/locale-context
17
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/locale-context#readme
18
+ *
19
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
20
+ *
21
+ * This source code is licensed under the MIT license found in the
22
+ * LICENSE file in the root directory of this source tree.
23
+ */
24
+
25
+ var enUS = {
26
+ timePicker: {
27
+ ok: 'OK',
28
+ to: '-',
29
+ now: 'Now'
30
+ },
31
+ datePicker: {
32
+ ok: 'OK',
33
+ to: '-',
34
+ placeholder: ['Select Date'],
35
+ placeholderTimePeriod: ['Select Time'],
36
+ dateChoose: 'Select Date',
37
+ timeChoose: 'Select Time',
38
+ undefinedType: 'undefined type',
39
+ lastWeek: 'Nearly week',
40
+ lastMonth: 'Nearly month',
41
+ lastThreeMonth: 'Nearly three months',
42
+ lastYear: 'Nearly year',
43
+ month: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
44
+ monthShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
45
+ week: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
46
+ placeholders: {
47
+ date: ['Select Date'],
48
+ month: ['Select Month'],
49
+ year: ['Select Year'],
50
+ time: ['Select Time'],
51
+ daterange: ['Select Start Date', 'Select End Date'],
52
+ week: ['Select Week'],
53
+ weekrange: ['Select Start Week', 'Select End Week'],
54
+ timeperiod: ['Select Start Date Time', 'Select Start End Time']
55
+ },
56
+ timePeriod: 'Period',
57
+ hours: 'H',
58
+ minutes: 'M',
59
+ seconds: 'S',
60
+ weekRange: '{{year}}-W{{week}}'
61
+ },
62
+ pagination: {
63
+ total: ['Total', 'items'],
64
+ simple: ['The', 'page', '', 'pages', 'items'],
65
+ item: '',
66
+ itemPerPage: 'page',
67
+ "goto": 'Goto',
68
+ page: ''
69
+ },
70
+ cascader: {
71
+ placeholder: 'Please select',
72
+ noFoundTip: 'Not found'
73
+ },
74
+ checkCascader: {
75
+ placeholder: 'Please select',
76
+ noFoundTip: 'Not found'
77
+ },
78
+ select: {
79
+ placeholder: 'Please select',
80
+ emptyContent: 'Not found',
81
+ searchPlaceholder: 'Please search',
82
+ checkAll: 'Check all',
83
+ justSelected: 'Just Selected'
84
+ },
85
+ selectTree: {
86
+ back: 'Back',
87
+ search: 'search',
88
+ placeholder: 'Please select',
89
+ emptyContent: 'Not found'
90
+ },
91
+ search: {
92
+ searchEmptyResult: 'No serach results',
93
+ searchEmptyRecord: 'No serach record',
94
+ searchRecord: 'Serach record'
95
+ },
96
+ transfer: {
97
+ checkAll: 'Check all',
98
+ items: 'items',
99
+ searchPlaceholder: 'Please search',
100
+ emptyContent: 'No data',
101
+ limit: 'Reached limit, unable to add'
102
+ },
103
+ upload: {
104
+ buttonText: 'Upload',
105
+ uploadSuccess: 'Success',
106
+ cancel: 'Cancel',
107
+ "delete": 'Delete',
108
+ drag: 'Click or drag and drop file to upload',
109
+ dragTips: 'Please click or drag and drop file upload',
110
+ dragTipsLimited: 'The number has reached the upper limit',
111
+ preview: 'Preview',
112
+ modalTiptitle: 'Upload failed',
113
+ modalTiptxt: 'The upload file exceeds the specified upload file size',
114
+ modalBtn: 'I know',
115
+ modalTitle: 'Prompt'
116
+ },
117
+ modal: {
118
+ confirmText: 'OK',
119
+ cancelText: 'Cancel'
120
+ },
121
+ tabs: {
122
+ more: 'more'
123
+ },
124
+ timeline: {
125
+ expand: 'Expand',
126
+ collapse: 'Collapse'
127
+ },
128
+ form: {
129
+ colon: ':'
130
+ },
131
+ tree: {
132
+ addNode: 'Add Node',
133
+ addChildNode: 'Add Child Node',
134
+ edit: 'Edit Node',
135
+ del: 'Delete',
136
+ confirm: 'Confirm',
137
+ cancel: 'Cancel',
138
+ nodePlaceholder: 'Please enter the node name',
139
+ searchPlaceholder: 'Keyword search',
140
+ searchEmptyResult: 'No serach results',
141
+ modalTitle: 'Warning',
142
+ delTips: 'Deleting a node will delete all child nodes, are you sure to delete this node?'
143
+ },
144
+ table: {
145
+ emptyContent: 'No data',
146
+ confirm: 'Confirm',
147
+ reset: 'Reset',
148
+ ascend: 'Ascend',
149
+ descend: 'Descend',
150
+ highlight: 'Highlight',
151
+ freeze: 'Freeze',
152
+ total: 'Total',
153
+ average: 'Average',
154
+ fieldExplorer: 'Field Explorer'
155
+ },
156
+ watermark: {
157
+ content: 'Please do not gaiden'
158
+ },
159
+ emptyState: {
160
+ emptyContent: 'No data'
161
+ },
162
+ checkSelect: {
163
+ placeholder: 'Please select',
164
+ emptyContent: 'Not found',
165
+ searchPlaceholder: 'Please search',
166
+ checkAll: 'Check all',
167
+ justSelected: 'Just Selected'
168
+ },
169
+ treeSelect: {
170
+ placeholder: 'Please select'
171
+ },
172
+ checkTreeSelect: {
173
+ placeholder: 'Please select'
174
+ },
175
+ picker: {
176
+ placeholder: 'Please select',
177
+ emptyContent: 'No data',
178
+ noFoundTip: 'Not found',
179
+ searchPlaceholder: 'Please search',
180
+ loadingContent: 'loading data...'
181
+ },
182
+ zenMode: {
183
+ back: 'back'
184
+ },
185
+ popConfirm: {
186
+ confirmText: 'OK',
187
+ cancelText: 'Cancel'
188
+ },
189
+ tag: {
190
+ add: 'Add'
191
+ }
192
+ };
193
+ exports["default"] = enUS;
@@ -0,0 +1,41 @@
1
+ /** @LICENSE
2
+ * @hi-ui/hiui
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+
16
+ var zhCN = require('./zh-CN.js');
17
+
18
+ var enUS = require('./en-US.js');
19
+
20
+ var zhHK = require('./zh-HK.js');
21
+
22
+ var zhTW = require('./zh-TW.js');
23
+ /** @LICENSE
24
+ * @hi-ui/locale-context
25
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/locale-context#readme
26
+ *
27
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ */
32
+
33
+
34
+ var localeMap = {
35
+ 'zh-CN': zhCN["default"],
36
+ 'zh-Hans': zhCN["default"],
37
+ 'en-US': enUS["default"],
38
+ 'zh-HK': zhHK["default"],
39
+ 'zh-TW': zhTW["default"]
40
+ };
41
+ exports["default"] = localeMap;
@@ -0,0 +1,197 @@
1
+ /** @LICENSE
2
+ * @hi-ui/hiui
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ /** @LICENSE
16
+ * @hi-ui/locale-context
17
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/locale-context#readme
18
+ *
19
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
20
+ *
21
+ * This source code is licensed under the MIT license found in the
22
+ * LICENSE file in the root directory of this source tree.
23
+ */
24
+
25
+ var zhCN = {
26
+ timePicker: {
27
+ ok: '确认',
28
+ to: '-',
29
+ now: '此刻'
30
+ },
31
+ datePicker: {
32
+ ok: '确认',
33
+ to: '-',
34
+ placeholder: ['请选择日期'],
35
+ placeholderTimePeriod: ['请选择时间'],
36
+ dateChoose: '日期选择',
37
+ timeChoose: '时间选择',
38
+ undefinedType: '类型未定义',
39
+ lastWeek: '近一周',
40
+ lastMonth: '近一月',
41
+ lastThreeMonth: '近三月',
42
+ lastYear: '近一年',
43
+ month: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
44
+ monthShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
45
+ week: ['日', '一', '二', '三', '四', '五', '六'],
46
+ placeholders: {
47
+ date: ['请选择日期'],
48
+ month: ['请选择月'],
49
+ year: ['请选择年'],
50
+ time: ['请选择时间'],
51
+ daterange: ['开始日期', '结束日期'],
52
+ week: ['请选择周'],
53
+ weekrange: ['开始周', '结束周'],
54
+ timeperiod: ['开始时间', '结束时间'],
55
+ timerange: ['请选择开始时间', '请选择结束时间']
56
+ },
57
+ year: '年',
58
+ timePeriod: '时间段',
59
+ hours: '时',
60
+ minutes: '分',
61
+ seconds: '秒',
62
+ weekRange: '{{year}}-W{{week}}'
63
+ },
64
+ pagination: {
65
+ total: ['共', '条'],
66
+ simple: ['第', '页', '共', '页', '条记录'],
67
+ item: '条',
68
+ itemPerPage: '页',
69
+ "goto": '前往',
70
+ page: '页'
71
+ },
72
+ timeline: {
73
+ expand: '展开',
74
+ collapse: '收起'
75
+ },
76
+ cascader: {
77
+ placeholder: '请选择',
78
+ noFoundTip: '无匹配数据',
79
+ emptyContent: '暂无数据'
80
+ },
81
+ checkCascader: {
82
+ placeholder: '请选择',
83
+ noFoundTip: '无匹配数据',
84
+ emptyContent: '暂无数据'
85
+ },
86
+ picker: {
87
+ placeholder: '请选择',
88
+ emptyContent: '暂无数据',
89
+ noFoundTip: '无匹配数据',
90
+ searchPlaceholder: '搜索',
91
+ loadingContent: '数据加载中...'
92
+ },
93
+ treeSelect: {
94
+ placeholder: '请选择'
95
+ },
96
+ checkTreeSelect: {
97
+ placeholder: '请选择'
98
+ },
99
+ select: {
100
+ placeholder: '请选择',
101
+ emptyContent: '无匹配数据',
102
+ searchPlaceholder: '搜索',
103
+ checkAll: '全选',
104
+ justSelected: '仅看已选'
105
+ },
106
+ checkSelect: {
107
+ placeholder: '请选择',
108
+ emptyContent: '无匹配数据',
109
+ searchPlaceholder: '搜索',
110
+ checkAll: '全选',
111
+ justSelected: '仅看已选'
112
+ },
113
+ selectTree: {
114
+ back: '返回',
115
+ search: '搜索',
116
+ placeholder: '请选择',
117
+ emptyContent: '无匹配数据'
118
+ },
119
+ search: {
120
+ searchEmptyResult: '未找到搜索结果',
121
+ searchEmptyRecord: '无搜索记录',
122
+ searchRecord: '搜索历史'
123
+ },
124
+ transfer: {
125
+ checkAll: '全选',
126
+ items: '项',
127
+ searchPlaceholder: '搜索',
128
+ emptyContent: '暂无数据',
129
+ limit: '数量达上限,无法添加'
130
+ },
131
+ upload: {
132
+ buttonText: '上传',
133
+ uploadSuccess: '上传成功',
134
+ cancel: '取消',
135
+ "delete": '删除',
136
+ drag: '点击或将文件拖拽至此上传',
137
+ dragTips: '请点击或拖拽文件上传',
138
+ dragTipsLimited: '数量已达上限',
139
+ preview: '预览',
140
+ modalTiptitle: '上传失败',
141
+ modalTiptxt: '该上传文件超过指定上传文件大小',
142
+ modalBtn: '我知道了',
143
+ modalTitle: '提示'
144
+ },
145
+ modal: {
146
+ confirmText: '确定',
147
+ cancelText: '取消'
148
+ },
149
+ tabs: {
150
+ more: '更多'
151
+ },
152
+ form: {
153
+ colon: ':'
154
+ },
155
+ tree: {
156
+ addNode: '添加节点',
157
+ addChildNode: '添加子节点',
158
+ edit: '编辑节点',
159
+ del: '删除',
160
+ confirm: '确认',
161
+ cancel: '取消',
162
+ nodePlaceholder: '请输入节点名称',
163
+ searchPlaceholder: '关键词搜索',
164
+ searchEmptyResult: '未找到搜索结果',
165
+ modalTitle: '提示',
166
+ delTips: '删除节点将删除所有子节点,确定删除吗?'
167
+ },
168
+ table: {
169
+ emptyContent: '暂无数据',
170
+ confirm: '确定',
171
+ reset: '重置',
172
+ ascend: '升序',
173
+ descend: '降序',
174
+ highlight: '高亮',
175
+ freeze: '冻结',
176
+ total: '合计',
177
+ average: '平均值',
178
+ fieldExplorer: '字段管理'
179
+ },
180
+ watermark: {
181
+ content: '请勿外传'
182
+ },
183
+ emptyState: {
184
+ emptyContent: '暂无数据'
185
+ },
186
+ zenMode: {
187
+ back: '返回'
188
+ },
189
+ popConfirm: {
190
+ confirmText: '确定',
191
+ cancelText: '取消'
192
+ },
193
+ tag: {
194
+ add: '添加'
195
+ }
196
+ };
197
+ exports["default"] = zhCN;