@para-ui/core 3.0.86 → 3.0.88

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.
@@ -305,7 +305,9 @@ var FormItem = function FormItem(props) {
305
305
  };
306
306
 
307
307
  var RowForm = function RowForm(props) {
308
- var _props$valueList = props.valueList,
308
+ var _props$rowKey = props.rowKey,
309
+ rowKey = _props$rowKey === void 0 ? 'id' : _props$rowKey,
310
+ _props$valueList = props.valueList,
309
311
  valueList = _props$valueList === void 0 ? [] : _props$valueList,
310
312
  rowError = props.rowError,
311
313
  _props$errors = props.errors,
@@ -338,13 +340,13 @@ var RowForm = function RowForm(props) {
338
340
  othersData = __rest(data, ["style"]);
339
341
  var formItemProps = (data === null || data === void 0 ? void 0 : data.inputType) !== 'Switch' ? Object.assign({
340
342
  rowIndex: rowIndex,
341
- id: rowValue.id,
343
+ id: rowValue[rowKey],
342
344
  value: rowValue === null || rowValue === void 0 ? void 0 : rowValue[data.name || ''],
343
345
  error: !!(rowError === null || rowError === void 0 ? void 0 : rowError[data.name || '']),
344
346
  helperText: rowError === null || rowError === void 0 ? void 0 : rowError[data.name || '']
345
347
  }, othersData) : Object.assign({
346
348
  rowIndex: rowIndex,
347
- id: rowValue.id,
349
+ id: rowValue[rowKey],
348
350
  checked: rowValue === null || rowValue === void 0 ? void 0 : rowValue[data.name || '']
349
351
  }, othersData);
350
352
  return jsxs("div", Object.assign({
@@ -929,7 +931,9 @@ var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下
929
931
  styleInject(css_248z);
930
932
 
931
933
  var DynamicMultiBox = function DynamicMultiBox(props) {
932
- var valueList = props.valueList,
934
+ var _props$rowKey = props.rowKey,
935
+ rowKey = _props$rowKey === void 0 ? 'id' : _props$rowKey,
936
+ valueList = props.valueList,
933
937
  _props$config = props.config,
934
938
  config = _props$config === void 0 ? [] : _props$config,
935
939
  _props$errors = props.errors,
@@ -1148,7 +1152,8 @@ var DynamicMultiBox = function DynamicMultiBox(props) {
1148
1152
  required = item.required,
1149
1153
  className = item.className,
1150
1154
  inputType = item.inputType,
1151
- style = item.style;
1155
+ style = item.style,
1156
+ labelProps = item.labelProps;
1152
1157
  var str = 'title-config-row-item';
1153
1158
  if (inputType === 'Switch') str += ' row-form-switch';
1154
1159
  if (className) str += ' ' + className;
@@ -1158,10 +1163,10 @@ var DynamicMultiBox = function DynamicMultiBox(props) {
1158
1163
  className: str,
1159
1164
  style: styleCom
1160
1165
  }, {
1161
- children: jsx(Label, {
1166
+ children: jsx(Label, Object.assign({
1162
1167
  required: required,
1163
1168
  label: label
1164
- })
1169
+ }, labelProps))
1165
1170
  }), index);
1166
1171
  })
1167
1172
  })) : titleMode === 'single' ? jsx(Label, {
@@ -1189,7 +1194,7 @@ var DynamicMultiBox = function DynamicMultiBox(props) {
1189
1194
  }))]
1190
1195
  }))]
1191
1196
  }));
