@vipl520/dk-ui 1.0.19 → 1.0.21
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/attributes.json +16 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1216 -674
- package/dist/index.min.js +7 -7
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +7 -7
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +1203 -665
- package/dist/tags.json +14 -0
- package/dist/web-types.json +69 -1
- package/es/animate-select/index.d.ts +19 -0
- package/es/animate-select/index.mjs +8 -0
- package/es/animate-select/index.mjs.map +1 -0
- package/es/animate-select/src/animate-select.vue.d.ts +18 -0
- package/es/animate-select/src/animate-select.vue.mjs +7 -0
- package/es/animate-select/src/animate-select.vue.mjs.map +1 -0
- package/es/animate-select/src/animate-select.vue2.mjs +168 -0
- package/es/animate-select/src/animate-select.vue2.mjs.map +1 -0
- package/es/animate-select/src/animates.d.ts +9 -0
- package/es/animate-select/src/animates.mjs +98 -0
- package/es/animate-select/src/animates.mjs.map +1 -0
- package/es/animate-select/src/props.d.ts +11 -0
- package/es/animate-select/src/props.mjs +11 -0
- package/es/animate-select/src/props.mjs.map +1 -0
- package/es/animate-select/style/index.css +1 -0
- package/es/animate-select/style/index.scss +41 -0
- package/es/audio-input/index.d.ts +4 -4
- package/es/audio-input/src/audio-input.vue.d.ts +4 -4
- package/es/audio-list-input/index.d.ts +3 -3
- package/es/audio-list-input/src/audio-list-input.vue.d.ts +3 -3
- package/es/box-size-input/index.d.ts +1 -1
- package/es/box-size-input/src/box-size-input.vue.d.ts +1 -1
- package/es/color-input/index.d.ts +3 -3
- package/es/color-input/src/color-input.vue.d.ts +3 -3
- package/es/dialog/index.d.ts +11 -11
- package/es/dialog/src/dialog.vue.d.ts +3 -3
- package/es/file-input/index.d.ts +4 -4
- package/es/file-input/src/file-input.vue.d.ts +4 -4
- package/es/file-list-input/index.d.ts +4 -4
- package/es/file-list-input/src/file-list-input.vue.d.ts +4 -4
- package/es/form/index.d.ts +10 -10
- package/es/form/src/form.vue.d.ts +2 -2
- package/es/group/index.d.ts +6 -6
- package/es/group/src/group.vue.d.ts +6 -6
- package/es/icon/index.d.ts +3 -3
- package/es/icon-input/index.d.ts +5 -5
- package/es/icon-input/src/icon-content.vue.d.ts +1 -1
- package/es/icon-input/src/icon-dialog.vue.d.ts +1 -1
- package/es/icon-input/src/icon-input.vue.d.ts +3 -3
- package/es/image-input/index.d.ts +4 -4
- package/es/image-input/src/image-input.vue.d.ts +4 -4
- package/es/image-list-input/index.d.ts +3 -3
- package/es/image-list-input/src/image-list-input.vue.d.ts +3 -3
- package/es/index.d.ts +2 -0
- package/es/index.mjs +9 -1
- package/es/index.mjs.map +1 -1
- package/es/index.scss +14 -0
- package/es/page-diy/index.d.ts +70 -4
- package/es/page-diy/src/components/DragTool.vue.d.ts +2 -1
- package/es/page-diy/src/components/DragTool.vue.mjs +12 -15
- package/es/page-diy/src/components/DragTool.vue.mjs.map +1 -1
- package/es/page-diy/src/components/PreviewPhone.vue2.mjs +74 -2
- package/es/page-diy/src/components/PreviewPhone.vue2.mjs.map +1 -1
- package/es/page-diy/src/config/base/dkSetting.d.ts +68 -2
- package/es/page-diy/src/config/base/dkSetting.mjs +83 -0
- package/es/page-diy/src/config/base/dkSetting.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +1 -0
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +2 -1
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/common/index.d.ts +2 -0
- package/es/page-diy/src/config/rule/min/index.d.ts +2 -0
- package/es/page-diy/src/page-diy.vue.d.ts +70 -4
- package/es/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +1 -1
- package/es/page-diy/src/views/min/DkMinTitle.vue.d.ts +1 -1
- package/es/page-diy/src/views/web/DkViewCommonBtn.vue.d.ts +2 -2
- package/es/page-diy/src/views/web/DkViewDialog.vue.d.ts +2 -2
- package/es/page-diy/src/views/web/DkViewGridCellList.vue.d.ts +1 -1
- package/es/page-diy/src/views/web/DkViewImage.vue.d.ts +2 -2
- package/es/page-diy/src/views/web/DkViewNoticeBar.vue.d.ts +2 -2
- package/es/page-diy/src/views/web/DkViewSwipe.vue.d.ts +1 -1
- package/es/page-diy/src/views/web/DkViewTitle.vue.d.ts +2 -2
- package/es/page-diy/style/drag-tool.css +1 -1
- package/es/page-diy/style/drag-tool.scss +1 -1
- package/es/page-diy/style/index.css +1 -1
- package/es/poster-input/index.d.ts +6 -6
- package/es/poster-input/src/component/poster.vue.d.ts +3 -3
- package/es/poster-input/src/poster-input.vue.d.ts +3 -3
- package/es/select/src/select.vue.d.ts +3 -3
- package/es/style-animation-input/index.d.ts +25 -0
- package/es/style-animation-input/index.mjs +8 -0
- package/es/style-animation-input/index.mjs.map +1 -0
- package/es/style-animation-input/src/props.d.ts +15 -0
- package/es/style-animation-input/src/props.mjs +16 -0
- package/es/style-animation-input/src/props.mjs.map +1 -0
- package/es/style-animation-input/src/style-animation-input.vue.d.ts +24 -0
- package/es/style-animation-input/src/style-animation-input.vue.mjs +7 -0
- package/es/style-animation-input/src/style-animation-input.vue.mjs.map +1 -0
- package/es/style-animation-input/src/style-animation-input.vue2.mjs +116 -0
- package/es/style-animation-input/src/style-animation-input.vue2.mjs.map +1 -0
- package/es/style-animation-input/style/index.css +1 -0
- package/es/style-animation-input/style/index.scss +14 -0
- package/es/style-box-input/index.d.ts +1 -1
- package/es/style-box-input/src/style-box-input.vue.d.ts +1 -1
- package/es/style-input/index.d.ts +1 -1
- package/es/style-input/src/style-input.vue.d.ts +1 -1
- package/es/style-number-input/index.d.ts +3 -2
- package/es/style-number-input/src/style-number-input.vue.d.ts +3 -2
- package/es/style-number-input/src/style-number-input.vue2.mjs +3 -2
- package/es/style-number-input/src/style-number-input.vue2.mjs.map +1 -1
- package/es/style-position-input/src/style-position-input.vue2.mjs +23 -39
- package/es/style-position-input/src/style-position-input.vue2.mjs.map +1 -1
- package/es/style-shadow-input/index.d.ts +2 -2
- package/es/style-shadow-input/src/style-shadow-content.vue.d.ts +1 -1
- package/es/style-shadow-input/src/style-shadow-input.vue.d.ts +1 -1
- package/es/table/index.d.ts +2 -2
- package/es/tiny-editor/index.d.ts +4 -4
- package/es/tiny-editor/src/tiny-editor.vue.d.ts +4 -4
- package/es/video-input/index.d.ts +4 -4
- package/es/video-input/src/video-input.vue.d.ts +4 -4
- package/es/video-list-input/index.d.ts +3 -3
- package/es/video-list-input/src/video-list-input.vue.d.ts +3 -3
- package/lib/animate-select/index.d.ts +19 -0
- package/lib/animate-select/index.js +14 -0
- package/lib/animate-select/index.js.map +1 -0
- package/lib/animate-select/src/animate-select.vue.d.ts +18 -0
- package/lib/animate-select/src/animate-select.vue.js +11 -0
- package/lib/animate-select/src/animate-select.vue.js.map +1 -0
- package/lib/animate-select/src/animate-select.vue2.js +172 -0
- package/lib/animate-select/src/animate-select.vue2.js.map +1 -0
- package/lib/animate-select/src/animates.d.ts +9 -0
- package/lib/animate-select/src/animates.js +102 -0
- package/lib/animate-select/src/animates.js.map +1 -0
- package/lib/animate-select/src/props.d.ts +11 -0
- package/lib/animate-select/src/props.js +13 -0
- package/lib/animate-select/src/props.js.map +1 -0
- package/lib/animate-select/style/index.css +1 -0
- package/lib/animate-select/style/index.scss +41 -0
- package/lib/audio-input/index.d.ts +4 -4
- package/lib/audio-input/src/audio-input.vue.d.ts +4 -4
- package/lib/audio-list-input/index.d.ts +3 -3
- package/lib/audio-list-input/src/audio-list-input.vue.d.ts +3 -3
- package/lib/box-size-input/index.d.ts +1 -1
- package/lib/box-size-input/src/box-size-input.vue.d.ts +1 -1
- package/lib/color-input/index.d.ts +3 -3
- package/lib/color-input/src/color-input.vue.d.ts +3 -3
- package/lib/dialog/index.d.ts +11 -11
- package/lib/dialog/src/dialog.vue.d.ts +3 -3
- package/lib/file-input/index.d.ts +4 -4
- package/lib/file-input/src/file-input.vue.d.ts +4 -4
- package/lib/file-list-input/index.d.ts +4 -4
- package/lib/file-list-input/src/file-list-input.vue.d.ts +4 -4
- package/lib/form/index.d.ts +10 -10
- package/lib/form/src/form.vue.d.ts +2 -2
- package/lib/group/index.d.ts +6 -6
- package/lib/group/src/group.vue.d.ts +6 -6
- package/lib/icon/index.d.ts +3 -3
- package/lib/icon-input/index.d.ts +5 -5
- package/lib/icon-input/src/icon-content.vue.d.ts +1 -1
- package/lib/icon-input/src/icon-dialog.vue.d.ts +1 -1
- package/lib/icon-input/src/icon-input.vue.d.ts +3 -3
- package/lib/image-input/index.d.ts +4 -4
- package/lib/image-input/src/image-input.vue.d.ts +4 -4
- package/lib/image-list-input/index.d.ts +3 -3
- package/lib/image-list-input/src/image-list-input.vue.d.ts +3 -3
- package/lib/index.d.ts +2 -0
- package/lib/index.js +14 -2
- package/lib/index.js.map +1 -1
- package/lib/index.scss +14 -0
- package/lib/page-diy/index.d.ts +70 -4
- package/lib/page-diy/src/components/DragTool.vue.d.ts +2 -1
- package/lib/page-diy/src/components/DragTool.vue.js +12 -15
- package/lib/page-diy/src/components/DragTool.vue.js.map +1 -1
- package/lib/page-diy/src/components/PreviewPhone.vue2.js +73 -1
- package/lib/page-diy/src/components/PreviewPhone.vue2.js.map +1 -1
- package/lib/page-diy/src/config/base/dkSetting.d.ts +68 -2
- package/lib/page-diy/src/config/base/dkSetting.js +83 -0
- package/lib/page-diy/src/config/base/dkSetting.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +1 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +2 -1
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/common/index.d.ts +2 -0
- package/lib/page-diy/src/config/rule/min/index.d.ts +2 -0
- package/lib/page-diy/src/page-diy.vue.d.ts +70 -4
- package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +1 -1
- package/lib/page-diy/src/views/min/DkMinTitle.vue.d.ts +1 -1
- package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.d.ts +2 -2
- package/lib/page-diy/src/views/web/DkViewDialog.vue.d.ts +2 -2
- package/lib/page-diy/src/views/web/DkViewGridCellList.vue.d.ts +1 -1
- package/lib/page-diy/src/views/web/DkViewImage.vue.d.ts +2 -2
- package/lib/page-diy/src/views/web/DkViewNoticeBar.vue.d.ts +2 -2
- package/lib/page-diy/src/views/web/DkViewSwipe.vue.d.ts +1 -1
- package/lib/page-diy/src/views/web/DkViewTitle.vue.d.ts +2 -2
- package/lib/page-diy/style/drag-tool.css +1 -1
- package/lib/page-diy/style/drag-tool.scss +1 -1
- package/lib/page-diy/style/index.css +1 -1
- package/lib/poster-input/index.d.ts +6 -6
- package/lib/poster-input/src/component/poster.vue.d.ts +3 -3
- package/lib/poster-input/src/poster-input.vue.d.ts +3 -3
- package/lib/select/src/select.vue.d.ts +3 -3
- package/lib/style-animation-input/index.d.ts +25 -0
- package/lib/style-animation-input/index.js +14 -0
- package/lib/style-animation-input/index.js.map +1 -0
- package/lib/style-animation-input/src/props.d.ts +15 -0
- package/lib/style-animation-input/src/props.js +18 -0
- package/lib/style-animation-input/src/props.js.map +1 -0
- package/lib/style-animation-input/src/style-animation-input.vue.d.ts +24 -0
- package/lib/style-animation-input/src/style-animation-input.vue.js +11 -0
- package/lib/style-animation-input/src/style-animation-input.vue.js.map +1 -0
- package/lib/style-animation-input/src/style-animation-input.vue2.js +120 -0
- package/lib/style-animation-input/src/style-animation-input.vue2.js.map +1 -0
- package/lib/style-animation-input/style/index.css +1 -0
- package/lib/style-animation-input/style/index.scss +14 -0
- package/lib/style-box-input/index.d.ts +1 -1
- package/lib/style-box-input/src/style-box-input.vue.d.ts +1 -1
- package/lib/style-input/index.d.ts +1 -1
- package/lib/style-input/src/style-input.vue.d.ts +1 -1
- package/lib/style-number-input/index.d.ts +3 -2
- package/lib/style-number-input/src/style-number-input.vue.d.ts +3 -2
- package/lib/style-number-input/src/style-number-input.vue2.js +3 -2
- package/lib/style-number-input/src/style-number-input.vue2.js.map +1 -1
- package/lib/style-position-input/src/style-position-input.vue2.js +22 -38
- package/lib/style-position-input/src/style-position-input.vue2.js.map +1 -1
- package/lib/style-shadow-input/index.d.ts +2 -2
- package/lib/style-shadow-input/src/style-shadow-content.vue.d.ts +1 -1
- package/lib/style-shadow-input/src/style-shadow-input.vue.d.ts +1 -1
- package/lib/table/index.d.ts +2 -2
- package/lib/tiny-editor/index.d.ts +4 -4
- package/lib/tiny-editor/src/tiny-editor.vue.d.ts +4 -4
- package/lib/video-input/index.d.ts +4 -4
- package/lib/video-input/src/video-input.vue.d.ts +4 -4
- package/lib/video-list-input/index.d.ts +3 -3
- package/lib/video-list-input/src/video-list-input.vue.d.ts +3 -3
- package/package.json +4 -4
@@ -23,7 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
23
23
|
default: boolean;
|
24
24
|
type: BooleanConstructor;
|
25
25
|
};
|
26
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
26
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "update:modelValue" | "change")[], "input" | "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
27
27
|
type: {
|
28
28
|
default: string;
|
29
29
|
type: () => "element" | "cloud" | "vant";
|
@@ -49,13 +49,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
49
49
|
type: BooleanConstructor;
|
50
50
|
};
|
51
51
|
}>> & {
|
52
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
53
52
|
onInput?: ((...args: any[]) => any) | undefined;
|
54
53
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
54
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
55
55
|
}, {
|
56
|
+
modelValue: string;
|
56
57
|
type: "element" | "cloud" | "vant";
|
57
58
|
placeholder: string;
|
58
|
-
modelValue: string;
|
59
59
|
showTab: Record<string, any>;
|
60
60
|
preview: boolean;
|
61
61
|
}, {}>;
|
@@ -19,7 +19,7 @@ export declare const ImageInput: import("@vipl520/utils").WithInstall<import("vu
|
|
19
19
|
type: StringConstructor;
|
20
20
|
default: string;
|
21
21
|
};
|
22
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
22
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "update:modelValue" | "change")[], "input" | "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
23
23
|
modelValue: {
|
24
24
|
type: StringConstructor;
|
25
25
|
default: string;
|
@@ -41,13 +41,13 @@ export declare const ImageInput: import("@vipl520/utils").WithInstall<import("vu
|
|
41
41
|
default: string;
|
42
42
|
};
|
43
43
|
}>> & {
|
44
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
45
44
|
onInput?: ((...args: any[]) => any) | undefined;
|
46
45
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
46
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
47
47
|
}, {
|
48
|
-
accept: string;
|
49
|
-
placeholder: string;
|
50
48
|
modelValue: string;
|
49
|
+
placeholder: string;
|
50
|
+
accept: string;
|
51
51
|
showInput: boolean;
|
52
52
|
imgSize: number;
|
53
53
|
}, {}>>;
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
19
19
|
type: StringConstructor;
|
20
20
|
default: string;
|
21
21
|
};
|
22
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
22
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "update:modelValue" | "change")[], "input" | "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
23
23
|
modelValue: {
|
24
24
|
type: StringConstructor;
|
25
25
|
default: string;
|
@@ -41,13 +41,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
41
41
|
default: string;
|
42
42
|
};
|
43
43
|
}>> & {
|
44
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
45
44
|
onInput?: ((...args: any[]) => any) | undefined;
|
46
45
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
46
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
47
47
|
}, {
|
48
|
-
accept: string;
|
49
|
-
placeholder: string;
|
50
48
|
modelValue: string;
|
49
|
+
placeholder: string;
|
50
|
+
accept: string;
|
51
51
|
showInput: boolean;
|
52
52
|
imgSize: number;
|
53
53
|
}, {}>;
|
@@ -19,7 +19,7 @@ export declare const ImageListInput: import("@vipl520/utils").WithInstall<import
|
|
19
19
|
default: string;
|
20
20
|
type: StringConstructor;
|
21
21
|
};
|
22
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
22
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "update:modelValue" | "change")[], "input" | "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
23
23
|
modelValue: {
|
24
24
|
default: () => never[];
|
25
25
|
type: ArrayConstructor;
|
@@ -41,13 +41,13 @@ export declare const ImageListInput: import("@vipl520/utils").WithInstall<import
|
|
41
41
|
type: StringConstructor;
|
42
42
|
};
|
43
43
|
}>> & {
|
44
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
45
44
|
onInput?: ((...args: any[]) => any) | undefined;
|
46
45
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
46
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
47
47
|
}, {
|
48
|
-
accept: string;
|
49
48
|
modelValue: unknown[];
|
50
49
|
disabled: boolean;
|
50
|
+
accept: string;
|
51
51
|
imgSize: number;
|
52
52
|
limit: number;
|
53
53
|
}, {}>>;
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
19
19
|
default: string;
|
20
20
|
type: StringConstructor;
|
21
21
|
};
|
22
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
22
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "update:modelValue" | "change")[], "input" | "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
23
23
|
modelValue: {
|
24
24
|
default: () => never[];
|
25
25
|
type: ArrayConstructor;
|
@@ -41,13 +41,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
41
41
|
type: StringConstructor;
|
42
42
|
};
|
43
43
|
}>> & {
|
44
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
45
44
|
onInput?: ((...args: any[]) => any) | undefined;
|
46
45
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
46
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
47
47
|
}, {
|
48
|
-
accept: string;
|
49
48
|
modelValue: unknown[];
|
50
49
|
disabled: boolean;
|
50
|
+
accept: string;
|
51
51
|
imgSize: number;
|
52
52
|
limit: number;
|
53
53
|
}, {}>;
|
package/lib/index.d.ts
CHANGED
@@ -30,6 +30,8 @@ export * from './style-number-input';
|
|
30
30
|
export * from './table';
|
31
31
|
export * from './select';
|
32
32
|
export * from './poster-input';
|
33
|
+
export * from './style-animation-input';
|
34
|
+
export * from './animate-select';
|
33
35
|
export declare const install: (app: App, option?: any) => void;
|
34
36
|
declare const _default: {
|
35
37
|
install: (app: App<any>, option?: any) => void;
|
package/lib/index.js
CHANGED
@@ -8,7 +8,7 @@ var index$1 = require('./tiny-editor/index.js');
|
|
8
8
|
var index$2 = require('./icon/index.js');
|
9
9
|
var index$4 = require('./color-input/index.js');
|
10
10
|
var index$5 = require('./hot-area-input/index.js');
|
11
|
-
var index$
|
11
|
+
var index$y = require('./dialog/index.js');
|
12
12
|
var index$6 = require('./form/index.js');
|
13
13
|
var index$7 = require('./attachment/index.js');
|
14
14
|
var index$8 = require('./attachment-dialog/index.js');
|
@@ -34,6 +34,8 @@ var index$i = require('./page-diy/index.js');
|
|
34
34
|
var index$t = require('./table/index.js');
|
35
35
|
var index$u = require('./select/index.js');
|
36
36
|
var index$v = require('./poster-input/index.js');
|
37
|
+
var index$w = require('./style-animation-input/index.js');
|
38
|
+
var index$x = require('./animate-select/index.js');
|
37
39
|
var utils = require('@vipl520/utils');
|
38
40
|
var Vue3DraggableResizable = require('vue3-draggable-resizable');
|
39
41
|
var props = require('./tiny-editor/src/props.js');
|
@@ -67,6 +69,8 @@ var props$r = require('./style-number-input/src/props.js');
|
|
67
69
|
var props$s = require('./table/src/props.js');
|
68
70
|
var props$t = require('./select/src/props.js');
|
69
71
|
var props$u = require('./poster-input/src/props.js');
|
72
|
+
var props$v = require('./style-animation-input/src/props.js');
|
73
|
+
var props$w = require('./animate-select/src/props.js');
|
70
74
|
|
71
75
|
const components = [
|
72
76
|
index$k.Test,
|
@@ -80,7 +84,7 @@ const components = [
|
|
80
84
|
// 热区选择器
|
81
85
|
index$5.HotAreaInput,
|
82
86
|
// 对话框
|
83
|
-
index$
|
87
|
+
index$y.Dialog,
|
84
88
|
// json表单
|
85
89
|
index$6.Form,
|
86
90
|
// 附件
|
@@ -131,6 +135,10 @@ const components = [
|
|
131
135
|
index$r.StylePositionInput,
|
132
136
|
// 样式文字
|
133
137
|
index$s.StyleNumberInput,
|
138
|
+
// 动画配置
|
139
|
+
index$w.StyleAnimationInput,
|
140
|
+
// 动画class选择
|
141
|
+
index$x.AnimateSelect,
|
134
142
|
// 数据表格
|
135
143
|
index$t.Table,
|
136
144
|
// 选择
|
@@ -203,6 +211,8 @@ exports.Table = index$t.Table;
|
|
203
211
|
exports.Select = index$u.Select;
|
204
212
|
exports.Poster = index$v.Poster;
|
205
213
|
exports.PosterInput = index$v.PosterInput;
|
214
|
+
exports.StyleAnimationInput = index$w.StyleAnimationInput;
|
215
|
+
exports.AnimateSelect = index$x.AnimateSelect;
|
206
216
|
exports.tinyEditorProps = props.tinyEditorProps;
|
207
217
|
exports.iconProps = props$1.iconProps;
|
208
218
|
exports.groupProps = props$2.groupProps;
|
@@ -236,6 +246,8 @@ exports.styleNumberInputProps = props$r.styleNumberInputProps;
|
|
236
246
|
exports.tableProps = props$s.tableProps;
|
237
247
|
exports.selectProps = props$t.selectProps;
|
238
248
|
exports.posterInputProps = props$u.posterInputProps;
|
249
|
+
exports.styleAnimationInputProps = props$v.styleAnimationInputProps;
|
250
|
+
exports.animateSelectProps = props$w.animateSelectProps;
|
239
251
|
exports.default = index;
|
240
252
|
exports.install = install;
|
241
253
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import type { App } from 'vue'\nimport { Test } from './test'\nimport { Group } from './group'\nimport { TinyEditor } from './tiny-editor'\nimport { Icon } from './icon'\nimport { ColorInput } from './color-input'\nimport { HotAreaInput } from './hot-area-input'\nimport { Dialog } from './dialog'\nimport { Form } from './form'\nimport { Attachment } from './attachment'\nimport { AttachmentDialog } from './attachment-dialog'\nimport { FileInput } from './file-input'\nimport { ImageInput } from './image-input'\nimport { AudioInput } from './audio-input'\nimport { VideoInput } from './video-input'\nimport { FileListInput } from './file-list-input'\nimport { ImageListInput } from './image-list-input'\nimport { AudioListInput } from './audio-list-input'\nimport { VideoListInput } from './video-list-input'\nimport { IconInput, IconContent, IconDialog } from './icon-input'\nimport { StyleInput } from './style-input'\nimport { BoxSizeInput } from './box-size-input'\nimport { StyleBoxInput } from './style-box-input'\nimport { StyleFontInput } from './style-font-input'\nimport { StyleBorderInput } from './style-border-input'\nimport { StyleBackgroundInput } from './style-background-input'\nimport { StyleShadowContent, StyleShadowInput } from './style-shadow-input'\nimport { StylePositionInput } from './style-position-input'\nimport { StyleNumberInput } from './style-number-input'\nimport { PageDiy } from './page-diy'\nimport { Table } from './table'\nimport { Select } from './select'\nimport { Poster, PosterInput } from './poster-input'\nimport { setGlobalConfig, directives } from '@vipl520/utils'\nimport Vue3DraggableResizable from 'vue3-draggable-resizable'\nexport * from './tiny-editor'\nexport * from './icon'\nexport * from './group'\nexport * from './color-input'\nexport * from './hot-area-input'\nexport * from './form'\nexport * from './attachment'\nexport * from './attachment-dialog'\nexport * from './file-input'\nexport * from './image-input'\nexport * from './audio-input'\nexport * from './video-input'\nexport * from './file-list-input'\nexport * from './image-list-input'\nexport * from './audio-list-input'\nexport * from './video-list-input'\nexport * from './icon-input'\nexport * from './page-diy'\nexport * from './box-size-input'\nexport * from './test'\nexport * from './style-input'\nexport * from './style-box-input'\nexport * from './style-font-input'\nexport * from './style-border-input'\nexport * from './style-shadow-input'\nexport * from './style-background-input'\nexport * from './style-position-input'\nexport * from './style-number-input'\nexport * from './table'\nexport * from './select'\nexport * from './poster-input'\n\nconst components = [\n Test,\n Group,\n // 富文本编辑器\n TinyEditor,\n // 图标\n Icon,\n // 颜色选择器\n ColorInput,\n // 热区选择器\n HotAreaInput,\n // 对话框\n Dialog,\n // json表单\n Form,\n // 附件\n Attachment,\n // 附件弹窗\n AttachmentDialog,\n // 文件选择器\n FileInput,\n // 图片选择器\n ImageInput,\n // 音频选择器\n AudioInput,\n // 视频选择器\n VideoInput,\n // 多文件选择器\n FileListInput,\n // 多图片选择器\n ImageListInput,\n // 多音频选择器\n AudioListInput,\n // 多视频选择器\n VideoListInput,\n // 图标选择器\n IconInput,\n // 图标展示框\n IconContent,\n // 图片弹出框\n IconDialog,\n // DIY编辑器\n PageDiy,\n // 尺寸输入框(带px/%/rem/等单位)\n BoxSizeInput,\n // DIV盒子编辑器(padding/margin/width/height)\n StyleBoxInput,\n // 文字样式编辑器\n StyleFontInput,\n // 边框样式编辑器\n StyleBorderInput,\n // 阴影编辑器\n StyleShadowInput,\n // 阴影编辑框\n StyleShadowContent,\n // 背景编辑器\n StyleBackgroundInput,\n // 合并样式编辑\n StyleInput,\n // 定位编辑器\n StylePositionInput,\n // 样式文字\n StyleNumberInput,\n // 数据表格\n Table,\n // 选择\n Select,\n // 表单组/对象表单\n // 海报选择器\n PosterInput,\n // 海报\n Poster,\n Vue3DraggableResizable,\n // TODO 普通上传 upload\n // TODO tag选择器 tag-input\n // TODO 链接选择器 link-input\n // TODO 海报编辑器 poster-input\n // TODO Layout布局组件 layout\n // TODO 应用信息组件 addon-info\n // TODO 用户信息组件 user-info\n // TODO 全局Hook组件 global-hook\n // TODO 前端DIY匹配\n // TODO 开发者工具(自动CRUD)\n // TODO 应用框架\n]\n\nexport const install = (app: App, option: any = {}) => {\n components.forEach((item) => {\n if (item.install!) {\n app.use(item)\n } else if (item.name) {\n app.component(item.name, item)\n }\n })\n directives(app)\n setGlobalConfig(option)\n}\n\nexport default {\n install,\n}\n"],"names":["Test","Group","TinyEditor","Icon","ColorInput","HotAreaInput","Dialog","Form","Attachment","AttachmentDialog","FileInput","ImageInput","AudioInput","VideoInput","FileListInput","ImageListInput","AudioListInput","VideoListInput","IconInput","IconContent","IconDialog","PageDiy","BoxSizeInput","StyleBoxInput","StyleFontInput","StyleBorderInput","StyleShadowInput","StyleShadowContent","StyleBackgroundInput","StyleInput","StylePositionInput","StyleNumberInput","Table","Select","PosterInput","Poster","directives","setGlobalConfig"],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import type { App } from 'vue'\nimport { Test } from './test'\nimport { Group } from './group'\nimport { TinyEditor } from './tiny-editor'\nimport { Icon } from './icon'\nimport { ColorInput } from './color-input'\nimport { HotAreaInput } from './hot-area-input'\nimport { Dialog } from './dialog'\nimport { Form } from './form'\nimport { Attachment } from './attachment'\nimport { AttachmentDialog } from './attachment-dialog'\nimport { FileInput } from './file-input'\nimport { ImageInput } from './image-input'\nimport { AudioInput } from './audio-input'\nimport { VideoInput } from './video-input'\nimport { FileListInput } from './file-list-input'\nimport { ImageListInput } from './image-list-input'\nimport { AudioListInput } from './audio-list-input'\nimport { VideoListInput } from './video-list-input'\nimport { IconInput, IconContent, IconDialog } from './icon-input'\nimport { StyleInput } from './style-input'\nimport { BoxSizeInput } from './box-size-input'\nimport { StyleBoxInput } from './style-box-input'\nimport { StyleFontInput } from './style-font-input'\nimport { StyleBorderInput } from './style-border-input'\nimport { StyleBackgroundInput } from './style-background-input'\nimport { StyleShadowContent, StyleShadowInput } from './style-shadow-input'\nimport { StylePositionInput } from './style-position-input'\nimport { StyleNumberInput } from './style-number-input'\nimport { PageDiy } from './page-diy'\nimport { Table } from './table'\nimport { Select } from './select'\nimport { Poster, PosterInput } from './poster-input'\nimport { StyleAnimationInput } from './style-animation-input'\nimport { AnimateSelect } from './animate-select'\nimport { setGlobalConfig, directives } from '@vipl520/utils'\nimport Vue3DraggableResizable from 'vue3-draggable-resizable'\nexport * from './tiny-editor'\nexport * from './icon'\nexport * from './group'\nexport * from './color-input'\nexport * from './hot-area-input'\nexport * from './form'\nexport * from './attachment'\nexport * from './attachment-dialog'\nexport * from './file-input'\nexport * from './image-input'\nexport * from './audio-input'\nexport * from './video-input'\nexport * from './file-list-input'\nexport * from './image-list-input'\nexport * from './audio-list-input'\nexport * from './video-list-input'\nexport * from './icon-input'\nexport * from './page-diy'\nexport * from './box-size-input'\nexport * from './test'\nexport * from './style-input'\nexport * from './style-box-input'\nexport * from './style-font-input'\nexport * from './style-border-input'\nexport * from './style-shadow-input'\nexport * from './style-background-input'\nexport * from './style-position-input'\nexport * from './style-number-input'\nexport * from './table'\nexport * from './select'\nexport * from './poster-input'\nexport * from './style-animation-input'\nexport * from './animate-select'\n\nconst components = [\n Test,\n Group,\n // 富文本编辑器\n TinyEditor,\n // 图标\n Icon,\n // 颜色选择器\n ColorInput,\n // 热区选择器\n HotAreaInput,\n // 对话框\n Dialog,\n // json表单\n Form,\n // 附件\n Attachment,\n // 附件弹窗\n AttachmentDialog,\n // 文件选择器\n FileInput,\n // 图片选择器\n ImageInput,\n // 音频选择器\n AudioInput,\n // 视频选择器\n VideoInput,\n // 多文件选择器\n FileListInput,\n // 多图片选择器\n ImageListInput,\n // 多音频选择器\n AudioListInput,\n // 多视频选择器\n VideoListInput,\n // 图标选择器\n IconInput,\n // 图标展示框\n IconContent,\n // 图片弹出框\n IconDialog,\n // DIY编辑器\n PageDiy,\n // 尺寸输入框(带px/%/rem/等单位)\n BoxSizeInput,\n // DIV盒子编辑器(padding/margin/width/height)\n StyleBoxInput,\n // 文字样式编辑器\n StyleFontInput,\n // 边框样式编辑器\n StyleBorderInput,\n // 阴影编辑器\n StyleShadowInput,\n // 阴影编辑框\n StyleShadowContent,\n // 背景编辑器\n StyleBackgroundInput,\n // 合并样式编辑\n StyleInput,\n // 定位编辑器\n StylePositionInput,\n // 样式文字\n StyleNumberInput,\n // 动画配置\n StyleAnimationInput,\n // 动画class选择\n AnimateSelect,\n // 数据表格\n Table,\n // 选择\n Select,\n // 表单组/对象表单\n // 海报选择器\n PosterInput,\n // 海报\n Poster,\n Vue3DraggableResizable,\n\n // TODO 普通上传 upload\n // TODO tag选择器 tag-input\n // TODO 链接选择器 link-input\n // TODO 海报编辑器 poster-input\n // TODO Layout布局组件 layout\n // TODO 应用信息组件 addon-info\n // TODO 用户信息组件 user-info\n // TODO 全局Hook组件 global-hook\n // TODO 前端DIY匹配\n // TODO 开发者工具(自动CRUD)\n // TODO 应用框架\n]\n\nexport const install = (app: App, option: any = {}) => {\n components.forEach((item) => {\n if (item.install!) {\n app.use(item)\n } else if (item.name) {\n app.component(item.name, item)\n }\n })\n directives(app)\n setGlobalConfig(option)\n}\n\nexport default {\n install,\n}\n"],"names":["Test","Group","TinyEditor","Icon","ColorInput","HotAreaInput","Dialog","Form","Attachment","AttachmentDialog","FileInput","ImageInput","AudioInput","VideoInput","FileListInput","ImageListInput","AudioListInput","VideoListInput","IconInput","IconContent","IconDialog","PageDiy","BoxSizeInput","StyleBoxInput","StyleFontInput","StyleBorderInput","StyleShadowInput","StyleShadowContent","StyleBackgroundInput","StyleInput","StylePositionInput","StyleNumberInput","StyleAnimationInput","AnimateSelect","Table","Select","PosterInput","Poster","directives","setGlobalConfig"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA,MAAM,UAAa,GAAA;AAAA,EACjBA,YAAA;AAAA,EACAC,aAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,YAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,oBAAA;AAAA;AAAA,EAEAC,cAAA;AAAA;AAAA,EAEAC,YAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,wBAAA;AAAA;AAAA,EAEAC,iBAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,qBAAA;AAAA;AAAA,EAEAC,sBAAA;AAAA;AAAA,EAEAC,sBAAA;AAAA;AAAA,EAEAC,sBAAA;AAAA;AAAA,EAEAC,iBAAA;AAAA;AAAA,EAEAC,mBAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,eAAA;AAAA;AAAA,EAEAC,oBAAA;AAAA;AAAA,EAEAC,qBAAA;AAAA;AAAA,EAEAC,sBAAA;AAAA;AAAA,EAEAC,wBAAA;AAAA;AAAA,EAEAC,wBAAA;AAAA;AAAA,EAEAC,0BAAA;AAAA;AAAA,EAEAC,4BAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,0BAAA;AAAA;AAAA,EAEAC,wBAAA;AAAA;AAAA,EAEAC,2BAAA;AAAA;AAAA,EAEAC,qBAAA;AAAA;AAAA,EAEAC,aAAA;AAAA;AAAA,EAEAC,cAAA;AAAA;AAAA;AAAA,EAGAC,mBAAA;AAAA;AAAA,EAEAC,cAAA;AAAA,EACA,sBAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaF,CAAA,CAAA;AAEO,MAAM,OAAU,GAAA,CAAC,GAAU,EAAA,MAAA,GAAc,EAAO,KAAA;AACrD,EAAW,UAAA,CAAA,OAAA,CAAQ,CAAC,IAAS,KAAA;AAC3B,IAAA,IAAI,KAAK,OAAU,EAAA;AACjB,MAAA,GAAA,CAAI,IAAI,IAAI,CAAA,CAAA;AAAA,KACd,MAAA,IAAW,KAAK,IAAM,EAAA;AACpB,MAAI,GAAA,CAAA,SAAA,CAAU,IAAK,CAAA,IAAA,EAAM,IAAI,CAAA,CAAA;AAAA,KAC/B;AAAA,GACD,CAAA,CAAA;AACD,EAAAC,gBAAA,CAAW,GAAG,CAAA,CAAA;AACd,EAAAC,qBAAA,CAAgB,MAAM,CAAA,CAAA;AACxB,EAAA;AAEA,YAAe;AAAA,EACb,OAAA;AACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.scss
CHANGED
@@ -22,6 +22,8 @@
|
|
22
22
|
@import './table/style/index.scss';
|
23
23
|
@import './poster-input/style/index.scss';
|
24
24
|
@import './hot-area-input/style/index.scss';
|
25
|
+
@import './animate-select/style/index.scss';
|
26
|
+
@import './style-animation-input/style/index.scss';
|
25
27
|
|
26
28
|
//
|
27
29
|
::-webkit-scrollbar {
|
@@ -46,4 +48,16 @@
|
|
46
48
|
*::after {
|
47
49
|
box-sizing: border-box;
|
48
50
|
}
|
51
|
+
|
52
|
+
.cl:after {
|
53
|
+
content: '.';
|
54
|
+
display: block;
|
55
|
+
height: 0;
|
56
|
+
clear: both;
|
57
|
+
visibility: hidden;
|
58
|
+
}
|
59
|
+
|
60
|
+
.cl {
|
61
|
+
zoom: 1;
|
62
|
+
}
|
49
63
|
/* stylelint-enable */
|
package/lib/page-diy/index.d.ts
CHANGED
@@ -148,7 +148,7 @@ export declare const PageDiy: import("@vipl520/utils").WithInstall<import("vue")
|
|
148
148
|
};
|
149
149
|
}>;
|
150
150
|
dkSettingForm: import("vue").Ref<{
|
151
|
-
rule: {
|
151
|
+
rule: ({
|
152
152
|
type: string;
|
153
153
|
props: {
|
154
154
|
modelValue: string;
|
@@ -182,7 +182,73 @@ export declare const PageDiy: import("@vipl520/utils").WithInstall<import("vue")
|
|
182
182
|
};
|
183
183
|
})[];
|
184
184
|
}[];
|
185
|
-
}
|
185
|
+
} | {
|
186
|
+
type: string;
|
187
|
+
props: {
|
188
|
+
modelValue: string;
|
189
|
+
};
|
190
|
+
style: string;
|
191
|
+
children: {
|
192
|
+
type: string;
|
193
|
+
props: {
|
194
|
+
name: string;
|
195
|
+
};
|
196
|
+
children: ({
|
197
|
+
type: string;
|
198
|
+
slot: string;
|
199
|
+
style: string;
|
200
|
+
children: ({
|
201
|
+
type: string;
|
202
|
+
style: string;
|
203
|
+
children?: undefined;
|
204
|
+
} | {
|
205
|
+
type: string;
|
206
|
+
children: any[];
|
207
|
+
style?: undefined;
|
208
|
+
})[];
|
209
|
+
} | {
|
210
|
+
type: string;
|
211
|
+
field: string;
|
212
|
+
value: string;
|
213
|
+
title: string;
|
214
|
+
control: ({
|
215
|
+
handle: (val: any) => boolean;
|
216
|
+
rule: {
|
217
|
+
type: string;
|
218
|
+
field: string;
|
219
|
+
title: string;
|
220
|
+
value: {
|
221
|
+
animationDelay: string;
|
222
|
+
animationDuration: string;
|
223
|
+
animationIterationCount: string;
|
224
|
+
};
|
225
|
+
}[];
|
226
|
+
} | {
|
227
|
+
handle: (val: any) => boolean;
|
228
|
+
rule: {
|
229
|
+
type: string;
|
230
|
+
field: string;
|
231
|
+
title: string;
|
232
|
+
value: {
|
233
|
+
animationDelay: string;
|
234
|
+
animationDuration: string;
|
235
|
+
animationIterationCount: number;
|
236
|
+
};
|
237
|
+
}[];
|
238
|
+
})[];
|
239
|
+
effect?: undefined;
|
240
|
+
} | {
|
241
|
+
type: string;
|
242
|
+
field: string;
|
243
|
+
title: string;
|
244
|
+
value: boolean;
|
245
|
+
effect: {
|
246
|
+
help: string;
|
247
|
+
};
|
248
|
+
control?: undefined;
|
249
|
+
})[];
|
250
|
+
}[];
|
251
|
+
})[];
|
186
252
|
api: {};
|
187
253
|
options: {
|
188
254
|
form: {
|
@@ -290,10 +356,10 @@ export declare const PageDiy: import("@vipl520/utils").WithInstall<import("vue")
|
|
290
356
|
};
|
291
357
|
}>>, {
|
292
358
|
type: string;
|
293
|
-
config: Record<string, any>;
|
294
|
-
loading: boolean;
|
295
359
|
menu: Record<string, any>;
|
296
360
|
mask: string;
|
361
|
+
config: Record<string, any>;
|
362
|
+
loading: boolean;
|
297
363
|
height: string;
|
298
364
|
rightAsideWidth: string;
|
299
365
|
leftAsideWidth: string;
|
@@ -22,10 +22,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
22
|
}, {
|
23
23
|
id: import("vue").ComputedRef<string | number>;
|
24
24
|
state: any;
|
25
|
+
previewSetting: any;
|
25
26
|
}, any, {
|
26
27
|
pageConfig(): {};
|
27
28
|
_style(): any;
|
28
|
-
_animate():
|
29
|
+
_animate(): string;
|
29
30
|
}, {
|
30
31
|
active(): void;
|
31
32
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -34,9 +34,11 @@ const _sfc_main = vue.defineComponent({
|
|
34
34
|
const { unique } = vue.toRefs(props);
|
35
35
|
const id = vue.computed(() => unique.value || uni++);
|
36
36
|
const state = vue.inject('fcx');
|
37
|
+
const previewSetting = vue.inject('previewSetting');
|
37
38
|
return {
|
38
39
|
id,
|
39
40
|
state,
|
41
|
+
previewSetting,
|
40
42
|
}
|
41
43
|
},
|
42
44
|
computed: {
|
@@ -44,26 +46,21 @@ const _sfc_main = vue.defineComponent({
|
|
44
46
|
return {}
|
45
47
|
},
|
46
48
|
_style() {
|
49
|
+
let style = { ...this.setting.style, ...this.setting.animation };
|
47
50
|
if (this.setting.is_position) {
|
48
|
-
|
49
|
-
...this.setting.style,
|
51
|
+
style = Object.assign(style, {
|
50
52
|
...this.setting.position,
|
51
53
|
position: 'absolute',
|
52
|
-
}
|
53
|
-
} else {
|
54
|
-
return {
|
55
|
-
...this.setting.style,
|
56
|
-
}
|
54
|
+
});
|
57
55
|
}
|
56
|
+
return style
|
58
57
|
},
|
59
58
|
_animate() {
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
return ''
|
66
|
-
// }
|
59
|
+
if (this.setting.animation_preview !== false && this.setting.animate && !this.previewSetting.closeAnimate) {
|
60
|
+
return 'animate__' + this.setting.animate
|
61
|
+
} else {
|
62
|
+
return ''
|
63
|
+
}
|
67
64
|
},
|
68
65
|
},
|
69
66
|
beforeUnmount() {
|
@@ -88,7 +85,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
88
85
|
const _component_dk_icon = vue.resolveComponent("dk-icon");
|
89
86
|
|
90
87
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
91
|
-
class: vue.normalizeClass(["drag-tool animate__animated", { active: _ctx.state.active === _ctx.id }]),
|
88
|
+
class: vue.normalizeClass(["drag-tool animate__animated", [{ active: _ctx.state.active === _ctx.id }, _ctx._animate]]),
|
92
89
|
style: vue.normalizeStyle(_ctx._style),
|
93
90
|
onClick: _cache[4] || (_cache[4] = vue.withModifiers((...args) => (_ctx.active && _ctx.active(...args)), ["stop"]))
|
94
91
|
}, [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DragTool.vue.js","sources":["../../../../src/page-diy/src/components/DragTool.vue"],"sourcesContent":["<template>\n <div\n class=\"drag-tool animate__animated\"\n :class=\"{ active: state.active === id }\"\n :style=\"_style\"\n @click.stop=\"active\"\n >\n <div v-if=\"mask\" class=\"drag-mask\"></div>\n <div class=\"drag-r\">\n <div class=\"drag-btn\" title=\"添加当前组件\" @click=\"$emit('create')\">\n <dk-icon icon=\"CirclePlus\"></dk-icon>\n </div>\n <div class=\"drag-btn\" title=\"复制当前组件\" @click=\"$emit('copy')\">\n <dk-icon icon=\"CopyDocument\"></dk-icon>\n </div>\n <div v-if=\"children\" class=\"drag-btn\" title=\"添加子组件\" @click=\"$emit('addChild')\">\n <dk-icon icon=\"fluent:tab-add-20-regular\"></dk-icon>\n </div>\n <div class=\"drag-btn drag-btn-danger\" title=\"删除组件\" @click=\"$emit('delete')\">\n <dk-icon icon=\"Close\"></dk-icon>\n </div>\n </div>\n <slot name=\"default\"></slot>\n </div>\n</template>\n\n<script>\nimport { computed, inject, toRefs, defineComponent } from 'vue'\
|
1
|
+
{"version":3,"file":"DragTool.vue.js","sources":["../../../../src/page-diy/src/components/DragTool.vue"],"sourcesContent":["<template>\n <div\n class=\"drag-tool animate__animated\"\n :class=\"[{ active: state.active === id }, _animate]\"\n :style=\"_style\"\n @click.stop=\"active\"\n >\n <div v-if=\"mask\" class=\"drag-mask\"></div>\n <div class=\"drag-r\">\n <div class=\"drag-btn\" title=\"添加当前组件\" @click=\"$emit('create')\">\n <dk-icon icon=\"CirclePlus\"></dk-icon>\n </div>\n <div class=\"drag-btn\" title=\"复制当前组件\" @click=\"$emit('copy')\">\n <dk-icon icon=\"CopyDocument\"></dk-icon>\n </div>\n <div v-if=\"children\" class=\"drag-btn\" title=\"添加子组件\" @click=\"$emit('addChild')\">\n <dk-icon icon=\"fluent:tab-add-20-regular\"></dk-icon>\n </div>\n <div class=\"drag-btn drag-btn-danger\" title=\"删除组件\" @click=\"$emit('delete')\">\n <dk-icon icon=\"Close\"></dk-icon>\n </div>\n </div>\n <slot name=\"default\"></slot>\n </div>\n</template>\n\n<script>\nimport { computed, inject, toRefs, defineComponent } from 'vue'\nlet uni = 1\nexport default defineComponent({\n name: 'DragTool',\n props: {\n dragBtn: {\n default: false,\n type: Boolean,\n },\n children: {\n default: '',\n type: String,\n },\n unique: {\n default: '',\n type: String,\n },\n mask: {\n default: false,\n type: Boolean,\n },\n setting: {\n default: () => {},\n type: [Object],\n },\n },\n setup(props) {\n const { unique } = toRefs(props)\n const id = computed(() => unique.value || uni++)\n const state = inject('fcx')\n const previewSetting = inject('previewSetting')\n return {\n id,\n state,\n previewSetting,\n }\n },\n computed: {\n pageConfig() {\n return {}\n },\n _style() {\n let style = { ...this.setting.style, ...this.setting.animation }\n if (this.setting.is_position) {\n style = Object.assign(style, {\n ...this.setting.position,\n position: 'absolute',\n })\n }\n return style\n },\n _animate() {\n if (this.setting.animation_preview !== false && this.setting.animate && !this.previewSetting.closeAnimate) {\n return 'animate__' + this.setting.animate\n } else {\n return ''\n }\n },\n },\n beforeUnmount() {\n this.state = {}\n },\n methods: {\n active() {\n if (this.state.active === this.id) return\n this.state.active = this.id\n this.$emit('active')\n },\n },\n})\n</script>\n"],"names":["defineComponent","toRefs","computed","inject","_createElementBlock","_normalizeClass","_openBlock","_createElementVNode","_createVNode","_renderSlot"],"mappings":"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"}
|
@@ -60,8 +60,10 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
60
60
|
const form = vue.ref({
|
61
61
|
showLine: cache.showLine || false,
|
62
62
|
margin: cache.margin || 0,
|
63
|
-
preview: cache.preview || false
|
63
|
+
preview: cache.preview || false,
|
64
|
+
closeAnimate: cache.closeAnimate || false
|
64
65
|
});
|
66
|
+
vue.provide("previewSetting", form);
|
65
67
|
const changeForm = () => {
|
66
68
|
utils.storage.set(key, JSON.stringify(form.value));
|
67
69
|
};
|
@@ -95,9 +97,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
95
97
|
if (form.value.preview) {
|
96
98
|
line["--padding"] = "0";
|
97
99
|
line["--overflow"] = "hidden";
|
100
|
+
line["--minHeight"] = "0px";
|
98
101
|
} else {
|
99
102
|
line["--padding"] = "2px 0";
|
100
103
|
line["--overflow"] = "initial";
|
104
|
+
line["--minHeight"] = "30px";
|
101
105
|
}
|
102
106
|
return {
|
103
107
|
...props.pageConfig.style,
|
@@ -116,6 +120,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
116
120
|
const _component_el_dropdown_item = vue.resolveComponent("el-dropdown-item");
|
117
121
|
const _component_el_dropdown_menu = vue.resolveComponent("el-dropdown-menu");
|
118
122
|
const _component_el_dropdown = vue.resolveComponent("el-dropdown");
|
123
|
+
const _component_el_tooltip = vue.resolveComponent("el-tooltip");
|
119
124
|
const _component_el_switch = vue.resolveComponent("el-switch");
|
120
125
|
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
121
126
|
const _component_el_slider = vue.resolveComponent("el-slider");
|
@@ -209,6 +214,20 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
209
214
|
]),
|
210
215
|
default: vue.withCtx(() => [
|
211
216
|
vue.createVNode(_component_el_form_item, { label: "\u663E\u793A\u7F51\u683C" }, {
|
217
|
+
label: vue.withCtx(() => [
|
218
|
+
vue.createVNode(_component_el_tooltip, {
|
219
|
+
class: "box-item",
|
220
|
+
effect: "dark",
|
221
|
+
content: "\u663E\u793A\u7EC4\u4EF6\u7F51\u683C\u7EBF",
|
222
|
+
placement: "right-start"
|
223
|
+
}, {
|
224
|
+
default: vue.withCtx(() => [
|
225
|
+
vue.createTextVNode(" \u663E\u793A\u7F51\u683C ")
|
226
|
+
]),
|
227
|
+
_: 1
|
228
|
+
/* STABLE */
|
229
|
+
})
|
230
|
+
]),
|
212
231
|
default: vue.withCtx(() => [
|
213
232
|
vue.createVNode(_component_el_switch, {
|
214
233
|
modelValue: form.value.showLine,
|
@@ -220,6 +239,20 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
220
239
|
/* STABLE */
|
221
240
|
}),
|
222
241
|
vue.createVNode(_component_el_form_item, { label: "\u7F51\u683C\u95F4\u8DDD" }, {
|
242
|
+
label: vue.withCtx(() => [
|
243
|
+
vue.createVNode(_component_el_tooltip, {
|
244
|
+
class: "box-item",
|
245
|
+
effect: "dark",
|
246
|
+
content: "\u8BBE\u7F6E\u7EC4\u4EF6\u4E4B\u95F4\u7684\u7F51\u683C\u95F4\u8DDD",
|
247
|
+
placement: "right-start"
|
248
|
+
}, {
|
249
|
+
default: vue.withCtx(() => [
|
250
|
+
vue.createTextVNode(" \u7F51\u683C\u95F4\u8DDD ")
|
251
|
+
]),
|
252
|
+
_: 1
|
253
|
+
/* STABLE */
|
254
|
+
})
|
255
|
+
]),
|
223
256
|
default: vue.withCtx(() => [
|
224
257
|
vue.createVNode(_component_el_slider, {
|
225
258
|
modelValue: form.value.margin,
|
@@ -235,6 +268,20 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
235
268
|
/* STABLE */
|
236
269
|
}),
|
237
270
|
vue.createVNode(_component_el_form_item, { label: "\u6548\u679C\u9884\u89C8" }, {
|
271
|
+
label: vue.withCtx(() => [
|
272
|
+
vue.createVNode(_component_el_tooltip, {
|
273
|
+
class: "box-item",
|
274
|
+
effect: "dark",
|
275
|
+
content: "\u6E05\u9664\u6240\u6709\u7F51\u683C\u3001\u95F4\u8DDD\u6548\u679C\uFF0C\u5927\u81F4\u548C\u771F\u5B9E\u5DEE\u4E0D\u591A",
|
276
|
+
placement: "right-start"
|
277
|
+
}, {
|
278
|
+
default: vue.withCtx(() => [
|
279
|
+
vue.createTextVNode(" \u6548\u679C\u9884\u89C8 ")
|
280
|
+
]),
|
281
|
+
_: 1
|
282
|
+
/* STABLE */
|
283
|
+
})
|
284
|
+
]),
|
238
285
|
default: vue.withCtx(() => [
|
239
286
|
vue.createVNode(_component_el_switch, {
|
240
287
|
modelValue: form.value.preview,
|
@@ -244,6 +291,31 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
244
291
|
]),
|
245
292
|
_: 1
|
246
293
|
/* STABLE */
|
294
|
+
}),
|
295
|
+
vue.createVNode(_component_el_form_item, { label: "\u5173\u95ED\u52A8\u753B" }, {
|
296
|
+
label: vue.withCtx(() => [
|
297
|
+
vue.createVNode(_component_el_tooltip, {
|
298
|
+
class: "box-item",
|
299
|
+
effect: "dark",
|
300
|
+
content: "\u5173\u95ED\u6240\u6709\u9884\u89C8\u7684\u52A8\u753B\u6548\u679C",
|
301
|
+
placement: "right-start"
|
302
|
+
}, {
|
303
|
+
default: vue.withCtx(() => [
|
304
|
+
vue.createTextVNode(" \u5173\u95ED\u52A8\u753B ")
|
305
|
+
]),
|
306
|
+
_: 1
|
307
|
+
/* STABLE */
|
308
|
+
})
|
309
|
+
]),
|
310
|
+
default: vue.withCtx(() => [
|
311
|
+
vue.createVNode(_component_el_switch, {
|
312
|
+
modelValue: form.value.closeAnimate,
|
313
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => form.value.closeAnimate = $event),
|
314
|
+
onChange: _cache[9] || (_cache[9] = ($event) => changeForm())
|
315
|
+
}, null, 8, ["modelValue"])
|
316
|
+
]),
|
317
|
+
_: 1
|
318
|
+
/* STABLE */
|
247
319
|
})
|
248
320
|
]),
|
249
321
|
_: 1
|