@juzhenfe/modules 2.4.4 → 2.5.0
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/dist/index.min.js +4 -4
- package/dist/packages/ck-editor/index.d.ts +3 -0
- package/dist/packages/ck-editor/src/editor.vue.d.ts +21 -0
- package/dist/packages/ck-editor/src/index.vue.d.ts +49 -0
- package/dist/packages/ck-editor/src/utils/load.d.ts +3 -0
- package/dist/packages/utils/upload/index.d.ts +1 -1
- package/dist/packages/utils/upload/trigger.d.ts +1 -6
- package/dist/types/editor.d.ts +1 -0
- package/package.json +56 -55
- package/dist/index.min.css +0 -203
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { SCFInstall } from '../../types/type';
|
|
2
|
+
declare const _Editor: SCFInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
3
|
+
export default _Editor;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
modelValue: any;
|
|
3
|
+
init: any;
|
|
4
|
+
loadPath: any;
|
|
5
|
+
defineEditors: any;
|
|
6
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
modelValue: any;
|
|
10
|
+
init: any;
|
|
11
|
+
loadPath: any;
|
|
12
|
+
defineEditors: any;
|
|
13
|
+
}>> & {
|
|
14
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
15
|
+
}, {
|
|
16
|
+
modelValue: any;
|
|
17
|
+
init: any;
|
|
18
|
+
loadPath: any;
|
|
19
|
+
defineEditors: any;
|
|
20
|
+
}>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
modelValue: any;
|
|
3
|
+
extraConfig: any;
|
|
4
|
+
height: {
|
|
5
|
+
default: number;
|
|
6
|
+
};
|
|
7
|
+
width: {
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
qiniu: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
14
|
+
getSrc: any;
|
|
15
|
+
settleResult: any;
|
|
16
|
+
loadPath: any;
|
|
17
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("upload-error" | "upload-success" | "update:modelValue")[], "upload-error" | "upload-success" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
modelValue: any;
|
|
21
|
+
extraConfig: any;
|
|
22
|
+
height: {
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
width: {
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
qiniu: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: any;
|
|
31
|
+
};
|
|
32
|
+
getSrc: any;
|
|
33
|
+
settleResult: any;
|
|
34
|
+
loadPath: any;
|
|
35
|
+
}>> & {
|
|
36
|
+
"onUpload-error"?: (...args: any[]) => any;
|
|
37
|
+
"onUpload-success"?: (...args: any[]) => any;
|
|
38
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
39
|
+
}, {
|
|
40
|
+
modelValue: any;
|
|
41
|
+
extraConfig: any;
|
|
42
|
+
height: number;
|
|
43
|
+
width: string;
|
|
44
|
+
qiniu: boolean;
|
|
45
|
+
getSrc: any;
|
|
46
|
+
settleResult: any;
|
|
47
|
+
loadPath: any;
|
|
48
|
+
}>;
|
|
49
|
+
export default _default;
|
|
@@ -2,7 +2,7 @@ import NormalUploader from './normal-uploader';
|
|
|
2
2
|
import QiniuUploader from './qiniu-uploader';
|
|
3
3
|
import UploadTrigger from './trigger';
|
|
4
4
|
export interface Upload {
|
|
5
|
-
(filelist:
|
|
5
|
+
(filelist: FileList, data?: JuzhenUpload.UploadData): Promise<JuzhenUpload.UploadResultModel>;
|
|
6
6
|
uploader: NormalUploader | QiniuUploader;
|
|
7
7
|
_trigger: UploadTrigger;
|
|
8
8
|
trigger: UploadTrigger['trigger'];
|
|
@@ -3,22 +3,17 @@ interface UploadTriggerModify {
|
|
|
3
3
|
multiple?: boolean;
|
|
4
4
|
}
|
|
5
5
|
interface UploadTriggerOpt extends UploadTriggerModify {
|
|
6
|
-
onchange: (files:
|
|
7
|
-
CancelToken: any;
|
|
8
|
-
saveOriginName?: boolean;
|
|
6
|
+
onchange: (files: FileList) => any;
|
|
9
7
|
}
|
|
10
8
|
export default class UploadTrigger {
|
|
11
9
|
accept: string;
|
|
12
10
|
multiple: boolean;
|
|
13
11
|
targetElement: HTMLInputElement;
|
|
14
12
|
onchange: UploadTriggerOpt['onchange'];
|
|
15
|
-
CancelToken: any;
|
|
16
|
-
saveOriginName: boolean;
|
|
17
13
|
constructor(opt: UploadTriggerOpt);
|
|
18
14
|
get value(): string;
|
|
19
15
|
trigger(): void;
|
|
20
16
|
createTarget(): HTMLInputElement;
|
|
21
|
-
progressFiles(files: FileList): Promise<JuzhenUpload.MyFile[]>;
|
|
22
17
|
updateTarget(opt: UploadTriggerModify): void;
|
|
23
18
|
clear(): void;
|
|
24
19
|
}
|
package/dist/types/editor.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,55 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@juzhenfe/modules",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"main": "dist/index.min.js",
|
|
5
|
-
"types": "dist/packages/modules/index.d.ts",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "lerna bootstrap && vite --force",
|
|
8
|
-
"build": "cross-env NODE_ENV=production rollup -c ./build/rollup.config.js",
|
|
9
|
-
"clean": "rimraf dist",
|
|
10
|
-
"build:type": "node ./build/build-type.js",
|
|
11
|
-
"build:es": "npm run clean && lerna bootstrap && npm run build && npm run build:type",
|
|
12
|
-
"pub": "npm publish --access public",
|
|
13
|
-
"version": "npm run build:es && npm run pub"
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@babel/core": "^7.15.8",
|
|
20
|
-
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
21
|
-
"@babel/preset-env": "^7.15.8",
|
|
22
|
-
"@juzhenfe/page-model": "^1.11.7",
|
|
23
|
-
"@juzhenfe/request": "^1.6.1",
|
|
24
|
-
"@rollup/plugin-babel": "^5.3.0",
|
|
25
|
-
"@rollup/plugin-commonjs": "^18.1.0",
|
|
26
|
-
"@rollup/plugin-image": "^2.0.6",
|
|
27
|
-
"@rollup/plugin-json": "^4.1.0",
|
|
28
|
-
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
29
|
-
"@rollup/plugin-typescript": "^8.2.1",
|
|
30
|
-
"@vitejs/plugin-vue": "^1.2.3",
|
|
31
|
-
"@vitejs/plugin-vue-jsx": "^1.1.5",
|
|
32
|
-
"@vue/compiler-sfc": "^3.1.2",
|
|
33
|
-
"clipboard": "^2.0.8",
|
|
34
|
-
"core-js": "^3.15.1",
|
|
35
|
-
"cross-env": "^7.0.3",
|
|
36
|
-
"element-plus": "^2.0.5",
|
|
37
|
-
"lerna": "^4.0.0",
|
|
38
|
-
"rimraf": "^3.0.2",
|
|
39
|
-
"rollup": "^2.60.1",
|
|
40
|
-
"rollup-plugin-scss": "^2.6.1",
|
|
41
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
42
|
-
"rollup-plugin-typescript2": "^0.30.0",
|
|
43
|
-
"rollup-plugin-vue": "^6.0.0",
|
|
44
|
-
"sass": "^1.43.4",
|
|
45
|
-
"the-answer": "^1.0.0",
|
|
46
|
-
"typescript": "^4.3.4",
|
|
47
|
-
"vite": "^2.8.6",
|
|
48
|
-
"vue": "^3.2.31",
|
|
49
|
-
"vue-router": "^4.0.12",
|
|
50
|
-
"vue-tsc": "^0.1.7"
|
|
51
|
-
},
|
|
52
|
-
"dependencies": {
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@juzhenfe/modules",
|
|
3
|
+
"version": "2.5.0",
|
|
4
|
+
"main": "dist/index.min.js",
|
|
5
|
+
"types": "dist/packages/modules/index.d.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "lerna bootstrap && vite --force",
|
|
8
|
+
"build": "cross-env NODE_ENV=production rollup -c ./build/rollup.config.js",
|
|
9
|
+
"clean": "rimraf dist",
|
|
10
|
+
"build:type": "node ./build/build-type.js",
|
|
11
|
+
"build:es": "npm run clean && lerna bootstrap && npm run build && npm run build:type",
|
|
12
|
+
"pub": "npm publish --access public",
|
|
13
|
+
"version": "npm run build:es && npm run pub"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@babel/core": "^7.15.8",
|
|
20
|
+
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
21
|
+
"@babel/preset-env": "^7.15.8",
|
|
22
|
+
"@juzhenfe/page-model": "^1.11.7",
|
|
23
|
+
"@juzhenfe/request": "^1.6.1",
|
|
24
|
+
"@rollup/plugin-babel": "^5.3.0",
|
|
25
|
+
"@rollup/plugin-commonjs": "^18.1.0",
|
|
26
|
+
"@rollup/plugin-image": "^2.0.6",
|
|
27
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
28
|
+
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
29
|
+
"@rollup/plugin-typescript": "^8.2.1",
|
|
30
|
+
"@vitejs/plugin-vue": "^1.2.3",
|
|
31
|
+
"@vitejs/plugin-vue-jsx": "^1.1.5",
|
|
32
|
+
"@vue/compiler-sfc": "^3.1.2",
|
|
33
|
+
"clipboard": "^2.0.8",
|
|
34
|
+
"core-js": "^3.15.1",
|
|
35
|
+
"cross-env": "^7.0.3",
|
|
36
|
+
"element-plus": "^2.0.5",
|
|
37
|
+
"lerna": "^4.0.0",
|
|
38
|
+
"rimraf": "^3.0.2",
|
|
39
|
+
"rollup": "^2.60.1",
|
|
40
|
+
"rollup-plugin-scss": "^2.6.1",
|
|
41
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
42
|
+
"rollup-plugin-typescript2": "^0.30.0",
|
|
43
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
44
|
+
"sass": "^1.43.4",
|
|
45
|
+
"the-answer": "^1.0.0",
|
|
46
|
+
"typescript": "^4.3.4",
|
|
47
|
+
"vite": "^2.8.6",
|
|
48
|
+
"vue": "^3.2.31",
|
|
49
|
+
"vue-router": "^4.0.12",
|
|
50
|
+
"vue-tsc": "^0.1.7"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@types/ckeditor__ckeditor5-build-classic": "^29.0.1",
|
|
54
|
+
"echarts": "^5.1.2"
|
|
55
|
+
}
|
|
56
|
+
}
|
package/dist/index.min.css
DELETED
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
.uploader .upload-item {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
vertical-align: top;
|
|
4
|
-
text-align: center;
|
|
5
|
-
margin-right: 10px;
|
|
6
|
-
margin-bottom: 10px;
|
|
7
|
-
position: relative;
|
|
8
|
-
background-color: #fbfdff;
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
border-radius: 4px;
|
|
11
|
-
width: 98px;
|
|
12
|
-
height: 98px;
|
|
13
|
-
line-height: 98px;
|
|
14
|
-
font-size: 0;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
border: 1px solid #ddd; }
|
|
17
|
-
.uploader .upload-item.empty {
|
|
18
|
-
border: 1px dashed #c0ccda; }
|
|
19
|
-
.uploader .upload-item.slot {
|
|
20
|
-
border: none; }
|
|
21
|
-
.uploader .upload-item.image {
|
|
22
|
-
width: 98px;
|
|
23
|
-
height: 98px;
|
|
24
|
-
line-height: 98px;
|
|
25
|
-
font-size: 0; }
|
|
26
|
-
.uploader .upload-item.image > div:first-child {
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%; }
|
|
29
|
-
.uploader .upload-item.image.has-value {
|
|
30
|
-
border: 1px solid #c0ccda; }
|
|
31
|
-
.uploader .upload-item.video {
|
|
32
|
-
width: 300px;
|
|
33
|
-
height: 200px;
|
|
34
|
-
line-height: 200px; }
|
|
35
|
-
.uploader .upload-item.video .uploader-icon {
|
|
36
|
-
font-size: 50px; }
|
|
37
|
-
.uploader .upload-item.audio {
|
|
38
|
-
width: 300px;
|
|
39
|
-
height: 100px;
|
|
40
|
-
line-height: 100px; }
|
|
41
|
-
.uploader .upload-item.audio .uploader-icon {
|
|
42
|
-
font-size: 50px; }
|
|
43
|
-
.uploader .upload-item .upload-img {
|
|
44
|
-
width: 100%;
|
|
45
|
-
height: 100%;
|
|
46
|
-
background-repeat: no-repeat;
|
|
47
|
-
background-position: center;
|
|
48
|
-
background-size: contain; }
|
|
49
|
-
.uploader .upload-item audio {
|
|
50
|
-
vertical-align: middle; }
|
|
51
|
-
.uploader .upload-item .image-wrap {
|
|
52
|
-
width: 100%;
|
|
53
|
-
height: 100%; }
|
|
54
|
-
.uploader .upload-item .video-wrap, .uploader .upload-item video {
|
|
55
|
-
height: 100%;
|
|
56
|
-
width: 100%; }
|
|
57
|
-
.uploader .upload-item .file-wrap {
|
|
58
|
-
display: inline-flex;
|
|
59
|
-
flex-direction: column;
|
|
60
|
-
align-items: center;
|
|
61
|
-
justify-content: center;
|
|
62
|
-
vertical-align: middle;
|
|
63
|
-
font-size: 12px;
|
|
64
|
-
white-space: pre-wrap;
|
|
65
|
-
word-break: break-all;
|
|
66
|
-
color: #666;
|
|
67
|
-
line-height: 1.2;
|
|
68
|
-
padding: 0 5px; }
|
|
69
|
-
.uploader .upload-item .file-wrap .file-name {
|
|
70
|
-
margin-top: 4px; }
|
|
71
|
-
.uploader .upload-item .uploader-icon {
|
|
72
|
-
font-size: 50px;
|
|
73
|
-
color: #8c939d;
|
|
74
|
-
text-align: center;
|
|
75
|
-
vertical-align: middle;
|
|
76
|
-
font-weight: 100;
|
|
77
|
-
transform: translateY(-4px); }
|
|
78
|
-
.uploader .upload-item:hover .uploader__item-actions {
|
|
79
|
-
z-index: 1;
|
|
80
|
-
opacity: 1; }
|
|
81
|
-
|
|
82
|
-
.uploader .uploader__item-actions {
|
|
83
|
-
position: absolute;
|
|
84
|
-
top: 0;
|
|
85
|
-
left: 0;
|
|
86
|
-
width: 100%;
|
|
87
|
-
height: 30px;
|
|
88
|
-
line-height: 30px;
|
|
89
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
90
|
-
font-size: 12px;
|
|
91
|
-
color: #fff;
|
|
92
|
-
z-index: -1;
|
|
93
|
-
opacity: 0;
|
|
94
|
-
transition: all .3s; }
|
|
95
|
-
.uploader .uploader__item-actions > span {
|
|
96
|
-
margin: 0 4px; }
|
|
97
|
-
|
|
98
|
-
.tinymce-container {
|
|
99
|
-
position: relative;
|
|
100
|
-
line-height: normal; }
|
|
101
|
-
.tinymce-container .tinymce-container > > > .mce-fullscreen {
|
|
102
|
-
z-index: 10000; }
|
|
103
|
-
.tinymce-container .tinymce-textarea {
|
|
104
|
-
visibility: hidden;
|
|
105
|
-
z-index: -1; }
|
|
106
|
-
.tinymce-container .editor-custom-btn-container {
|
|
107
|
-
position: absolute;
|
|
108
|
-
right: 4px;
|
|
109
|
-
top: 4px;
|
|
110
|
-
z-index: 2; }
|
|
111
|
-
.tinymce-container .fullscreen .editor-custom-btn-container {
|
|
112
|
-
z-index: 10000;
|
|
113
|
-
position: fixed; }
|
|
114
|
-
.tinymce-container .editor-upload-btn {
|
|
115
|
-
display: inline-block; }
|
|
116
|
-
|
|
117
|
-
.juzhen-images {
|
|
118
|
-
font-size: 0;
|
|
119
|
-
line-height: 1; }
|
|
120
|
-
.juzhen-images .img-item {
|
|
121
|
-
display: inline-block;
|
|
122
|
-
background-position: center;
|
|
123
|
-
background-repeat: no-repeat;
|
|
124
|
-
box-sizing: border-box; }
|
|
125
|
-
.juzhen-images .img-item.isclick {
|
|
126
|
-
cursor: pointer; }
|
|
127
|
-
.juzhen-images .img-item.avatar {
|
|
128
|
-
border-radius: 50%; }
|
|
129
|
-
.juzhen-images .img-item.border {
|
|
130
|
-
border: 1px solid #E8E8E8; }
|
|
131
|
-
.juzhen-images .img-item + .img-item {
|
|
132
|
-
margin-left: 10px; }
|
|
133
|
-
|
|
134
|
-
.jz_long-input .el-long-input textarea {
|
|
135
|
-
padding-right: 40px;
|
|
136
|
-
resize: none;
|
|
137
|
-
border: none;
|
|
138
|
-
border-radius: 0;
|
|
139
|
-
border-bottom: 1px solid #bfcbd9; }
|
|
140
|
-
|
|
141
|
-
.jz_long-input .content-length {
|
|
142
|
-
position: absolute;
|
|
143
|
-
right: 0;
|
|
144
|
-
color: #666;
|
|
145
|
-
font-size: 14px; }
|
|
146
|
-
|
|
147
|
-
.juzhen-amap[data-v-1568923a] {
|
|
148
|
-
position: relative; }
|
|
149
|
-
|
|
150
|
-
.map-container[data-v-1568923a] {
|
|
151
|
-
height: 100%; }
|
|
152
|
-
|
|
153
|
-
.map-search[data-v-1568923a] {
|
|
154
|
-
position: absolute;
|
|
155
|
-
top: 10px;
|
|
156
|
-
right: 10px;
|
|
157
|
-
z-index: 9;
|
|
158
|
-
width: 200px; }
|
|
159
|
-
|
|
160
|
-
.chart[data-v-68fa3b9e] {
|
|
161
|
-
height: 100%; }
|
|
162
|
-
|
|
163
|
-
.file-icon[data-v-03dc6aae] {
|
|
164
|
-
width: 36px;
|
|
165
|
-
height: 36px; }
|
|
166
|
-
|
|
167
|
-
.uploader_loading-mask {
|
|
168
|
-
position: absolute;
|
|
169
|
-
top: 0;
|
|
170
|
-
left: 0;
|
|
171
|
-
right: 0;
|
|
172
|
-
bottom: 0;
|
|
173
|
-
background-color: rgba(255, 255, 255, 0.9);
|
|
174
|
-
z-index: 1; }
|
|
175
|
-
.uploader_loading-mask .loading-content {
|
|
176
|
-
position: absolute;
|
|
177
|
-
top: 50%;
|
|
178
|
-
transform: translateY(-50%);
|
|
179
|
-
left: 0;
|
|
180
|
-
right: 0;
|
|
181
|
-
line-height: 1;
|
|
182
|
-
text-align: center;
|
|
183
|
-
font-size: 12px; }
|
|
184
|
-
.uploader_loading-mask .loading-text {
|
|
185
|
-
color: #666;
|
|
186
|
-
padding: 0.5em 0; }
|
|
187
|
-
.uploader_loading-mask .progress-box {
|
|
188
|
-
display: inline-block;
|
|
189
|
-
position: relative;
|
|
190
|
-
height: 10px;
|
|
191
|
-
overflow: hidden;
|
|
192
|
-
width: 80%;
|
|
193
|
-
background-color: #8c939d;
|
|
194
|
-
border-radius: 10px; }
|
|
195
|
-
.uploader_loading-mask .progress-bar {
|
|
196
|
-
position: absolute;
|
|
197
|
-
left: 0;
|
|
198
|
-
top: 0;
|
|
199
|
-
bottom: 0;
|
|
200
|
-
background-color: #42b983;
|
|
201
|
-
z-index: 1; }
|
|
202
|
-
.uploader_loading-mask .btn-cancel {
|
|
203
|
-
color: #999; }
|