gxxc-ui 1.0.65 → 1.0.67
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.
|
@@ -28,7 +28,7 @@ var RichEditorUI = (props) => {
|
|
|
28
28
|
onChange(editor2.getHtml());
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
-
return /* @__PURE__ */ React.createElement("div", { className: "richEditorUI" }, /* @__PURE__ */ React.createElement(Toolbar, { className: "richEditorUI-toolbar", editor, mode: "default" }), /* @__PURE__ */ React.createElement(
|
|
31
|
+
return /* @__PURE__ */ React.createElement("div", { className: "richEditorUI" }, /* @__PURE__ */ React.createElement(Toolbar, { className: "richEditorUI-toolbar", editor, mode: "default" }), /* @__PURE__ */ React.createElement(
|
|
32
32
|
Editor,
|
|
33
33
|
{
|
|
34
34
|
className: "richEditorUI-editor",
|
|
@@ -38,7 +38,7 @@ var RichEditorUI = (props) => {
|
|
|
38
38
|
onChange: onChangeEditor,
|
|
39
39
|
mode: "default"
|
|
40
40
|
}
|
|
41
|
-
))
|
|
41
|
+
));
|
|
42
42
|
};
|
|
43
43
|
var RichEditorUI_default = RichEditorUI;
|
|
44
44
|
export {
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
.richEditorUI {
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 100%;
|
|
4
|
+
min-height: 0;
|
|
4
5
|
border: 1px solid #d9d9d9;
|
|
5
6
|
border-radius: 4px;
|
|
6
7
|
overflow: hidden;
|
|
7
8
|
transition: all 0.3s;
|
|
8
9
|
display: flex;
|
|
9
10
|
flex-direction: column;
|
|
11
|
+
padding: 0;
|
|
10
12
|
|
|
11
13
|
&:hover {
|
|
12
14
|
border-color: var(--themeColor);
|
|
@@ -18,14 +20,28 @@
|
|
|
18
20
|
border-bottom: 1px solid #d9d9d9;
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
&-
|
|
23
|
+
&-editor {
|
|
22
24
|
flex: 1;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
min-height: 0;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
position: relative;
|
|
28
|
+
|
|
29
|
+
.w-e-text-container {
|
|
30
|
+
position: absolute !important;
|
|
31
|
+
top: 0 !important;
|
|
32
|
+
bottom: 0 !important;
|
|
33
|
+
left: 0 !important;
|
|
34
|
+
right: 0 !important;
|
|
35
|
+
height: 100% !important; /* 强行覆盖源码内部的变动高度 */
|
|
36
|
+
display: flex !important;
|
|
37
|
+
flex-direction: column !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.w-e-scroll {
|
|
41
|
+
flex: 1 !important;
|
|
42
|
+
height: 100% !important;
|
|
43
|
+
overflow-y: auto !important; /* 强制唤醒原生垂直滚动机制 */
|
|
44
|
+
}
|
|
25
45
|
|
|
26
|
-
&-editor {
|
|
27
|
-
min-height: 300px;
|
|
28
|
-
height: 100%;
|
|
29
|
-
overflow: auto;
|
|
30
46
|
}
|
|
31
47
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gxxc-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.67",
|
|
4
4
|
"description": "A react library developed with dumi",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
+
"main": "dist/index.js",
|
|
7
8
|
"module": "dist/index.js",
|
|
8
9
|
"types": "dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
9
18
|
"files": [
|
|
10
19
|
"dist"
|
|
11
20
|
],
|