@itshixun/qckeditor-vue3 1.0.17 → 1.1.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/README.md +28 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +30 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4778 -4402
- package/dist/src/components/QCKContent.vue.d.ts +4 -1
- package/dist/src/components/QCKContent.vue.d.ts.map +1 -1
- package/dist/src/components/QCKEditorPro.vue.d.ts +10 -1
- package/dist/src/components/QCKEditorPro.vue.d.ts.map +1 -1
- package/dist/src/components/QCKImageViewer.vue.d.ts +15 -0
- package/dist/src/components/QCKImageViewer.vue.d.ts.map +1 -0
- package/dist/src/types.d.ts +14 -0
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { QCKImagePreviewOptions } from '../types';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
content?: string;
|
|
3
4
|
containerClass?: string;
|
|
@@ -5,6 +6,7 @@ type __VLS_Props = {
|
|
|
5
6
|
math?: boolean;
|
|
6
7
|
highlightCode?: boolean;
|
|
7
8
|
fontSize?: number;
|
|
9
|
+
imagePreview?: boolean | QCKImagePreviewOptions;
|
|
8
10
|
};
|
|
9
11
|
type __VLS_PublicProps = {
|
|
10
12
|
modelValue?: string;
|
|
@@ -20,8 +22,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
20
22
|
sanitize: boolean;
|
|
21
23
|
math: boolean;
|
|
22
24
|
highlightCode: boolean;
|
|
25
|
+
imagePreview: boolean | QCKImagePreviewOptions;
|
|
23
26
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
27
|
container: HTMLDivElement;
|
|
25
|
-
},
|
|
28
|
+
}, any>;
|
|
26
29
|
export default _default;
|
|
27
30
|
//# sourceMappingURL=QCKContent.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCKContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCKContent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QCKContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCKContent.vue"],"names":[],"mappings":"AAkBA;AAkUA,OAAO,yBAAyB,CAAC;AACjC,OAAO,0BAA0B,CAAC;AAGlC,OAAO,uCAAuC,CAAC;AAE/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AASvD,KAAK,WAAW,GAAG;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,GAAG,sBAAsB,CAAC;CACjD,CAAC;AAuPJ,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;;;;;;cA3PD,MAAM;aALP,MAAM;oBACC,MAAM;cACZ,OAAO;UACX,OAAO;mBACE,OAAO;kBAER,OAAO,GAAG,sBAAsB;;;;AAsVnD,wBASG"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { ClassicEditor, EditorConfig, EventInfo } from 'ckeditor5';
|
|
2
|
+
import { QCKImagePreviewOptions } from '../types';
|
|
3
|
+
/** 退出被阻止的原因:pending-actions=编辑器内部异步操作;prop=外部 disableExit 开关 */
|
|
4
|
+
type ExitBlockedReason = "pending-actions" | "prop";
|
|
2
5
|
type __VLS_Props = {
|
|
3
6
|
config?: EditorConfig;
|
|
4
7
|
tagName?: string;
|
|
5
8
|
disabled?: boolean;
|
|
6
9
|
disableTwoWayDataBinding?: boolean;
|
|
10
|
+
disableExit?: boolean;
|
|
7
11
|
content?: string;
|
|
8
12
|
containerClass?: string;
|
|
9
13
|
sanitize?: boolean;
|
|
@@ -14,6 +18,7 @@ type __VLS_Props = {
|
|
|
14
18
|
contentBgColor?: string;
|
|
15
19
|
contentBgHoverColor?: string;
|
|
16
20
|
borderRadius?: number;
|
|
21
|
+
imagePreview?: boolean | QCKImagePreviewOptions;
|
|
17
22
|
};
|
|
18
23
|
type __VLS_PublicProps = {
|
|
19
24
|
modelValue?: string;
|
|
@@ -25,6 +30,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
25
30
|
"update:modelValue": (value: string) => any;
|
|
26
31
|
ready: (editor: ClassicEditor) => any;
|
|
27
32
|
destroy: () => any;
|
|
33
|
+
"exit-blocked": (reason: ExitBlockedReason) => any;
|
|
28
34
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
35
|
onBlur?: ((event: EventInfo<string, unknown>, editor: ClassicEditor) => any) | undefined;
|
|
30
36
|
onFocus?: ((event: EventInfo<string, unknown>, editor: ClassicEditor) => any) | undefined;
|
|
@@ -32,17 +38,20 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
32
38
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
33
39
|
onReady?: ((editor: ClassicEditor) => any) | undefined;
|
|
34
40
|
onDestroy?: (() => any) | undefined;
|
|
41
|
+
"onExit-blocked"?: ((reason: ExitBlockedReason) => any) | undefined;
|
|
35
42
|
}>, {
|
|
36
43
|
config: EditorConfig;
|
|
37
44
|
tagName: string;
|
|
38
45
|
disabled: boolean;
|
|
39
46
|
disableTwoWayDataBinding: boolean;
|
|
40
47
|
placeholder: string;
|
|
48
|
+
height: number;
|
|
41
49
|
content: string;
|
|
42
50
|
containerClass: string;
|
|
43
51
|
sanitize: boolean;
|
|
52
|
+
imagePreview: boolean | QCKImagePreviewOptions;
|
|
53
|
+
disableExit: boolean;
|
|
44
54
|
minHeight: number;
|
|
45
|
-
height: number;
|
|
46
55
|
fitHeight: boolean;
|
|
47
56
|
contentBgColor: string;
|
|
48
57
|
contentBgHoverColor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCKEditorPro.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCKEditorPro.vue"],"names":[],"mappings":"AAwCA;
|
|
1
|
+
{"version":3,"file":"QCKEditorPro.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCKEditorPro.vue"],"names":[],"mappings":"AAwCA;AA4YA,OAAO,EACL,aAAa,EAEb,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,EAAqB,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAI1E,gEAAgE;AAChE,KAAK,iBAAiB,GAAG,iBAAiB,GAAG,MAAM,CAAC;AAQpD,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,GAAG,sBAAsB,CAAC;CACjD,CAAC;AA0RJ,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;YA5SH,YAAY;aACX,MAAM;cACL,OAAO;8BACS,OAAO;iBAKpB,MAAM;YAEX,MAAM;aALL,MAAM;oBACC,MAAM;cACZ,OAAO;kBAQH,OAAO,GAAG,sBAAsB;iBAXjC,OAAO;eAKT,MAAM;eAEN,OAAO;oBACF,MAAM;yBACD,MAAM;kBACb,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6azB,wBAUG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { QCKImagePreviewOptions } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
images: string[];
|
|
4
|
+
initialIndex: number;
|
|
5
|
+
options: Required<QCKImagePreviewOptions>;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
close: () => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onClose?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
12
|
+
overlayRef: HTMLDivElement;
|
|
13
|
+
}, any>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=QCKImageViewer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QCKImageViewer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCKImageViewer.vue"],"names":[],"mappings":"AAyFA;AA6ZA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAMvD,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC;CAC3C,CAAC;;;;;;;;AA+dF,wBASG"}
|
package/dist/src/types.d.ts
CHANGED
|
@@ -24,4 +24,18 @@ export interface Props<TEditor> {
|
|
|
24
24
|
export type ExtractEditorType<TEditor> = TEditor extends {
|
|
25
25
|
create(...args: Array<any>): Promise<infer E>;
|
|
26
26
|
} ? E : never;
|
|
27
|
+
/**
|
|
28
|
+
* QCKContent 图片预览选项。
|
|
29
|
+
* 传 true 等价于全默认配置;传对象可覆盖对应项。
|
|
30
|
+
*/
|
|
31
|
+
export interface QCKImagePreviewOptions {
|
|
32
|
+
/** 弹层 z-index,默认 2100 */
|
|
33
|
+
zIndex?: number;
|
|
34
|
+
/** 切换到底/顶后是否循环,默认 true */
|
|
35
|
+
loop?: boolean;
|
|
36
|
+
/** 底部缩略图栏(图片数 > 1 时显示),默认 true */
|
|
37
|
+
navbar?: boolean;
|
|
38
|
+
/** 是否显示全屏按钮,默认 true */
|
|
39
|
+
fullscreen?: boolean;
|
|
40
|
+
}
|
|
27
41
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C;;;;;;GAMG;AAEH;;GAEG;AACH,MAAM,WAAW,KAAK,CAAC,OAAO;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C,QAAQ,CAAC,EAAE,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