@gct-paas/core-web 0.1.5-dev.6 → 0.1.5-dev.7
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/_plugin-vue_export-helper-BBfAJeJ1.js +1 -0
- package/dist/{icon-next-picker-CShmDJI0.js → icon-next-picker-y8hJhkCi.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/dist/{monaco-editor-t8SRxaFC.js → monaco-editor-5qU4ukgX.js} +1 -1
- package/es/components/FullScreen/full-screen.vue.d.ts +30 -0
- package/es/components/FullScreen/full-screen.vue.mjs +5 -0
- package/es/components/FullScreen/full-screen.vue_vue_type_script_setup_true_lang.mjs +44 -0
- package/es/components/I18nSelect/src/i18n-select-btn.vue.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs +3 -3
- package/es/components/I18nSelect/src/{i18n-select-btn.vue_vue_type_style_index_0_scoped_d0fab479_lang.css → i18n-select-btn.vue_vue_type_style_index_0_scoped_8e75ca4b_lang.css} +13 -13
- package/es/components/app-full-screen-container/app-full-screen-container.css +77 -0
- package/es/components/app-full-screen-container/app-full-screen-container.d.ts +26 -0
- package/es/components/app-full-screen-container/app-full-screen-container.mjs +83 -0
- package/es/components/app-popover/app-popover-component.css +100 -0
- package/es/components/app-popover/app-popover-component.d.ts +13 -0
- package/es/components/app-popover/app-popover-component.mjs +160 -0
- package/es/components/field-cascader/index.d.ts +2 -0
- package/es/components/field-cascader/index.mjs +1 -0
- package/es/components/field-cascader/src/FieldCascader.vue.d.ts +87 -0
- package/es/components/field-cascader/src/FieldCascader.vue.mjs +6 -0
- package/es/components/field-cascader/src/FieldCascader.vue_vue_type_script_setup_true_lang.mjs +115 -0
- package/es/components/field-cascader/src/FieldCascader.vue_vue_type_style_index_0_lang.css +69 -0
- package/es/components/field-cascader/src/SearchInput.vue.d.ts +11 -0
- package/es/components/field-cascader/src/SearchInput.vue.mjs +7 -0
- package/es/components/field-cascader/src/SearchInput.vue_vue_type_script_setup_true_lang.mjs +38 -0
- package/es/components/field-cascader/src/SearchInput.vue_vue_type_style_index_0_scoped_512c4b38_lang.css +9 -0
- package/es/components/field-cascader/src/hooks.d.ts +129 -0
- package/es/components/field-cascader/src/hooks.mjs +163 -0
- package/es/components/field-tree-select/field-sort-popover.vue.d.ts +129 -0
- package/es/components/field-tree-select/field-sort-popover.vue.mjs +7 -0
- package/es/components/field-tree-select/field-sort-popover.vue_vue_type_script_setup_true_lang.mjs +206 -0
- package/es/components/field-tree-select/field-sort-popover.vue_vue_type_style_index_0_scoped_c1811778_lang.css +136 -0
- package/es/components/field-tree-select/field-tree-select.vue.d.ts +119 -0
- package/es/components/field-tree-select/field-tree-select.vue.mjs +7 -0
- package/es/components/field-tree-select/field-tree-select.vue_vue_type_script_setup_true_lang.mjs +338 -0
- package/es/components/field-tree-select/field-tree-select.vue_vue_type_style_index_0_scoped_898030d3_lang.css +147 -0
- package/es/components/field-tree-select/index.d.ts +307 -0
- package/es/components/field-tree-select/index.mjs +7 -0
- package/es/components/icon-next-picker/icon-next-picker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs +1 -1
- package/es/components/index.d.ts +5 -1
- package/es/components/index.mjs +6 -0
- package/es/components/overlay-scrollbars/gct-overlay-scrollbars.css +72 -0
- package/es/components/overlay-scrollbars/gct-overlay-scrollbars.d.ts +75 -0
- package/es/components/overlay-scrollbars/gct-overlay-scrollbars.mjs +87 -0
- package/es/components/serial-number/index.d.ts +2 -0
- package/es/components/serial-number/index.mjs +1 -0
- package/es/components/serial-number/serial-number-container.vue.d.ts +23 -0
- package/es/components/serial-number/serial-number-container.vue.mjs +7 -0
- package/es/components/serial-number/serial-number-container.vue_vue_type_script_setup_true_name_serial-number-container_lang.mjs +219 -0
- package/es/components/serial-number/serial-number-container.vue_vue_type_style_index_0_scoped_35a73b4c_lang.css +30 -0
- package/es/components/serial-number/serial-number-item.vue.d.ts +22 -0
- package/es/components/serial-number/serial-number-item.vue.mjs +8 -0
- package/es/components/serial-number/serial-number-item.vue_vue_type_script_setup_true_lang.mjs +452 -0
- package/es/components/serial-number/serial-number-item.vue_vue_type_style_index_0_scoped_7baf8e25_lang.css +67 -0
- package/es/components/serial-number/serial-number-item.vue_vue_type_style_index_1_lang.css +51 -0
- package/es/create-app-vue.mjs +5 -3
- package/es/index.mjs +17 -1
- package/es/modules/color-picker/index.d.ts +2 -2
- package/es/modules/color-picker/index.mjs +1 -0
- package/es/modules/color-picker/src/ColorPicker.vue.mjs +1 -1
- package/es/modules/color-picker/src/color-editor.vue.d.ts +9 -0
- package/es/modules/color-picker/src/color-editor.vue.mjs +7 -0
- package/es/modules/color-picker/src/color-editor.vue_vue_type_script_setup_true_name_color-editor_lang.mjs +31 -0
- package/es/modules/color-picker/src/color-editor.vue_vue_type_style_index_0_scoped_7b102f87_lang.css +5 -0
- package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.d.ts +0 -1
- package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.mjs +1 -20
- package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.d.ts +8 -0
- package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.mjs +14 -0
- package/es/modules/gct-form/controller/gct-form/gct-form.controller.mjs +4 -10
- package/es/modules/gct-form/editor/gct-form-action/index.mjs +1 -1
- package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.css +2 -2
- package/es/modules/gct-form/editor/gct-form-color/gct-form-color.d.ts +1 -4
- package/es/modules/gct-form/editor/gct-form-color/gct-form-color.mjs +9 -10
- package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.css +25 -22
- package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.mjs +1 -1
- package/es/modules/gct-form/index.d.ts +2 -0
- package/es/modules/gct-form/index.mjs +12 -1
- package/es/modules/gct-form/interface/i-controller/form-item-basic/form-item-basic.controller.d.ts +6 -0
- package/es/modules/gct-form/interface/i-editor/i-select-editor.d.ts +1 -1
- package/es/modules/gct-form/interface/i-form/i-form-edit-item.d.ts +0 -8
- package/es/modules/gct-form/interface/i-form/i-form-item-basic.d.ts +8 -0
- package/es/modules/gct-form/utils/index.d.ts +18 -0
- package/es/modules/gct-form/utils/index.mjs +37 -0
- package/es/modules/gct-form/widgets/gct-edit-form/gct-edit-form.mjs +2 -1
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.model.mjs +25 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.model.mjs +25 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.model.mjs +25 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.model.mjs +21 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.css +13 -6
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.model.mjs +23 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.model.mjs +20 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.model.mjs +16 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.model.mjs +24 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.model.mjs +25 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form.css +1 -3
- package/es/modules/gct-form/widgets/gct-form/index.d.ts +3 -3
- package/es/modules/gct-form/widgets/gct-form/index.mjs +9 -0
- package/es/modules/global-modal/src/BasicModal.vue.d.ts +4 -0
- package/es/modules/global-modal/src/BasicModal.vue_vue_type_script_setup_true_name_BasicModal_lang.mjs +1 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue.d.ts +1 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +11 -6
- package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +3 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_style_index_0_lang.css +67 -0
- package/es/modules/personnel-selection/components/index.d.ts +3 -0
- package/es/modules/personnel-selection/components/personnel-select-tree/personnel-select-tree.d.ts +22 -0
- package/es/modules/personnel-selection/components/variable/check-variable/check-variable.d.ts +19 -0
- package/es/modules/personnel-selection/components/variable/index.d.ts +3 -0
- package/es/modules/personnel-selection/components/variable/list-variable/list-variable.d.ts +19 -0
- package/es/modules/personnel-selection/components/variable/tree-select-variable/tree-select-variable.d.ts +19 -0
- package/es/modules/personnel-selection/components/variable-select-pane/variable-select-pane.d.ts +21 -0
- package/es/modules/personnel-selection/constants/index.d.ts +16 -0
- package/es/modules/personnel-selection/controller/index.d.ts +2 -0
- package/es/modules/personnel-selection/controller/tab-item/tab-item.controller.d.ts +18 -0
- package/es/modules/personnel-selection/controller/variable-item/variable-item.controller.d.ts +17 -0
- package/es/modules/personnel-selection/editors/index.d.ts +1 -0
- package/es/modules/personnel-selection/editors/personnel-selection-editor/personnel-selection-editor.d.ts +2 -0
- package/es/modules/personnel-selection/enums/index.d.ts +31 -0
- package/es/modules/personnel-selection/index.d.ts +3 -0
- package/es/modules/personnel-selection/interface/controller/index.d.ts +3 -0
- package/es/modules/personnel-selection/interface/controller/tab-item/i-tab-item.controller.d.ts +86 -0
- package/es/modules/personnel-selection/interface/controller/tab-item/i-variable-tab-item.controller.d.ts +11 -0
- package/es/modules/personnel-selection/interface/controller/variable/i-variable-item.controller.d.ts +53 -0
- package/es/modules/personnel-selection/interface/data/i-data-node.d.ts +42 -0
- package/es/modules/personnel-selection/interface/index.d.ts +6 -0
- package/es/modules/personnel-selection/interface/options/index.d.ts +3 -0
- package/es/modules/personnel-selection/interface/options/personnel-selection-options/personnel-selection-options.d.ts +45 -0
- package/es/modules/personnel-selection/interface/options/select-area-options/select-area-options.d.ts +18 -0
- package/es/modules/personnel-selection/interface/options/select-region-options/select-region-options.d.ts +18 -0
- package/es/modules/personnel-selection/interface/providers/i-tab-item.provider.d.ts +51 -0
- package/es/modules/personnel-selection/interface/providers/i-variable-item.provider.d.ts +51 -0
- package/es/modules/personnel-selection/interface/state/i-tab-item.state.d.ts +27 -0
- package/es/modules/personnel-selection/interface/state/i-variable-item.state.d.ts +18 -0
- package/es/modules/personnel-selection/interface/state/index.d.ts +2 -0
- package/es/modules/personnel-selection/interface/store/i-variable-inst-store.d.ts +37 -0
- package/es/modules/personnel-selection/interface/store/i-variable-plugin-manage-store.d.ts +44 -0
- package/es/modules/personnel-selection/interface/store/i-variable-store.d.ts +29 -0
- package/es/modules/personnel-selection/interface/store/i-view-plugin-manage-store.d.ts +44 -0
- package/es/modules/personnel-selection/interface/store/i-view-store.d.ts +29 -0
- package/es/modules/personnel-selection/interface/store/i-view-tabs-store.d.ts +54 -0
- package/es/modules/personnel-selection/interface/store/index.d.ts +11 -0
- package/es/modules/personnel-selection/plugins/index.d.ts +23 -0
- package/es/modules/personnel-selection/plugins/tab-item/personnel-select-tab-item/personnel-select-tab-item.controller.d.ts +12 -0
- package/es/modules/personnel-selection/plugins/tab-item/variable-tab-item/variable-tab-item.controller.d.ts +14 -0
- package/es/modules/personnel-selection/plugins/variable-item/check-variable-item/check-variable-item.controller.d.ts +12 -0
- package/es/modules/personnel-selection/plugins/variable-item/list-variable-item/list-variable-item.controller.d.ts +12 -0
- package/es/modules/personnel-selection/plugins/variable-item/tree-select-variable-item/tree-select-variable-item.controller.d.ts +12 -0
- package/es/modules/personnel-selection/props/index.d.ts +75 -0
- package/es/modules/personnel-selection/state/index.d.ts +2 -0
- package/es/modules/personnel-selection/state/tab-item.state.d.ts +15 -0
- package/es/modules/personnel-selection/state/variable-item.state.d.ts +4 -0
- package/es/modules/personnel-selection/store/index.d.ts +1 -0
- package/es/modules/personnel-selection/store/variable/variable-inst.d.ts +10 -0
- package/es/modules/personnel-selection/store/variable/variable-plugin-manage.d.ts +10 -0
- package/es/modules/personnel-selection/store/variable/variable-store.d.ts +5 -0
- package/es/modules/personnel-selection/store/view/view-plugin-manage.d.ts +10 -0
- package/es/modules/personnel-selection/store/view/view-store.d.ts +11 -0
- package/es/modules/personnel-selection/store/view/view-tabs.d.ts +10 -0
- package/es/modules/personnel-selection/use/index.d.ts +40 -0
- package/es/modules/personnel-selection/utils/index.d.ts +1 -0
- package/es/modules/personnel-selection/views/index.d.ts +12 -0
- package/es/modules/personnel-selection/views/personnel-selection-view/personnel-selection-view.d.ts +181 -0
- package/es/modules/personnel-selection/widgets/index.d.ts +2 -0
- package/es/modules/personnel-selection/widgets/personnel-select-area/personnel-select-area.d.ts +1 -0
- package/es/modules/personnel-selection/widgets/personnel-select-region/personnel-select-region.d.ts +2 -0
- package/es/modules/picture-cropper/src/CopperFreeModal.vue.d.ts +2 -2
- package/es/modules/picture-cropper/src/CopperFreeModal.vue.mjs +2 -2
- package/es/modules/picture-cropper/src/{CopperFreeModal.vue_vue_type_style_index_0_scoped_488ed4c7_lang.css → CopperFreeModal.vue_vue_type_style_index_0_scoped_9069f48a_lang.css} +10 -10
- package/es/modules/picture-cropper/src/CopperModal.vue.d.ts +2 -2
- package/es/modules/picture-cropper/src/CopperModal.vue.mjs +2 -2
- package/es/modules/picture-cropper/src/{CopperModal.vue_vue_type_style_index_0_scoped_ee086999_lang.css → CopperModal.vue_vue_type_style_index_0_scoped_f1134678_lang.css} +14 -14
- package/es/modules/picture-cropper/src/CropperAvatar.vue.d.ts +2 -2
- package/es/modules/picture-cropper/src/CropperAvatar.vue.mjs +2 -2
- package/es/modules/picture-cropper/src/{CropperAvatar.vue_vue_type_style_index_0_scoped_b1cbaaf1_lang.css → CropperAvatar.vue_vue_type_style_index_0_scoped_ef939ff0_lang.css} +7 -7
- package/es/modules/picture-cropper/src/CropperFree.vue.d.ts +2 -2
- package/es/modules/picture-cropper/src/CropperFree.vue.mjs +2 -2
- package/es/modules/picture-cropper/src/{CropperFree.vue_vue_type_style_index_0_scoped_bab12130_lang.css → CropperFree.vue_vue_type_style_index_0_scoped_7a51c6b9_lang.css} +16 -16
- package/es/utils/overlay-controller/overlay-controller.d.ts +16 -1
- package/es/utils/overlay-controller/overlay-controller.mjs +18 -0
- package/es/utils/with-install.d.ts +1 -0
- package/es/utils/with-install.mjs +1 -1
- package/package.json +13 -9
- package/dist/_plugin-vue_export-helper-DySwtVV7.js +0 -1
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
export declare const gctFieldTreeSelect: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
fieldMap: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
groupOptions: {
|
|
7
|
+
type: {
|
|
8
|
+
(arrayLength: number): IObject[];
|
|
9
|
+
(...items: IObject[]): IObject[];
|
|
10
|
+
new (arrayLength: number): IObject[];
|
|
11
|
+
new (...items: IObject[]): IObject[];
|
|
12
|
+
isArray(arg: any): arg is any[];
|
|
13
|
+
readonly prototype: any[];
|
|
14
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
15
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
16
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
17
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
18
|
+
of<T>(...items: T[]): T[];
|
|
19
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
20
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
21
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
22
|
+
};
|
|
23
|
+
default: () => never[];
|
|
24
|
+
};
|
|
25
|
+
fieldNames: {
|
|
26
|
+
type: ObjectConstructor;
|
|
27
|
+
default: () => {
|
|
28
|
+
children: string;
|
|
29
|
+
title: string;
|
|
30
|
+
key: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
maxLevel: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
getLabelByFun: {
|
|
38
|
+
type: FunctionConstructor;
|
|
39
|
+
default: () => void;
|
|
40
|
+
};
|
|
41
|
+
getFieldTypeByFun: {
|
|
42
|
+
type: FunctionConstructor;
|
|
43
|
+
default: () => void;
|
|
44
|
+
};
|
|
45
|
+
setLabelByFun: {
|
|
46
|
+
type: FunctionConstructor;
|
|
47
|
+
default: () => void;
|
|
48
|
+
};
|
|
49
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
|
+
change: (...args: any[]) => void;
|
|
51
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
52
|
+
fieldMap: {
|
|
53
|
+
type: ObjectConstructor;
|
|
54
|
+
default: () => {};
|
|
55
|
+
};
|
|
56
|
+
groupOptions: {
|
|
57
|
+
type: {
|
|
58
|
+
(arrayLength: number): IObject[];
|
|
59
|
+
(...items: IObject[]): IObject[];
|
|
60
|
+
new (arrayLength: number): IObject[];
|
|
61
|
+
new (...items: IObject[]): IObject[];
|
|
62
|
+
isArray(arg: any): arg is any[];
|
|
63
|
+
readonly prototype: any[];
|
|
64
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
65
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
66
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
67
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
68
|
+
of<T>(...items: T[]): T[];
|
|
69
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
70
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
71
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
72
|
+
};
|
|
73
|
+
default: () => never[];
|
|
74
|
+
};
|
|
75
|
+
fieldNames: {
|
|
76
|
+
type: ObjectConstructor;
|
|
77
|
+
default: () => {
|
|
78
|
+
children: string;
|
|
79
|
+
title: string;
|
|
80
|
+
key: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
maxLevel: {
|
|
84
|
+
type: NumberConstructor;
|
|
85
|
+
default: number;
|
|
86
|
+
};
|
|
87
|
+
getLabelByFun: {
|
|
88
|
+
type: FunctionConstructor;
|
|
89
|
+
default: () => void;
|
|
90
|
+
};
|
|
91
|
+
getFieldTypeByFun: {
|
|
92
|
+
type: FunctionConstructor;
|
|
93
|
+
default: () => void;
|
|
94
|
+
};
|
|
95
|
+
setLabelByFun: {
|
|
96
|
+
type: FunctionConstructor;
|
|
97
|
+
default: () => void;
|
|
98
|
+
};
|
|
99
|
+
}>> & Readonly<{
|
|
100
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
101
|
+
}>, {
|
|
102
|
+
fieldMap: Record<string, any>;
|
|
103
|
+
groupOptions: IObject[];
|
|
104
|
+
fieldNames: Record<string, any>;
|
|
105
|
+
maxLevel: number;
|
|
106
|
+
getLabelByFun: Function;
|
|
107
|
+
getFieldTypeByFun: Function;
|
|
108
|
+
setLabelByFun: Function;
|
|
109
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
110
|
+
treeRef: unknown;
|
|
111
|
+
editorInput: unknown;
|
|
112
|
+
}, any>;
|
|
113
|
+
export declare const gctFieldSortPopover: {
|
|
114
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
115
|
+
fieldMap: {
|
|
116
|
+
type: ObjectConstructor;
|
|
117
|
+
default: () => {};
|
|
118
|
+
};
|
|
119
|
+
groupOptions: {
|
|
120
|
+
type: {
|
|
121
|
+
(arrayLength: number): IObject[];
|
|
122
|
+
(...items: IObject[]): IObject[];
|
|
123
|
+
new (arrayLength: number): IObject[];
|
|
124
|
+
new (...items: IObject[]): IObject[];
|
|
125
|
+
isArray(arg: any): arg is any[];
|
|
126
|
+
readonly prototype: any[];
|
|
127
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
128
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
129
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
130
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
131
|
+
of<T>(...items: T[]): T[];
|
|
132
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
133
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
134
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
135
|
+
};
|
|
136
|
+
default: () => never[];
|
|
137
|
+
};
|
|
138
|
+
fieldNames: {
|
|
139
|
+
type: ObjectConstructor;
|
|
140
|
+
default: () => {
|
|
141
|
+
children: string;
|
|
142
|
+
title: string;
|
|
143
|
+
key: string;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
getLabelByFun: {
|
|
147
|
+
type: FunctionConstructor;
|
|
148
|
+
default: () => void;
|
|
149
|
+
};
|
|
150
|
+
getFieldTypeByFun: {
|
|
151
|
+
type: FunctionConstructor;
|
|
152
|
+
default: () => void;
|
|
153
|
+
};
|
|
154
|
+
getFieldHiddenByFun: {
|
|
155
|
+
type: FunctionConstructor;
|
|
156
|
+
default: (data: IObject) => any;
|
|
157
|
+
};
|
|
158
|
+
changeFieldHiddenByFun: {
|
|
159
|
+
type: FunctionConstructor;
|
|
160
|
+
default: (data: IObject, v: boolean) => void;
|
|
161
|
+
};
|
|
162
|
+
}>> & Readonly<{
|
|
163
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
164
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
165
|
+
change: (...args: any[]) => void;
|
|
166
|
+
}, import('vue').PublicProps, {
|
|
167
|
+
fieldMap: Record<string, any>;
|
|
168
|
+
groupOptions: IObject[];
|
|
169
|
+
fieldNames: Record<string, any>;
|
|
170
|
+
getLabelByFun: Function;
|
|
171
|
+
getFieldTypeByFun: Function;
|
|
172
|
+
getFieldHiddenByFun: Function;
|
|
173
|
+
changeFieldHiddenByFun: Function;
|
|
174
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
175
|
+
P: {};
|
|
176
|
+
B: {};
|
|
177
|
+
D: {};
|
|
178
|
+
C: {};
|
|
179
|
+
M: {};
|
|
180
|
+
Defaults: {};
|
|
181
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
182
|
+
fieldMap: {
|
|
183
|
+
type: ObjectConstructor;
|
|
184
|
+
default: () => {};
|
|
185
|
+
};
|
|
186
|
+
groupOptions: {
|
|
187
|
+
type: {
|
|
188
|
+
(arrayLength: number): IObject[];
|
|
189
|
+
(...items: IObject[]): IObject[];
|
|
190
|
+
new (arrayLength: number): IObject[];
|
|
191
|
+
new (...items: IObject[]): IObject[];
|
|
192
|
+
isArray(arg: any): arg is any[];
|
|
193
|
+
readonly prototype: any[];
|
|
194
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
195
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
196
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
197
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
198
|
+
of<T>(...items: T[]): T[];
|
|
199
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
200
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
201
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
202
|
+
};
|
|
203
|
+
default: () => never[];
|
|
204
|
+
};
|
|
205
|
+
fieldNames: {
|
|
206
|
+
type: ObjectConstructor;
|
|
207
|
+
default: () => {
|
|
208
|
+
children: string;
|
|
209
|
+
title: string;
|
|
210
|
+
key: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
getLabelByFun: {
|
|
214
|
+
type: FunctionConstructor;
|
|
215
|
+
default: () => void;
|
|
216
|
+
};
|
|
217
|
+
getFieldTypeByFun: {
|
|
218
|
+
type: FunctionConstructor;
|
|
219
|
+
default: () => void;
|
|
220
|
+
};
|
|
221
|
+
getFieldHiddenByFun: {
|
|
222
|
+
type: FunctionConstructor;
|
|
223
|
+
default: (data: IObject) => any;
|
|
224
|
+
};
|
|
225
|
+
changeFieldHiddenByFun: {
|
|
226
|
+
type: FunctionConstructor;
|
|
227
|
+
default: (data: IObject, v: boolean) => void;
|
|
228
|
+
};
|
|
229
|
+
}>> & Readonly<{
|
|
230
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
231
|
+
}>, {}, {}, {}, {}, {
|
|
232
|
+
fieldMap: Record<string, any>;
|
|
233
|
+
groupOptions: IObject[];
|
|
234
|
+
fieldNames: Record<string, any>;
|
|
235
|
+
getLabelByFun: Function;
|
|
236
|
+
getFieldTypeByFun: Function;
|
|
237
|
+
getFieldHiddenByFun: Function;
|
|
238
|
+
changeFieldHiddenByFun: Function;
|
|
239
|
+
}>;
|
|
240
|
+
__isFragment?: never;
|
|
241
|
+
__isTeleport?: never;
|
|
242
|
+
__isSuspense?: never;
|
|
243
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
244
|
+
fieldMap: {
|
|
245
|
+
type: ObjectConstructor;
|
|
246
|
+
default: () => {};
|
|
247
|
+
};
|
|
248
|
+
groupOptions: {
|
|
249
|
+
type: {
|
|
250
|
+
(arrayLength: number): IObject[];
|
|
251
|
+
(...items: IObject[]): IObject[];
|
|
252
|
+
new (arrayLength: number): IObject[];
|
|
253
|
+
new (...items: IObject[]): IObject[];
|
|
254
|
+
isArray(arg: any): arg is any[];
|
|
255
|
+
readonly prototype: any[];
|
|
256
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
257
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
258
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
259
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
260
|
+
of<T>(...items: T[]): T[];
|
|
261
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
262
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
263
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
264
|
+
};
|
|
265
|
+
default: () => never[];
|
|
266
|
+
};
|
|
267
|
+
fieldNames: {
|
|
268
|
+
type: ObjectConstructor;
|
|
269
|
+
default: () => {
|
|
270
|
+
children: string;
|
|
271
|
+
title: string;
|
|
272
|
+
key: string;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
getLabelByFun: {
|
|
276
|
+
type: FunctionConstructor;
|
|
277
|
+
default: () => void;
|
|
278
|
+
};
|
|
279
|
+
getFieldTypeByFun: {
|
|
280
|
+
type: FunctionConstructor;
|
|
281
|
+
default: () => void;
|
|
282
|
+
};
|
|
283
|
+
getFieldHiddenByFun: {
|
|
284
|
+
type: FunctionConstructor;
|
|
285
|
+
default: (data: IObject) => any;
|
|
286
|
+
};
|
|
287
|
+
changeFieldHiddenByFun: {
|
|
288
|
+
type: FunctionConstructor;
|
|
289
|
+
default: (data: IObject, v: boolean) => void;
|
|
290
|
+
};
|
|
291
|
+
}>> & Readonly<{
|
|
292
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
293
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
294
|
+
change: (...args: any[]) => void;
|
|
295
|
+
}, string, {
|
|
296
|
+
fieldMap: Record<string, any>;
|
|
297
|
+
groupOptions: IObject[];
|
|
298
|
+
fieldNames: Record<string, any>;
|
|
299
|
+
getLabelByFun: Function;
|
|
300
|
+
getFieldTypeByFun: Function;
|
|
301
|
+
getFieldHiddenByFun: Function;
|
|
302
|
+
changeFieldHiddenByFun: Function;
|
|
303
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
304
|
+
$slots: {
|
|
305
|
+
default?(_: {}): any;
|
|
306
|
+
};
|
|
307
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import field_tree_select_default from "./field-tree-select.vue.mjs";
|
|
2
|
+
import field_sort_popover_default from "./field-sort-popover.vue.mjs";
|
|
3
|
+
//#region src/components/field-tree-select/index.ts
|
|
4
|
+
var gctFieldTreeSelect = field_tree_select_default;
|
|
5
|
+
var gctFieldSortPopover = field_sort_popover_default;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { gctFieldSortPopover, gctFieldTreeSelect };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, vModelText, withCtx, withDirectives } from "vue";
|
|
2
2
|
import { cloneDeep, debounce } from "lodash-es";
|
|
3
3
|
import { usePlatformConfigStore } from "@gct-paas/core";
|
|
4
|
-
import { IconNamespaceEnum, IconNext, useIconAsset, useIconPark, useIconPlatform } from "@gct-paas/core-components";
|
|
5
4
|
import { Empty, Form } from "ant-design-vue";
|
|
5
|
+
import { IconNamespaceEnum, IconNext, useIconAsset, useIconPark, useIconPlatform } from "@gct-paas/core-components";
|
|
6
6
|
import "overlayscrollbars-vue";
|
|
7
7
|
//#region src/components/icon-next-picker/icon-next-picker.vue?vue&type=script&setup=true&name=IconNextPicker&lang.ts
|
|
8
8
|
var _hoisted_1 = { class: "icon-picker-next" };
|
package/es/components/index.d.ts
CHANGED
|
@@ -6,13 +6,17 @@ import { default as CopyModuleKey } from './copy-module-key/copy-module-key.vue'
|
|
|
6
6
|
import { ImageUpload } from './image-upload';
|
|
7
7
|
import { FieldUpload } from './field-upload';
|
|
8
8
|
import { default as PaasBpmnLog } from './paas-bpmn-log/paas-bpmn-log.vue';
|
|
9
|
-
|
|
9
|
+
import { default as FullScreen } from './FullScreen/full-screen.vue';
|
|
10
|
+
export { BaseButton, BasicButton, DoubleInput, CopyModuleKey, ImageUpload, FieldUpload, PaasBpmnLog, FullScreen, };
|
|
10
11
|
export { CodeEditor } from './code-editor/code-editor';
|
|
11
12
|
export { ViewContainer } from './layout/view-container/view-container';
|
|
12
13
|
export { Vue3GridDndItem } from './vue3-grid-dnd-item/vue3-grid-dnd-item';
|
|
14
|
+
export { FieldCascader } from './field-cascader';
|
|
13
15
|
export * from './UserPick';
|
|
14
16
|
export * from './BpmnRuntime';
|
|
15
17
|
export * from './I18nSelect';
|
|
18
|
+
export * from './serial-number';
|
|
19
|
+
export * from './field-tree-select';
|
|
16
20
|
export { default as NumberRange } from './number-range/number-range.vue';
|
|
17
21
|
declare const _default: {
|
|
18
22
|
install(app: App): void;
|
package/es/components/index.mjs
CHANGED
|
@@ -5,9 +5,12 @@ import "./copy-module-key/copy-module-key.vue.mjs";
|
|
|
5
5
|
import "./image-upload/index.mjs";
|
|
6
6
|
import "./field-upload/index.mjs";
|
|
7
7
|
import "./paas-bpmn-log/paas-bpmn-log.vue.mjs";
|
|
8
|
+
import "./FullScreen/full-screen.vue.mjs";
|
|
8
9
|
import "./code-editor/code-editor.mjs";
|
|
9
10
|
import "./layout/view-container/view-container.mjs";
|
|
10
11
|
import "./vue3-grid-dnd-item/vue3-grid-dnd-item.mjs";
|
|
12
|
+
import "./field-cascader/src/FieldCascader.vue.mjs";
|
|
13
|
+
import "./field-cascader/index.mjs";
|
|
11
14
|
import "./UserPick/src/constants/index.mjs";
|
|
12
15
|
import "./UserPick/index.mjs";
|
|
13
16
|
import "./BpmnRuntime/paas/paas-bpmn-runtime.vue.mjs";
|
|
@@ -20,6 +23,9 @@ import "./I18nSelect/src/i18n-select-input-form.vue.mjs";
|
|
|
20
23
|
import "./I18nSelect/src/i18n-select-textarea.vue.mjs";
|
|
21
24
|
import "./I18nSelect/src/i18n-select-textarea-form.vue.mjs";
|
|
22
25
|
import "./I18nSelect/index.mjs";
|
|
26
|
+
import "./serial-number/serial-number-container.vue.mjs";
|
|
27
|
+
import "./serial-number/index.mjs";
|
|
28
|
+
import "./field-tree-select/index.mjs";
|
|
23
29
|
import "./number-range/number-range.vue.mjs";
|
|
24
30
|
import { defineAsyncComponent } from "vue";
|
|
25
31
|
//#region src/components/index.ts
|
|
@@ -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
|
+
[data-gct-os] .os-scrollbar {
|
|
66
|
+
transition: opacity 0.3s ease, visibility 0.3s ease;
|
|
67
|
+
}
|
|
68
|
+
[data-gct-os][data-gct-color] .os-scrollbar {
|
|
69
|
+
--os-handle-bg: var(--gct-h-bg);
|
|
70
|
+
--os-handle-bg-hover: color-mix(in srgb, var(--gct-h-bg) 80%, #000);
|
|
71
|
+
--os-handle-bg-active: color-mix(in srgb, var(--gct-h-bg) 60%, #000);
|
|
72
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { CSSProperties, PropType } from 'vue';
|
|
2
|
+
import { ScrollbarsAutoHideBehavior } from 'overlayscrollbars';
|
|
3
|
+
/** OverlayScrollbars 组件 scrollbars 子选项类型 */
|
|
4
|
+
interface IOsScrollbarsOptions {
|
|
5
|
+
/** 滚动条主题(CSS 类名),内置值:os-theme-dark | os-theme-light */
|
|
6
|
+
theme?: string | null;
|
|
7
|
+
/** 滚动条自动隐藏行为 */
|
|
8
|
+
autoHide?: ScrollbarsAutoHideBehavior;
|
|
9
|
+
/** 自动隐藏延迟时间 (ms) */
|
|
10
|
+
autoHideDelay?: number;
|
|
11
|
+
/** 是否在自动隐藏期间挂起 */
|
|
12
|
+
autoHideSuspend?: boolean;
|
|
13
|
+
/** 是否支持拖拽滚动 */
|
|
14
|
+
dragScroll?: boolean;
|
|
15
|
+
/** 是否支持点击滚动 */
|
|
16
|
+
clickScroll?: boolean;
|
|
17
|
+
/** 允许触发滚动的指针类型列表 */
|
|
18
|
+
pointers?: string[] | null;
|
|
19
|
+
}
|
|
20
|
+
/** OverlayScrollbars 组件 options prop 的类型(与组件 prop 兼容) */
|
|
21
|
+
interface IOsOptions {
|
|
22
|
+
/** 是否使用绝对定位的内边距 */
|
|
23
|
+
paddingAbsolute?: boolean;
|
|
24
|
+
/** 是否显示原生叠加滚动条 */
|
|
25
|
+
showNativeOverlaidScrollbars?: boolean;
|
|
26
|
+
/** 滚动条相关配置 */
|
|
27
|
+
scrollbars?: IOsScrollbarsOptions;
|
|
28
|
+
}
|
|
29
|
+
export declare const GctOverlayScrollbars: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
30
|
+
/**
|
|
31
|
+
* OverlayScrollbars 选项,与默认配置深合并,用户传入的 scrollbars 子项优先级更高
|
|
32
|
+
* 传入 false 时完全禁用默认配置
|
|
33
|
+
*/
|
|
34
|
+
options: {
|
|
35
|
+
type: PropType<IOsOptions | false | null>;
|
|
36
|
+
default: null;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* 滚动条把手颜色,传入任意 CSS 颜色值后覆盖主题内置颜色
|
|
40
|
+
* hover 态自动加深 20%,active 态加深 40%
|
|
41
|
+
* 例如:'#1677ff'、'rgba(22,119,255,0.6)'
|
|
42
|
+
* 不传时使用主题默认颜色
|
|
43
|
+
*/
|
|
44
|
+
handleColor: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
}>, {
|
|
49
|
+
mergedOptions: import('vue').ComputedRef<false | IOsOptions>;
|
|
50
|
+
colorStyle: import('vue').ComputedRef<CSSProperties | undefined>;
|
|
51
|
+
setOsRef: (el: unknown) => void;
|
|
52
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
53
|
+
/**
|
|
54
|
+
* OverlayScrollbars 选项,与默认配置深合并,用户传入的 scrollbars 子项优先级更高
|
|
55
|
+
* 传入 false 时完全禁用默认配置
|
|
56
|
+
*/
|
|
57
|
+
options: {
|
|
58
|
+
type: PropType<IOsOptions | false | null>;
|
|
59
|
+
default: null;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* 滚动条把手颜色,传入任意 CSS 颜色值后覆盖主题内置颜色
|
|
63
|
+
* hover 态自动加深 20%,active 态加深 40%
|
|
64
|
+
* 例如:'#1677ff'、'rgba(22,119,255,0.6)'
|
|
65
|
+
* 不传时使用主题默认颜色
|
|
66
|
+
*/
|
|
67
|
+
handleColor: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
}>> & Readonly<{}>, {
|
|
72
|
+
options: false | IOsOptions | null;
|
|
73
|
+
handleColor: string;
|
|
74
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import './gct-overlay-scrollbars.css';/* empty css */
|
|
2
|
+
import { computed, createVNode, defineComponent, mergeProps, ref } from "vue";
|
|
3
|
+
import { OverlayScrollbarsComponent } from "overlayscrollbars-vue";
|
|
4
|
+
//#region src/components/overlay-scrollbars/gct-overlay-scrollbars.tsx
|
|
5
|
+
/**
|
|
6
|
+
* GctOverlayScrollbars - OverlayScrollbars 全局默认配置封装组件
|
|
7
|
+
*
|
|
8
|
+
* 封装 OverlayScrollbarsComponent,统一注入公共默认配置:
|
|
9
|
+
* - 鼠标在容器内移动时显示滚动条,鼠标离开容器时隐藏滚动条(autoHide: 'leave')
|
|
10
|
+
* - 默认使用深色主题(os-theme-dark)
|
|
11
|
+
* - 显隐过渡时间延长至 0.3s ease,使动画更平滑
|
|
12
|
+
*
|
|
13
|
+
* 注意:通过 options prop 传入的 scrollbars 配置会与默认配置合并,用户配置优先级更高
|
|
14
|
+
*/
|
|
15
|
+
/** OverlayScrollbars 组件 scrollbars 子选项类型 */
|
|
16
|
+
/** OverlayScrollbars 组件 options prop 的类型(与组件 prop 兼容) */
|
|
17
|
+
/** 全局默认滚动条配置 */
|
|
18
|
+
var DEFAULT_OPTIONS = { scrollbars: {
|
|
19
|
+
autoHide: "leave",
|
|
20
|
+
autoHideDelay: 100,
|
|
21
|
+
theme: "os-theme-dark"
|
|
22
|
+
} };
|
|
23
|
+
var GctOverlayScrollbars = /* @__PURE__ */ defineComponent({
|
|
24
|
+
name: "GctOverlayScrollbars",
|
|
25
|
+
inheritAttrs: false,
|
|
26
|
+
props: {
|
|
27
|
+
options: {
|
|
28
|
+
type: [Object, Boolean],
|
|
29
|
+
default: null
|
|
30
|
+
},
|
|
31
|
+
handleColor: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "rgba(144, 147, 153, 0.3)"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
setup(props, { expose }) {
|
|
37
|
+
/** 内部 OverlayScrollbarsComponent 实例引用,用于向外暴露组件方法 */
|
|
38
|
+
const osRef = ref();
|
|
39
|
+
/**
|
|
40
|
+
* 将默认配置与用户传入配置合并
|
|
41
|
+
* scrollbars 子级单独合并,避免用户部分覆盖时丢失其他默认项
|
|
42
|
+
*/
|
|
43
|
+
const mergedOptions = computed(() => {
|
|
44
|
+
if (props.options === false) return false;
|
|
45
|
+
const userOptions = props.options ?? {};
|
|
46
|
+
const userScrollbars = userOptions.scrollbars ?? {};
|
|
47
|
+
return {
|
|
48
|
+
...DEFAULT_OPTIONS,
|
|
49
|
+
...userOptions,
|
|
50
|
+
scrollbars: {
|
|
51
|
+
...DEFAULT_OPTIONS.scrollbars,
|
|
52
|
+
...userScrollbars
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
const colorStyle = computed(() => props.handleColor ? { "--gct-h-bg": props.handleColor } : void 0);
|
|
57
|
+
/**
|
|
58
|
+
* 向外暴露与 OverlayScrollbarsComponent 相同的实例方法
|
|
59
|
+
* 使调用方可通过 ref 获取 OverlayScrollbars 实例或根元素
|
|
60
|
+
*/
|
|
61
|
+
expose({
|
|
62
|
+
osInstance: () => osRef.value?.osInstance() ?? null,
|
|
63
|
+
getElement: () => osRef.value?.getElement() ?? null
|
|
64
|
+
});
|
|
65
|
+
/** 回调式 ref,将内部实例赋値给 osRef */
|
|
66
|
+
const setOsRef = (el) => {
|
|
67
|
+
osRef.value = el;
|
|
68
|
+
};
|
|
69
|
+
return {
|
|
70
|
+
mergedOptions,
|
|
71
|
+
colorStyle,
|
|
72
|
+
setOsRef
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
render() {
|
|
76
|
+
return createVNode(OverlayScrollbarsComponent, mergeProps({
|
|
77
|
+
"ref": this.setOsRef,
|
|
78
|
+
"options": this.mergedOptions
|
|
79
|
+
}, this.$attrs, {
|
|
80
|
+
"data-gct-os": "",
|
|
81
|
+
"data-gct-color": this.handleColor ? "" : void 0,
|
|
82
|
+
"style": this.colorStyle
|
|
83
|
+
}), { default: () => [this.$slots.default?.()] });
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
//#endregion
|
|
87
|
+
export { GctOverlayScrollbars };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./serial-number-container.vue.mjs";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SerialListType } from '@gct-paas/core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
serialConfigValue: {
|
|
4
|
+
modelKey: string;
|
|
5
|
+
ruleConfig: SerialListType[];
|
|
6
|
+
};
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
field: string;
|
|
10
|
+
isFeild: boolean;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
serialValiIds?: string[];
|
|
13
|
+
increaseHidden?: boolean;
|
|
14
|
+
isDesign?: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
"update:value": (...args: any[]) => void;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
|
+
serialRef: HTMLDivElement;
|
|
22
|
+
}, HTMLDivElement>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import serial_number_container_vue_vue_type_script_setup_true_name_serial_number_container_lang_default from "./serial-number-container.vue_vue_type_script_setup_true_name_serial-number-container_lang.mjs";
|
|
3
|
+
import './serial-number-container.vue_vue_type_style_index_0_scoped_35a73b4c_lang.css';/* empty css */
|
|
4
|
+
//#region src/components/serial-number/serial-number-container.vue
|
|
5
|
+
var serial_number_container_default = /* @__PURE__ */ _plugin_vue_export_helper_default(serial_number_container_vue_vue_type_script_setup_true_name_serial_number_container_lang_default, [["__scopeId", "data-v-35a73b4c"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { serial_number_container_default as default };
|