1192
- }, [titleMode, fixedConfig, selectedConfig, isSort, isFilter, checked, onCheckChange, onRestoreDefault]);
1197
+ }, [titleMode, fixedConfig, selectedConfig, isSort, isFilter, checked, onCheckChange, onRestoreDefault, rowKey]);
1193
1198
  /**
1194
1199
  * 判断是否全部隐藏删除
1195
1200
  * 默认全部隐藏
@@ -1201,7 +1206,7 @@ var DynamicMultiBox = function DynamicMultiBox(props) {
1201
1206
  return false;
1202
1207
  }
1203
1208
  for (var i = 0, l = valueList === null || valueList === void 0 ? void 0 : valueList.length; i < l; i++) {
1204
- var id = (_a = valueList[i]) === null || _a === void 0 ? void 0 : _a.id;
1209
+ var id = (_a = valueList[i]) === null || _a === void 0 ? void 0 : _a[rowKey];
1205
1210
  if (id && deleteDisable.indexOf(id) === -1) {
1206
1211
  bol = false;
1207
1212
  break;
@@ -1220,14 +1225,15 @@ var DynamicMultiBox = function DynamicMultiBox(props) {
1220
1225
  return jsx(Fragment, {
1221
1226
  children: valueList.map(function (item, rowIndex) {
1222
1227
  var _a;
1223
- var id = item.id;
1228
+ var id = item[rowKey];
1224
1229
  var rowError = (_a = errors === null || errors === void 0 ? void 0 : errors.filter(function (item) {
1225
- return item.id === id;
1230
+ return item[rowKey] === id;
1226
1231
  })) === null || _a === void 0 ? void 0 : _a[0];
1227
1232
  return jsxs("div", Object.assign({
1228
1233
  className: 'content-row-form'
1229
1234
  }, {
1230
1235
  children: [jsx(RowForm, {
1236
+ rowKey: rowKey,
1231
1237
  rowIndex: rowIndex,
1232
1238
  valueList: valueList,
1233
1239
  errors: errors,
@@ -1263,7 +1269,7 @@ var DynamicMultiBox = function DynamicMultiBox(props) {
1263
1269
  })
1264
1270
  });
1265
1271
  }
1266
- }, [valueList, isSort, isFilter, errors, fixedConfig, selectedConfig, keepLastItem, deleteRender]);
1272
+ }, [valueList, isSort, isFilter, errors, fixedConfig, selectedConfig, keepLastItem, deleteRender, rowKey]);
1267
1273
  /**
1268
1274
  * @desc 删除事件
1269
1275
  * */
@@ -1304,12 +1310,8 @@ var DynamicMultiBox = function DynamicMultiBox(props) {
1304
1310
  var id = UUID();
1305
1311
  // 取出已经筛选的配置数据
1306
1312
  var configArr = [].concat(_toConsumableArray(fixedConfig), _toConsumableArray(selectedConfig));
1307
- valueArr.push(Object.assign(Object.assign({}, getNewItem(configArr, 'value')), {
1308
- id: id
1309
- }));
1310
- errorArr.push(Object.assign(Object.assign({}, getNewItem(configArr, 'error')), {
1311
- id: id
1312
- }));
1313
+ valueArr.push(Object.assign(Object.assign({}, getNewItem(configArr, 'value')), _defineProperty({}, rowKey, id)));
1314
+ errorArr.push(Object.assign(Object.assign({}, getNewItem(configArr, 'error')), _defineProperty({}, rowKey, id)));
1313
1315
  onAdd && onAdd(valueArr, errorArr);
1314
1316
  };
