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/lib/y-menus/types.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
ElMenuItemGroupProps,
|
|
7
7
|
ElBadgeProps
|
|
8
8
|
} from '../y-app/el';
|
|
9
|
-
import type {
|
|
9
|
+
import type { YTooltipProps } from '../y-app/plus';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* 菜单数据
|
|
@@ -92,7 +92,7 @@ export interface EllipsisProps extends ElSubMenuProps {
|
|
|
92
92
|
/**
|
|
93
93
|
* 菜单文本溢出提示
|
|
94
94
|
*/
|
|
95
|
-
export type TextEllipsisTooltip = boolean |
|
|
95
|
+
export type TextEllipsisTooltip = boolean | YTooltipProps;
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* 生成菜单数据返回结果
|
package/lib/y-modal/index.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
54
54
|
isDeactivated: BooleanConstructor;
|
|
55
55
|
compLoading: BooleanConstructor;
|
|
56
56
|
loading: BooleanConstructor;
|
|
57
|
-
loadingProps: import('vue').PropType<import('../y-app/plus').
|
|
57
|
+
loadingProps: import('vue').PropType<import('../y-app/plus').YLoadingProps>;
|
|
58
58
|
responsive: {
|
|
59
59
|
type: BooleanConstructor;
|
|
60
60
|
default: null;
|
|
@@ -169,7 +169,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
169
169
|
isDeactivated: BooleanConstructor;
|
|
170
170
|
compLoading: BooleanConstructor;
|
|
171
171
|
loading: BooleanConstructor;
|
|
172
|
-
loadingProps: import('vue').PropType<import('../y-app/plus').
|
|
172
|
+
loadingProps: import('vue').PropType<import('../y-app/plus').YLoadingProps>;
|
|
173
173
|
responsive: {
|
|
174
174
|
type: BooleanConstructor;
|
|
175
175
|
default: null;
|
package/lib/y-modal/props.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType, ExtractPropTypes, EmitsToProps } from 'vue';
|
|
2
2
|
import { dialogProps } from 'element-plus';
|
|
3
3
|
import { StyleValue } from '../y-app/types';
|
|
4
|
-
import {
|
|
4
|
+
import { YLoadingProps } from '../y-app/plus';
|
|
5
5
|
import { Resizable, MoveOut, Position } from './types';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -70,7 +70,7 @@ export declare const modalProps: {
|
|
|
70
70
|
/** 加载状态 */
|
|
71
71
|
loading: BooleanConstructor;
|
|
72
72
|
/** 加载组件属性 */
|
|
73
|
-
loadingProps: PropType<
|
|
73
|
+
loadingProps: PropType<YLoadingProps>;
|
|
74
74
|
/** 是否开启响应式 */
|
|
75
75
|
responsive: {
|
|
76
76
|
type: BooleanConstructor;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { Ref, AsyncComponentLoader, AsyncComponentOptions } from 'vue';
|
|
2
2
|
import type { UserComponent, SlotObject } from '../y-app/types';
|
|
3
|
-
import type {
|
|
4
|
-
EleModalPropsAndEmits,
|
|
5
|
-
EleDrawerPropsAndEmits
|
|
6
|
-
} from '../y-app/plus';
|
|
3
|
+
import type { YModalPropsAndEmits, YDrawerPropsAndEmits } from '../y-app/plus';
|
|
7
4
|
|
|
8
5
|
/**
|
|
9
6
|
* 提供给内容组件的弹窗数据
|
|
@@ -16,7 +13,7 @@ export interface ModalHolderProvider {
|
|
|
16
13
|
/** 修改弹窗属性方法 */
|
|
17
14
|
setModalProps: (option?: Record<string, any>) => void;
|
|
18
15
|
/** 弹窗属性 */
|
|
19
|
-
modalProps: Ref<
|
|
16
|
+
modalProps: Ref<YModalPropsAndEmits | YDrawerPropsAndEmits>;
|
|
20
17
|
}
|
|
21
18
|
|
|
22
19
|
/**
|
|
@@ -51,7 +48,7 @@ export interface ModalItemOption<T extends ModalItemType> {
|
|
|
51
48
|
/** 弹窗内容组件属性 */
|
|
52
49
|
componentProps?: ModalItemComponentProps;
|
|
53
50
|
/** 弹窗属性 */
|
|
54
|
-
props?: T extends 'drawer' ?
|
|
51
|
+
props?: T extends 'drawer' ? YDrawerPropsAndEmits : YModalPropsAndEmits;
|
|
55
52
|
/** 传递插槽 */
|
|
56
53
|
slots?: SlotObject;
|
|
57
54
|
/** 是否自定义弹窗组件 */
|
|
@@ -2,7 +2,7 @@ import { ModalItem, ModalItemId } from './types';
|
|
|
2
2
|
|
|
3
3
|
export declare function useModal(): {
|
|
4
4
|
ModalHolder: import('vue').DefineComponent<{}, () => any[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
-
modalProps: import('vue').Ref<import('../y-app/plus').
|
|
5
|
+
modalProps: import('vue').Ref<import('../y-app/plus').YDrawerPropsAndEmits | import('../y-app/plus').YModalPropsAndEmits, import('../y-app/plus').YDrawerPropsAndEmits | import('../y-app/plus').YModalPropsAndEmits> | undefined;
|
|
6
6
|
openModal: (option: ModalItem) => ModalItemId;
|
|
7
7
|
closeAllModal: (current?: boolean) => void;
|
|
8
8
|
closeModal: (modalId?: ModalItemId) => void;
|
|
@@ -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;
|
|
@@ -19,7 +19,7 @@ declare function __VLS_template(): {
|
|
|
19
19
|
};
|
|
20
20
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
21
21
|
trigger: {
|
|
22
|
-
type: import('vue').PropType<import('../y-app/plus').
|
|
22
|
+
type: import('vue').PropType<import('../y-app/plus').YPopoverProps["trigger"]>;
|
|
23
23
|
default: string;
|
|
24
24
|
};
|
|
25
25
|
confirmButtonText: StringConstructor;
|
|
@@ -108,7 +108,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
108
108
|
gpuAcceleration: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
109
109
|
arrowBg: StringConstructor;
|
|
110
110
|
}>, {
|
|
111
|
-
tooltipRef: import('vue').Ref<
|
|
111
|
+
tooltipRef: import('vue').Ref<YTooltipInstance, YTooltipInstance>;
|
|
112
112
|
hidePopper: () => void;
|
|
113
113
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
114
114
|
cancel: (_e: MouseEvent) => void;
|
|
@@ -120,7 +120,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
120
120
|
"after-leave": () => void;
|
|
121
121
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
122
122
|
trigger: {
|
|
123
|
-
type: import('vue').PropType<import('../y-app/plus').
|
|
123
|
+
type: import('vue').PropType<import('../y-app/plus').YPopoverProps["trigger"]>;
|
|
124
124
|
default: string;
|
|
125
125
|
};
|
|
126
126
|
confirmButtonText: StringConstructor;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { PropType, ExtractPropTypes, EmitsToProps } from 'vue';
|
|
2
2
|
import { StyleValue } from '../y-app/types';
|
|
3
3
|
import { ElPopconfirmProps, ElIconProps, ElButtonProps } from '../y-app/el';
|
|
4
|
-
import {
|
|
4
|
+
import { YPopoverProps } from '../y-app/plus';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* 属性
|
|
8
8
|
*/
|
|
9
9
|
export declare const popconfirmProps: {
|
|
10
10
|
trigger: {
|
|
11
|
-
type: PropType<
|
|
11
|
+
type: PropType<YPopoverProps["trigger"]>;
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
14
|
/** 确认按钮文字 */
|
|
@@ -2,7 +2,7 @@ declare function __VLS_template(): {
|
|
|
2
2
|
default?(_: {}): any;
|
|
3
3
|
};
|
|
4
4
|
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
5
|
-
openPopconfirm: (triggerEl: any, props?: import('../y-app/plus').
|
|
5
|
+
openPopconfirm: (triggerEl: any, props?: import('../y-app/plus').YPopconfirmPropsAndEmits) => void;
|
|
6
6
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
7
7
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
8
8
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { YPopconfirmPropsAndEmits } from '../y-app/plus';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* 提供气泡确认框操作给子组件
|
|
5
5
|
*/
|
|
6
6
|
export interface PopconfirmProvider {
|
|
7
|
-
openPopconfirm: (triggerEl: any, props?:
|
|
7
|
+
openPopconfirm: (triggerEl: any, props?: YPopconfirmPropsAndEmits) => void;
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { YPopconfirmInstance, YPopconfirmPropsAndEmits } from '../y-app/plus';
|
|
3
3
|
import { PopconfirmProvider } from './types';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -10,10 +10,10 @@ export declare const POPCONFIRM_KEY: InjectionKey<PopconfirmProvider>;
|
|
|
10
10
|
* 提供气泡确认框操作给子组件
|
|
11
11
|
*/
|
|
12
12
|
export declare function usePopconfirmProvider(): {
|
|
13
|
-
popconfirmRef: import('vue').Ref<
|
|
13
|
+
popconfirmRef: import('vue').Ref<YPopconfirmInstance, YPopconfirmInstance>;
|
|
14
14
|
popconfirmVirtualRef: import('vue').ShallowRef<any, any>;
|
|
15
15
|
popconfirmProps: import('vue').ShallowRef<Partial<import('../y-popconfirm/props').PopconfirmPropsAndEmits>, Partial<import('../y-popconfirm/props').PopconfirmPropsAndEmits>>;
|
|
16
|
-
openPopconfirm: (triggerEl: any, props?:
|
|
16
|
+
openPopconfirm: (triggerEl: any, props?: YPopconfirmPropsAndEmits) => void;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* 气泡确认框操作
|
package/lib/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
|
/**
|
|
@@ -4,7 +4,7 @@ const vueRouter = require("vue-router");
|
|
|
4
4
|
const index = require("../icons/index");
|
|
5
5
|
const hook = require("../utils/hook");
|
|
6
6
|
const common = require("../utils/common");
|
|
7
|
-
const
|
|
7
|
+
const YModalRender = require("../y-modal-render/index");
|
|
8
8
|
const util = require("../y-modal-render/util");
|
|
9
9
|
const IframeGroup = require("./components/iframe-group");
|
|
10
10
|
const util$1 = require("./util");
|
|
@@ -932,7 +932,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
932
932
|
tabData: tabData.value,
|
|
933
933
|
tabActive: tabActive.value
|
|
934
934
|
}, null, 8, ["keepAlive", "transitionName", "transitionDelay", "tabData", "tabActive"])) : vue.createCommentVNode("", true),
|
|
935
|
-
vue.createVNode(vue.unref(
|
|
935
|
+
vue.createVNode(vue.unref(YModalRender), {
|
|
936
936
|
modals: vue.unref(modals),
|
|
937
937
|
onRemoveItem: vue.unref(removeModal),
|
|
938
938
|
onUpdateItemVisible: vue.unref(updateModalVisible),
|