@qxs-bns/components 0.0.1 → 0.0.2
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/index.cjs +1 -1
- package/package.json +3 -3
- package/package.json.cjs +1 -1
- package/package.json.js +1 -1
- package/src/defaults.cjs +1 -1
- package/src/file-upload/index.cjs +1 -1
- package/src/file-upload/src/file-upload.vue.cjs +1 -1
- package/src/file-upload/src/file-upload.vue.js +32 -33
- package/src/file-upload/src/file-upload.vue2.cjs +1 -1
- package/src/fixed-action-bar/index.cjs +1 -1
- package/src/fixed-action-bar/src/fixed-action-bar.vue.cjs +1 -1
- package/src/fixed-action-bar/src/fixed-action-bar.vue.js +31 -41
- package/src/fixed-action-bar/src/fixed-action-bar.vue2.cjs +1 -1
- package/src/image-upload/index.cjs +1 -1
- package/src/image-upload/src/image-upload.vue.cjs +1 -1
- package/src/image-upload/src/image-upload.vue.js +55 -56
- package/src/image-upload/src/image-upload.vue2.cjs +1 -1
- package/src/photo-crop-tool/index.cjs +1 -1
- package/src/photo-crop-tool/src/photo-crop-tool.vue.cjs +1 -1
- package/src/photo-crop-tool/src/photo-crop-tool.vue.js +117 -135
- package/src/photo-crop-tool/src/photo-crop-tool.vue2.cjs +1 -1
- package/types/index.d.ts +6 -1
- package/types/src/base/style/css.d.ts +0 -0
- package/types/src/base/style/index.d.ts +1 -0
- package/types/src/components.d.ts +4 -0
- package/types/src/defaults.d.ts +5 -0
- package/types/src/file-upload/index.d.ts +36 -0
- package/types/src/file-upload/src/file-upload.vue.d.ts +158 -0
- package/types/src/file-upload/style/index.d.ts +1 -0
- package/types/src/fixed-action-bar/index.d.ts +40 -0
- package/types/src/fixed-action-bar/src/fixed-action-bar.vue.d.ts +23 -0
- package/types/src/fixed-action-bar/style/index.d.ts +1 -0
- package/types/src/image-upload/index.d.ts +46 -0
- package/types/src/image-upload/src/image-upload.vue.d.ts +47 -0
- package/types/src/image-upload/style/index.d.ts +1 -0
- package/types/src/make-installer.d.ts +9 -0
- package/types/src/photo-crop-tool/index.d.ts +54 -0
- package/types/src/photo-crop-tool/src/composables.d.ts +6 -0
- package/types/src/photo-crop-tool/src/photo-crop-tool.vue.d.ts +65 -0
- package/types/src/photo-crop-tool/style/index.d.ts +1 -0
- package/types/src/rich-editor/index.d.ts +3 -0
- package/types/src/rich-editor/src/rich-editor.vue.d.ts +2 -0
- package/types/src/rich-editor/style/index.d.ts +1 -0
- package/types/src/withInstall.d.ts +4 -0
| @@ -0,0 +1,46 @@ | |
| 1 | 
            +
            declare const QxsImageUpload: import('../withInstall').SFCWithInstall<import('vue').DefineComponent<{
         | 
| 2 | 
            +
                action: import('element-plus').UploadProps["action"];
         | 
| 3 | 
            +
                headers?: import('element-plus').UploadProps["headers"];
         | 
| 4 | 
            +
                data?: import('element-plus').UploadProps["data"];
         | 
| 5 | 
            +
                name?: import('element-plus').UploadProps["name"];
         | 
| 6 | 
            +
                url?: string;
         | 
| 7 | 
            +
                size?: number;
         | 
| 8 | 
            +
                width?: number;
         | 
| 9 | 
            +
                accept?: string;
         | 
| 10 | 
            +
                height?: number;
         | 
| 11 | 
            +
                placeholder?: string;
         | 
| 12 | 
            +
                notip?: boolean;
         | 
| 13 | 
            +
                tipText?: string;
         | 
| 14 | 
            +
                beforeUpload?: import('element-plus').UploadProps["beforeUpload"];
         | 
| 15 | 
            +
            }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
         | 
