ronds-metadata 1.2.81 → 1.2.83
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "antd/es/button/style";
|
|
2
2
|
import _Button from "antd/es/button";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
-
import MetadataForm from '
|
|
4
|
+
import MetadataForm from '../../../../comps/MetadataForm';
|
|
5
5
|
import Split from '../../../../comps/Split';
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import JsonView from '
|
|
7
|
+
import JsonView from '../../../../comps/JsonView';
|
|
8
8
|
var Preview = function Preview(props) {
|
|
9
9
|
var schema = props.schema;
|
|
10
10
|
var _React$useState = React.useState(''),
|
|
@@ -8,7 +8,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
8
8
|
/*
|
|
9
9
|
* @Author: wangxian
|
|
10
10
|
* @Date: 2023-02-06 08:24:17
|
|
11
|
-
* @LastEditTime: 2023-
|
|
11
|
+
* @LastEditTime: 2023-07-07 16:01:20
|
|
12
12
|
*/
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import copy from 'copy-to-clipboard';
|
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-07-07
|
|
9
|
+
* @LastEditTime: 2023-07-07 15:47:59
|
|
10
10
|
*/
|
|
11
11
|
import saveAs from 'file-saver';
|
|
12
12
|
import { asBlob } from 'html-docx-js-typescript';
|
|
@@ -210,10 +210,12 @@ function _handleMd2Doc() {
|
|
|
210
210
|
return "<".concat(token.tag, ">\n");
|
|
211
211
|
};
|
|
212
212
|
html = md.render(mdText);
|
|
213
|
-
commonHtml = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <style>\n .doc-table {\n border-collapse:collapse;\n width: 100%;\n border: 1px solid #ccc;\n border-style: hidden;\n overflow: hidden;\n }\n th {\n background: #f9fafb;\n border: 1px solid #f3f4f5;\n font-weight: 600;\n color: rgba(0, 0, 0, 0.85);\n padding:8px;\n text-align:left;\n }\n tr {\n border: 1px solid #f3f4f5;\n }\n td {\n border: 1px solid #f3f4f5;\n padding:4px\n }\n blockquote {\n border-left: 4px solid #f3f4f5; \n overflow: hidden;\n }\n </style>\n </head>\n <body>\n ".concat(!isFirstLineCenter ? "<div style='text-align:center;font-weight:blod'><h1>".concat(fileName, "</h1></div>") : '', "\n <div>\n ").concat(html, "\n </div>\n </body>\n </html>\n ");
|
|
213
|
+
commonHtml = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <style>\n .doc-table {\n border-collapse:collapse;\n width: 100%;\n border: 1px solid #ccc;\n border-style: hidden;\n overflow: hidden;\n }\n p {\n margin: 0;\n }\n th {\n background: #f9fafb;\n border: 1px solid #f3f4f5;\n font-weight: 600;\n color: rgba(0, 0, 0, 0.85);\n padding:8px;\n text-align:left;\n }\n tr {\n border: 1px solid #f3f4f5;\n }\n td {\n border: 1px solid #f3f4f5;\n padding:4px\n }\n blockquote {\n border-left: 4px solid #f3f4f5; \n overflow: hidden;\n }\n </style>\n </head>\n <body>\n ".concat(!isFirstLineCenter ? "<div style='text-align:center;font-weight:blod'><h1>".concat(fileName, "</h1></div>") : '', "\n <div>\n ").concat(html, "\n </div>\n </body>\n </html>\n ");
|
|
214
214
|
opt = {
|
|
215
215
|
margin: {
|
|
216
|
-
top:
|
|
216
|
+
top: 0,
|
|
217
|
+
bottom: 0,
|
|
218
|
+
gutter: 0
|
|
217
219
|
},
|
|
218
220
|
orientation: 'portrait'
|
|
219
221
|
};
|