1315
1317
  /**
@@ -1329,12 +1331,12 @@ var DynamicMultiBox = function DynamicMultiBox(props) {
1329
1331
  var onDragSort = function onDragSort(newValueList) {
1330
1332
  // 获取排序后 id映射下标集合
1331
1333
  var idMapIndex = newValueList.reduce(function (acc, cur, index) {
1332
- return Object.assign(Object.assign({}, acc), _defineProperty({}, cur.id, index));
1334
+ return Object.assign(Object.assign({}, acc), _defineProperty({}, cur[rowKey], index));
1333
1335
  }, {});
1334
1336
  // 需要交换的下标集合
1335
1337
  var swapIds = [];
1336
1338
  valueList.forEach(function (item, idx) {
1337
- if (idx !== idMapIndex[item.id]) swapIds.push(idx);
1339
+ if (idx !== idMapIndex[item[rowKey]]) swapIds.push(idx);
1338
1340
  });
1339
1341
  onSort && onSort(newValueList, swapIds);
1340
1342
  };
@@ -1363,14 +1365,15 @@ var DynamicMultiBox = function DynamicMultiBox(props) {
1363
1365
  className: "multi-value-content",
1364
1366
  ref: domRef
1365
1367
  }, {
1366
- children: [renderTitle, jsx(dist.exports.ReactSortable, Object.assign({
1368
+ children: [renderTitle, isSort ? jsx(dist.exports.ReactSortable, Object.assign({
1369
+ id: rowKey,
1367
1370
  list: valueList,
1368
1371
  handle: '.sort-handler',
1369
1372
  animation: 150,
1370
1373
  setList: onDragSort
1371
1374
  }, {
1372
1375
  children: renderContent
1373
- }))]
1376
+ })) : renderContent]
1374
1377
  })), jsxs("div", Object.assign({
1375
1378
  className: "add-button ".concat(disabledAdd ? 'disabled-add' : 'normal-button'),
1376
1379
  onClick: onAddEvent,
@@ -5,6 +5,7 @@
5
5
  */
6
6
  import { ReactNode } from "react";
7
7
  import { TextFieldProps, SelectProps, SwitchProps, InputNumberProps, InputLangProps, ComboSelectProps, DatePickerProps } from "@para-ui/core";
8
+ import { LabelProps } from "../Label";
8
9
  /**组件类型:输入框,下拉框,开关,数字输入框,国际化输入框,日期框,时间选择框,组合选择器,自定义组件*/
9
10
  export type IInputType = 'TextField' | 'Select' | 'Switch' | 'InputNumber' | 'InputLang' | 'ComboSelect' | 'DatePicker' | 'custom';
10
11
  /** 配置项*/
@@ -27,31 +28,28 @@ export type IConfig = {
27
28
  list?: ((rowIndex: number, id: string, name: string, valueList: IValueList[]) => any[]) | any[];
28
29
  /** 样式 */
29
30
  style?: React.CSSProperties;
31
+ /** 标题样式 */
32
+ labelProps?: LabelProps;
30
33
  /** 其他*/
31
34
  [name: string]: any;
32
35
  } & (TextFieldProps | SelectProps | SwitchProps | InputNumberProps | InputLangProps | ComboSelectProps | DatePickerProps);
33
36
  /** value集合*/
34
37
  export interface IValueList {
35
- /** id*/
36
- id: string;
37
38
  /** 每行value值集合, name映射configItem中的name*/
38
39
  [name: string]: any;
39
40
  }
40
41
  export interface IErrors {
41
- /** id*/
42
- id: string;
43
42
  /** 每行错误集合,name映射configItem中的name*/
44
43
  [name: string]: any;
45
44
  }
46
45
  export interface ICurrentItem {
47
46
  /** 表单名*/
48
47
  name?: string;
49
- /** 表单所处行id*/
50
- id: string;
51
48
  /** 表单值*/
52
49
  value?: any;
53
50
  /** 表单所处下标*/
54
51
  rowIndex?: number;
52
+ [name: string]: any;
55
53
  }
56
54
  /** 过滤回调出参*/
