@gct-paas/core-web 0.1.4-dev.6 → 0.1.4-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.min.mjs +24964 -0
- package/dist/index.min.cjs +59 -12
- package/dist/index.min.css +1 -0
- package/dist/index.system.min.js +59 -12
- package/es/components/assets-svg-icon/assets-svg-icon.css +188 -0
- package/es/components/assets-svg-icon/assets-svg-icon.d.ts +134 -0
- package/es/components/assets-svg-icon/assets-svg-icon.mjs +238 -0
- package/es/components/assets-svg-icon/request.d.ts +2 -0
- package/es/components/assets-svg-icon/request.mjs +51 -0
- package/es/components/assets-svg-icon/utils.d.ts +9 -0
- package/es/components/assets-svg-icon/utils.mjs +21 -0
- package/es/components/assets-svg-icon/validate.d.ts +4 -0
- package/es/components/assets-svg-icon/validate.mjs +43 -0
- package/es/components/code-editor/code-editor.css +67 -0
- package/es/components/code-editor/code-editor.d.ts +35 -0
- package/es/components/code-editor/code-editor.mjs +15 -20
- package/es/components/index.d.ts +1 -0
- package/es/components/layout/flex-container/flex-container.css +67 -0
- package/es/components/layout/flex-container/flex-container.d.ts +4 -4
- package/es/components/layout/flex-item/flex-item.d.ts +4 -4
- package/es/components/layout/grid-container/grid-container.d.ts +4 -4
- package/es/components/layout/view-container/view-container.css +83 -0
- package/es/components/layout/view-container/view-container.d.ts +4 -4
- package/es/editor/gct-form-check-switch/gct-form-check-switch.d.ts +7 -7
- package/es/editor/gct-form-checkbox/gct-form-checkbox.d.ts +6 -6
- package/es/editor/gct-form-field-select/gct-form-field-select.d.ts +17 -7
- package/es/editor/gct-form-field-select/gct-model-select.vue.d.ts +3 -12
- package/es/editor/gct-form-i18n/gct-form-i18n.d.ts +8 -8
- package/es/editor/gct-form-icon-select/gct-form-icon-select.d.ts +8 -8
- package/es/editor/gct-form-info/gct-form-info.d.ts +7 -7
- package/es/editor/gct-form-length-unit/gct-form-length-unit.d.ts +6 -6
- package/es/editor/gct-form-modal-select/gct-form-modal-select.d.ts +8 -8
- package/es/editor/gct-form-number/gct-form-number.d.ts +7 -7
- package/es/editor/gct-form-picker/gct-form-picker.d.ts +8 -8
- package/es/editor/gct-form-radio/gct-form-radio.d.ts +7 -7
- package/es/editor/gct-form-select/gct-form-select.d.ts +7 -7
- package/es/editor/gct-form-span/gct-form-span.d.ts +5 -5
- package/es/editor/gct-form-switch/gct-form-switch.d.ts +6 -6
- package/es/editor/gct-form-text/gct-form-text.d.ts +7 -7
- package/es/editor/gct-form-textarea/gct-form-textarea.d.ts +7 -7
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/useLocale.d.ts +4 -0
- package/es/hooks/useLocale.mjs +32 -0
- package/es/hooks/useTheme.d.ts +8 -0
- package/es/hooks/useTheme.mjs +20 -0
- package/es/index.d.ts +5 -6
- package/es/index.mjs +19 -24
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.css +72 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.d.ts +37 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs +195 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.css +79 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.d.ts +29 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs +98 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.css +70 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.d.ts +50 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs +239 -0
- package/es/modules/gct-dnd/constants/index.d.ts +24 -0
- package/es/modules/gct-dnd/constants/index.mjs +9 -0
- package/es/modules/gct-dnd/index.d.ts +5 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-config.d.ts +101 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-data.d.ts +14 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-render-item-options.d.ts +28 -0
- package/es/modules/gct-dnd/interface/i-gct-drag-collect.d.ts +24 -0
- package/es/modules/gct-dnd/interface/i-gct-drag-dnd-data.d.ts +51 -0
- package/es/modules/gct-dnd/interface/i-gct-drop-collect.d.ts +32 -0
- package/es/modules/gct-dnd/interface/i-gct-drop-result.d.ts +47 -0
- package/es/modules/gct-dnd/interface/index.d.ts +7 -0
- package/es/types/index.d.ts +1 -1
- package/es/utils/with-install.mjs +0 -1
- package/es/widgets/gct-edit-form/gct-edit-form.d.ts +9 -9
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.d.ts +6 -6
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.d.ts +4 -4
- package/es/widgets/gct-form/gct-form-group/gct-form-group.d.ts +5 -5
- package/es/widgets/gct-form/gct-form-item/gct-form-item.d.ts +4 -4
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.d.ts +4 -4
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.d.ts +4 -4
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.d.ts +5 -5
- package/es/widgets/gct-form/gct-form.d.ts +5 -5
- package/package.json +15 -13
- package/dist/core-web.css +0 -1
- package/es/components/code-editor/code-editor.scss +0 -3
- package/es/components/index.mjs +0 -7
- package/es/components/layout/flex-container/flex-container.mjs +0 -90
- package/es/components/layout/flex-container/flex-container.scss +0 -3
- package/es/components/layout/flex-item/flex-item.mjs +0 -53
- package/es/components/layout/flex-item/flex-item.scss +0 -17
- package/es/components/layout/grid-container/grid-container.mjs +0 -47
- package/es/components/layout/view-container/view-container.mjs +0 -39
- package/es/components/layout/view-container/view-container.scss +0 -19
- package/es/editor/gct-form-check-switch/gct-form-check-switch.mjs +0 -53
- package/es/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +0 -6
- package/es/editor/gct-form-check-switch/gct-form-check-switch.scss +0 -10
- package/es/editor/gct-form-check-switch/index.mjs +0 -12
- package/es/editor/gct-form-checkbox/gct-form-checkbox.mjs +0 -70
- package/es/editor/gct-form-checkbox/gct-form-checkbox.scss +0 -56
- package/es/editor/gct-form-checkbox/index.mjs +0 -19
- package/es/editor/gct-form-color/gct-form-color.mjs +0 -45
- package/es/editor/gct-form-color/gct-form-color.provider.mjs +0 -6
- package/es/editor/gct-form-color/gct-form-color.scss +0 -3
- package/es/editor/gct-form-color/index.mjs +0 -17
- package/es/editor/gct-form-field-select/gct-form-field-select.mjs +0 -48
- package/es/editor/gct-form-field-select/gct-form-field-select.provider.mjs +0 -6
- package/es/editor/gct-form-field-select/gct-form-field-select.scss +0 -7
- package/es/editor/gct-form-field-select/gct-model-select.vue +0 -70
- package/es/editor/gct-form-field-select/index.mjs +0 -12
- package/es/editor/gct-form-i18n/gct-form-i18n.mjs +0 -62
- package/es/editor/gct-form-i18n/gct-form-i18n.provider.mjs +0 -6
- package/es/editor/gct-form-i18n/index.mjs +0 -12
- package/es/editor/gct-form-icon-select/gct-form-icon-select.mjs +0 -74
- package/es/editor/gct-form-icon-select/gct-form-icon-select.scss +0 -14
- package/es/editor/gct-form-icon-select/index.mjs +0 -14
- package/es/editor/gct-form-info/gct-form-info.mjs +0 -40
- package/es/editor/gct-form-info/gct-form-info.scss +0 -8
- package/es/editor/gct-form-info/index.mjs +0 -14
- package/es/editor/gct-form-length-unit/gct-form-length-unit.mjs +0 -43
- package/es/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +0 -6
- package/es/editor/gct-form-length-unit/index.mjs +0 -12
- package/es/editor/gct-form-modal-select/gct-form-modal-select.mjs +0 -99
- package/es/editor/gct-form-modal-select/gct-form-modal-select.provider.mjs +0 -6
- package/es/editor/gct-form-modal-select/gct-form-modal-select.scss +0 -7
- package/es/editor/gct-form-modal-select/index.mjs +0 -12
- package/es/editor/gct-form-number/gct-form-number.mjs +0 -44
- package/es/editor/gct-form-number/gct-form-number.provider.mjs +0 -6
- package/es/editor/gct-form-number/gct-form-number.scss +0 -3
- package/es/editor/gct-form-number/index.mjs +0 -17
- package/es/editor/gct-form-picker/gct-form-picker.mjs +0 -92
- package/es/editor/gct-form-picker/gct-form-picker.provider.mjs +0 -6
- package/es/editor/gct-form-picker/index.mjs +0 -12
- package/es/editor/gct-form-radio/gct-form-radio.mjs +0 -70
- package/es/editor/gct-form-radio/gct-form-radio.scss +0 -68
- package/es/editor/gct-form-radio/index.mjs +0 -19
- package/es/editor/gct-form-select/gct-form-select.mjs +0 -50
- package/es/editor/gct-form-select/gct-form-select.provider.mjs +0 -6
- package/es/editor/gct-form-select/index.mjs +0 -12
- package/es/editor/gct-form-span/gct-form-span.mjs +0 -89
- package/es/editor/gct-form-span/gct-form-span.provider.mjs +0 -6
- package/es/editor/gct-form-span/gct-form-span.scss +0 -10
- package/es/editor/gct-form-span/index.mjs +0 -12
- package/es/editor/gct-form-switch/gct-form-switch.mjs +0 -35
- package/es/editor/gct-form-switch/gct-form-switch.provider.mjs +0 -6
- package/es/editor/gct-form-switch/index.mjs +0 -17
- package/es/editor/gct-form-text/gct-form-text.mjs +0 -45
- package/es/editor/gct-form-text/gct-form-text.provider.mjs +0 -6
- package/es/editor/gct-form-text/index.mjs +0 -17
- package/es/editor/gct-form-textarea/gct-form-textarea.mjs +0 -40
- package/es/editor/gct-form-textarea/gct-form-textarea.provider.mjs +0 -6
- package/es/editor/gct-form-textarea/index.mjs +0 -12
- package/es/editor/index.mjs +0 -51
- package/es/utils/index.mjs +0 -3
- package/es/vite-env.d.ts +0 -1
- package/es/widgets/gct-edit-form/gct-edit-form.mjs +0 -126
- package/es/widgets/gct-edit-form/index.mjs +0 -10
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +0 -73
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.scss +0 -62
- package/es/widgets/gct-form/gct-form-collapse/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +0 -71
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +0 -13
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.scss +0 -23
- package/es/widgets/gct-form/gct-form-collapse-pane/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-group/gct-form-group.mjs +0 -88
- package/es/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-group/gct-form-group.scss +0 -28
- package/es/widgets/gct-form/gct-form-group/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +0 -13
- package/es/widgets/gct-form/gct-form-item/gct-form-item.mjs +0 -141
- package/es/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-item/gct-form-item.scss +0 -115
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +0 -53
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.scss +0 -63
- package/es/widgets/gct-form/gct-form-tab/index.mjs +0 -12
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +0 -65
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.scss +0 -16
- package/es/widgets/gct-form/gct-form-tab-pane/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +0 -71
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.scss +0 -25
- package/es/widgets/gct-form/gct-form-title-group/index.mjs +0 -16
- package/es/widgets/gct-form/gct-form.mjs +0 -110
- package/es/widgets/gct-form/gct-form.scss +0 -11
- package/es/widgets/gct-form/index.mjs +0 -31
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { IInfoEditor } from '@gct-paas/core';
|
|
3
|
-
export declare const GctFormInfo: import('vue').DefineComponent<{
|
|
3
|
+
export declare const GctFormInfo: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
value: {
|
|
5
5
|
type: StringConstructor;
|
|
6
6
|
default: string;
|
|
@@ -9,10 +9,10 @@ export declare const GctFormInfo: import('vue').DefineComponent<{
|
|
|
9
9
|
type: PropType<IInfoEditor>;
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
|
-
}
|
|
12
|
+
}>, {
|
|
13
13
|
ns: import('@gct-paas/core').Namespace;
|
|
14
|
-
val: import('vue').WritableComputedRef<any
|
|
15
|
-
},
|
|
14
|
+
val: import('vue').WritableComputedRef<any, any>;
|
|
15
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
16
|
value: {
|
|
17
17
|
type: StringConstructor;
|
|
18
18
|
default: string;
|
|
@@ -21,8 +21,8 @@ export declare const GctFormInfo: import('vue').DefineComponent<{
|
|
|
21
21
|
type: PropType<IInfoEditor>;
|
|
22
22
|
required: true;
|
|
23
23
|
};
|
|
24
|
-
}>> & {
|
|
24
|
+
}>> & Readonly<{
|
|
25
25
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
}
|
|
26
|
+
}>, {
|
|
27
27
|
value: string;
|
|
28
|
-
}, {}>;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -3,7 +3,7 @@ import { LengthUnitEditorController, ILengthUnitEditor, IFormItem } from '@gct-p
|
|
|
3
3
|
/**
|
|
4
4
|
* 带单位长度字符串编辑器
|
|
5
5
|
*/
|
|
6
|
-
export declare const GctFormLengthUnit: import('vue').DefineComponent<{
|
|
6
|
+
export declare const GctFormLengthUnit: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
7
7
|
itemModel: {
|
|
8
8
|
type: PropType<IFormItem>;
|
|
9
9
|
required: true;
|
|
@@ -16,11 +16,11 @@ export declare const GctFormLengthUnit: import('vue').DefineComponent<{
|
|
|
16
16
|
type: StringConstructor;
|
|
17
17
|
required: true;
|
|
18
18
|
};
|
|
19
|
-
}
|
|
19
|
+
}>, {
|
|
20
20
|
ns: import('@gct-paas/core').Namespace;
|
|
21
21
|
c: LengthUnitEditorController;
|
|
22
|
-
val: import('vue').WritableComputedRef<any
|
|
23
|
-
},
|
|
22
|
+
val: import('vue').WritableComputedRef<any, any>;
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
24
|
itemModel: {
|
|
25
25
|
type: PropType<IFormItem>;
|
|
26
26
|
required: true;
|
|
@@ -33,7 +33,7 @@ export declare const GctFormLengthUnit: import('vue').DefineComponent<{
|
|
|
33
33
|
type: StringConstructor;
|
|
34
34
|
required: true;
|
|
35
35
|
};
|
|
36
|
-
}>> & {
|
|
36
|
+
}>> & Readonly<{
|
|
37
37
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
38
|
-
}, {}, {}>;
|
|
38
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
39
39
|
export default GctFormLengthUnit;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { IFormItemController, ISelectEditor } from '@gct-paas/core';
|
|
3
|
-
export declare const GctFormModalSelect: import('vue').DefineComponent<{
|
|
3
|
+
export declare const GctFormModalSelect: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
c: {
|
|
5
5
|
type: PropType<IFormItemController>;
|
|
6
6
|
required: true;
|
|
@@ -13,9 +13,9 @@ export declare const GctFormModalSelect: import('vue').DefineComponent<{
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>, {
|
|
17
17
|
ns: import('@gct-paas/core').Namespace;
|
|
18
|
-
val: import('vue').WritableComputedRef<any>;
|
|
18
|
+
val: import('vue').WritableComputedRef<any, any>;
|
|
19
19
|
options: import('vue').ComputedRef<{
|
|
20
20
|
label: string;
|
|
21
21
|
options: {
|
|
@@ -23,8 +23,8 @@ export declare const GctFormModalSelect: import('vue').DefineComponent<{
|
|
|
23
23
|
label: string;
|
|
24
24
|
}[];
|
|
25
25
|
}[]>;
|
|
26
|
-
modelCategory: import('vue').Ref<string>;
|
|
27
|
-
},
|
|
26
|
+
modelCategory: import('vue').Ref<string, string>;
|
|
27
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
28
28
|
c: {
|
|
29
29
|
type: PropType<IFormItemController>;
|
|
30
30
|
required: true;
|
|
@@ -37,9 +37,9 @@ export declare const GctFormModalSelect: import('vue').DefineComponent<{
|
|
|
37
37
|
type: StringConstructor;
|
|
38
38
|
default: string;
|
|
39
39
|
};
|
|
40
|
-
}>> & {
|
|
40
|
+
}>> & Readonly<{
|
|
41
41
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
|
-
}
|
|
42
|
+
}>, {
|
|
43
43
|
value: string;
|
|
44
|
-
}, {}>;
|
|
44
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
45
45
|
export default GctFormModalSelect;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { INumberEditor } from '@gct-paas/core';
|
|
3
|
-
export declare const GctFormNumber: import('vue').DefineComponent<{
|
|
3
|
+
export declare const GctFormNumber: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
model: {
|
|
5
5
|
type: PropType<INumberEditor>;
|
|
6
6
|
required: true;
|
|
@@ -9,10 +9,10 @@ export declare const GctFormNumber: import('vue').DefineComponent<{
|
|
|
9
9
|
type: StringConstructor;
|
|
10
10
|
default: string;
|
|
11
11
|
};
|
|
12
|
-
}
|
|
12
|
+
}>, {
|
|
13
13
|
ns: import('@gct-paas/core').Namespace;
|
|
14
|
-
val: import('vue').WritableComputedRef<any
|
|
15
|
-
},
|
|
14
|
+
val: import('vue').WritableComputedRef<any, any>;
|
|
15
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
16
|
model: {
|
|
17
17
|
type: PropType<INumberEditor>;
|
|
18
18
|
required: true;
|
|
@@ -21,8 +21,8 @@ export declare const GctFormNumber: import('vue').DefineComponent<{
|
|
|
21
21
|
type: StringConstructor;
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
|
-
}>> & {
|
|
24
|
+
}>> & Readonly<{
|
|
25
25
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
}
|
|
26
|
+
}>, {
|
|
27
27
|
value: string;
|
|
28
|
-
}, {}>;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { IFormItemController, IPickerEditor } from '@gct-paas/core';
|
|
3
|
-
export declare const GctFormPicker: import('vue').DefineComponent<{
|
|
3
|
+
export declare const GctFormPicker: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
c: {
|
|
5
5
|
type: PropType<IFormItemController>;
|
|
6
6
|
required: true;
|
|
@@ -13,13 +13,13 @@ export declare const GctFormPicker: import('vue').DefineComponent<{
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: null;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>, {
|
|
17
17
|
ns: import('@gct-paas/core').Namespace;
|
|
18
|
-
val: import('vue').WritableComputedRef<any>;
|
|
19
|
-
nameVal: import('vue').WritableComputedRef<any>;
|
|
18
|
+
val: import('vue').WritableComputedRef<any, any>;
|
|
19
|
+
nameVal: import('vue').WritableComputedRef<any, any>;
|
|
20
20
|
loadOptions: () => Promise<import('@gct-paas/core').IDictionaryItem[]>;
|
|
21
21
|
onChange: (_val: any, data: any) => void;
|
|
22
|
-
},
|
|
22
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
23
23
|
c: {
|
|
24
24
|
type: PropType<IFormItemController>;
|
|
25
25
|
required: true;
|
|
@@ -32,8 +32,8 @@ export declare const GctFormPicker: import('vue').DefineComponent<{
|
|
|
32
32
|
type: StringConstructor;
|
|
33
33
|
default: null;
|
|
34
34
|
};
|
|
35
|
-
}>> & {
|
|
35
|
+
}>> & Readonly<{
|
|
36
36
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
37
|
-
}
|
|
37
|
+
}>, {
|
|
38
38
|
value: string;
|
|
39
|
-
}, {}>;
|
|
39
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { IFormItemController, IRadioEditor } from '@gct-paas/core';
|
|
3
|
-
export declare const GctFormRadio: import('vue').DefineComponent<{
|
|
3
|
+
export declare const GctFormRadio: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
c: {
|
|
5
5
|
type: PropType<IFormItemController>;
|
|
6
6
|
required: true;
|
|
@@ -13,10 +13,10 @@ export declare const GctFormRadio: import('vue').DefineComponent<{
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>, {
|
|
17
17
|
ns: import('@gct-paas/core').Namespace;
|
|
18
|
-
val: import('vue').WritableComputedRef<any
|
|
19
|
-
},
|
|
18
|
+
val: import('vue').WritableComputedRef<any, any>;
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
20
|
c: {
|
|
21
21
|
type: PropType<IFormItemController>;
|
|
22
22
|
required: true;
|
|
@@ -29,9 +29,9 @@ export declare const GctFormRadio: import('vue').DefineComponent<{
|
|
|
29
29
|
type: StringConstructor;
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
32
|
-
}>> & {
|
|
32
|
+
}>> & Readonly<{
|
|
33
33
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
34
|
-
}
|
|
34
|
+
}>, {
|
|
35
35
|
value: string;
|
|
36
|
-
}, {}>;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
37
37
|
export default GctFormRadio;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { IFormItemController, ISelectEditor } from '@gct-paas/core';
|
|
3
|
-
export declare const GctFormSelect: import('vue').DefineComponent<{
|
|
3
|
+
export declare const GctFormSelect: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
c: {
|
|
5
5
|
type: PropType<IFormItemController>;
|
|
6
6
|
required: true;
|
|
@@ -13,11 +13,11 @@ export declare const GctFormSelect: import('vue').DefineComponent<{
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>, {
|
|
17
17
|
ns: import('@gct-paas/core').Namespace;
|
|
18
|
-
val: import('vue').WritableComputedRef<any
|
|
18
|
+
val: import('vue').WritableComputedRef<any, any>;
|
|
19
19
|
options: import('vue').ComputedRef<import('@gct-paas/core').IDictionaryItem[]>;
|
|
20
|
-
},
|
|
20
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
21
|
c: {
|
|
22
22
|
type: PropType<IFormItemController>;
|
|
23
23
|
required: true;
|
|
@@ -30,9 +30,9 @@ export declare const GctFormSelect: import('vue').DefineComponent<{
|
|
|
30
30
|
type: StringConstructor;
|
|
31
31
|
default: string;
|
|
32
32
|
};
|
|
33
|
-
}>> & {
|
|
33
|
+
}>> & Readonly<{
|
|
34
34
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
35
|
-
}
|
|
35
|
+
}>, {
|
|
36
36
|
value: string;
|
|
37
|
-
}, {}>;
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
38
38
|
export default GctFormSelect;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { IFormItem, IFormItemController, ISpanEditor } from '@gct-paas/core';
|
|
3
|
-
export declare const GctFormSpan: import('vue').DefineComponent<{
|
|
3
|
+
export declare const GctFormSpan: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
c: {
|
|
5
5
|
type: PropType<IFormItemController>;
|
|
6
6
|
required: true;
|
|
@@ -17,11 +17,11 @@ export declare const GctFormSpan: import('vue').DefineComponent<{
|
|
|
17
17
|
type: StringConstructor;
|
|
18
18
|
default: string;
|
|
19
19
|
};
|
|
20
|
-
}
|
|
20
|
+
}>, {
|
|
21
21
|
ns: import('@gct-paas/core').Namespace;
|
|
22
22
|
val: import('vue').ComputedRef<string>;
|
|
23
23
|
handleClipboardKey: () => void;
|
|
24
|
-
},
|
|
24
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
25
25
|
c: {
|
|
26
26
|
type: PropType<IFormItemController>;
|
|
27
27
|
required: true;
|
|
@@ -38,6 +38,6 @@ export declare const GctFormSpan: import('vue').DefineComponent<{
|
|
|
38
38
|
type: StringConstructor;
|
|
39
39
|
default: string;
|
|
40
40
|
};
|
|
41
|
-
}
|
|
41
|
+
}>> & Readonly<{}>, {
|
|
42
42
|
value: string;
|
|
43
|
-
}, {}>;
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { ISwitchEditor } from '@gct-paas/core';
|
|
3
|
-
export declare const GctFormSwitch: import('vue').DefineComponent<{
|
|
3
|
+
export declare const GctFormSwitch: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
model: {
|
|
5
5
|
type: PropType<ISwitchEditor>;
|
|
6
6
|
required: true;
|
|
@@ -9,10 +9,10 @@ export declare const GctFormSwitch: import('vue').DefineComponent<{
|
|
|
9
9
|
type: StringConstructor;
|
|
10
10
|
default: string;
|
|
11
11
|
};
|
|
12
|
-
}
|
|
12
|
+
}>, {
|
|
13
13
|
ns: import('@gct-paas/core').Namespace;
|
|
14
|
-
val: import('vue').WritableComputedRef<any
|
|
15
|
-
},
|
|
14
|
+
val: import('vue').WritableComputedRef<any, any>;
|
|
15
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
16
|
model: {
|
|
17
17
|
type: PropType<ISwitchEditor>;
|
|
18
18
|
required: true;
|
|
@@ -21,6 +21,6 @@ export declare const GctFormSwitch: import('vue').DefineComponent<{
|
|
|
21
21
|
type: StringConstructor;
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
|
-
}
|
|
24
|
+
}>> & Readonly<{}>, {
|
|
25
25
|
value: string;
|
|
26
|
-
}, {}>;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -3,7 +3,7 @@ import { ITextEditor, EditorController } from '@gct-paas/core';
|
|
|
3
3
|
/**
|
|
4
4
|
* 文本编辑器
|
|
5
5
|
*/
|
|
6
|
-
export declare const GctFormText: import('vue').DefineComponent<{
|
|
6
|
+
export declare const GctFormText: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
7
7
|
model: {
|
|
8
8
|
type: PropType<ITextEditor>;
|
|
9
9
|
required: true;
|
|
@@ -12,11 +12,11 @@ export declare const GctFormText: import('vue').DefineComponent<{
|
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
|
-
}
|
|
15
|
+
}>, {
|
|
16
16
|
ns: import('@gct-paas/core').Namespace;
|
|
17
17
|
c: EditorController<ITextEditor>;
|
|
18
|
-
val: import('vue').WritableComputedRef<string>;
|
|
19
|
-
},
|
|
18
|
+
val: import('vue').WritableComputedRef<string, string>;
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
20
|
model: {
|
|
21
21
|
type: PropType<ITextEditor>;
|
|
22
22
|
required: true;
|
|
@@ -25,8 +25,8 @@ export declare const GctFormText: import('vue').DefineComponent<{
|
|
|
25
25
|
type: StringConstructor;
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
|
-
}>> & {
|
|
28
|
+
}>> & Readonly<{
|
|
29
29
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
30
|
-
}
|
|
30
|
+
}>, {
|
|
31
31
|
value: string;
|
|
32
|
-
}, {}>;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { ITextareaEditor } from '@gct-paas/core';
|
|
3
|
-
export declare const GctFormTextarea: import('vue').DefineComponent<{
|
|
3
|
+
export declare const GctFormTextarea: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
model: {
|
|
5
5
|
type: PropType<ITextareaEditor>;
|
|
6
6
|
required: true;
|
|
@@ -9,10 +9,10 @@ export declare const GctFormTextarea: import('vue').DefineComponent<{
|
|
|
9
9
|
type: StringConstructor;
|
|
10
10
|
default: null;
|
|
11
11
|
};
|
|
12
|
-
}
|
|
12
|
+
}>, {
|
|
13
13
|
ns: import('@gct-paas/core').Namespace;
|
|
14
|
-
val: import('vue').WritableComputedRef<any
|
|
15
|
-
},
|
|
14
|
+
val: import('vue').WritableComputedRef<any, any>;
|
|
15
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
16
|
model: {
|
|
17
17
|
type: PropType<ITextareaEditor>;
|
|
18
18
|
required: true;
|
|
@@ -21,8 +21,8 @@ export declare const GctFormTextarea: import('vue').DefineComponent<{
|
|
|
21
21
|
type: StringConstructor;
|
|
22
22
|
default: null;
|
|
23
23
|
};
|
|
24
|
-
}>> & {
|
|
24
|
+
}>> & Readonly<{
|
|
25
25
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
}
|
|
26
|
+
}>, {
|
|
27
27
|
value: string;
|
|
28
|
-
}, {}>;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { computed } from 'vue';
|
|
2
|
+
import antdLocaleCn from 'ant-design-vue/es/locale/zh_CN';
|
|
3
|
+
import antdLocaleUs from 'ant-design-vue/es/locale/en_US';
|
|
4
|
+
import antdLocalePt from 'ant-design-vue/es/locale/pt_PT';
|
|
5
|
+
import antdLocaleTr from 'ant-design-vue/es/locale/tr_TR';
|
|
6
|
+
import antdLocaleTw from 'ant-design-vue/es/locale/zh_TW';
|
|
7
|
+
import antdLocaleJp from 'ant-design-vue/es/locale/ja_JP';
|
|
8
|
+
import antdLocaleVn from 'ant-design-vue/es/locale/vi_VN';
|
|
9
|
+
import antdLocaleDe from 'ant-design-vue/es/locale/de_DE';
|
|
10
|
+
import antdLocaleFr from 'ant-design-vue/es/locale/fr_FR';
|
|
11
|
+
import antdLocaleEs from 'ant-design-vue/es/locale/es_ES';
|
|
12
|
+
import antdLocaleRu from 'ant-design-vue/es/locale/ru_RU';
|
|
13
|
+
|
|
14
|
+
const antdMap = {
|
|
15
|
+
"zh-CN": antdLocaleCn,
|
|
16
|
+
"en-US": antdLocaleUs,
|
|
17
|
+
"pt-PT": antdLocalePt,
|
|
18
|
+
"tr-TR": antdLocaleTr,
|
|
19
|
+
"zh-TW": antdLocaleTw,
|
|
20
|
+
"ja-JP": antdLocaleJp,
|
|
21
|
+
"vi-VN": antdLocaleVn,
|
|
22
|
+
"de-GE": antdLocaleDe,
|
|
23
|
+
"fr-FR": antdLocaleFr,
|
|
24
|
+
"es-ES": antdLocaleEs,
|
|
25
|
+
"ru-RU": antdLocaleRu
|
|
26
|
+
};
|
|
27
|
+
function useLocale() {
|
|
28
|
+
const getAntdLocale = computed(() => antdMap[_gct.store.getLang]);
|
|
29
|
+
return { getAntdLocale };
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { useLocale };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { reactive } from 'vue';
|
|
2
|
+
import { ConfigProvider } from 'ant-design-vue';
|
|
3
|
+
|
|
4
|
+
const themeVars = reactive({});
|
|
5
|
+
function useTheme() {
|
|
6
|
+
function setPrimaryColor(color) {
|
|
7
|
+
themeVars.primaryColor = color;
|
|
8
|
+
ConfigProvider.config({
|
|
9
|
+
theme: {
|
|
10
|
+
primaryColor: color
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
themeVars,
|
|
16
|
+
setPrimaryColor
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { useTheme };
|
package/es/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
import { CodeEditor } from './components';
|
|
3
|
-
declare
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
2
|
+
import { AssetsSvgIcon, CodeEditor } from './components';
|
|
3
|
+
export declare function install(app: App): void;
|
|
4
|
+
export * from './hooks';
|
|
7
5
|
export * from './utils';
|
|
8
|
-
export { CodeEditor };
|
|
6
|
+
export { CodeEditor, AssetsSvgIcon };
|
|
7
|
+
export * from './modules/gct-dnd';
|
package/es/index.mjs
CHANGED
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
import './components/
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { ViewContainer } from './components/layout/view-container/view-container.mjs';
|
|
1
|
+
import './components/layout/view-container/view-container.css';import './components/layout/flex-container/flex-container.css';export { AssetsSvgIcon } from './components/assets-svg-icon/assets-svg-icon.mjs';
|
|
2
|
+
export { CodeEditor } from './components/code-editor/code-editor.mjs';
|
|
3
|
+
import 'vue';
|
|
4
|
+
import '@gct-paas/core';
|
|
5
|
+
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
|
+
import * as Icons from '@ant-design/icons-vue';
|
|
8
|
+
export { useLocale } from './hooks/useLocale.mjs';
|
|
9
|
+
export { useTheme } from './hooks/useTheme.mjs';
|
|
11
10
|
export { withInstall } from './utils/with-install.mjs';
|
|
11
|
+
export { GctDndContainer } from './modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs';
|
|
12
|
+
export { GctDndDropLine } from './modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs';
|
|
13
|
+
export { GctDndItem } from './modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs';
|
|
14
|
+
export { GCT_DND_INSERT_POS } from './modules/gct-dnd/constants/index.mjs';
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
app.use(GctForm);
|
|
19
|
-
app.component(CodeEditor.name, CodeEditor);
|
|
20
|
-
app.component(FlexContainer.name, FlexContainer);
|
|
21
|
-
app.component(FlexItem.name, FlexItem);
|
|
22
|
-
app.component(GridContainer.name, GridContainer);
|
|
23
|
-
app.component(ViewContainer.name, ViewContainer);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
16
|
+
function install(app) {
|
|
17
|
+
Object.entries(Icons).forEach(([key, component]) => {
|
|
18
|
+
app.component(key, component);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
26
21
|
|
|
27
|
-
export {
|
|
22
|
+
export { install };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
+
.gct-dnd-container {
|
|
66
|
+
border: 1px dashed transparent;
|
|
67
|
+
border-radius: var(--gct-border-radius-s);
|
|
68
|
+
}
|
|
69
|
+
.gct-dnd-container.is-over {
|
|
70
|
+
border-color: var(--gct-color-border-hover);
|
|
71
|
+
background-color: var(--gct-color-primary-light);
|
|
72
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IGctDndConfig, IGctDndData, IGctDropCollect } from '../../interface';
|
|
3
|
+
import { GCT_DND_INSERT_POS } from '../../constants';
|
|
4
|
+
export declare const GctDndContainer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
config: {
|
|
6
|
+
type: PropType<IGctDndConfig>;
|
|
7
|
+
default: () => IGctDndConfig;
|
|
8
|
+
};
|
|
9
|
+
items: {
|
|
10
|
+
type: PropType<IGctDndData[]>;
|
|
11
|
+
default: () => never[];
|
|
12
|
+
};
|
|
13
|
+
}>, {
|
|
14
|
+
ns: import('@gct-paas/core').Namespace;
|
|
15
|
+
rootRef: import('vue').Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
16
|
+
dropLineState: {
|
|
17
|
+
activeKey: string;
|
|
18
|
+
isBeforeHover: boolean;
|
|
19
|
+
};
|
|
20
|
+
collect: import('vue').Ref<IGctDropCollect, IGctDropCollect>;
|
|
21
|
+
onDrop: (insertPos: GCT_DND_INSERT_POS, data: IGctDndData, insertIndex?: number) => void;
|
|
22
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:items"[], "update:items", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
23
|
+
config: {
|
|
24
|
+
type: PropType<IGctDndConfig>;
|
|
25
|
+
default: () => IGctDndConfig;
|
|
26
|
+
};
|
|
27
|
+
items: {
|
|
28
|
+
type: PropType<IGctDndData[]>;
|
|
29
|
+
default: () => never[];
|
|
30
|
+
};
|
|
31
|
+
}>> & Readonly<{
|
|
32
|
+
"onUpdate:items"?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
config: IGctDndConfig;
|
|
35
|
+
items: IGctDndData[];
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
37
|
+
export default GctDndContainer;
|