@juzhenfe/modules 2.4.3 → 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.
@@ -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;
@@ -0,0 +1,3 @@
1
+ export default function setup(): {
2
+ loadEditor: (path?: string[]) => Promise<any>;
3
+ };
@@ -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: JuzhenUpload.MyFile[], data?: JuzhenUpload.UploadData): Promise<JuzhenUpload.UploadResultModel>;
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: JuzhenUpload.MyFile[]) => any;
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
  }
@@ -6,6 +6,7 @@ declare namespace JuzhenEditor {
6
6
  init: Function;
7
7
  get: (id: string) => Editor;
8
8
  };
9
+ ClassicEditor?: any;
9
10
  }
10
11
 
11
12
  interface Editor {
package/package.json CHANGED
@@ -1,55 +1,56 @@
1
- {
2
- "name": "@juzhenfe/modules",
3
- "version": "2.4.3",
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
- "echarts": "^5.1.2"
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
+ }
@@ -1,203 +0,0 @@
1
- .tinymce-container {
2
- position: relative;
3
- line-height: normal; }
4
- .tinymce-container .tinymce-container > > > .mce-fullscreen {
5
- z-index: 10000; }
6
- .tinymce-container .tinymce-textarea {
7
- visibility: hidden;
8
- z-index: -1; }
9
- .tinymce-container .editor-custom-btn-container {
10
- position: absolute;
11
- right: 4px;
12
- top: 4px;
13
- z-index: 2; }
14
- .tinymce-container .fullscreen .editor-custom-btn-container {
15
- z-index: 10000;
16
- position: fixed; }
17
- .tinymce-container .editor-upload-btn {
18
- display: inline-block; }
19
-
20
- .juzhen-images {
21
- font-size: 0;
22
- line-height: 1; }
23
- .juzhen-images .img-item {
24
- display: inline-block;
25
- background-position: center;
26
- background-repeat: no-repeat;
27
- box-sizing: border-box; }
28
- .juzhen-images .img-item.isclick {
29
- cursor: pointer; }
30
- .juzhen-images .img-item.avatar {
31
- border-radius: 50%; }
32
- .juzhen-images .img-item.border {
33
- border: 1px solid #E8E8E8; }
34
- .juzhen-images .img-item + .img-item {
35
- margin-left: 10px; }
36
-
37
- .juzhen-amap[data-v-1568923a] {
38
- position: relative; }
39
-
40
- .map-container[data-v-1568923a] {
41
- height: 100%; }
42
-
43
- .map-search[data-v-1568923a] {
44
- position: absolute;
45
- top: 10px;
46
- right: 10px;
47
- z-index: 9;
48
- width: 200px; }
49
-
50
- .jz_long-input .el-long-input textarea {
51
- padding-right: 40px;
52
- resize: none;
53
- border: none;
54
- border-radius: 0;
55
- border-bottom: 1px solid #bfcbd9; }
56
-
57
- .jz_long-input .content-length {
58
- position: absolute;
59
- right: 0;
60
- color: #666;
61
- font-size: 14px; }
62
-
63
- .chart[data-v-68fa3b9e] {
64
- height: 100%; }
65
-
66
- .uploader .upload-item {
67
- display: inline-block;
68
- vertical-align: top;
69
- text-align: center;
70
- margin-right: 10px;
71
- margin-bottom: 10px;
72
- position: relative;
73
- background-color: #fbfdff;
74
- cursor: pointer;
75
- border-radius: 4px;
76
- width: 98px;
77
- height: 98px;
78
- line-height: 98px;
79
- font-size: 0;
80
- overflow: hidden;
81
- border: 1px solid #ddd; }
82
- .uploader .upload-item.empty {
83
- border: 1px dashed #c0ccda; }
84
- .uploader .upload-item.slot {
85
- border: none; }
86
- .uploader .upload-item.image {
87
- width: 98px;
88
- height: 98px;
89
- line-height: 98px;
90
- font-size: 0; }
91
- .uploader .upload-item.image > div:first-child {
92
- width: 100%;
93
- height: 100%; }
94
- .uploader .upload-item.image.has-value {
95
- border: 1px solid #c0ccda; }
96
- .uploader .upload-item.video {
97
- width: 300px;
98
- height: 200px;
99
- line-height: 200px; }
100
- .uploader .upload-item.video .uploader-icon {
101
- font-size: 50px; }
102
- .uploader .upload-item.audio {
103
- width: 300px;
104
- height: 100px;
105
- line-height: 100px; }
106
- .uploader .upload-item.audio .uploader-icon {
107
- font-size: 50px; }
108
- .uploader .upload-item .upload-img {
109
- width: 100%;
110
- height: 100%;
111
- background-repeat: no-repeat;
112
- background-position: center;
113
- background-size: contain; }
114
- .uploader .upload-item audio {
115
- vertical-align: middle; }
116
- .uploader .upload-item .image-wrap {
117
- width: 100%;
118
- height: 100%; }
119
- .uploader .upload-item .video-wrap, .uploader .upload-item video {
120
- height: 100%;
121
- width: 100%; }
122
- .uploader .upload-item .file-wrap {
123
- display: inline-flex;
124
- flex-direction: column;
125
- align-items: center;
126
- justify-content: center;
127
- vertical-align: middle;
128
- font-size: 12px;
129
- white-space: pre-wrap;
130
- word-break: break-all;
131
- color: #666;
132
- line-height: 1.2;
133
- padding: 0 5px; }
134
- .uploader .upload-item .file-wrap .file-name {
135
- margin-top: 4px; }
136
- .uploader .upload-item .uploader-icon {
137
- font-size: 50px;
138
- color: #8c939d;
139
- text-align: center;
140
- vertical-align: middle;
141
- font-weight: 100;
142
- transform: translateY(-4px); }
143
- .uploader .upload-item:hover .uploader__item-actions {
144
- z-index: 1;
145
- opacity: 1; }
146
-
147
- .uploader .uploader__item-actions {
148
- position: absolute;
149
- top: 0;
150
- left: 0;
151
- width: 100%;
152
- height: 30px;
153
- line-height: 30px;
154
- background-color: rgba(0, 0, 0, 0.5);
155
- font-size: 12px;
156
- color: #fff;
157
- z-index: -1;
158
- opacity: 0;
159
- transition: all .3s; }
160
- .uploader .uploader__item-actions > span {
161
- margin: 0 4px; }
162
-
163
- .uploader_loading-mask {
164
- position: absolute;
165
- top: 0;
166
- left: 0;
167
- right: 0;
168
- bottom: 0;
169
- background-color: rgba(255, 255, 255, 0.9);
170
- z-index: 1; }
171
- .uploader_loading-mask .loading-content {
172
- position: absolute;
173
- top: 50%;
174
- transform: translateY(-50%);
175
- left: 0;
176
- right: 0;
177
- line-height: 1;
178
- text-align: center;
179
- font-size: 12px; }
180
- .uploader_loading-mask .loading-text {
181
- color: #666;
182
- padding: 0.5em 0; }
183
- .uploader_loading-mask .progress-box {
184
- display: inline-block;
185
- position: relative;
186
- height: 10px;
187
- overflow: hidden;
188
- width: 80%;
189
- background-color: #8c939d;
190
- border-radius: 10px; }
191
- .uploader_loading-mask .progress-bar {
192
- position: absolute;
193
- left: 0;
194
- top: 0;
195
- bottom: 0;
196
- background-color: #42b983;
197
- z-index: 1; }
198
- .uploader_loading-mask .btn-cancel {
199
- color: #999; }
200
-
201
- .file-icon[data-v-03dc6aae] {
202
- width: 36px;
203
- height: 36px; }