57
55
  export interface IFilterParams {
@@ -66,6 +64,8 @@ export interface IFilterParams {
66
64
  }
67
65
  /** 主体接口定义*/
68
66
  export interface IMultiValueProps {
67
+ /** 指定每行key */
68
+ rowKey?: string;
69
69
  /**
70
70
  * 组件配置项
71
71
  */
@@ -1,6 +1,8 @@
1
1
  import { ReactNode } from "react";
2
2
  import { IConfig, IErrors, IValueList } from './interface';
3
3
  export interface IRowForm {
4
+ /** 指定每行key */
5
+ rowKey?: string;
4
6
  /** 行数据*/
5
7
  valueList?: IValueList[];
6
8
  /**行错误数据 */
package/Form/index.js CHANGED
@@ -3,7 +3,8 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import { DeepClone } from '@paraview/lib';
5
5
  import React__default from 'react';
6
- import { F as FormItem, v as validate } from '../_verture/index-fa8a0124.js';
6
+ import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-816522b9.js';
7
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
7
8
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
8
9
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
9
10
  import '../TextField/index.js';
@@ -35,7 +36,6 @@ import '../Radio/index.js';
35
36
  import '../Select/index.js';
36
37
  import '../_verture/defineProperty-62acccfc.js';
37
38
  import '../Empty/index.js';
38
- import '../_verture/useFormatMessage-703f8b20.js';
39
39
  import '@para-ui/icons/Close';
40
40
  import '@para-ui/icons/Down';
41
41
  import '@para-ui/icons/Check';
@@ -93,6 +93,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
93
93
  * @description 用于根据配置自动生成表单
94
94
  */
95
95
  var Form = function Form(props) {
96
+ var intl = useFormatMessage('FormItem', localeJson);
96
97
  var _props$className = props.className,
97
98
  className = _props$className === void 0 ? "" : _props$className,
98
99
  FormProps = props.FormProps,
@@ -202,7 +203,7 @@ var Form = function Form(props) {
202
203
  errorCount++;
203
204
  continue;
204
205
  }
205
- var msg = validate(tItem, refData.current.allValues[key]);
206
+ var msg = validate(tItem, refData.current.allValues[key], intl);
206
207
  if (msg) {
207
208
  errorCount++;
208
209
  if (typeof msg === "string") refData.current.itemsCheckMessage[key] = msg;
package/FormItem/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'react';
3
- export { F as default } from '../_verture/index-fa8a0124.js';
3
+ export { F as default } from '../_verture/index-816522b9.js';
4
4
  import 'clsx';
5
5
  import '../Label/index.js';
6
6
  import '../_verture/constant-66aa48a1.js';
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ choseFile: string;
3
+ unEmpty: string;
4
+ maxLength: string;
5
+ minLength: string;
6
+ unRule: string;
7
+ minValue: string;
8
+ maxValue: string;
9
+ };
10
+ export default _default;
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ zh: {
3
+ choseFile: string;
4
+ unEmpty: string;
5
+ maxLength: string;
6
+ minLength: string;
7
+ unRule: string;
8
+ minValue: string;
9
+ maxValue: string;
10
+ };
11
+ en: {
12
+ choseFile: string;
13
+ unEmpty: string;
14
+ maxLength: string;
15
+ minLength: string;
16
+ unRule: string;
17
+ minValue: string;
18
+ maxValue: string;
19
+ };
20
+ };
21
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ choseFile: string;
3
+ unEmpty: string;
4
+ maxLength: string;
5
+ minLength: string;
6
+ unRule: string;
7
+ minValue: string;
8
+ maxValue: string;
9
+ };
10
+ export default _default;
@@ -6,7 +6,7 @@ import { FormItemProps } from './index';
6
6
  * @param {any} val 校验项的值
7
7
  * @return {boolean | string} 返回校验结果或报错信息
8
8
  */
9
- export type validateFunctionType = (item: FormItemProps, val: any) => boolean | string;
9
+ export type validateFunctionType = (item: FormItemProps, val: any, intl: any) => boolean | string;
10
10
  /**
11
11
  * 表单rules校验方法
12
12
  * @type {validateFunctionType}
@@ -1,5 +1,5 @@
1
- import { u as useModal } from '../_verture/modalContext-20780c9a.js';
2
- export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-20780c9a.js';
1
+ import { u as useModal } from '../_verture/modalContext-630bdb73.js';
2
+ export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-630bdb73.js';
3
3
  import '../_verture/toConsumableArray-81040c9e.js';
4
4
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
5
5
  import '../_verture/slicedToArray-76060636.js';
@@ -29,7 +29,7 @@ import '@paraview/lib';
29
29
  import '../_verture/useFormatMessage-703f8b20.js';
30
30
  import '@para-ui/core/GlobalContext';
31
31
  import '@para-ui/icons/Close';
32
- import '../_verture/index-e2881a53.js';
32
+ import '../_verture/index-65bbd1e4.js';
33
33
  import 'react-dom';
34
34
  import '@para-ui/icons/CheckCircleF';
35
35
  import '@para-ui/icons/CloseCircleF';
@@ -2,6 +2,5 @@ export declare const changeConfirmLocale: (newLocale: {
2
2
  [name: string]: any;
3
3
  }) => void;
4
4
  export declare const getConfirmLocale: () => {
5
- cancel: string;
6
- ok: string;
5
+ [key: string]: string;
7
6
  };
@@ -1,7 +1,7 @@
1
1
  import React__default from 'react';
2
2
  import { i as i18nIntl } from '../_verture/intl-4a9f1b44.js';
3
3
  import { GetLanguage } from '@paraview/lib';
4
- import { d as defaultModalLocale } from '../_verture/index-e2881a53.js';
4
+ import { d as defaultModalLocale } from '../_verture/index-65bbd1e4.js';
5
5
  import '../_verture/typeof-498dd2b1.js';
6
6
 
7
7
  //confirm 默认中文
@@ -15,7 +15,8 @@ var changeConfirmLocale = function changeConfirmLocale(newLocale) {
15
15
  }
16
16
  };
17
17
  var getConfirmLocale = function getConfirmLocale() {
18
- return confirmRuntimeLocale;
18
+ var lang = GetLanguage();
19
+ return (defaultModalLocale === null || defaultModalLocale === void 0 ? void 0 : defaultModalLocale[lang]) || defaultModalLocale['zh'];
19
20
  };
20
21
 
21
22
  var GlobalContext = /*#__PURE__*/React__default.createContext({
package/Modal/index.js CHANGED
@@ -6,7 +6,7 @@ import Dialog from 'rc-dialog';
6
6
  import { Button } from '../Button/index.js';
7
7
  import CloseIcon from '@para-ui/icons/Close';
8
8
  import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
9
- import { d as defaultModalLocale } from '../_verture/index-e2881a53.js';
9
+ import { d as defaultModalLocale } from '../_verture/index-65bbd1e4.js';
10
10
  import ReactDOM from 'react-dom';
11
11
  import clsx from 'clsx';
12
12
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
@@ -7,5 +7,13 @@ declare const _default: {
7
7
  cancel: string;
8
8
  ok: string;
9
9
  };
10
+ 'zh-CN': {
11
+ cancel: string;
12
+ ok: string;
13
+ };
14
+ 'en-US': {
15
+ cancel: string;
16
+ ok: string;
17
+ };
10
18
  };
11
19
  export default _default;
@@ -8,6 +8,7 @@ import { Button } from '../Button/index.js';
8
8
  import { Popover } from '../Popover/index.js';
9
9
  import AutoTips from '../AutoTips/index.js';
10
10
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
11
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
11
12
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
12
13
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
13
14
  import '../_verture/typeof-498dd2b1.js';
@@ -23,9 +24,21 @@ import 'rc-dropdown';
23
24
  import '../_verture/usePopupContainer-87febeb9.js';
24
25
  import 'dayjs';
25
26
  import '@paraview/lib';
26
- import '../_verture/useFormatMessage-703f8b20.js';
27
27
  import '@para-ui/core/GlobalContext';
28
28
 
29
+ var en = {
30
+ more: 'more'
31
+ };
32
+
33
+ var zh = {
34
+ more: '更多'
35
+ };
36
+
37
+ var localeJson = {
38
+ zh: zh,
39
+ en: en
40
+ };
41
+
29
42
  var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2022/4/13 10:48 AM\n* @description 表格操作按钮\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-operate-btn {\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n display: flex;\n align-items: center;\n}\n.paraui-v3-operate-btn > .operate-btn-line {\n display: inline-block;\n width: 1px;\n background-color: rgba(54, 102, 214, 0.2);\n margin: 0 12px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-small > .operate-btn-line {\n height: 12px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-small button svg {\n font-size: 18px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-medium > .operate-btn-line {\n height: 14px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-medium button svg {\n font-size: 24px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-large > .operate-btn-line {\n height: 16px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-large button > svg {\n font-size: 28px;\n}\n\n.paraui-v3-operate-btn-popover .operate-btn-list {\n padding: 8px 0;\n}\n.paraui-v3-operate-btn-popover .operate-btn-list > .operate-btn-list-item {\n padding: 0 12px;\n max-width: 120px;\n cursor: pointer;\n color: rgb(46, 55, 67);\n line-height: 36px;\n text-align: left;\n}\n.paraui-v3-operate-btn-popover .operate-btn-list > .operate-btn-list-item:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-operate-btn-popover .operate-btn-list > .operate-btn-list-item-disabled {\n cursor: not-allowed;\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-operate-btn-popover .operate-btn-list > .operate-btn-list-item-danger {\n color: rgb(235, 96, 84);\n}";
30
43
  styleInject(css_248z);
31
44
 
@@ -55,6 +68,7 @@ var OperateBtn = function OperateBtn(props) {
55
68
  _useState4 = _slicedToArray(_useState3, 2),
56
69
  loadingInside = _useState4[0],
57
70
  setLoadingInside = _useState4[1]; // 内部loading
71
+ var intl = useFormatMessage('OperateBtn', localeJson);
58
72
  // 点击选项
59
73
  var clickItem = function clickItem(item, index) {
60
74
  return function (e) {
@@ -172,7 +186,9 @@ var OperateBtn = function OperateBtn(props) {
172
186
  }, {
173
187
  children: jsx(Button.IconButton, Object.assign({
174
188
  variant: 'text',
175
- toolTipTitle: !openMoreCom && '更多',
189
+ toolTipTitle: !openMoreCom && intl({
190
+ id: 'more'
191
+ }),
176
192
  TooltipProps: {
177
193
  placement: placement,
178
194
  arrow: false
package/README.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## 版本: 3.0.88
2
+
3
+ para-ui/core@3.0.88 发布
4
+ 【表单-Form】表单校验国际化
5
+ 【动态多值框-DynamicMultiBox】增加labelProps参数,用来修改标题
6
+ 【动态多值框-DynamicMultiBox】增加rowKey,用来自定义每行的唯一id
7
+ 【动态多值框-DynamicMultiBox】没有拖拽,valueList不生成chosen,selected字段
8
+
9
+ ## 版本: 3.0.87
10
+
11
+ para-ui/core@3.0.87 发布
12
+ 【确认框-Confirm】修复确认框国际化问题
13
+ 【表格操作按钮-OperateBtn】表格操作按钮国际化
14
+ 【表单-FormFile】修改表单选择文件国际化问题
15
+
1
16
  ## 版本: 3.0.86
2
17
 
3
18
  para-ui/core@3.0.86 发布
package/Upload/index.js CHANGED
@@ -37,7 +37,7 @@ import '@paraview/lib';
37
37
  import 'rc-slider';
38
38
  import 'rc-dialog';
39
39
  import '@para-ui/icons/Close';
40
- import '../_verture/index-e2881a53.js';
40
+ import '../_verture/index-65bbd1e4.js';
41
41
  import 'react-dom';
42
42
  import '@para-ui/icons/CheckCircleF';
43
43
  import '@para-ui/icons/CloseCircleF';
@@ -10,7 +10,9 @@ var zh = {
10
10
 
11
11
  var defaultModalLocale = {
12
12
  zh: zh,
13
- en: en
13
+ en: en,
14
+ 'zh-CN': zh,
15
+ 'en-US': en
14
16
  };
15
17
 
16
18
  export { defaultModalLocale as d };