@teamias/rex-design 0.0.11 → 0.0.12
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/LICENSE +21 -21
- package/README.md +65 -65
- package/dist/components/base-table/base-table.js +1 -1
- package/dist/components/tiptap-editor/modules/plugin-variable-node/index.js +4 -4
- package/dist/components/tiptap-editor/tiptap-editor.d.ts +6 -1
- package/dist/components/tiptap-editor/tiptap-editor.js +12 -5
- package/dist/context/request-fields-container/request-fields-container-context-provider.js +3 -3
- package/dist/hooks/use-state-data/use-state-data.js +4 -4
- package/dist/locales/en-US.json +60 -60
- package/dist/locales/zh-CN.json +60 -60
- package/dist/types/svg.d.ts +3 -3
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) cloudovo
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) cloudovo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
# @teamias/rex-design
|
|
2
|
-
|
|
3
|
-
[](https://npmjs.org/package/@teamias/rex-design)
|
|
4
|
-
[](https://npmjs.org/package/@teamias/rex-design)
|
|
5
|
-
|
|
6
|
-
用 dumi 开发的 react 库
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
### 安装组件库
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
# 安装组件库
|
|
14
|
-
$ pnpm add @teamias/rex-design
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### 代码引用
|
|
19
|
-
|
|
20
|
-
```ts
|
|
21
|
-
import { ActionButtons } from '@teamias/rex-design';
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Options
|
|
25
|
-
|
|
26
|
-
TODO
|
|
27
|
-
|
|
28
|
-
## Development
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
# 安装依赖项
|
|
32
|
-
$ pnpm install
|
|
33
|
-
|
|
34
|
-
# 通过文档演示开发库
|
|
35
|
-
$ pnpm start
|
|
36
|
-
|
|
37
|
-
# 构建库源代码
|
|
38
|
-
$ pnpm run build
|
|
39
|
-
|
|
40
|
-
# 在监视模式下构建库源代码
|
|
41
|
-
$ pnpm run build:watch
|
|
42
|
-
|
|
43
|
-
# 生成文档
|
|
44
|
-
$ pnpm run docs:build
|
|
45
|
-
|
|
46
|
-
# 本地预览生产构建。
|
|
47
|
-
$ pnpm run docs:preview
|
|
48
|
-
|
|
49
|
-
# 检查项目的潜在问题
|
|
50
|
-
$ pnpm run doctor
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## Publish
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
# 首次发包前,进行用户添加
|
|
57
|
-
$ pnpm adduser
|
|
58
|
-
|
|
59
|
-
# 发布新版本
|
|
60
|
-
$ pnpm run deploy
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
## LICENSE
|
|
64
|
-
|
|
65
|
-
MIT
|
|
1
|
+
# @teamias/rex-design
|
|
2
|
+
|
|
3
|
+
[](https://npmjs.org/package/@teamias/rex-design)
|
|
4
|
+
[](https://npmjs.org/package/@teamias/rex-design)
|
|
5
|
+
|
|
6
|
+
用 dumi 开发的 react 库
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
### 安装组件库
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
# 安装组件库
|
|
14
|
+
$ pnpm add @teamias/rex-design
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### 代码引用
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import { ActionButtons } from '@teamias/rex-design';
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Options
|
|
25
|
+
|
|
26
|
+
TODO
|
|
27
|
+
|
|
28
|
+
## Development
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# 安装依赖项
|
|
32
|
+
$ pnpm install
|
|
33
|
+
|
|
34
|
+
# 通过文档演示开发库
|
|
35
|
+
$ pnpm start
|
|
36
|
+
|
|
37
|
+
# 构建库源代码
|
|
38
|
+
$ pnpm run build
|
|
39
|
+
|
|
40
|
+
# 在监视模式下构建库源代码
|
|
41
|
+
$ pnpm run build:watch
|
|
42
|
+
|
|
43
|
+
# 生成文档
|
|
44
|
+
$ pnpm run docs:build
|
|
45
|
+
|
|
46
|
+
# 本地预览生产构建。
|
|
47
|
+
$ pnpm run docs:preview
|
|
48
|
+
|
|
49
|
+
# 检查项目的潜在问题
|
|
50
|
+
$ pnpm run doctor
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Publish
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# 首次发包前,进行用户添加
|
|
57
|
+
$ pnpm adduser
|
|
58
|
+
|
|
59
|
+
# 发布新版本
|
|
60
|
+
$ pnpm run deploy
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## LICENSE
|
|
64
|
+
|
|
65
|
+
MIT
|
|
@@ -262,7 +262,7 @@ export var BaseTable = function BaseTable(_ref) {
|
|
|
262
262
|
fixed: 'left',
|
|
263
263
|
// className: `custom-width::${otherProps.rowSelection.columnWidth ?? 50}`,
|
|
264
264
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
265
|
-
if (record.is_checkbox === 2) {
|
|
265
|
+
if (record && record.is_checkbox === 2) {
|
|
266
266
|
return {
|
|
267
267
|
style: {
|
|
268
268
|
display: 'none'
|
|
@@ -56,10 +56,10 @@ export var PluginVariableBNode = Node.create({
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
/**
|
|
60
|
-
* 提取 tiptap 编辑器内容中的所有 <react-variable-node selected="label"></react-variable-node> 占位符
|
|
61
|
-
* @param text 编辑器内容字符串
|
|
62
|
-
* @param source 匹配对象
|
|
59
|
+
/**
|
|
60
|
+
* 提取 tiptap 编辑器内容中的所有 <react-variable-node selected="label"></react-variable-node> 占位符
|
|
61
|
+
* @param text 编辑器内容字符串
|
|
62
|
+
* @param source 匹配对象
|
|
63
63
|
*/
|
|
64
64
|
export var matchTiptapVariables = function matchTiptapVariables(text) {
|
|
65
65
|
var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Extensions, useEditor } from '@tiptap/react';
|
|
1
|
+
import { EditorContent, Extensions, useEditor } from '@tiptap/react';
|
|
2
|
+
import { GetProps } from 'antd';
|
|
2
3
|
import { FC, ReactNode } from 'react';
|
|
3
4
|
/**
|
|
4
5
|
* https://v2.tiptap.dev/docs/editor/extensions/nodes/task-item
|
|
@@ -30,6 +31,10 @@ export interface TiptapEditorProps {
|
|
|
30
31
|
renderToolBar?: (oldNode: JSX.Element, editor: ReturnType<typeof useEditor>, config: IConfigItem[]) => ReactNode;
|
|
31
32
|
/** 插件注入 */
|
|
32
33
|
extensions?: Extensions;
|
|
34
|
+
/**
|
|
35
|
+
* @desc 传递给 EditorContent 的属性
|
|
36
|
+
*/
|
|
37
|
+
editorContentProps?: Omit<GetProps<typeof EditorContent>, 'editor'>;
|
|
33
38
|
}
|
|
34
39
|
interface IConfigItem {
|
|
35
40
|
title: string;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1
7
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
8
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -26,8 +32,8 @@ import { Link } from "./modules/plugin-link-node";
|
|
|
26
32
|
import { PluginVariableBNode } from "./modules/plugin-variable-node";
|
|
27
33
|
import { Box } from "./styles";
|
|
28
34
|
|
|
29
|
-
/**
|
|
30
|
-
* https://v2.tiptap.dev/docs/editor/extensions/nodes/task-item
|
|
35
|
+
/**
|
|
36
|
+
* https://v2.tiptap.dev/docs/editor/extensions/nodes/task-item
|
|
31
37
|
*/
|
|
32
38
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
33
39
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -45,7 +51,8 @@ export var TiptapEditor = function TiptapEditor(_ref) {
|
|
|
45
51
|
hiddenToolBar = _ref.hiddenToolBar,
|
|
46
52
|
preventLineBreaks = _ref.preventLineBreaks,
|
|
47
53
|
renderToolBar = _ref.renderToolBar,
|
|
48
|
-
extensions = _ref.extensions
|
|
54
|
+
extensions = _ref.extensions,
|
|
55
|
+
editorContentProps = _ref.editorContentProps;
|
|
49
56
|
var intl = useIntl();
|
|
50
57
|
var editor = useEditor({
|
|
51
58
|
extensions: [].concat(_toConsumableArray(extensions || []), [BulletList, OrderedList, StarterKit.configure({
|
|
@@ -522,8 +529,8 @@ export var TiptapEditor = function TiptapEditor(_ref) {
|
|
|
522
529
|
return renderToolBar(oldNode, editor, config);
|
|
523
530
|
}
|
|
524
531
|
return oldNode;
|
|
525
|
-
}(), /*#__PURE__*/_jsx(EditorContent, {
|
|
532
|
+
}(), /*#__PURE__*/_jsx(EditorContent, _objectSpread(_objectSpread({}, editorContentProps), {}, {
|
|
526
533
|
editor: editor
|
|
527
|
-
})]
|
|
534
|
+
}))]
|
|
528
535
|
});
|
|
529
536
|
};
|
|
@@ -9,9 +9,9 @@ import { useRexProConfigProvider } from "../rex-pro-config-provider/use-rex-pro-
|
|
|
9
9
|
import { RequestFieldsContainerContext } from "./request-fields-container-context";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
|
-
/**
|
|
13
|
-
* 用于收集所有包含(requestFields)组件加载完成
|
|
14
|
-
* TODO: 需要组件(requestFields),去实现这部分逻辑
|
|
12
|
+
/**
|
|
13
|
+
* 用于收集所有包含(requestFields)组件加载完成
|
|
14
|
+
* TODO: 需要组件(requestFields),去实现这部分逻辑
|
|
15
15
|
*/
|
|
16
16
|
export var RequestFieldsContainer = function RequestFieldsContainer(_ref) {
|
|
17
17
|
var children = _ref.children,
|
|
@@ -19,10 +19,10 @@ var withResolvers = function withResolvers() {
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* 对 useState 的扩展,实现操作对象,绕过闭包的问题
|
|
24
|
-
* @param stateFn
|
|
25
|
-
* @returns
|
|
22
|
+
/**
|
|
23
|
+
* 对 useState 的扩展,实现操作对象,绕过闭包的问题
|
|
24
|
+
* @param stateFn
|
|
25
|
+
* @returns
|
|
26
26
|
*/
|
|
27
27
|
export var useStateData = function useStateData(stateFn) {
|
|
28
28
|
var _useState = useState({}),
|
package/dist/locales/en-US.json
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
{
|
|
2
|
-
"rex": {
|
|
3
|
-
"components": {
|
|
4
|
-
"tiptap-editor": {
|
|
5
|
-
"undo": "Undo",
|
|
6
|
-
"redo": "Redo",
|
|
7
|
-
"divider": "Divider",
|
|
8
|
-
"font-color": "Font Color",
|
|
9
|
-
"background-color": "Background Color",
|
|
10
|
-
"bold": "Bold",
|
|
11
|
-
"italic": "Italic",
|
|
12
|
-
"strike": "Strike",
|
|
13
|
-
"superscript": "Superscript",
|
|
14
|
-
"subscript": "Subscript",
|
|
15
|
-
"align-left": "Align Left",
|
|
16
|
-
"align-center": "Align Center",
|
|
17
|
-
"align-right": "Align Right",
|
|
18
|
-
"set-link": "Set Link",
|
|
19
|
-
"unset-link": "Unset Link",
|
|
20
|
-
"upload-image": "Upload Image",
|
|
21
|
-
"enter-link-url": "Please enter link URL:",
|
|
22
|
-
"bullet-list": "Ordered list",
|
|
23
|
-
"ordered-list": "Unordered list"
|
|
24
|
-
},
|
|
25
|
-
"base-list-table": {
|
|
26
|
-
"expand-more-data": "There are still {count} pieces of data not displayed",
|
|
27
|
-
"expand-more-data-hide": "Close"
|
|
28
|
-
},
|
|
29
|
-
"base-table": {
|
|
30
|
-
"column-serial-number-title": "Serial number"
|
|
31
|
-
},
|
|
32
|
-
"base-form": {
|
|
33
|
-
"placeholder": {
|
|
34
|
-
"input": "Please enter",
|
|
35
|
-
"select": "Please select",
|
|
36
|
-
"date-range": {
|
|
37
|
-
"start": "Start time",
|
|
38
|
-
"end": "End time"
|
|
39
|
-
},
|
|
40
|
-
"input-number-range": {
|
|
41
|
-
"min": "Minimum value",
|
|
42
|
-
"max": "Maximum value"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"value-type-match-error": "Not matched"
|
|
46
|
-
},
|
|
47
|
-
"action-buttons": {
|
|
48
|
-
"item-label-fallback": "Unconfigured button label",
|
|
49
|
-
"group-label-fallback": "Unconfigured group label"
|
|
50
|
-
},
|
|
51
|
-
"icons": {
|
|
52
|
-
"loader-error": "Icon loading failed",
|
|
53
|
-
"not-found": "Icon not found",
|
|
54
|
-
"type-not-matched": "Icon type not supported"
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"context": {},
|
|
58
|
-
"hooks": {}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"rex": {
|
|
3
|
+
"components": {
|
|
4
|
+
"tiptap-editor": {
|
|
5
|
+
"undo": "Undo",
|
|
6
|
+
"redo": "Redo",
|
|
7
|
+
"divider": "Divider",
|
|
8
|
+
"font-color": "Font Color",
|
|
9
|
+
"background-color": "Background Color",
|
|
10
|
+
"bold": "Bold",
|
|
11
|
+
"italic": "Italic",
|
|
12
|
+
"strike": "Strike",
|
|
13
|
+
"superscript": "Superscript",
|
|
14
|
+
"subscript": "Subscript",
|
|
15
|
+
"align-left": "Align Left",
|
|
16
|
+
"align-center": "Align Center",
|
|
17
|
+
"align-right": "Align Right",
|
|
18
|
+
"set-link": "Set Link",
|
|
19
|
+
"unset-link": "Unset Link",
|
|
20
|
+
"upload-image": "Upload Image",
|
|
21
|
+
"enter-link-url": "Please enter link URL:",
|
|
22
|
+
"bullet-list": "Ordered list",
|
|
23
|
+
"ordered-list": "Unordered list"
|
|
24
|
+
},
|
|
25
|
+
"base-list-table": {
|
|
26
|
+
"expand-more-data": "There are still {count} pieces of data not displayed",
|
|
27
|
+
"expand-more-data-hide": "Close"
|
|
28
|
+
},
|
|
29
|
+
"base-table": {
|
|
30
|
+
"column-serial-number-title": "Serial number"
|
|
31
|
+
},
|
|
32
|
+
"base-form": {
|
|
33
|
+
"placeholder": {
|
|
34
|
+
"input": "Please enter",
|
|
35
|
+
"select": "Please select",
|
|
36
|
+
"date-range": {
|
|
37
|
+
"start": "Start time",
|
|
38
|
+
"end": "End time"
|
|
39
|
+
},
|
|
40
|
+
"input-number-range": {
|
|
41
|
+
"min": "Minimum value",
|
|
42
|
+
"max": "Maximum value"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"value-type-match-error": "Not matched"
|
|
46
|
+
},
|
|
47
|
+
"action-buttons": {
|
|
48
|
+
"item-label-fallback": "Unconfigured button label",
|
|
49
|
+
"group-label-fallback": "Unconfigured group label"
|
|
50
|
+
},
|
|
51
|
+
"icons": {
|
|
52
|
+
"loader-error": "Icon loading failed",
|
|
53
|
+
"not-found": "Icon not found",
|
|
54
|
+
"type-not-matched": "Icon type not supported"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"context": {},
|
|
58
|
+
"hooks": {}
|
|
59
|
+
}
|
|
60
|
+
}
|
package/dist/locales/zh-CN.json
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
{
|
|
2
|
-
"rex": {
|
|
3
|
-
"components": {
|
|
4
|
-
"tiptap-editor": {
|
|
5
|
-
"undo": "撤回",
|
|
6
|
-
"redo": "恢复",
|
|
7
|
-
"divider": "分割",
|
|
8
|
-
"font-color": "字体颜色",
|
|
9
|
-
"background-color": "背景颜色",
|
|
10
|
-
"bold": "加粗",
|
|
11
|
-
"italic": "斜体",
|
|
12
|
-
"strike": "划线",
|
|
13
|
-
"superscript": "上标",
|
|
14
|
-
"subscript": "下标",
|
|
15
|
-
"align-left": "左对齐",
|
|
16
|
-
"align-center": "居中",
|
|
17
|
-
"align-right": "右对齐",
|
|
18
|
-
"set-link": "设置链接",
|
|
19
|
-
"unset-link": "取消链接",
|
|
20
|
-
"upload-image": "上传图片",
|
|
21
|
-
"enter-link-url": "请输入链接地址:",
|
|
22
|
-
"bullet-list": "有序列表",
|
|
23
|
-
"ordered-list": "无序列表"
|
|
24
|
-
},
|
|
25
|
-
"base-list-table": {
|
|
26
|
-
"expand-more-data-hide": "收起",
|
|
27
|
-
"expand-more-data": "还有{count}条数据未展示"
|
|
28
|
-
},
|
|
29
|
-
"base-table": {
|
|
30
|
-
"column-serial-number-title": "序号"
|
|
31
|
-
},
|
|
32
|
-
"base-form": {
|
|
33
|
-
"placeholder": {
|
|
34
|
-
"input": "请输入",
|
|
35
|
-
"select": "请选择",
|
|
36
|
-
"date-range": {
|
|
37
|
-
"start": "开始时间",
|
|
38
|
-
"end": "结束时间"
|
|
39
|
-
},
|
|
40
|
-
"input-number-range": {
|
|
41
|
-
"min": "最小值",
|
|
42
|
-
"max": "最大值"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"value-type-match-error": "匹配不到"
|
|
46
|
-
},
|
|
47
|
-
"action-buttons": {
|
|
48
|
-
"item-label-fallback": "未配置按钮标签",
|
|
49
|
-
"group-label-fallback": "未配置分组标签"
|
|
50
|
-
},
|
|
51
|
-
"icons": {
|
|
52
|
-
"loader-error": "图标加载失败",
|
|
53
|
-
"not-found": "图标未找到",
|
|
54
|
-
"type-not-matched": "图标类型不支持"
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"context": {},
|
|
58
|
-
"hooks": {}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"rex": {
|
|
3
|
+
"components": {
|
|
4
|
+
"tiptap-editor": {
|
|
5
|
+
"undo": "撤回",
|
|
6
|
+
"redo": "恢复",
|
|
7
|
+
"divider": "分割",
|
|
8
|
+
"font-color": "字体颜色",
|
|
9
|
+
"background-color": "背景颜色",
|
|
10
|
+
"bold": "加粗",
|
|
11
|
+
"italic": "斜体",
|
|
12
|
+
"strike": "划线",
|
|
13
|
+
"superscript": "上标",
|
|
14
|
+
"subscript": "下标",
|
|
15
|
+
"align-left": "左对齐",
|
|
16
|
+
"align-center": "居中",
|
|
17
|
+
"align-right": "右对齐",
|
|
18
|
+
"set-link": "设置链接",
|
|
19
|
+
"unset-link": "取消链接",
|
|
20
|
+
"upload-image": "上传图片",
|
|
21
|
+
"enter-link-url": "请输入链接地址:",
|
|
22
|
+
"bullet-list": "有序列表",
|
|
23
|
+
"ordered-list": "无序列表"
|
|
24
|
+
},
|
|
25
|
+
"base-list-table": {
|
|
26
|
+
"expand-more-data-hide": "收起",
|
|
27
|
+
"expand-more-data": "还有{count}条数据未展示"
|
|
28
|
+
},
|
|
29
|
+
"base-table": {
|
|
30
|
+
"column-serial-number-title": "序号"
|
|
31
|
+
},
|
|
32
|
+
"base-form": {
|
|
33
|
+
"placeholder": {
|
|
34
|
+
"input": "请输入",
|
|
35
|
+
"select": "请选择",
|
|
36
|
+
"date-range": {
|
|
37
|
+
"start": "开始时间",
|
|
38
|
+
"end": "结束时间"
|
|
39
|
+
},
|
|
40
|
+
"input-number-range": {
|
|
41
|
+
"min": "最小值",
|
|
42
|
+
"max": "最大值"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"value-type-match-error": "匹配不到"
|
|
46
|
+
},
|
|
47
|
+
"action-buttons": {
|
|
48
|
+
"item-label-fallback": "未配置按钮标签",
|
|
49
|
+
"group-label-fallback": "未配置分组标签"
|
|
50
|
+
},
|
|
51
|
+
"icons": {
|
|
52
|
+
"loader-error": "图标加载失败",
|
|
53
|
+
"not-found": "图标未找到",
|
|
54
|
+
"type-not-matched": "图标类型不支持"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"context": {},
|
|
58
|
+
"hooks": {}
|
|
59
|
+
}
|
|
60
|
+
}
|
package/dist/types/svg.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module '*.svg' {
|
|
2
|
-
const content: string;
|
|
3
|
-
export default content;
|
|
1
|
+
declare module '*.svg' {
|
|
2
|
+
const content: string;
|
|
3
|
+
export default content;
|
|
4
4
|
}
|