| 16 | 
            +
                onSuccess: (res: any, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
         | 
| 17 | 
            +
                "update:url": (url: string) => void;
         | 
| 18 | 
            +
            }, string, import('vue').PublicProps, Readonly<{
         | 
| 19 | 
            +
                action: import('element-plus').UploadProps["action"];
         | 
| 20 | 
            +
                headers?: import('element-plus').UploadProps["headers"];
         | 
| 21 | 
            +
                data?: import('element-plus').UploadProps["data"];
         | 
| 22 | 
            +
                name?: import('element-plus').UploadProps["name"];
         | 
| 23 | 
            +
                url?: string;
         | 
| 24 | 
            +
                size?: number;
         | 
| 25 | 
            +
                width?: number;
         | 
| 26 | 
            +
                accept?: string;
         | 
| 27 | 
            +
                height?: number;
         | 
| 28 | 
            +
                placeholder?: string;
         | 
| 29 | 
            +
                notip?: boolean;
         | 
| 30 | 
            +
                tipText?: string;
         | 
| 31 | 
            +
                beforeUpload?: import('element-plus').UploadProps["beforeUpload"];
         | 
| 32 | 
            +
            }> & Readonly<{
         | 
| 33 | 
            +
                onOnSuccess?: ((res: any, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => any) | undefined;
         | 
| 34 | 
            +
                "onUpdate:url"?: ((url: string) => any) | undefined;
         | 
| 35 | 
            +
            }>, {
         | 
| 36 | 
            +
                name: import('element-plus').UploadProps["name"];
         | 
| 37 | 
            +
                accept: string;
         | 
| 38 | 
            +
                size: number;
         | 
| 39 | 
            +
                url: string;
         | 
| 40 | 
            +
                notip: boolean;
         | 
| 41 | 
            +
                height: number;
         | 
| 42 | 
            +
                width: number;
         | 
| 43 | 
            +
                placeholder: string;
         | 
| 44 | 
            +
            }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>> & Record<string, any>;
         | 
| 45 | 
            +
            export { QxsImageUpload, };
         | 
| 46 | 
            +
            export default QxsImageUpload;
         | 
| @@ -0,0 +1,47 @@ | |
| 1 | 
            +
            import { UploadFile, UploadFiles, UploadProps } from 'element-plus';
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            declare const _default: import('vue').DefineComponent<{
         | 
| 4 | 
            +
                action: UploadProps["action"];
         | 
| 5 | 
            +
                headers?: UploadProps["headers"];
         | 
| 6 | 
            +
                data?: UploadProps["data"];
         | 
| 7 | 
            +
                name?: UploadProps["name"];
         | 
| 8 | 
            +
                url?: string;
         | 
| 9 | 
            +
                size?: number;
         | 
| 10 | 
            +
                width?: number;
         | 
| 11 | 
            +
                accept?: string;
         | 
| 12 | 
            +
                height?: number;
         | 
| 13 | 
            +
                placeholder?: string;
         | 
| 14 | 
            +
                notip?: boolean;
         | 
| 15 | 
            +
                tipText?: string;
         | 
| 16 | 
            +
                beforeUpload?: UploadProps["beforeUpload"];
         | 
| 17 | 
            +
            }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
         | 
| 18 | 
            +
                onSuccess: (res: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
         | 
| 19 | 
            +
                "update:url": (url: string) => void;
         | 
| 20 | 
            +
            }, string, import('vue').PublicProps, Readonly<{
         | 
| 21 | 
            +
                action: UploadProps["action"];
         | 
| 22 | 
            +
                headers?: UploadProps["headers"];
         | 
| 23 | 
            +
                data?: UploadProps["data"];
         | 
| 24 | 
            +
                name?: UploadProps["name"];
         | 
| 25 | 
            +
                url?: string;
         | 
| 26 | 
            +
                size?: number;
         | 
| 27 | 
            +
                width?: number;
         | 
| 28 | 
            +
                accept?: string;
         | 
| 29 | 
            +
                height?: number;
         | 
| 30 | 
            +
                placeholder?: string;
         | 
| 31 | 
            +
                notip?: boolean;
         | 
| 32 | 
            +
                tipText?: string;
         | 
| 33 | 
            +
                beforeUpload?: UploadProps["beforeUpload"];
         | 
| 34 | 
            +
            }> & Readonly<{
         | 
| 35 | 
            +
                onOnSuccess?: ((res: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => any) | undefined;
         | 
| 36 | 
            +
                "onUpdate:url"?: ((url: string) => any) | undefined;
         | 
| 37 | 
            +
            }>, {
         | 
| 38 | 
            +
                name: UploadProps["name"];
         | 
| 39 | 
            +
                accept: string;
         | 
| 40 | 
            +
                size: number;
         | 
| 41 | 
            +
                url: string;
         | 
| 42 | 
            +
                notip: boolean;
         | 
| 43 | 
            +
                height: number;
         | 
| 44 | 
            +
                width: number;
         | 
| 45 | 
            +
                placeholder: string;
         | 
| 46 | 
            +
            }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
         | 
| 47 | 
            +
            export default _default;
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
             | 
| @@ -0,0 +1,54 @@ | |
| 1 | 
            +
            declare const QxsPhotoCropTool: import('../withInstall').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
         | 
| 2 | 
            +
                imgFile: {
         | 
| 3 | 
            +
                    type: import('vue').PropType<File>;
         | 
| 4 | 
            +
                    default: () => null;
         | 
| 5 | 
            +
                };
         | 
| 6 | 
            +
                aspectRatio: {
         | 
| 7 | 
            +
                    type: StringConstructor;
         | 
| 8 | 
            +
                    default: () => string;
         | 
| 9 | 
            +
                };
         | 
| 10 | 
            +
                defaultWidth: {
         | 
| 11 | 
            +
                    type: NumberConstructor;
         | 
| 12 | 
            +
                    default: () => number;
         | 
| 13 | 
            +
                };
         | 
| 14 | 
            +
                defaultHeight: {
         | 
| 15 | 
            +
                    type: NumberConstructor;
         | 
| 16 | 
            +
                    default: () => number;
         | 
| 17 | 
            +
                };
         | 
| 18 | 
            +
                zoomType: {
         | 
| 19 | 
            +
                    type: StringConstructor;
         | 
| 20 | 
            +
                    default: () => string;
         | 
| 21 | 
            +
                };
         | 
| 22 | 
            +
            }>, {
         | 
| 23 | 
            +
                crop: (img?: HTMLImageElement) => Promise<File | null>;
         | 
| 24 | 
            +
                resize: () => void;
         | 
| 25 | 
            +
            }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
         | 
| 26 | 
            +
                imgFile: {
         | 
| 27 | 
            +
                    type: import('vue').PropType<File>;
         | 
| 28 | 
            +
                    default: () => null;
         | 
| 29 | 
            +
                };
         | 
| 30 | 
            +
                aspectRatio: {
         | 
| 31 | 
            +
                    type: StringConstructor;
         | 
| 32 | 
            +
                    default: () => string;
         | 
| 33 | 
            +
                };
         | 
| 34 | 
            +
                defaultWidth: {
         | 
| 35 | 
            +
                    type: NumberConstructor;
         | 
| 36 | 
            +
                    default: () => number;
         | 
| 37 | 
            +
                };
         | 
| 38 | 
            +
                defaultHeight: {
         | 
| 39 | 
            +
                    type: NumberConstructor;
         | 
| 40 | 
            +
                    default: () => number;
         | 
| 41 | 
            +
                };
         | 
| 42 | 
            +
                zoomType: {
         | 
| 43 | 
            +
                    type: StringConstructor;
         | 
| 44 | 
            +
                    default: () => string;
         | 
| 45 | 
            +
                };
         | 
| 46 | 
            +
            }>> & Readonly<{}>, {
         | 
| 47 | 
            +
                imgFile: File;
         | 
| 48 | 
            +
                aspectRatio: string;
         | 
| 49 | 
            +
                defaultWidth: number;
         | 
| 50 | 
            +
                defaultHeight: number;
         | 
| 51 | 
            +
                zoomType: string;
         | 
| 52 | 
            +
            }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & Record<string, any>;
         | 
