y-element-ultra 0.0.2 → 0.0.3
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/es/core-components.d.ts +2 -2
- package/es/core-components.js +2 -2
- package/es/lang/en_US.d.ts +2 -2
- package/es/lang/zh_CN.d.ts +2 -2
- package/es/lang/zh_TW.d.ts +2 -2
- package/es/utils/message.d.ts +2 -2
- package/es/utils/message.js +8 -8
- package/es/utils/modal-hook.d.ts +1 -1
- package/es/utils/resolvers.d.ts +2 -2
- package/es/utils/resolvers.js +2 -2
- package/es/y-admin-layout/components/layout-tabs.d.ts +3 -3
- package/es/y-admin-layout/index.d.ts +17 -17
- package/es/y-admin-layout/props.d.ts +7 -7
- package/es/y-app/index.d.ts +2 -2
- package/es/y-app/index.js +2 -2
- package/es/y-app/plus.d.ts +57 -57
- package/es/y-app/plusx.d.ts +10 -10
- package/es/y-avatar-group/index.d.ts +4 -4
- package/es/y-avatar-group/props.d.ts +3 -3
- package/es/y-basic-select/components/select-view.d.ts +4 -4
- package/es/y-basic-select/index.d.ts +9 -9
- package/es/y-basic-select/props.d.ts +3 -3
- package/es/y-basic-select/types.d.ts +4 -8
- package/es/y-buttons/types.d.ts +4 -4
- package/es/y-config-provider/components/receiver-view.js +19 -23
- package/es/y-config-provider/index.d.ts +4 -4
- package/es/y-config-provider/props.d.ts +4 -4
- package/es/y-config-provider/receiver.d.ts +3 -3
- package/es/y-config-provider/receiver.js +37 -1
- package/es/y-config-provider/types.d.ts +8 -8
- package/es/y-copyable/index.d.ts +2 -2
- package/es/y-copyable/props.d.ts +2 -2
- package/es/y-cron-builder/index.d.ts +2 -2
- package/es/y-cron-builder/index.js +2 -2
- package/es/y-cron-builder/props.d.ts +2 -2
- package/es/y-cron-panel/index.js +1 -1
- package/es/y-cropper/components/cropper-tools.d.ts +3 -3
- package/es/y-cropper/index.d.ts +2 -2
- package/es/y-cropper/props.d.ts +2 -2
- package/es/y-cropper-modal/index.d.ts +4 -4
- package/es/y-cropper-modal/props.d.ts +3 -3
- package/es/y-crud/index.d.ts +4 -4
- package/es/y-crud/props.d.ts +2 -2
- package/es/y-crud/types.d.ts +21 -21
- package/es/y-crud/util.d.ts +2 -2
- package/es/y-crud-builder/components/body-header.d.ts +5 -5
- package/es/y-crud-builder/components/code-generator.d.ts +3 -3
- package/es/y-crud-builder/components/code-preview.d.ts +3 -3
- package/es/y-crud-builder/components/form-design-modal.d.ts +7 -7
- package/es/y-crud-builder/components/import-modal.d.ts +5 -5
- package/es/y-crud-builder/components/page-config.d.ts +7 -7
- package/es/y-crud-builder/components/template-list.d.ts +3 -3
- package/es/y-crud-builder/index.d.ts +9 -9
- package/es/y-crud-builder/props.d.ts +6 -6
- package/es/y-crud-builder/types.d.ts +2 -2
- package/es/y-data-table/types.d.ts +2 -2
- package/es/y-drawer/index.d.ts +2 -2
- package/es/y-drawer/props.d.ts +2 -2
- package/es/y-dropdown/components/pro-dropdown.d.ts +2 -2
- package/es/y-dropdown-provider/index.d.ts +1 -1
- package/es/y-dropdown-provider/types.d.ts +2 -2
- package/es/y-dropdown-provider/util.d.ts +4 -4
- package/es/y-edit-tag/index.d.ts +2 -2
- package/es/y-edit-tag/props.d.ts +2 -2
- package/es/y-ellipsis/index.d.ts +2 -2
- package/es/y-ellipsis/types.d.ts +2 -2
- package/es/y-file-list/index.d.ts +5 -5
- package/es/y-file-list/props.d.ts +3 -3
- package/es/y-icon-select/components/icon-grid.d.ts +3 -3
- package/es/y-icon-select/index.d.ts +8 -8
- package/es/y-icon-select/props.d.ts +4 -4
- package/es/y-map-picker/index.d.ts +4 -4
- package/es/y-map-picker/props.d.ts +2 -2
- package/es/y-menus/types.d.ts +2 -2
- package/es/y-modal/index.d.ts +2 -2
- package/es/y-modal/props.d.ts +2 -2
- package/es/y-modal-render/index.js +1 -1
- package/es/y-modal-render/types.d.ts +3 -6
- package/es/y-modal-render/use-modal.d.ts +1 -1
- package/es/y-popconfirm/index.d.ts +4 -4
- package/es/y-popconfirm/props.d.ts +2 -2
- package/es/y-popconfirm-provider/index.d.ts +1 -1
- package/es/y-popconfirm-provider/types.d.ts +2 -2
- package/es/y-popconfirm-provider/util.d.ts +3 -3
- package/es/y-popover/index.d.ts +2 -2
- package/es/y-pro-form-builder/components/body-form.d.ts +3 -3
- package/es/y-pro-form-builder/components/body-header.d.ts +5 -5
- package/es/y-pro-form-builder/components/code-generator.d.ts +6 -6
- package/es/y-pro-form-builder/components/code-preview.d.ts +3 -3
- package/es/y-pro-form-builder/components/config-form.d.ts +3 -3
- package/es/y-pro-form-builder/components/import-modal.d.ts +5 -5
- package/es/y-pro-form-builder/components/preview-modal.d.ts +3 -3
- package/es/y-pro-form-builder/components/props-form.d.ts +3 -3
- package/es/y-pro-form-builder/components/template-list.d.ts +3 -3
- package/es/y-pro-form-builder/index.d.ts +9 -9
- package/es/y-pro-form-builder/props.d.ts +6 -6
- package/es/y-pro-form-builder/types.d.ts +4 -4
- package/es/y-pro-layout/index.d.ts +22 -22
- package/es/y-pro-layout/index.js +2 -2
- package/es/y-pro-layout/props.d.ts +11 -11
- package/es/y-pro-layout/types.d.ts +2 -2
- package/es/y-pro-layout/util.d.ts +2 -2
- package/es/y-pro-table/components/tool-column.d.ts +3 -3
- package/es/y-pro-table/components/tool-export.d.ts +3 -3
- package/es/y-pro-table/components/tool-print.d.ts +7 -7
- package/es/y-pro-table/index.d.ts +7 -7
- package/es/y-pro-table/props.d.ts +3 -3
- package/es/y-pro-table/types.d.ts +13 -13
- package/es/y-pro-table/util.d.ts +2 -2
- package/es/y-qr-code-svg/qrcodegen.d.ts +2 -2
- package/es/y-tab-wrap/components/tab-dropdown.d.ts +4 -4
- package/es/y-table-select/index.d.ts +9 -9
- package/es/y-table-select/props.d.ts +4 -4
- package/es/y-tabs/index.d.ts +6 -6
- package/es/y-tabs/props.d.ts +3 -3
- package/es/y-tool/index.d.ts +4 -4
- package/es/y-tool/props.d.ts +2 -2
- package/es/y-toolbar/index.d.ts +7 -7
- package/es/y-toolbar/props.d.ts +3 -3
- package/es/y-toolbar/types.d.ts +2 -2
- package/es/y-tour/index.d.ts +2 -2
- package/es/y-tour/types.d.ts +2 -2
- package/es/y-tour/util.d.ts +2 -2
- package/es/y-tree-select/index.d.ts +6 -6
- package/es/y-tree-select/props.d.ts +2 -2
- package/es/y-upload-list/index.d.ts +2 -2
- package/es/y-upload-list/props.d.ts +2 -2
- package/es/y-virtual-table/components/cell-filter.d.ts +4 -4
- package/es/y-watermark/index.js +15 -17
- package/es/y-watermark/util.d.ts +1 -1
- package/lib/core-components.cjs +2 -2
- package/lib/core-components.d.ts +2 -2
- package/lib/lang/en_US.d.ts +2 -2
- package/lib/lang/zh_CN.d.ts +2 -2
- package/lib/lang/zh_TW.d.ts +2 -2
- package/lib/utils/message.cjs +8 -8
- package/lib/utils/message.d.ts +2 -2
- package/lib/utils/modal-hook.d.ts +1 -1
- package/lib/utils/resolvers.cjs +2 -2
- package/lib/utils/resolvers.d.ts +2 -2
- package/lib/y-admin-layout/components/layout-tabs.d.ts +3 -3
- package/lib/y-admin-layout/index.d.ts +17 -17
- package/lib/y-admin-layout/props.d.ts +7 -7
- package/lib/y-app/index.cjs +2 -2
- package/lib/y-app/index.d.ts +2 -2
- package/lib/y-app/plus.d.ts +57 -57
- package/lib/y-app/plusx.d.ts +10 -10
- package/lib/y-avatar-group/index.d.ts +4 -4
- package/lib/y-avatar-group/props.d.ts +3 -3
- package/lib/y-basic-select/components/select-view.d.ts +4 -4
- package/lib/y-basic-select/index.d.ts +9 -9
- package/lib/y-basic-select/props.d.ts +3 -3
- package/lib/y-basic-select/types.d.ts +4 -8
- package/lib/y-buttons/types.d.ts +4 -4
- package/lib/y-config-provider/components/receiver-view.cjs +1 -1
- package/lib/y-config-provider/index.d.ts +4 -4
- package/lib/y-config-provider/props.d.ts +4 -4
- package/lib/y-config-provider/receiver.cjs +37 -1
- package/lib/y-config-provider/receiver.d.ts +3 -3
- package/lib/y-config-provider/types.d.ts +8 -8
- package/lib/y-copyable/index.d.ts +2 -2
- package/lib/y-copyable/props.d.ts +2 -2
- package/lib/y-cron-builder/index.cjs +2 -2
- package/lib/y-cron-builder/index.d.ts +2 -2
- package/lib/y-cron-builder/props.d.ts +2 -2
- package/lib/y-cron-panel/index.cjs +1 -1
- package/lib/y-cropper/components/cropper-tools.d.ts +3 -3
- package/lib/y-cropper/index.d.ts +2 -2
- package/lib/y-cropper/props.d.ts +2 -2
- package/lib/y-cropper-modal/index.d.ts +4 -4
- package/lib/y-cropper-modal/props.d.ts +3 -3
- package/lib/y-crud/index.d.ts +4 -4
- package/lib/y-crud/props.d.ts +2 -2
- package/lib/y-crud/types.d.ts +21 -21
- package/lib/y-crud/util.d.ts +2 -2
- package/lib/y-crud-builder/components/body-header.d.ts +5 -5
- package/lib/y-crud-builder/components/code-generator.d.ts +3 -3
- package/lib/y-crud-builder/components/code-preview.d.ts +3 -3
- package/lib/y-crud-builder/components/form-design-modal.d.ts +7 -7
- package/lib/y-crud-builder/components/import-modal.d.ts +5 -5
- package/lib/y-crud-builder/components/page-config.d.ts +7 -7
- package/lib/y-crud-builder/components/template-list.d.ts +3 -3
- package/lib/y-crud-builder/index.d.ts +9 -9
- package/lib/y-crud-builder/props.d.ts +6 -6
- package/lib/y-crud-builder/types.d.ts +2 -2
- package/lib/y-data-table/types.d.ts +2 -2
- package/lib/y-drawer/index.d.ts +2 -2
- package/lib/y-drawer/props.d.ts +2 -2
- package/lib/y-dropdown/components/pro-dropdown.d.ts +2 -2
- package/lib/y-dropdown-provider/index.d.ts +1 -1
- package/lib/y-dropdown-provider/types.d.ts +2 -2
- package/lib/y-dropdown-provider/util.d.ts +4 -4
- package/lib/y-edit-tag/index.d.ts +2 -2
- package/lib/y-edit-tag/props.d.ts +2 -2
- package/lib/y-ellipsis/index.d.ts +2 -2
- package/lib/y-ellipsis/types.d.ts +2 -2
- package/lib/y-file-list/index.d.ts +5 -5
- package/lib/y-file-list/props.d.ts +3 -3
- package/lib/y-icon-select/components/icon-grid.d.ts +3 -3
- package/lib/y-icon-select/index.d.ts +8 -8
- package/lib/y-icon-select/props.d.ts +4 -4
- package/lib/y-map-picker/index.d.ts +4 -4
- package/lib/y-map-picker/props.d.ts +2 -2
- package/lib/y-menus/types.d.ts +2 -2
- package/lib/y-modal/index.d.ts +2 -2
- package/lib/y-modal/props.d.ts +2 -2
- package/lib/y-modal-render/index.cjs +1 -1
- package/lib/y-modal-render/types.d.ts +3 -6
- package/lib/y-modal-render/use-modal.d.ts +1 -1
- package/lib/y-popconfirm/index.d.ts +4 -4
- package/lib/y-popconfirm/props.d.ts +2 -2
- package/lib/y-popconfirm-provider/index.d.ts +1 -1
- package/lib/y-popconfirm-provider/types.d.ts +2 -2
- package/lib/y-popconfirm-provider/util.d.ts +3 -3
- package/lib/y-popover/index.d.ts +2 -2
- package/lib/y-pro-form-builder/components/body-form.d.ts +3 -3
- package/lib/y-pro-form-builder/components/body-header.d.ts +5 -5
- package/lib/y-pro-form-builder/components/code-generator.d.ts +6 -6
- package/lib/y-pro-form-builder/components/code-preview.d.ts +3 -3
- package/lib/y-pro-form-builder/components/config-form.d.ts +3 -3
- package/lib/y-pro-form-builder/components/import-modal.d.ts +5 -5
- package/lib/y-pro-form-builder/components/preview-modal.d.ts +3 -3
- package/lib/y-pro-form-builder/components/props-form.d.ts +3 -3
- package/lib/y-pro-form-builder/components/template-list.d.ts +3 -3
- package/lib/y-pro-form-builder/index.d.ts +9 -9
- package/lib/y-pro-form-builder/props.d.ts +6 -6
- package/lib/y-pro-form-builder/types.d.ts +4 -4
- package/lib/y-pro-layout/index.cjs +2 -2
- package/lib/y-pro-layout/index.d.ts +22 -22
- package/lib/y-pro-layout/props.d.ts +11 -11
- package/lib/y-pro-layout/types.d.ts +2 -2
- package/lib/y-pro-layout/util.d.ts +2 -2
- package/lib/y-pro-table/components/tool-column.d.ts +3 -3
- package/lib/y-pro-table/components/tool-export.d.ts +3 -3
- package/lib/y-pro-table/components/tool-print.d.ts +7 -7
- package/lib/y-pro-table/index.d.ts +7 -7
- package/lib/y-pro-table/props.d.ts +3 -3
- package/lib/y-pro-table/types.d.ts +13 -13
- package/lib/y-pro-table/util.d.ts +2 -2
- package/lib/y-qr-code-svg/qrcodegen.d.ts +2 -2
- package/lib/y-tab-wrap/components/tab-dropdown.d.ts +4 -4
- package/lib/y-table-select/index.d.ts +9 -9
- package/lib/y-table-select/props.d.ts +4 -4
- package/lib/y-tabs/index.d.ts +6 -6
- package/lib/y-tabs/props.d.ts +3 -3
- package/lib/y-tool/index.d.ts +4 -4
- package/lib/y-tool/props.d.ts +2 -2
- package/lib/y-toolbar/index.d.ts +7 -7
- package/lib/y-toolbar/props.d.ts +3 -3
- package/lib/y-toolbar/types.d.ts +2 -2
- package/lib/y-tour/index.d.ts +2 -2
- package/lib/y-tour/types.d.ts +2 -2
- package/lib/y-tour/util.d.ts +2 -2
- package/lib/y-tree-select/index.d.ts +6 -6
- package/lib/y-tree-select/props.d.ts +2 -2
- package/lib/y-upload-list/index.d.ts +2 -2
- package/lib/y-upload-list/props.d.ts +2 -2
- package/lib/y-virtual-table/components/cell-filter.d.ts +4 -4
- package/lib/y-watermark/index.cjs +14 -16
- package/lib/y-watermark/util.d.ts +1 -1
- package/package.json +1 -1
package/es/y-popover/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { YTooltipInstance } from '../y-app/plus';
|
|
2
2
|
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
reference?(_: {}): any;
|
|
@@ -71,7 +71,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
71
71
|
gpuAcceleration: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
72
72
|
arrowBg: StringConstructor;
|
|
73
73
|
}>, {
|
|
74
|
-
tooltipRef: import('vue').Ref<
|
|
74
|
+
tooltipRef: import('vue').Ref<YTooltipInstance, YTooltipInstance>;
|
|
75
75
|
hide: () => void;
|
|
76
76
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
77
77
|
"update:visible": (value: boolean) => void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { UserComponent } from '../../y-app/types';
|
|
2
|
-
import {
|
|
2
|
+
import { YProFormProps } from '../../y-app/plusx';
|
|
3
3
|
import { ProFormItemKey, ProFormItemProps, ProFormItemTypeData, ScreenSize } from '../../y-pro-form/types';
|
|
4
4
|
import { ComponentGroup, UpdateItemsResult } from '../types';
|
|
5
5
|
|
|
6
6
|
declare function __VLS_template(): Partial<Record<string, (_: any) => any>>;
|
|
7
7
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
8
|
/** 表单属性 */
|
|
9
|
-
formProps?:
|
|
9
|
+
formProps?: YProFormProps;
|
|
10
10
|
/** 选中的表单项 id */
|
|
11
11
|
currentFormItemId?: ProFormItemKey;
|
|
12
12
|
/** 当前选中屏幕尺寸 */
|
|
@@ -26,7 +26,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
26
26
|
updateFormItems: (items: ProFormItemProps[]) => void;
|
|
27
27
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
28
28
|
/** 表单属性 */
|
|
29
|
-
formProps?:
|
|
29
|
+
formProps?: YProFormProps;
|
|
30
30
|
/** 选中的表单项 id */
|
|
31
31
|
currentFormItemId?: ProFormItemKey;
|
|
32
32
|
/** 当前选中屏幕尺寸 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UserComponent } from '../../y-app/types';
|
|
2
|
-
import {
|
|
2
|
+
import { YProFormProps } from '../../y-app/plusx';
|
|
3
3
|
import { ProFormItemTypeData, ScreenSize } from '../../y-pro-form/types';
|
|
4
4
|
import { HeaderRightToolName, ComponentGroup } from '../types';
|
|
5
5
|
|
|
@@ -14,7 +14,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
14
14
|
/** 是否禁用恢复 */
|
|
15
15
|
redoDisabled?: boolean;
|
|
16
16
|
/** 表单属性 */
|
|
17
|
-
formProps?:
|
|
17
|
+
formProps?: YProFormProps;
|
|
18
18
|
/** 顶栏右侧操作按钮顺序 */
|
|
19
19
|
headerTools?: boolean | HeaderRightToolName[];
|
|
20
20
|
/** 高级表单组件 */
|
|
@@ -35,7 +35,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
35
35
|
redo: () => void;
|
|
36
36
|
clear: () => void;
|
|
37
37
|
previewFormSubmit: (data: Record<string, any>) => void;
|
|
38
|
-
importData: (data:
|
|
38
|
+
importData: (data: YProFormProps) => void;
|
|
39
39
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
40
40
|
/** 当前选中屏幕尺寸 */
|
|
41
41
|
currentScreen?: ScreenSize;
|
|
@@ -44,7 +44,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
44
44
|
/** 是否禁用恢复 */
|
|
45
45
|
redoDisabled?: boolean;
|
|
46
46
|
/** 表单属性 */
|
|
47
|
-
formProps?:
|
|
47
|
+
formProps?: YProFormProps;
|
|
48
48
|
/** 顶栏右侧操作按钮顺序 */
|
|
49
49
|
headerTools?: boolean | HeaderRightToolName[];
|
|
50
50
|
/** 高级表单组件 */
|
|
@@ -61,7 +61,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
61
61
|
httpRequest?: any;
|
|
62
62
|
}>>> & Readonly<{
|
|
63
63
|
onClear?: (() => any) | undefined;
|
|
64
|
-
onImportData?: ((data:
|
|
64
|
+
onImportData?: ((data: YProFormProps) => any) | undefined;
|
|
65
65
|
onPreviewFormSubmit?: ((data: Record<string, any>) => any) | undefined;
|
|
66
66
|
"onUpdate:currentScreen"?: ((size?: string | undefined) => any) | undefined;
|
|
67
67
|
onUndo?: (() => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { YProFormProps } from '../../y-app/plusx';
|
|
2
2
|
import { ProFormItemProps, ProFormItemTypeData } from '../../y-pro-form/types';
|
|
3
3
|
import { ComponentGroup } from '../types';
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ export declare function isArrayOptions(item?: ProFormItemProps, options?: any):
|
|
|
13
13
|
* @param config 表单配置数据
|
|
14
14
|
* @param showFooterExpand 是否需要展开收起按钮
|
|
15
15
|
*/
|
|
16
|
-
export declare function generateFooterCode(config:
|
|
16
|
+
export declare function generateFooterCode(config: YProFormProps, showFooterExpand?: boolean): string;
|
|
17
17
|
/**
|
|
18
18
|
* 生成 ElFormItem 所有属性代码
|
|
19
19
|
* @param item 表单项
|
|
@@ -64,7 +64,7 @@ export declare function getDivTag(item: ProFormItemProps): any;
|
|
|
64
64
|
* @param componentData 组件库数据
|
|
65
65
|
* @param itemTypeData 高级表单组件类型数据
|
|
66
66
|
*/
|
|
67
|
-
export declare function generateContentCode(config:
|
|
67
|
+
export declare function generateContentCode(config: YProFormProps, showFooterExpand: boolean | undefined, componentData?: ComponentGroup[], itemTypeData?: ProFormItemTypeData[]): string;
|
|
68
68
|
/**
|
|
69
69
|
* 获取上传组件表单验证方法代码
|
|
70
70
|
* @param item 表单项
|
|
@@ -92,7 +92,7 @@ export declare function getComponentProps(item: ProFormItemProps, componentData?
|
|
|
92
92
|
* @param config 表单配置
|
|
93
93
|
* @param componentData 组件库数据
|
|
94
94
|
*/
|
|
95
|
-
export declare function getImportAndVarCode(config:
|
|
95
|
+
export declare function getImportAndVarCode(config: YProFormProps, componentData?: ComponentGroup[]): {
|
|
96
96
|
imports: string[];
|
|
97
97
|
codes: string[];
|
|
98
98
|
proImports: string[];
|
|
@@ -112,10 +112,10 @@ export declare function getElNormalizeItems(formItems?: ProFormItemProps[], comp
|
|
|
112
112
|
* @param itemTypeData 高级表单组件类型数据
|
|
113
113
|
* @param requiredLang 默认的必填提示文本
|
|
114
114
|
*/
|
|
115
|
-
export declare function generateElFormCode(data?:
|
|
115
|
+
export declare function generateElFormCode(data?: YProFormProps, componentData?: ComponentGroup[], itemTypeData?: ProFormItemTypeData[], requiredLang?: string): string;
|
|
116
116
|
/**
|
|
117
117
|
* 生成 ProForm 代码
|
|
118
118
|
* @param data 表单配置数据
|
|
119
119
|
* @param componentData 组件库数据
|
|
120
120
|
*/
|
|
121
|
-
export declare function generateProFormCode(data?:
|
|
121
|
+
export declare function generateProFormCode(data?: YProFormProps, componentData?: ComponentGroup[]): string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { UserComponent } from '../../y-app/types';
|
|
2
|
-
import {
|
|
2
|
+
import { YProFormProps } from '../../y-app/plusx';
|
|
3
3
|
import { ComponentGroup } from '../types';
|
|
4
4
|
|
|
5
5
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
6
|
/** 弹窗是否打开 */
|
|
7
7
|
modelValue?: boolean;
|
|
8
8
|
/** 表单配置数据 */
|
|
9
|
-
config?:
|
|
9
|
+
config?: YProFormProps;
|
|
10
10
|
/** 组件库数据 */
|
|
11
11
|
componentData?: ComponentGroup[];
|
|
12
12
|
/** 代码查看器组件 */
|
|
@@ -17,7 +17,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
17
17
|
/** 弹窗是否打开 */
|
|
18
18
|
modelValue?: boolean;
|
|
19
19
|
/** 表单配置数据 */
|
|
20
|
-
config?:
|
|
20
|
+
config?: YProFormProps;
|
|
21
21
|
/** 组件库数据 */
|
|
22
22
|
componentData?: ComponentGroup[];
|
|
23
23
|
/** 代码查看器组件 */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { UserComponent } from '../../y-app/types';
|
|
2
|
-
import {
|
|
2
|
+
import { YProFormProps } from '../../y-app/plusx';
|
|
3
3
|
import { ProFormItemProps, ProFormItemTypeData } from '../../y-pro-form/types';
|
|
4
4
|
|
|
5
5
|
declare function __VLS_template(): Partial<Record<string, (_: any) => any>>;
|
|
6
6
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
7
|
/** 表单属性 */
|
|
8
|
-
formProps?:
|
|
8
|
+
formProps?: YProFormProps;
|
|
9
9
|
/** 表单属性设置的表单项配置 */
|
|
10
10
|
configFormItems?: ProFormItemProps[];
|
|
11
11
|
/** 表单属性设置的组件预设属性值 */
|
|
@@ -22,7 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
22
22
|
updateFormProp: (field: string, value: any) => void;
|
|
23
23
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
24
24
|
/** 表单属性 */
|
|
25
|
-
formProps?:
|
|
25
|
+
formProps?: YProFormProps;
|
|
26
26
|
/** 表单属性设置的表单项配置 */
|
|
27
27
|
configFormItems?: ProFormItemProps[];
|
|
28
28
|
/** 表单属性设置的组件预设属性值 */
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { UserComponent } from '../../y-app/types';
|
|
2
|
-
import {
|
|
2
|
+
import { YProFormProps } from '../../y-app/plusx';
|
|
3
3
|
|
|
4
4
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
5
|
/** 弹窗是否打开 */
|
|
6
6
|
modelValue?: boolean;
|
|
7
7
|
/** 表单配置数据 */
|
|
8
|
-
config?:
|
|
8
|
+
config?: YProFormProps;
|
|
9
9
|
/** 是否是导入 */
|
|
10
10
|
isImport?: boolean;
|
|
11
11
|
/** JSON 编辑器组件 */
|
|
12
12
|
jsonEditerComponent?: UserComponent;
|
|
13
13
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
14
|
"update:modelValue": (visible?: boolean | undefined) => void;
|
|
15
|
-
importData: (data:
|
|
15
|
+
importData: (data: YProFormProps) => void;
|
|
16
16
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
17
|
/** 弹窗是否打开 */
|
|
18
18
|
modelValue?: boolean;
|
|
19
19
|
/** 表单配置数据 */
|
|
20
|
-
config?:
|
|
20
|
+
config?: YProFormProps;
|
|
21
21
|
/** 是否是导入 */
|
|
22
22
|
isImport?: boolean;
|
|
23
23
|
/** JSON 编辑器组件 */
|
|
24
24
|
jsonEditerComponent?: UserComponent;
|
|
25
25
|
}>>> & Readonly<{
|
|
26
26
|
"onUpdate:modelValue"?: ((visible?: boolean | undefined) => any) | undefined;
|
|
27
|
-
onImportData?: ((data:
|
|
27
|
+
onImportData?: ((data: YProFormProps) => any) | undefined;
|
|
28
28
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
29
29
|
export default _default;
|
|
30
30
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ProFormItemTypeData } from '../../y-pro-form/types';
|
|
2
2
|
import { UserComponent } from '../../y-app/types';
|
|
3
|
-
import {
|
|
3
|
+
import { YProFormProps } from '../../y-app/plusx';
|
|
4
4
|
|
|
5
5
|
declare function __VLS_template(): Partial<Record<string, (_: any) => any>>;
|
|
6
6
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
7
|
/** 弹窗是否打开 */
|
|
8
8
|
modelValue?: boolean;
|
|
9
9
|
/** 表单属性 */
|
|
10
|
-
formProps?:
|
|
10
|
+
formProps?: YProFormProps;
|
|
11
11
|
/** 高级表单组件 */
|
|
12
12
|
proFormComponent?: UserComponent;
|
|
13
13
|
/** 高级表单组件类型数据 */
|
|
@@ -21,7 +21,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
21
21
|
/** 弹窗是否打开 */
|
|
22
22
|
modelValue?: boolean;
|
|
23
23
|
/** 表单属性 */
|
|
24
|
-
formProps?:
|
|
24
|
+
formProps?: YProFormProps;
|
|
25
25
|
/** 高级表单组件 */
|
|
26
26
|
proFormComponent?: UserComponent;
|
|
27
27
|
/** 高级表单组件类型数据 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UserComponent } from '../../y-app/types';
|
|
2
|
-
import {
|
|
2
|
+
import { YProFormProps } from '../../y-app/plusx';
|
|
3
3
|
import { ProFormItemKey, ProFormItemTypeData } from '../../y-pro-form/types';
|
|
4
4
|
import { ComponentGroup, UpdateItemsResult } from '../types';
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
8
8
|
/** 选中的表单项 id */
|
|
9
9
|
currentFormItemId?: ProFormItemKey;
|
|
10
10
|
/** 表单属性 */
|
|
11
|
-
formProps?:
|
|
11
|
+
formProps?: YProFormProps;
|
|
12
12
|
/** 表单属性设置的组件预设属性值 */
|
|
13
13
|
configFormPresetProps?: Record<string, any>;
|
|
14
14
|
/** 组件库数据 */
|
|
@@ -35,7 +35,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
35
35
|
/** 选中的表单项 id */
|
|
36
36
|
currentFormItemId?: ProFormItemKey;
|
|
37
37
|
/** 表单属性 */
|
|
38
|
-
formProps?:
|
|
38
|
+
formProps?: YProFormProps;
|
|
39
39
|
/** 表单属性设置的组件预设属性值 */
|
|
40
40
|
configFormPresetProps?: Record<string, any>;
|
|
41
41
|
/** 组件库数据 */
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { YProFormProps } from '../../y-app/plusx';
|
|
2
2
|
import { TemplateItem } from '../types';
|
|
3
3
|
|
|
4
4
|
declare const _default: import('vue-demi').DefineComponent<import('vue-demi').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
5
|
/** 模板数据 */
|
|
6
6
|
templateData?: TemplateItem[];
|
|
7
7
|
}>>, {}, {}, {}, {}, import('vue-demi').ComponentOptionsMixin, import('vue-demi').ComponentOptionsMixin, {
|
|
8
|
-
importData: (data:
|
|
8
|
+
importData: (data: YProFormProps) => void;
|
|
9
9
|
}, string, import('vue-demi').PublicProps, Readonly<import('vue-demi').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
10
|
/** 模板数据 */
|
|
11
11
|
templateData?: TemplateItem[];
|
|
12
12
|
}>>> & Readonly<{
|
|
13
|
-
onImportData?: ((data:
|
|
13
|
+
onImportData?: ((data: YProFormProps) => any) | undefined;
|
|
14
14
|
}>, {}, {}, {}, {}, string, import('vue-demi').ComponentProvideOptions, true, {}, any>;
|
|
15
15
|
export default _default;
|
|
16
16
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { YProFormProps } from '../y-app/plusx';
|
|
2
2
|
import { ProFormItemProps } from '../y-pro-form/types';
|
|
3
3
|
|
|
4
4
|
declare function __VLS_template(): Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>>;
|
|
5
5
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
-
modelValue: import('vue').PropType<
|
|
6
|
+
modelValue: import('vue').PropType<YProFormProps>;
|
|
7
7
|
headerTools: {
|
|
8
8
|
type: import('vue').PropType<boolean | import('./types').HeaderRightToolName[]>;
|
|
9
9
|
default: () => undefined;
|
|
@@ -13,8 +13,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
13
13
|
configFormItems: import('vue').PropType<ProFormItemProps[]>;
|
|
14
14
|
configFormPresetProps: import('vue').PropType<import('./types').TemplateFormProps>;
|
|
15
15
|
proFormInitialProps: import('vue').PropType<import('./types').TemplateFormProps>;
|
|
16
|
-
splitPanelProps: import('vue').PropType<import('../y-app/plus').
|
|
17
|
-
rightSplitPanelProps: import('vue').PropType<import('../y-app/plus').
|
|
16
|
+
splitPanelProps: import('vue').PropType<import('../y-app/plus').YSplitPanelProps>;
|
|
17
|
+
rightSplitPanelProps: import('vue').PropType<import('../y-app/plus').YSplitPanelProps>;
|
|
18
18
|
proFormComponent: import('vue').PropType<import('../y-app/types').UserComponent>;
|
|
19
19
|
codeEditerComponent: import('vue').PropType<import('../y-app/types').UserComponent>;
|
|
20
20
|
jsonEditerComponent: import('vue').PropType<import('../y-app/types').UserComponent>;
|
|
@@ -23,10 +23,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
23
23
|
itemTypeData: import('vue').PropType<import('../y-pro-form/types').ProFormItemTypeData[]>;
|
|
24
24
|
httpRequest: (ObjectConstructor | FunctionConstructor)[];
|
|
25
25
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
-
"update:modelValue": (_config:
|
|
26
|
+
"update:modelValue": (_config: YProFormProps) => void;
|
|
27
27
|
previewFormSubmit: (_data: Record<string, any>) => void;
|
|
28
28
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
|
-
modelValue: import('vue').PropType<
|
|
29
|
+
modelValue: import('vue').PropType<YProFormProps>;
|
|
30
30
|
headerTools: {
|
|
31
31
|
type: import('vue').PropType<boolean | import('./types').HeaderRightToolName[]>;
|
|
32
32
|
default: () => undefined;
|
|
@@ -36,8 +36,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
36
36
|
configFormItems: import('vue').PropType<ProFormItemProps[]>;
|
|
37
37
|
configFormPresetProps: import('vue').PropType<import('./types').TemplateFormProps>;
|
|
38
38
|
proFormInitialProps: import('vue').PropType<import('./types').TemplateFormProps>;
|
|
39
|
-
splitPanelProps: import('vue').PropType<import('../y-app/plus').
|
|
40
|
-
rightSplitPanelProps: import('vue').PropType<import('../y-app/plus').
|
|
39
|
+
splitPanelProps: import('vue').PropType<import('../y-app/plus').YSplitPanelProps>;
|
|
40
|
+
rightSplitPanelProps: import('vue').PropType<import('../y-app/plus').YSplitPanelProps>;
|
|
41
41
|
proFormComponent: import('vue').PropType<import('../y-app/types').UserComponent>;
|
|
42
42
|
codeEditerComponent: import('vue').PropType<import('../y-app/types').UserComponent>;
|
|
43
43
|
jsonEditerComponent: import('vue').PropType<import('../y-app/types').UserComponent>;
|
|
@@ -46,7 +46,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
46
46
|
itemTypeData: import('vue').PropType<import('../y-pro-form/types').ProFormItemTypeData[]>;
|
|
47
47
|
httpRequest: (ObjectConstructor | FunctionConstructor)[];
|
|
48
48
|
}>> & Readonly<{
|
|
49
|
-
"onUpdate:modelValue"?: ((_config:
|
|
49
|
+
"onUpdate:modelValue"?: ((_config: YProFormProps) => any) | undefined;
|
|
50
50
|
onPreviewFormSubmit?: ((_data: Record<string, any>) => any) | undefined;
|
|
51
51
|
}>, {
|
|
52
52
|
headerTools: boolean | import('./types').HeaderRightToolName[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
import { UserComponent } from '../y-app/types';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { YSplitPanelProps } from '../y-app/plus';
|
|
4
|
+
import { YProFormProps } from '../y-app/plusx';
|
|
5
5
|
import { ProFormItemProps, ProFormItemTypeData } from '../y-pro-form/types';
|
|
6
6
|
import { TemplateFormProps, ComponentGroup, TemplateItem, HeaderRightToolName } from './types';
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ import { TemplateFormProps, ComponentGroup, TemplateItem, HeaderRightToolName }
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const proFormBuilderProps: {
|
|
12
12
|
/** 配置数据 */
|
|
13
|
-
modelValue: PropType<
|
|
13
|
+
modelValue: PropType<YProFormProps>;
|
|
14
14
|
/** 顶栏右侧操作按钮顺序 */
|
|
15
15
|
headerTools: {
|
|
16
16
|
type: PropType<boolean | HeaderRightToolName[]>;
|
|
@@ -27,9 +27,9 @@ export declare const proFormBuilderProps: {
|
|
|
27
27
|
/** 初始添加时的表单属性 */
|
|
28
28
|
proFormInitialProps: PropType<TemplateFormProps>;
|
|
29
29
|
/** 自定义分割面板组件属性 */
|
|
30
|
-
splitPanelProps: PropType<
|
|
30
|
+
splitPanelProps: PropType<YSplitPanelProps>;
|
|
31
31
|
/** 自定义右侧分割面板组件属性 */
|
|
32
|
-
rightSplitPanelProps: PropType<
|
|
32
|
+
rightSplitPanelProps: PropType<YSplitPanelProps>;
|
|
33
33
|
/** 高级表单组件 */
|
|
34
34
|
proFormComponent: PropType<UserComponent>;
|
|
35
35
|
/** 代码编辑器组件 */
|
|
@@ -50,6 +50,6 @@ export type ProFormBuilderProps = ExtractPropTypes<typeof proFormBuilderProps>;
|
|
|
50
50
|
* 事件
|
|
51
51
|
*/
|
|
52
52
|
export declare const proFormBuilderEmits: {
|
|
53
|
-
'update:modelValue': (_config:
|
|
53
|
+
'update:modelValue': (_config: YProFormProps) => boolean;
|
|
54
54
|
previewFormSubmit: (_data: Record<string, any>) => boolean;
|
|
55
55
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { UserComponent, StyleValue } from '../y-app/types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { YProFormProps } from '../y-app/plusx';
|
|
3
3
|
import type {
|
|
4
4
|
ProFormItemKey,
|
|
5
5
|
ProFormItemProps,
|
|
6
6
|
ScreenSize
|
|
7
7
|
} from '../y-pro-form/types';
|
|
8
8
|
import type { TreeTableColumn } from '../y-tree-table/types';
|
|
9
|
-
export type TemplateFormConfig =
|
|
9
|
+
export type TemplateFormConfig = YProFormProps;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* 表单除表单项外的配置数据
|
|
13
13
|
*/
|
|
14
|
-
export type TemplateFormProps = Omit<
|
|
14
|
+
export type TemplateFormProps = Omit<YProFormProps, 'items'>;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* 表单模板库模板
|
|
@@ -22,7 +22,7 @@ export interface TemplateItem {
|
|
|
22
22
|
/** 模板缩略图 */
|
|
23
23
|
cover?: UserComponent;
|
|
24
24
|
/** 模板数据 */
|
|
25
|
-
config:
|
|
25
|
+
config: YProFormProps;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { YAdminLayoutInstance, YBreadcrumbProps, YBacktopProps, YMenusProps } from '../y-app/plus';
|
|
2
2
|
import { MenuItem, TabItem, LevelItem, TabItemEventOption } from './types';
|
|
3
3
|
import { Layout, SidebarLayout, TabBar, Maximized } from '../y-admin-layout/types';
|
|
4
4
|
|
|
@@ -73,15 +73,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
73
73
|
type: BooleanConstructor;
|
|
74
74
|
default: boolean;
|
|
75
75
|
};
|
|
76
|
-
ellipsisProps: import('vue').PropType<
|
|
77
|
-
menuTrigger: import('vue').PropType<
|
|
76
|
+
ellipsisProps: import('vue').PropType<YMenusProps["ellipsisProps"]>;
|
|
77
|
+
menuTrigger: import('vue').PropType<YMenusProps["menuTrigger"]>;
|
|
78
78
|
sidebarOpeneds: import('vue').PropType<string[]>;
|
|
79
79
|
uniqueOpened: {
|
|
80
80
|
type: BooleanConstructor;
|
|
81
81
|
default: boolean;
|
|
82
82
|
};
|
|
83
83
|
colorfulIcon: BooleanConstructor;
|
|
84
|
-
tooltipEffect: import('vue').PropType<
|
|
84
|
+
tooltipEffect: import('vue').PropType<YMenusProps["popperEffect"]>;
|
|
85
85
|
menuTextEllipsisTooltip: import('vue').PropType<import('../y-menus/types').TextEllipsisTooltip | undefined>;
|
|
86
86
|
expanded: BooleanConstructor;
|
|
87
87
|
breadcrumbSeparator: import('vue').PropType<import('../y-breadcrumb/types').BreadcrumbSeparator>;
|
|
@@ -98,16 +98,16 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
98
98
|
default: boolean;
|
|
99
99
|
};
|
|
100
100
|
breadcrumb: {
|
|
101
|
-
type: import('vue').PropType<boolean |
|
|
101
|
+
type: import('vue').PropType<boolean | YBreadcrumbProps>;
|
|
102
102
|
default: boolean;
|
|
103
103
|
};
|
|
104
104
|
backTop: {
|
|
105
|
-
type: import('vue').PropType<boolean |
|
|
105
|
+
type: import('vue').PropType<boolean | YBacktopProps>;
|
|
106
106
|
default: boolean;
|
|
107
107
|
};
|
|
108
|
-
headerMenuProps: import('vue').PropType<
|
|
109
|
-
sidebarMenuProps: import('vue').PropType<
|
|
110
|
-
sideboxMenuProps: import('vue').PropType<
|
|
108
|
+
headerMenuProps: import('vue').PropType<YMenusProps>;
|
|
109
|
+
sidebarMenuProps: import('vue').PropType<YMenusProps>;
|
|
110
|
+
sideboxMenuProps: import('vue').PropType<YMenusProps>;
|
|
111
111
|
sidebarLayout: import('vue').PropType<SidebarLayout>;
|
|
112
112
|
headerStyle: import('vue').PropType<import('./types').HeaderStyle>;
|
|
113
113
|
sidebarStyle: {
|
|
@@ -137,7 +137,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
137
137
|
default: boolean;
|
|
138
138
|
};
|
|
139
139
|
homePath: StringConstructor;
|
|
140
|
-
tabContextMenu: import('vue').PropType<boolean | import('../y-app/plus').
|
|
140
|
+
tabContextMenu: import('vue').PropType<boolean | import('../y-app/plus').YDropdownProps>;
|
|
141
141
|
tabContextMenus: import('vue').PropType<import('../y-tabs/types').ContextMenus>;
|
|
142
142
|
tabSortable: BooleanConstructor;
|
|
143
143
|
headerTitleSlot: {
|
|
@@ -182,7 +182,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
182
182
|
default: boolean;
|
|
183
183
|
};
|
|
184
184
|
}>, {
|
|
185
|
-
layoutRef: import('vue').Ref<
|
|
185
|
+
layoutRef: import('vue').Ref<YAdminLayoutInstance, YAdminLayoutInstance>;
|
|
186
186
|
openModal: (option: import('../y-modal-render/types').ModalItem) => import('../y-modal-render/types').ModalItemId;
|
|
187
187
|
closeModal: (modalId?: import('../y-modal-render/types').ModalItemId) => void;
|
|
188
188
|
closeAllModal: () => void;
|
|
@@ -245,15 +245,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
245
245
|
type: BooleanConstructor;
|
|
246
246
|
default: boolean;
|
|
247
247
|
};
|
|
248
|
-
ellipsisProps: import('vue').PropType<
|
|
249
|
-
menuTrigger: import('vue').PropType<
|
|
248
|
+
ellipsisProps: import('vue').PropType<YMenusProps["ellipsisProps"]>;
|
|
249
|
+
menuTrigger: import('vue').PropType<YMenusProps["menuTrigger"]>;
|
|
250
250
|
sidebarOpeneds: import('vue').PropType<string[]>;
|
|
251
251
|
uniqueOpened: {
|
|
252
252
|
type: BooleanConstructor;
|
|
253
253
|
default: boolean;
|
|
254
254
|
};
|
|
255
255
|
colorfulIcon: BooleanConstructor;
|
|
256
|
-
tooltipEffect: import('vue').PropType<
|
|
256
|
+
tooltipEffect: import('vue').PropType<YMenusProps["popperEffect"]>;
|
|
257
257
|
menuTextEllipsisTooltip: import('vue').PropType<import('../y-menus/types').TextEllipsisTooltip | undefined>;
|
|
258
258
|
expanded: BooleanConstructor;
|
|
259
259
|
breadcrumbSeparator: import('vue').PropType<import('../y-breadcrumb/types').BreadcrumbSeparator>;
|
|
@@ -270,16 +270,16 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
270
270
|
default: boolean;
|
|
271
271
|
};
|
|
272
272
|
breadcrumb: {
|
|
273
|
-
type: import('vue').PropType<boolean |
|
|
273
|
+
type: import('vue').PropType<boolean | YBreadcrumbProps>;
|
|
274
274
|
default: boolean;
|
|
275
275
|
};
|
|
276
276
|
backTop: {
|
|
277
|
-
type: import('vue').PropType<boolean |
|
|
277
|
+
type: import('vue').PropType<boolean | YBacktopProps>;
|
|
278
278
|
default: boolean;
|
|
279
279
|
};
|
|
280
|
-
headerMenuProps: import('vue').PropType<
|
|
281
|
-
sidebarMenuProps: import('vue').PropType<
|
|
282
|
-
sideboxMenuProps: import('vue').PropType<
|
|
280
|
+
headerMenuProps: import('vue').PropType<YMenusProps>;
|
|
281
|
+
sidebarMenuProps: import('vue').PropType<YMenusProps>;
|
|
282
|
+
sideboxMenuProps: import('vue').PropType<YMenusProps>;
|
|
283
283
|
sidebarLayout: import('vue').PropType<SidebarLayout>;
|
|
284
284
|
headerStyle: import('vue').PropType<import('./types').HeaderStyle>;
|
|
285
285
|
sidebarStyle: {
|
|
@@ -309,7 +309,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
309
309
|
default: boolean;
|
|
310
310
|
};
|
|
311
311
|
homePath: StringConstructor;
|
|
312
|
-
tabContextMenu: import('vue').PropType<boolean | import('../y-app/plus').
|
|
312
|
+
tabContextMenu: import('vue').PropType<boolean | import('../y-app/plus').YDropdownProps>;
|
|
313
313
|
tabContextMenus: import('vue').PropType<import('../y-tabs/types').ContextMenus>;
|
|
314
314
|
tabSortable: BooleanConstructor;
|
|
315
315
|
headerTitleSlot: {
|
|
@@ -376,8 +376,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
376
376
|
ellipsis: boolean;
|
|
377
377
|
compact: boolean;
|
|
378
378
|
tabBar: TabBar;
|
|
379
|
-
breadcrumb: boolean |
|
|
380
|
-
backTop: boolean |
|
|
379
|
+
breadcrumb: boolean | YBreadcrumbProps;
|
|
380
|
+
backTop: boolean | YBacktopProps;
|
|
381
381
|
sidebarStyle: import('./types').SidebarStyle;
|
|
382
382
|
tabStyle: import('./types').TabStyle;
|
|
383
383
|
fixedHeader: boolean;
|
package/es/y-pro-layout/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useRouter } from "vue-router";
|
|
|
3
3
|
import { HomeOutlined } from "../icons/index";
|
|
4
4
|
import { useTimer, useMediaQuery, mobileMediaQuery, useWindowListener } from "../utils/hook";
|
|
5
5
|
import { debounce, isExternalLink, mapTree } from "../utils/common";
|
|
6
|
-
import
|
|
6
|
+
import YModalRender from "../y-modal-render/index";
|
|
7
7
|
import { useModalRenderProvider } from "../y-modal-render/util";
|
|
8
8
|
import IframeGroup from "./components/iframe-group";
|
|
9
9
|
import { getMenuItems, getRouteMatched, getActiveChilds, findTabByKey, getMatchedLevels, getRouteTab, findMenuByPath, findTabByPath } from "./util";
|
|
@@ -931,7 +931,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
931
931
|
tabData: tabData.value,
|
|
932
932
|
tabActive: tabActive.value
|
|
933
933
|
}, null, 8, ["keepAlive", "transitionName", "transitionDelay", "tabData", "tabActive"])) : createCommentVNode("", true),
|
|
934
|
-
createVNode(unref(
|
|
934
|
+
createVNode(unref(YModalRender), {
|
|
935
935
|
modals: unref(modals),
|
|
936
936
|
onRemoveItem: unref(removeModal),
|
|
937
937
|
onUpdateItemVisible: unref(updateModalVisible),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PropType, ExtractPropTypes, InjectionKey } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { YMenusProps } from '../y-app/plus';
|
|
3
3
|
import { BreadcrumbSeparator as Separator } from '../y-breadcrumb/types';
|
|
4
4
|
import { MenuItem, TabItem, MenuItemTrigger, MenuI18n, BeforeClick, TabItemEventOption, BodySizeChangeOption, ProLayoutProvide } from './types';
|
|
5
5
|
|
|
6
|
-
type TextEllipsisTooltip =
|
|
6
|
+
type TextEllipsisTooltip = YMenusProps['textEllipsisTooltip'];
|
|
7
7
|
type ProLayoutKey = InjectionKey<ProLayoutProvide>;
|
|
8
8
|
/**
|
|
9
9
|
* 属性
|
|
@@ -72,9 +72,9 @@ export declare const proLayoutProps: {
|
|
|
72
72
|
default: boolean;
|
|
73
73
|
};
|
|
74
74
|
/** 顶栏菜单省略项的属性 */
|
|
75
|
-
ellipsisProps: PropType<
|
|
75
|
+
ellipsisProps: PropType<YMenusProps["ellipsisProps"]>;
|
|
76
76
|
/** 顶栏子菜单触发方式 */
|
|
77
|
-
menuTrigger: PropType<
|
|
77
|
+
menuTrigger: PropType<YMenusProps["menuTrigger"]>;
|
|
78
78
|
/** 侧栏默认展开的菜单 */
|
|
79
79
|
sidebarOpeneds: PropType<string[]>;
|
|
80
80
|
/** 侧栏是否只保持一个子菜单展开 */
|
|
@@ -85,7 +85,7 @@ export declare const proLayoutProps: {
|
|
|
85
85
|
/** 侧栏菜单是否彩色图标 */
|
|
86
86
|
colorfulIcon: BooleanConstructor;
|
|
87
87
|
/** 菜单 tooltip 主题 */
|
|
88
|
-
tooltipEffect: PropType<
|
|
88
|
+
tooltipEffect: PropType<YMenusProps["popperEffect"]>;
|
|
89
89
|
/** 是否开启菜单文本溢出提示 */
|
|
90
90
|
menuTextEllipsisTooltip: PropType<TextEllipsisTooltip>;
|
|
91
91
|
/** 内容区最大时不带页签栏 */
|
|
@@ -109,16 +109,16 @@ export declare const proLayoutProps: {
|
|
|
109
109
|
default: boolean;
|
|
110
110
|
};
|
|
111
111
|
breadcrumb: {
|
|
112
|
-
type: PropType<boolean | import('../y-app/plus').
|
|
112
|
+
type: PropType<boolean | import('../y-app/plus').YBreadcrumbProps>;
|
|
113
113
|
default: boolean;
|
|
114
114
|
};
|
|
115
115
|
backTop: {
|
|
116
|
-
type: PropType<boolean | import('../y-app/plus').
|
|
116
|
+
type: PropType<boolean | import('../y-app/plus').YBacktopProps>;
|
|
117
117
|
default: boolean;
|
|
118
118
|
};
|
|
119
|
-
headerMenuProps: PropType<
|
|
120
|
-
sidebarMenuProps: PropType<
|
|
121
|
-
sideboxMenuProps: PropType<
|
|
119
|
+
headerMenuProps: PropType<YMenusProps>;
|
|
120
|
+
sidebarMenuProps: PropType<YMenusProps>;
|
|
121
|
+
sideboxMenuProps: PropType<YMenusProps>;
|
|
122
122
|
sidebarLayout: PropType<import('./types').SidebarLayout>;
|
|
123
123
|
headerStyle: PropType<import('./types').HeaderStyle>;
|
|
124
124
|
sidebarStyle: {
|
|
@@ -148,7 +148,7 @@ export declare const proLayoutProps: {
|
|
|
148
148
|
default: boolean;
|
|
149
149
|
};
|
|
150
150
|
homePath: StringConstructor;
|
|
151
|
-
tabContextMenu: PropType<boolean | import('../y-app/plus').
|
|
151
|
+
tabContextMenu: PropType<boolean | import('../y-app/plus').YDropdownProps>;
|
|
152
152
|
tabContextMenus: PropType<import('../y-tabs/types').ContextMenus>;
|
|
153
153
|
tabSortable: BooleanConstructor;
|
|
154
154
|
headerTitleSlot: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { YMenuItemProps } from '../y-app/plus';
|
|
2
2
|
export type {
|
|
3
3
|
Layout,
|
|
4
4
|
SidebarLayout,
|
|
@@ -175,7 +175,7 @@ export type MenuItemTrigger = 'route' | 'click' | 'hover';
|
|
|
175
175
|
/**
|
|
176
176
|
* 子菜单项点击前钩子
|
|
177
177
|
*/
|
|
178
|
-
export type BeforeClick = (item:
|
|
178
|
+
export type BeforeClick = (item: YMenuItemProps, e: MouseEvent) => boolean;
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* 内嵌数据
|