@jx3box/jx3box-editor 3.2.12 → 3.2.14
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/config/global.js +22 -3
- package/package.json +1 -1
- package/src/Upload.vue +3 -3
- package/src/assets/css/tinymce/table.less +12 -1
package/config/global.js
CHANGED
|
@@ -74,6 +74,25 @@ module.exports = {
|
|
|
74
74
|
|
|
75
75
|
// 上传组件
|
|
76
76
|
/*------------------*/
|
|
77
|
-
imgTypes: ["jpg", "png", "gif", "bmp", "webp", "jpeg", "heic", "heif", "avif", "tif", "tiff","svg"],
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
imgTypes: ["jpg", "png", "gif", "bmp", "webp", "jpeg", "heic", "heif", "avif", "tif", "tiff", "svg"],
|
|
78
|
+
uploadAccept: [
|
|
79
|
+
"image/*",
|
|
80
|
+
".svg",
|
|
81
|
+
".txt",
|
|
82
|
+
".csv",
|
|
83
|
+
".jx3dat",
|
|
84
|
+
".dat",
|
|
85
|
+
".pdf",
|
|
86
|
+
".zip",
|
|
87
|
+
".rar",
|
|
88
|
+
".7z",
|
|
89
|
+
".doc",
|
|
90
|
+
".docx",
|
|
91
|
+
".xls",
|
|
92
|
+
".xlsx",
|
|
93
|
+
".ttf",
|
|
94
|
+
".blueprint",
|
|
95
|
+
".blueprintx",
|
|
96
|
+
].join(","),
|
|
97
|
+
videoTypes: ["mp4", "mov", "avi", "flv", "3gp", "wmv", "mkv", "webm", "m4v"],
|
|
98
|
+
};
|
package/package.json
CHANGED
package/src/Upload.vue
CHANGED
|
@@ -87,12 +87,12 @@
|
|
|
87
87
|
import axios from "axios";
|
|
88
88
|
import { Delete, Plus, UploadFilled, ZoomIn } from "@element-plus/icons-vue";
|
|
89
89
|
import JX3BOX from "@jx3box/jx3box-common/data/jx3box.json";
|
|
90
|
-
import
|
|
90
|
+
import GlobalConf from "../config/global.js";
|
|
91
91
|
import { showImgPreview } from "./assets/js/renderImgPreview.js";
|
|
92
92
|
const { __cms } = JX3BOX;
|
|
93
93
|
const API = __cms + "api/cms/upload";
|
|
94
|
-
const imgtypes =
|
|
95
|
-
const DEFAULT_ACCEPT =
|
|
94
|
+
const imgtypes = GlobalConf.imgTypes;
|
|
95
|
+
const DEFAULT_ACCEPT = GlobalConf.uploadAccept;
|
|
96
96
|
|
|
97
97
|
export default {
|
|
98
98
|
name: "Upload",
|
|
@@ -26,10 +26,21 @@
|
|
|
26
26
|
tr:nth-child(2n + 1) {
|
|
27
27
|
background-color: #fafbfc;
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
// 有独立表头时,不把 tbody 的首行当作表头。
|
|
30
|
+
> thead > tr,
|
|
31
|
+
> tr:first-child,
|
|
32
|
+
> tbody:first-child > tr:first-child {
|
|
30
33
|
background-color: #fafbfc;
|
|
31
34
|
font-weight: 600;
|
|
32
35
|
}
|
|
36
|
+
// 独立表头之后,正文从白底开始交替。
|
|
37
|
+
> thead ~ tbody > tr {
|
|
38
|
+
background-color: #fff;
|
|
39
|
+
|
|
40
|
+
&:nth-child(2n) {
|
|
41
|
+
background-color: #fafbfc;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
33
44
|
}
|
|
34
45
|
}
|
|
35
46
|
|