ronds-metadata 1.0.87 → 1.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.
@@ -8,7 +8,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
8
8
  /*
9
9
  * @Author: wangxian
10
10
  * @Date: 2021-09-18 14:15:04
11
- * @LastEditTime: 2022-05-07 10:48:55
11
+ * @LastEditTime: 2022-05-11 10:59:56
12
12
  */
13
13
  import React from 'react';
14
14
  import { MinusCircleOutlined, PlusOutlined } from '@ant-design/icons';
@@ -16,6 +16,7 @@ import { MetadataFormContext } from '../interface';
16
16
  import { useGetExtraInfo } from '../hooks';
17
17
  import { getDataCell } from '../utils';
18
18
  import { deepClone } from '../../../utils';
19
+ import { tr } from '@/framework/locale';
19
20
 
20
21
  function Index(props) {
21
22
  var _fieldRule$, _fieldRule$$value;
@@ -116,7 +117,7 @@ function Index(props) {
116
117
  return add();
117
118
  },
118
119
  icon: /*#__PURE__*/React.createElement(PlusOutlined, null)
119
- }, "\u6DFB\u52A0")));
120
+ }, tr('添加'))));
120
121
  })));
121
122
  }
122
123
 
@@ -48,10 +48,7 @@ function Index(props) {
48
48
  var _React$useState7 = React.useState(''),
49
49
  _React$useState8 = _slicedToArray(_React$useState7, 2),
50
50
  help = _React$useState8[0],
51
- setHelp = _React$useState8[1]; // if (id === 'enum') {
52
- // debugger;
53
- // }
54
-
51
+ setHelp = _React$useState8[1];
55
52
 
56
53
  var onSearch = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
57
54
  var param, server, res, _options, i, obj;
@@ -1,6 +1,7 @@
1
1
  declare const _default: {
2
2
  操作: string;
3
3
  添加一行: string;
4
+ 添加: string;
4
5
  编辑: string;
5
6
  删除: string;
6
7
  确定: string;
@@ -1,6 +1,7 @@
1
1
  export default {
2
2
  操作: 'Operation',
3
3
  添加一行: 'Add New Line',
4
+ 添加: 'Add',
4
5
  编辑: 'Edit',
5
6
  删除: 'Delete',
6
7
  确定: 'Confirm',
@@ -1,6 +1,7 @@
1
1
  declare const _default: {
2
2
  操作: string;
3
3
  添加一行: string;
4
+ 添加: string;
4
5
  编辑: string;
5
6
  删除: string;
6
7
  确定: string;
@@ -1,6 +1,7 @@
1
1
  export default {
2
2
  操作: '操作',
3
3
  添加一行: '添加一行',
4
+ 添加: '添加',
4
5
  编辑: '编辑',
5
6
  删除: '删除',
6
7
  确定: '确定',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.0.87",
4
+ "version": "1.0.88",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",