| 53 | 
            +
            export { QxsPhotoCropTool, };
         | 
| 54 | 
            +
            export default QxsPhotoCropTool;
         | 
| @@ -0,0 +1,6 @@ | |
| 1 | 
            +
            export declare function useCanvas(canvasElement: HTMLCanvasElement): {
         | 
| 2 | 
            +
                clearCanvas: () => void;
         | 
| 3 | 
            +
                drawColor: (x: number, y: number, width: number, height: number, color: string) => void;
         | 
| 4 | 
            +
                drawImage: (image: HTMLImageElement, x: number, y: number, width: number, height: number) => void;
         | 
| 5 | 
            +
                cropCanvas: (x: number, y: number, width: number, height: number) => Promise<File | null>;
         | 
| 6 | 
            +
            };
         | 
| @@ -0,0 +1,65 @@ | |
| 1 | 
            +
            import { PropType } from 'vue';
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            declare function crop(img?: HTMLImageElement): Promise<File | null>;
         | 
| 4 | 
            +
            declare function resize(): void;
         | 
| 5 | 
            +
            declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
         | 
| 6 | 
            +
                imgFile: {
         | 
| 7 | 
            +
                    type: PropType<File>;
         | 
| 8 | 
            +
                    default: () => null;
         | 
| 9 | 
            +
                };
         | 
