ronds-metadata 1.2.62 → 1.2.64
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/comps/MdEditPro/index.less +4 -0
- package/es/utils.js +3 -3
- package/package.json +1 -1
|
@@ -117,6 +117,7 @@
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
.ck-content .table {
|
|
120
|
+
width: 100%;
|
|
120
121
|
margin: 0px !important;
|
|
121
122
|
}
|
|
122
123
|
.ck-content .image {
|
|
@@ -125,6 +126,9 @@
|
|
|
125
126
|
|
|
126
127
|
.ronds-metadata-dark {
|
|
127
128
|
.ck {
|
|
129
|
+
.table {
|
|
130
|
+
width: 100%;
|
|
131
|
+
}
|
|
128
132
|
th {
|
|
129
133
|
background-color: #0d1f40 !important;
|
|
130
134
|
}
|
package/es/utils.js
CHANGED
|
@@ -6,7 +6,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
6
6
|
/*
|
|
7
7
|
* @Author: wangxian
|
|
8
8
|
* @Date: 2021-09-18 14:15:04
|
|
9
|
-
* @LastEditTime: 2023-06-08
|
|
9
|
+
* @LastEditTime: 2023-06-08 14:30:24
|
|
10
10
|
*/
|
|
11
11
|
import saveAs from 'file-saver';
|
|
12
12
|
import { asBlob } from 'html-docx-js-typescript';
|
|
@@ -183,7 +183,7 @@ function _handleMd2Doc() {
|
|
|
183
183
|
// 修改图片路径;
|
|
184
184
|
token.attrs[token.attrIndex('src')][1] = "".concat(window.location.origin, "/").concat(src);
|
|
185
185
|
}
|
|
186
|
-
var width = '
|
|
186
|
+
var width = '620'; // 自定义宽度
|
|
187
187
|
var height = 'auto'; // 自适应高度
|
|
188
188
|
// 添加自定义宽高属性
|
|
189
189
|
token.attrSet('width', width);
|
|
@@ -204,7 +204,7 @@ function _handleMd2Doc() {
|
|
|
204
204
|
orientation: 'portrait'
|
|
205
205
|
};
|
|
206
206
|
_context.next = 8;
|
|
207
|
-
return asBlob(
|
|
207
|
+
return asBlob(commonHtml, opt);
|
|
208
208
|
case 8:
|
|
209
209
|
blob = _context.sent;
|
|
210
210
|
saveAs(blob, "".concat(fileName, ".doc"));
|