@lingxiteam/lcdp-ueditor-react 1.0.3-alpha.14 → 1.0.3-alpha.16
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/LcdpUeditor.d.ts
CHANGED
|
@@ -62,6 +62,12 @@ declare class LcdpUeditor extends React.Component<ILcdpUeditorProps, {}> {
|
|
|
62
62
|
componentWillUnmount(): void;
|
|
63
63
|
private onContentChange;
|
|
64
64
|
private getExtString;
|
|
65
|
+
getStatusBarItem: (params: {
|
|
66
|
+
icon: React.ReactNode;
|
|
67
|
+
content: React.ReactNode;
|
|
68
|
+
onClick?: () => void;
|
|
69
|
+
extraNode?: React.ReactNode;
|
|
70
|
+
}) => JSX.Element;
|
|
65
71
|
private initConfig;
|
|
66
72
|
/**
|
|
67
73
|
* 文件选择
|
|
@@ -81,12 +87,6 @@ declare class LcdpUeditor extends React.Component<ILcdpUeditorProps, {}> {
|
|
|
81
87
|
* 初始化编辑器实例
|
|
82
88
|
*/
|
|
83
89
|
initUeditor(): Promise<void>;
|
|
84
|
-
getStatusBarItem: (params: {
|
|
85
|
-
icon: React.ReactNode;
|
|
86
|
-
content: React.ReactNode;
|
|
87
|
-
onClick?: () => void;
|
|
88
|
-
extraNode?: React.ReactNode;
|
|
89
|
-
}) => JSX.Element;
|
|
90
90
|
/**
|
|
91
91
|
* 渲染状态栏
|
|
92
92
|
*/
|
package/es/LcdpUeditor.js
CHANGED
|
@@ -405,14 +405,14 @@ var LcdpUeditor = /*#__PURE__*/function (_React$Component) {
|
|
|
405
405
|
return _initUeditor.apply(this, arguments);
|
|
406
406
|
}
|
|
407
407
|
return initUeditor;
|
|
408
|
-
}()
|
|
409
|
-
}, {
|
|
410
|
-
key: "renderStatusBar",
|
|
411
|
-
value:
|
|
408
|
+
}()
|
|
412
409
|
/**
|
|
413
410
|
* 渲染状态栏
|
|
414
411
|
*/
|
|
415
|
-
|
|
412
|
+
)
|
|
413
|
+
}, {
|
|
414
|
+
key: "renderStatusBar",
|
|
415
|
+
value: function renderStatusBar() {
|
|
416
416
|
var _this$containerRef$cu, _this$props$bottomTyp;
|
|
417
417
|
var bottomBarContainer = (_this$containerRef$cu = this.containerRef.current) === null || _this$containerRef$cu === void 0 ? void 0 : _this$containerRef$cu.querySelector('#edui1_bottombar');
|
|
418
418
|
var comp = /*#__PURE__*/React.createElement(ToolBottomBar, {
|
|
@@ -240,30 +240,6 @@
|
|
|
240
240
|
font-size: 15px;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
.@{suffixCls}-preview {
|
|
244
|
-
border: 1px solid @border-color;
|
|
245
|
-
padding: 15px;
|
|
246
|
-
margin: 15px 0;
|
|
247
|
-
background-color: #fff;
|
|
248
|
-
border-radius: 4px;
|
|
249
|
-
|
|
250
|
-
h1 {
|
|
251
|
-
color: inherit;
|
|
252
|
-
font-family: inherit;
|
|
253
|
-
font-size: inherit;
|
|
254
|
-
margin-top: 10px;
|
|
255
|
-
margin-bottom: 10px;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
p {
|
|
259
|
-
color: inherit;
|
|
260
|
-
font-family: inherit;
|
|
261
|
-
font-size: inherit;
|
|
262
|
-
line-height: inherit;
|
|
263
|
-
margin: 8px 0;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
243
|
.@{suffixCls}-system-info {
|
|
268
244
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
|
269
245
|
color: white !important;
|
package/lib/LcdpUeditor.d.ts
CHANGED
|
@@ -62,6 +62,12 @@ declare class LcdpUeditor extends React.Component<ILcdpUeditorProps, {}> {
|
|
|
62
62
|
componentWillUnmount(): void;
|
|
63
63
|
private onContentChange;
|
|
64
64
|
private getExtString;
|
|
65
|
+
getStatusBarItem: (params: {
|
|
66
|
+
icon: React.ReactNode;
|
|
67
|
+
content: React.ReactNode;
|
|
68
|
+
onClick?: () => void;
|
|
69
|
+
extraNode?: React.ReactNode;
|
|
70
|
+
}) => JSX.Element;
|
|
65
71
|
private initConfig;
|
|
66
72
|
/**
|
|
67
73
|
* 文件选择
|
|
@@ -81,12 +87,6 @@ declare class LcdpUeditor extends React.Component<ILcdpUeditorProps, {}> {
|
|
|
81
87
|
* 初始化编辑器实例
|
|
82
88
|
*/
|
|
83
89
|
initUeditor(): Promise<void>;
|
|
84
|
-
getStatusBarItem: (params: {
|
|
85
|
-
icon: React.ReactNode;
|
|
86
|
-
content: React.ReactNode;
|
|
87
|
-
onClick?: () => void;
|
|
88
|
-
extraNode?: React.ReactNode;
|
|
89
|
-
}) => JSX.Element;
|
|
90
90
|
/**
|
|
91
91
|
* 渲染状态栏
|
|
92
92
|
*/
|
|
@@ -240,30 +240,6 @@
|
|
|
240
240
|
font-size: 15px;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
.@{suffixCls}-preview {
|
|
244
|
-
border: 1px solid @border-color;
|
|
245
|
-
padding: 15px;
|
|
246
|
-
margin: 15px 0;
|
|
247
|
-
background-color: #fff;
|
|
248
|
-
border-radius: 4px;
|
|
249
|
-
|
|
250
|
-
h1 {
|
|
251
|
-
color: inherit;
|
|
252
|
-
font-family: inherit;
|
|
253
|
-
font-size: inherit;
|
|
254
|
-
margin-top: 10px;
|
|
255
|
-
margin-bottom: 10px;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
p {
|
|
259
|
-
color: inherit;
|
|
260
|
-
font-family: inherit;
|
|
261
|
-
font-size: inherit;
|
|
262
|
-
line-height: inherit;
|
|
263
|
-
margin: 8px 0;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
243
|
.@{suffixCls}-system-info {
|
|
268
244
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
|
269
245
|
color: white !important;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingxiteam/lcdp-ueditor-react",
|
|
3
|
-
"version": "1.0.3-alpha.
|
|
3
|
+
"version": "1.0.3-alpha.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -19,23 +19,19 @@
|
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/lodash": "^4.14.180",
|
|
21
21
|
"father": "^4.1.9",
|
|
22
|
-
"@types/file-saver": "^2.0.5"
|
|
23
|
-
"antd": "4.24.13",
|
|
24
|
-
"jspdf": "^2.5.1",
|
|
25
|
-
"file-saver": "^2.0.5",
|
|
26
|
-
"html2canvas": "^1.4.1"
|
|
22
|
+
"@types/file-saver": "^2.0.5"
|
|
27
23
|
},
|
|
28
24
|
"peerDependencies": {
|
|
29
25
|
"react": "^16.12.0 || ^17.0.0",
|
|
30
|
-
"lodash": "^4.0.0"
|
|
31
|
-
|
|
26
|
+
"lodash": "^4.0.0"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@babel/runtime": "7.23.2",
|
|
32
30
|
"jspdf": "^2.5.1",
|
|
33
31
|
"file-saver": "^2.0.5",
|
|
32
|
+
"antd": "4.24.13",
|
|
34
33
|
"html2canvas": "^1.4.1"
|
|
35
34
|
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"@babel/runtime": "7.23.2"
|
|
38
|
-
},
|
|
39
35
|
"publishConfig": {
|
|
40
36
|
"access": "public",
|
|
41
37
|
"registry": "https://registry.npmjs.org/"
|