| 10 | 
            +
                aspectRatio: {
         | 
| 11 | 
            +
                    type: StringConstructor;
         | 
| 12 | 
            +
                    default: () => string;
         | 
| 13 | 
            +
                };
         | 
| 14 | 
            +
                defaultWidth: {
         | 
| 15 | 
            +
                    type: NumberConstructor;
         | 
| 16 | 
            +
                    default: () => number;
         | 
| 17 | 
            +
                };
         | 
| 18 | 
            +
                defaultHeight: {
         | 
| 19 | 
            +
                    type: NumberConstructor;
         | 
| 20 | 
            +
                    default: () => number;
         | 
| 21 | 
            +
                };
         | 
| 22 | 
            +
                /**
         | 
| 23 | 
            +
                 * free 自由缩放
         | 
| 24 | 
            +
                 * fixed 固定比例缩放
         | 
| 25 | 
            +
                 */
         | 
| 26 | 
            +
                zoomType: {
         | 
| 27 | 
            +
                    type: StringConstructor;
         | 
| 28 | 
            +
                    default: () => string;
         | 
| 29 | 
            +
                };
         | 
| 30 | 
            +
            }>, {
         | 
| 31 | 
            +
                crop: typeof crop;
         | 
| 32 | 
            +
                resize: typeof resize;
         | 
| 33 | 
            +
            }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
         | 
| 34 | 
            +
                imgFile: {
         | 
| 35 | 
            +
                    type: PropType<File>;
         | 
| 36 | 
            +
                    default: () => null;
         | 
| 37 | 
            +
                };
         | 
| 38 | 
            +
                aspectRatio: {
         | 
| 39 | 
            +
                    type: StringConstructor;
         | 
| 40 | 
            +
                    default: () => string;
         | 
| 41 | 
            +
                };
         | 
| 42 | 
            +
                defaultWidth: {
         | 
| 43 | 
            +
                    type: NumberConstructor;
         | 
| 44 | 
            +
                    default: () => number;
         | 
| 45 | 
            +
                };
         | 
| 46 | 
            +
                defaultHeight: {
         | 
| 47 | 
            +
                    type: NumberConstructor;
         | 
| 48 | 
            +
                    default: () => number;
         | 
| 49 | 
            +
                };
         | 
| 50 | 
            +
                /**
         | 
| 51 | 
            +
                 * free 自由缩放
         | 
| 52 | 
            +
                 * fixed 固定比例缩放
         | 
| 53 | 
            +
                 */
         | 
| 54 | 
            +
                zoomType: {
         | 
| 55 | 
            +
                    type: StringConstructor;
         | 
| 56 | 
            +
                    default: () => string;
         | 
| 57 | 
            +
                };
         | 
| 58 | 
            +
            }>> & Readonly<{}>, {
         | 
| 59 | 
            +
                imgFile: File;
         | 
| 60 | 
            +
                aspectRatio: string;
         | 
| 61 | 
            +
                defaultWidth: number;
         | 
| 62 | 
            +
                defaultHeight: number;
         | 
| 63 | 
            +
                zoomType: string;
         | 
| 64 | 
            +
            }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
         | 
| 65 | 
            +
            export default _default;
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
             | 
| @@ -0,0 +1,3 @@ | |
| 1 | 
            +
            declare const QxsRichEditor: import('../withInstall').SFCWithInstall<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & Record<string, any>;
         | 
| 2 | 
            +
            export { QxsRichEditor, };
         | 
| 3 | 
            +
            export default QxsRichEditor;
         | 
| @@ -0,0 +1,2 @@ | |
| 1 | 
            +
            declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
         | 
| 2 | 
            +
            export default _default;
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
             |