@aplus-frontend/ui 0.5.18 → 0.5.19
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/src/ap-action/group/index.vue.mjs +3 -3
- package/es/src/ap-action/item/index.vue2.mjs +5 -5
- package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
- package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +1 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/index.vue.mjs +4 -4
- package/es/src/ap-field/date-range/index.vue.mjs +8 -8
- package/es/src/ap-field/index.mjs +30 -30
- package/es/src/ap-field/number/index.vue.mjs +8 -8
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +1 -1
- package/es/src/ap-field/select/index.vue.mjs +2 -2
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.mjs +3 -3
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.mjs +2 -2
- package/es/src/ap-field/text-area/index.vue.mjs +3 -3
- package/es/src/ap-form/ap-form.vue.d.ts +1 -2
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
- package/es/src/ap-form/item/index.vue.mjs +7 -7
- package/es/src/ap-form/item-group/index.vue.mjs +3 -3
- package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
- package/es/src/ap-form/items/number/index.vue.mjs +2 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
- package/es/src/ap-form/items/select/index.vue.mjs +2 -2
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/password.vue.mjs +2 -2
- package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
- package/es/src/ap-form/render/item.vue.mjs +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/form-item.vue.mjs +2 -2
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.mjs +2 -2
- package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.mjs +4 -4
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-list/index.vue.mjs +4 -4
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/ap-table.vue2.mjs +13 -13
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
- package/es/src/ap-table/constants.mjs +40 -40
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +108 -107
- package/es/src/ap-table/interface.d.ts +8 -0
- package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
- package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
- package/es/src/ap-upload/apUpload.vue.mjs +5 -5
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
- package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +50 -50
- package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +13 -13
- package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +40 -37
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +19 -19
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +118 -122
- package/es/src/business/ap-ladder/index.d.ts +1 -3
- package/es/src/business/ap-ladder/interface.d.ts +16 -16
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
- package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
- package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
- package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
- package/es/src/check-card/index.vue2.mjs +3 -3
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.mjs +2 -2
- package/es/src/full-screen/index.vue.mjs +3 -3
- package/es/src/hooks/useFullScreen.mjs +5 -5
- package/es/src/mask/index.vue.mjs +10 -10
- package/es/src/portal/index.vue.mjs +2 -2
- package/es/src/scroll-bar/index.vue.mjs +3 -3
- package/es/src/scroll-bar/internal.vue.mjs +2 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/scroll-view/index.vue.mjs +9 -9
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/group.vue.mjs +2 -2
- package/es/src/text/index.vue.mjs +46 -41
- package/es/src/text/interface.d.ts +6 -0
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/interface.d.ts +8 -0
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +13 -13
- package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +19 -19
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +1 -3
- package/lib/src/business/ap-ladder/interface.d.ts +16 -16
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/text/interface.d.ts +6 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/package.json +1 -1
- package/theme/ap-ladder/ap-ladder.css +41 -1
- package/theme/ap-ladder/ap-ladder.less +41 -2
- package/theme/index.css +41 -1
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { ApFormExpose, ApFormSearchFormProps } from '../interface';
|
|
2
2
|
import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, ComputedRef } from 'vue';
|
|
3
3
|
import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
|
|
4
|
-
import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath,
|
|
4
|
+
import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
6
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
7
7
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
8
8
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
9
9
|
import { Recordable } from '../../type';
|
|
10
10
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
11
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
import { ApFormProps, ApFormInternalInstance, WatchFunc } from '..';
|
|
14
13
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -116,7 +115,7 @@ declare function __VLS_template(): {
|
|
|
116
115
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
117
116
|
readonly initialValues?: Recordable | undefined;
|
|
118
117
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
119
|
-
readonly syncToUrl?:
|
|
118
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
120
119
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
121
120
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
122
121
|
$attrs: {
|
|
@@ -953,7 +952,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
953
952
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
954
953
|
readonly initialValues?: Recordable | undefined;
|
|
955
954
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
956
|
-
readonly syncToUrl?:
|
|
955
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
957
956
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
958
957
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
959
958
|
$attrs: {
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { EditableGridFormItemExpose, EditableGridFormItemProps } from './interface';
|
|
2
2
|
import { Recordable } from '../../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableGridFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<EditableGridFormItemExpose>): void;
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
9
9
|
emit: {};
|
|
10
|
-
}>) => VNode
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}> & {
|
|
10
|
+
}>) => VNode & {
|
|
13
11
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
12
|
};
|
|
15
13
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EditableGridExpose, EditableGridProps } from './interface';
|
|
2
2
|
import { Recordable } from '../../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -9,9 +9,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
11
11
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
12
|
-
}>) => VNode
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}> & {
|
|
12
|
+
}>) => VNode & {
|
|
15
13
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
16
14
|
};
|
|
17
15
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeTableSlots } from 'vxe-table';
|
|
2
2
|
import { ApGridColumnType, ApGridExpose, ApGridProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApGridProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<ApGridExpose>): void;
|
|
@@ -35,9 +35,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
35
35
|
}) => any;
|
|
36
36
|
};
|
|
37
37
|
emit: {};
|
|
38
|
-
}>) => VNode
|
|
39
|
-
[key: string]: any;
|
|
40
|
-
}> & {
|
|
38
|
+
}>) => VNode & {
|
|
41
39
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
42
40
|
};
|
|
43
41
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApListProps } from './interface';
|
|
2
2
|
import { Recordable } from '../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode } from 'vue';
|
|
4
4
|
import { ApFormSearchFormExpose } from '..';
|
|
5
5
|
declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApListProps<RecordType> & Partial<{}>> & PublicProps;
|
|
@@ -41,9 +41,7 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
|
|
|
41
41
|
}): any;
|
|
42
42
|
};
|
|
43
43
|
emit: {};
|
|
44
|
-
}>) => VNode
|
|
45
|
-
[key: string]: any;
|
|
46
|
-
}> & {
|
|
44
|
+
}>) => VNode & {
|
|
47
45
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
48
46
|
};
|
|
49
47
|
export default _default;
|
|
@@ -6,7 +6,7 @@ export type ModalFunc = (props: ModalFuncProps) => {
|
|
|
6
6
|
update: (configUpdate: ConfigUpdate) => void;
|
|
7
7
|
};
|
|
8
8
|
declare const confirm: (config: ModalFuncProps) => {
|
|
9
|
-
destroy: (this: any, ...args: any[]) => void;
|
|
9
|
+
destroy: (this: /*elided*/ any, ...args: any[]) => void;
|
|
10
10
|
update: (configUpdate: ConfigUpdate) => void;
|
|
11
11
|
};
|
|
12
12
|
export default confirm;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApColumnType, ApTableProps } from './interface';
|
|
2
2
|
import { ColumnsType, ColumnType } from '@aplus-frontend/antdv/es/table';
|
|
3
3
|
import { RowSelectionReturnType } from './hooks/use-table-row-selection';
|
|
4
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, Ref, VNode
|
|
4
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, Ref, VNode } from 'vue';
|
|
5
5
|
declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType> & Partial<{}>> & PublicProps;
|
|
7
7
|
expose(exposed: ShallowUnwrapRef<{
|
|
@@ -85,9 +85,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
85
85
|
}) => void;
|
|
86
86
|
};
|
|
87
87
|
emit: {};
|
|
88
|
-
}>) => VNode
|
|
89
|
-
[key: string]: any;
|
|
90
|
-
}> & {
|
|
88
|
+
}>) => VNode & {
|
|
91
89
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
92
90
|
};
|
|
93
91
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../ap-action/index.js");require("../ap-field/index.js");require("../ap-form/index.js");require("./components/index/index.vue.js");require("./components/status/index.vue.js");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../ap-action/index.js");require("../ap-field/index.js");require("../ap-form/index.js");require("./components/index/index.vue.js");require("./components/status/index.vue.js");const e=require("../ap-form/items/text/index.js"),t=require("../ap-form/items/checkbox/index.vue.js"),_=require("../ap-form/items/text-area/index.vue.js"),u=require("../ap-form/items/switch/index.vue.js"),r=require("../ap-form/items/select/index.vue.js"),s=require("../ap-form/items/radio/index.vue.js"),i=require("../ap-form/items/number/index.vue.js"),n=require("../ap-form/items/date-range/index.vue.js"),p=require("../ap-form/items/date/index.vue.js"),a=require("../ap-field/text/password.vue.js"),d=require("./components/status/index.vue2.js"),c=require("./components/index/index.vue2.js"),l=require("../ap-action/group/index.vue.js"),o=require("../ap-field/checkbox/index.vue.js"),v=require("../ap-field/text-area/index.vue.js"),x=require("../ap-field/text/index.js"),q=require("../ap-field/switch/index.vue.js"),g=require("../ap-field/select/index.vue.js"),f=require("../ap-field/radio/index.vue.js"),y=require("../ap-field/number/index.vue.js"),$=require("../ap-field/date-range/index.vue.js"),m=require("../ap-field/date/index.vue.js"),b={date:p.default,dateRange:n.default,number:i.default,radio:s.default,select:r.default,switch:u.default,text:e.ApFormItemText,textArea:_.default,checkbox:t.default,password:e.ApFormItemText.Password},I={date:m.default,dateRange:$.default,number:y.default,radio:f.default,select:g.default,switch:q.default,text:x.ApFieldText,textArea:v.default,checkbox:o.default,action:l.default,index:c.default,status:d.default,password:a.default},T=["action","index"];exports.apTableFormItemMap=b;exports.apTableRenderItemMap=I;exports.noRenderAsFormItemValueList=T;
|
|
@@ -4,18 +4,18 @@ export declare const useTableColumnState: (columnSetting: ApTableSettingType, pe
|
|
|
4
4
|
columnState: Ref<{
|
|
5
5
|
key: string | number;
|
|
6
6
|
show?: boolean | undefined;
|
|
7
|
-
fixed?:
|
|
7
|
+
fixed?: "left" | "right" | undefined;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
label?: any;
|
|
10
|
-
children?: any[] | undefined;
|
|
10
|
+
children?: /*elided*/ any[] | undefined;
|
|
11
11
|
order?: number | undefined;
|
|
12
12
|
}[], ApColumnState[] | {
|
|
13
13
|
key: string | number;
|
|
14
14
|
show?: boolean | undefined;
|
|
15
|
-
fixed?:
|
|
15
|
+
fixed?: "left" | "right" | undefined;
|
|
16
16
|
disabled?: boolean | undefined;
|
|
17
17
|
label?: any;
|
|
18
|
-
children?: any[] | undefined;
|
|
18
|
+
children?: /*elided*/ any[] | undefined;
|
|
19
19
|
order?: number | undefined;
|
|
20
20
|
}[]>;
|
|
21
21
|
selectAll: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),re=require("./use-sorted-filtered.js");require("../../config-provider/index.js");const A=require("../utils.js"),D=require("lodash-unified"),O=require("../../utils/index.js"),ne=require("../../config-provider/hooks/use-locale.js"),ae=require("../../config-provider/hooks/use-namespace.js"),h=1,b=10;function oe(g){const l={};return g&&(g===!0?(l.current=h,l.pageSize=b):(l.current=g.defaultCurrent||h,l.pageSize=g.defaultPageSize||b)),l}const se=({manual:g=!1,request:l,defaultParams:L={},defaultData:v=[],formatParams:y,paramsValueTypeMap:N,resetFieldsIgnores:R,filterFields:j,sortFields:J,namespace:M="ap-table",pagination:p={defaultCurrent:h,defaultPageSize:b,showLessItems:!1,showTotal:!0}})=>{let q=0,c={};const S=p??{},Q=e=>y?y(e):e,z=n.ref(),i=n.reactive(oe(p)),{getColumnSFConfig:B,setSF:G,clearAll:K,sortedInfo:Z,filteredInfo:$}=re.useTableSortedAndFiltered(),{t:P}=ne.useLocale(),{b:w}=ae.useNamespace(M),a=n.reactive({total:v.length,records:v,loading:!1}),F=()=>{var e,t;return((t=(e=z.value)==null?void 0:e.apForm)==null?void 0:t.getFieldsValueTransformed(!0))||{}},V=async e=>{var o;const t=Q(e),r=Date.now();q=r,a.loading=!0;try{const s=await l({...n.unref(L),...t});q===r&&(a.total=s.total||((o=s.data)==null?void 0:o.length)||0,a.records=[...s.data||[]])}catch{q===r&&(a.records=[],a.total=0)}finally{a.loading=!1}},U=e=>{const t={};return Object.entries(e).forEach(([r,o])=>{if(t[r]=o,N&&o){const s=N[r];s&&(t[r]=A.parseFieldValue(s,o))}}),t},W=async e=>{var o,s,f,d,m;const t=F(),r={};Object.entries(t).forEach(([T,E])=>{R&&R.indexOf(T)>-1&&(r[T]=E)}),await((s=(o=z.value)==null?void 0:o.apForm)==null?void 0:s.resetFields()),(m=(d=(f=z.value)==null?void 0:f.apForm)==null?void 0:d.setFieldsValue)==null||m.call(d,r),n.nextTick(()=>{e==null||e()})},C=e=>{c=e;const t=U(e);V(t)},H=e=>{C({...c,...e})},x=()=>{const e=F();p&&(i.current=h),C({...e,filter:c.filter,sort:c.sort,current:p?h:void 0,pageSize:p?c.pageSize||i.pageSize:void 0})},X=()=>{K(),c.sort={},c.filter={},W(x)},_=()=>{C(c)},Y=e=>{if(!p)_();else{const{current:t,pageSize:r}=i,o=a.total-e,s=Math.ceil(o/r),f=t>s?s:t;H({current:f>0?f:1})}},I=(e,t,r)=>{var T,E;const o=F();i.current=e.current,i.pageSize=e.pageSize,G(t,r);const s=D.isArray(r)?[...r]:[r],f={};for(const u of s)(T=n.unref(J))!=null&&T.includes(u.columnKey||u.field)&&u.order&&(f[A.dataIndexToStr(u.columnKey||u.field)]=u.order);const d={};for(const u of Object.keys(t))(E=n.unref(j))!=null&&E.includes(u)&&t[u]&&(d[u]=t[u]);const m={...o,filter:d,sort:f,current:e.current,pageSize:e.pageSize};D.isEqualWith(c,m,A.isEqualCustom)||C(m)};n.onMounted(()=>{const e=F(),{current:t,pageSize:r}=i;if(c={current:t,pageSize:r,filter:{},sort:{},...e},!g){const o=U(c);V(o)}}),n.watch(()=>n.unref(L),()=>{x()},{deep:!0});const k=n.computed(()=>{if(a.total===0)return"-";const{current:e,pageSize:t}=i;return`${e}/${Math.ceil(a.total/t)}`});function ee(e){D.isArray(e)&&(a.records=e,a.total=e.length)}const te=n.computed(()=>{const{showLessItems:e,showTotal:t}=S;return{loading:a.loading,pagination:{current:i.current,pageSize:i.pageSize,total:a.total,showSizeChanger:O.isDef(S.showSizeChanger)?S.showSizeChanger:!e,showQuickJumper:O.isDef(S.showQuickJumper)?S.showQuickJumper:!e,showLessItems:e,size:"default",showTotal:t?r=>n.createVNode("span",{class:w("pagination-total-wrapper")},[P("ap.apTable.pagination.totalLeftPrefix")," ",n.createVNode("span",{class:w("pagination-count-text")},[r])," ",P("ap.apTable.pagination.totalLeftSuffix"),n.createVNode("span",{class:w("pagination--total-right")},[P("ap.apTable.pagination.totalRightPrefix")," ",n.createVNode("span",{class:w("pagination-count-text")},[n.unref(k)])," ",P("ap.apTable.pagination.totalRightSuffix")])]):void 0},onChange:I,dataSource:a.records}});return{formRef:z,submit:x,reset:X,refresh:_,refreshByDelete:Y,data:a,current:i.current,pageSize:i.pageSize,handleTableChange:I,tableProps:te,dataSource:n.computed(()=>a.records),setDataSource:ee,getColumnSFConfig:B,sortedInfo:Z,filteredInfo:$}};exports.DEFAULT_CURRENT=h;exports.DEFAULT_PAGE_SIZE=b;exports.useTablePaging=se;
|
|
@@ -226,6 +226,14 @@ export type ApTablePaginationConfig = {
|
|
|
226
226
|
* 用于显示数据总量和当前数据顺序
|
|
227
227
|
*/
|
|
228
228
|
showTotal?: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* 是否显示尺寸切换器
|
|
231
|
+
*/
|
|
232
|
+
showSizeChanger?: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* 是否显示快速跳转
|
|
235
|
+
*/
|
|
236
|
+
showQuickJumper?: boolean;
|
|
229
237
|
};
|
|
230
238
|
export type ApTableProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection'> & {
|
|
231
239
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../config-provider/index.js");require("./components/SingleFile.vue.js");require("./components/MultipleFile.vue.js");require("./components/Picture.vue.js");const E=require("./utils/accept.js"),j=require("./hooks/useOss.js"),z=require("@aplus-frontend/antdv"),h=require("../config-provider/hooks/use-locale.js"),A=require("../config-provider/hooks/use-namespace.js"),R=require("./components/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../config-provider/index.js");require("./components/SingleFile.vue.js");require("./components/MultipleFile.vue.js");require("./components/Picture.vue.js");const E=require("./utils/accept.js"),j=require("./hooks/useOss.js"),z=require("@aplus-frontend/antdv"),h=require("../config-provider/hooks/use-locale.js"),A=require("../config-provider/hooks/use-namespace.js"),R=require("./components/Picture.vue2.js"),U=require("./components/MultipleFile.vue2.js"),k=require("./components/SingleFile.vue2.js"),g=require("../config-provider/hooks/use-global-config.js"),T=e.defineComponent({name:"AplusFileUpload",__name:"apUpload",props:{dirName:{type:String,default:void 0},type:{type:String,default:"singleFile"},value:{type:[String,Object,Array],default:void 0},needName:{type:[Boolean,Object],default:void 0},accept:{type:String,default:void 0},maxSize:{type:Number,default:void 0},title:{type:String,default:""},subTitle:{type:[String,Object],default:""},maxCount:{type:Number,default:void 0},beforeUpload:{type:Function,default:void 0},customRequest:{type:Function,default:void 0},getOssAccess:{type:Function,default:void 0},onChange:{type:Function,default:void 0},maxSizeErrorMsg:{type:String,default:void 0},maxCountErrorMsg:{type:String,default:void 0},acceptErrorMsg:{type:String,default:void 0},onRemove:{type:Function,default:void 0}},emits:["update:value"],setup(f,{expose:_,emit:y}){var p,d,v,m;const{t:s,lang:C}=h.useLocale();E.injectLocaleToAccept(s),j.injectLocaleToOss(s,C);const{b:S}=A.useNamespace("ap-upload"),a=e.ref(null),t=f,b=y,q={singleFile:k.default,multipleFile:U.default,picture:R.default},n=z.Form.useInjectFormItemContext(),M=e.computed({get(){return t.value},set(o){var r;b("update:value",o),n==null||n.onFieldChange(),(r=t.onChange)==null||r.call(t,o)}}),F=g.useGlobalConfig("uiMode"),i=g.useGlobalConfig("apUpload");e.provide("theme",F.value),e.provide("value",M),e.provide("dirName",t.dirName??((p=i.value)==null?void 0:p.dirName)),e.provide("needName",t.needName??((d=i.value)==null?void 0:d.needName)??!1),e.provide("accept",t.accept??((v=i.value)==null?void 0:v.accept)??""),e.provide("maxSize",t.maxSize),e.provide("title",t.title),e.provide("subTitle",t.subTitle),e.provide("maxCount",t.maxCount),e.provide("beforeUpload",t.beforeUpload),e.provide("customRequest",t.customRequest),e.provide("getOssAccess",t.getOssAccess??((m=i.value)==null?void 0:m.getOssAccess)),e.provide("maxSizeErrorMsg",t.maxSizeErrorMsg),e.provide("maxCountErrorMsg",t.maxCountErrorMsg),e.provide("acceptErrorMsg",t.acceptErrorMsg),e.provide("onRemove",t.onRemove);const x=e.computed(()=>l.value===0),l=e.ref(0);e.provide("uploadingCount",l);function N(){c(void 0)}function c(o){var r,u;(u=(r=a==null?void 0:a.value)==null?void 0:r.setValue)==null||u.call(r,o)}return _({done:x,clear:N,setValue:c}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(S)())},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(q[t.type]),e.mergeProps(o.$attrs,{ref_key:"uploadRef",ref:a}),e.createSlots({_:2},[e.renderList(Object.keys(o.$slots),u=>({name:u,fn:e.withCtx(O=>[e.renderSlot(o.$slots,u,e.normalizeProps(e.guardReactiveProps(O||{})))])}))]),1040))],2))}});exports.default=T;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UploadFile, UploadChangeParam } from '@aplus-frontend/antdv';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
|
-
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface,
|
|
3
|
+
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
|
|
4
4
|
import { UploadRequestOption } from '@aplus-frontend/antdv/es/vc-upload/interface';
|
|
5
5
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
6
6
|
declare function setValue(val: (string | Record<string, any>)[]): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Oss } from '../hooks/useOss';
|
|
2
|
+
import { actionResponse } from '@aplus-frontend/oss';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
4
|
declare function setValue(val?: (string | Record<string, any>)[]): void;
|
|
4
5
|
interface UploadFile extends File {
|
|
@@ -17,13 +18,7 @@ declare function __VLS_template(): {
|
|
|
17
18
|
pictureContext?(_: {
|
|
18
19
|
fileList: {
|
|
19
20
|
oss: {
|
|
20
|
-
pauseUpload: (() => Promise<
|
|
21
|
-
status: number;
|
|
22
|
-
previewUrl?: string;
|
|
23
|
-
saveUrl?: string;
|
|
24
|
-
originalFileName?: string;
|
|
25
|
-
message: string;
|
|
26
|
-
}>) | undefined;
|
|
21
|
+
pauseUpload: (() => Promise< actionResponse>) | undefined;
|
|
27
22
|
};
|
|
28
23
|
}[];
|
|
29
24
|
remove: typeof handleRemove;
|
|
@@ -3,8 +3,8 @@ import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/bu
|
|
|
3
3
|
import { ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
4
4
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
5
5
|
import { MouseEventHandler, FocusEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
6
|
-
import { ButtonProps, ItemType, MenuTheme, MenuMode, TableColumnsType } from '@aplus-frontend/antdv';
|
|
7
6
|
import { DropdownArrowOptions, Trigger, Align } from '@aplus-frontend/antdv/es/dropdown/props';
|
|
7
|
+
import { ItemType, MenuTheme, MenuMode, TableColumnsType, ButtonProps } from '@aplus-frontend/antdv';
|
|
8
8
|
import { Key } from '@aplus-frontend/antdv/es/_util/type';
|
|
9
9
|
import { CSSMotionProps } from '@aplus-frontend/antdv/es/_util/transition';
|
|
10
10
|
import { BuiltinPlacements, TriggerSubMenuAction, SelectEventHandler, MenuClickEventHandler } from '@aplus-frontend/antdv/es/menu/src/interface';
|
|
@@ -63,7 +63,7 @@ declare const ApBatchActionGroup: {
|
|
|
63
63
|
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
64
64
|
};
|
|
65
65
|
}>>, "type" | "onClick"> & {
|
|
66
|
-
type?:
|
|
66
|
+
type?: ( ButtonType | undefined) | "borderLink";
|
|
67
67
|
borderLinkColor?: string;
|
|
68
68
|
minWidth?: boolean | number | string;
|
|
69
69
|
lazy?: boolean | number;
|
|
@@ -364,7 +364,7 @@ declare const ApBatchActionGroup: {
|
|
|
364
364
|
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
365
365
|
};
|
|
366
366
|
}>>, "type" | "onClick"> & {
|
|
367
|
-
type?:
|
|
367
|
+
type?: ( ButtonType | undefined) | "borderLink";
|
|
368
368
|
borderLinkColor?: string;
|
|
369
369
|
minWidth?: boolean | number | string;
|
|
370
370
|
lazy?: boolean | number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApExpandAlertProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onExpand?: ((...args: any[]) => any) | undefined;
|
|
@@ -23,9 +23,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
23
23
|
}): any;
|
|
24
24
|
};
|
|
25
25
|
emit: (event: "expand" | "choose", ...args: any[]) => void;
|
|
26
|
-
}>) => VNode
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}> & {
|
|
26
|
+
}>) => VNode & {
|
|
29
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
28
|
};
|
|
31
29
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef,
|
|
1
|
+
import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, Plugin } from 'vue';
|
|
2
2
|
export * from './interface';
|
|
3
3
|
declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
@@ -20,7 +20,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
20
20
|
props: {
|
|
21
21
|
readonly onExpand?: ((...args: any[]) => any) | undefined;
|
|
22
22
|
readonly onChoose?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
type?: "warning" | "error" | "success" | "info" | "card" | undefined;
|
|
23
|
+
type?: "warning" | "error" | "success" | "info" | "card" | undefined | undefined;
|
|
24
24
|
data?: string | T[] | undefined;
|
|
25
25
|
prefix?: string | undefined;
|
|
26
26
|
tipTitle?: string | undefined;
|
|
@@ -29,7 +29,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
29
29
|
separatorStyle?: CSSProperties | undefined;
|
|
30
30
|
contentStyle?: Omit< CSSProperties, "wordBreak" | "overflow" | "display" | "webkitLineClamp" | "webkitBoxOrient"> | undefined;
|
|
31
31
|
prefixStyle?: CSSProperties | undefined;
|
|
32
|
-
rows?:
|
|
32
|
+
rows?: string | number | undefined;
|
|
33
33
|
defaultExpand?: boolean | undefined;
|
|
34
34
|
showIcon?: boolean | undefined;
|
|
35
35
|
} & PublicProps;
|
|
@@ -51,9 +51,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
51
51
|
}): any;
|
|
52
52
|
};
|
|
53
53
|
emit: (event: "expand" | "choose", ...args: any[]) => void;
|
|
54
|
-
}>) => VNode
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
}> & {
|
|
54
|
+
}>) => VNode & {
|
|
57
55
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
58
56
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
59
57
|
$props: {
|
|
@@ -9,9 +9,7 @@ import { AlignType, BuildInPlacements } from '@aplus-frontend/antdv/es/vc-trigge
|
|
|
9
9
|
declare function __VLS_template(): {
|
|
10
10
|
attrs: Partial<{}>;
|
|
11
11
|
slots: Readonly<ApLadderSlots> & ApLadderSlots;
|
|
12
|
-
refs: {
|
|
13
|
-
wrapperRef: HTMLDivElement;
|
|
14
|
-
};
|
|
12
|
+
refs: {};
|
|
15
13
|
rootEl: HTMLDivElement;
|
|
16
14
|
};
|
|
17
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -97,9 +95,7 @@ declare const __VLS_component: DefineComponent<ApLadderProps, {}, {}, {}, {}, Co
|
|
|
97
95
|
labelValues: Array<ApLadderLabelValue>;
|
|
98
96
|
majorColor: string;
|
|
99
97
|
minorColor: string;
|
|
100
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
101
|
-
wrapperRef: HTMLDivElement;
|
|
102
|
-
}, HTMLDivElement>;
|
|
98
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
103
99
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
104
100
|
export default _default;
|
|
105
101
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("lodash-unified");require("../../config-provider/index.js");require("./components/SimpleMode.vue.js");require("./components/ValueGroupMode.vue.js");const i=require("./utils.js"),S=require("../../config-provider/hooks/use-namespace.js"),b=require("../../config-provider/hooks/use-global-config.js"),k=require("./components/SimpleMode.vue2.js"),_=require("./components/ValueGroupMode.vue2.js"),g=e.defineComponent({name:"ApLadder",__name:"ApLadder",props:{major:{},minor:{},majorColor:{default:""},majorStyles:{},minorColor:{default:""},minorStyles:{},layout:{default:"vertical"},tooltip:{type:Boolean,default:!0},labelValues:{default:()=>[]},labelAlign:{default:"left"},labelStyles:{},valueStyles:{},linkStyles:{},unitStyles:{},tooltipProps:{default:()=>({})},tooltipLabelStyles:{},tooltipValueStyles:{}},setup(n){const o=e.useSlots(),l=n,{b:a,m:u}=S.useNamespace("ap-ladder"),p=b.useGlobalConfig("uiMode","aplus"),c=e.computed(()=>l.labelValues===void 0||l.labelValues.length===0),m=e.computed(()=>l.labelValues.length>0),y=e.computed(()=>l.labelAlign),d=t=>i.isNull(t)?"":typeof t=="number"?t.toString():typeof t=="string"?t:"",s=v.memoize(d,i.createMemoizeKey),r=e.computed(()=>!!o.title||l.tooltip),f=t=>{t.link&&window.open(t.link,"_blank"),typeof t.handleClickLink=="function"&&t.handleClickLink()};return(t,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(a)(),`${e.unref(u)(e.unref(p))}`])},[c.value?(e.openBlock(),e.createBlock(k.default,{key:0,major:l.major,minor:l.minor,"major-styles":l.majorStyles||{},"major-color":l.majorColor||{},"minor-styles":l.minorStyles||{},"minor-color":l.minorColor||{},"tooltip-props":l.tooltipProps||{},layout:l.layout,tooltip:r.value,"convert-value":e.unref(s)},e.createSlots({_:2},[o.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"title")]),key:"0"}:void 0]),1032,["major","minor","major-styles","major-color","minor-styles","minor-color","tooltip-props","layout","tooltip","convert-value"])):m.value?(e.openBlock(),e.createBlock(_.default,{key:1,"label-values":l.labelValues||{},"label-align":y.value,"label-styles":l.labelStyles||{},"value-styles":l.valueStyles||{},"link-styles":l.linkStyles||{},"unit-styles":l.unitStyles||{},"tooltip-label-styles":l.tooltipLabelStyles||{},"tooltip-value-styles":l.tooltipValueStyles||{},"tooltip-props":l.tooltipProps||{},tooltip:r.value,"convert-value":e.unref(s),onHandleClick:f},e.createSlots({_:2},[o.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"title")]),key:"0"}:void 0]),1032,["label-values","label-align","label-styles","value-styles","link-styles","unit-styles","tooltip-label-styles","tooltip-value-styles","tooltip-props","tooltip","convert-value"])):e.createCommentVNode("",!0)],2))}});exports.default=g;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
attrs: Partial<{}>;
|
|
4
4
|
slots: {
|
|
@@ -18,19 +18,19 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
18
18
|
default: null;
|
|
19
19
|
};
|
|
20
20
|
majorStyles: {
|
|
21
|
-
type: PropType<
|
|
21
|
+
type: PropType<CSSProperties>;
|
|
22
22
|
default: () => {};
|
|
23
23
|
};
|
|
24
24
|
majorColorStyles: {
|
|
25
|
-
type: PropType<
|
|
25
|
+
type: PropType<CSSProperties>;
|
|
26
26
|
default: () => {};
|
|
27
27
|
};
|
|
28
28
|
minorStyles: {
|
|
29
|
-
type: PropType<
|
|
29
|
+
type: PropType<CSSProperties>;
|
|
30
30
|
default: () => {};
|
|
31
31
|
};
|
|
32
32
|
minorColorStyles: {
|
|
33
|
-
type: PropType<
|
|
33
|
+
type: PropType<CSSProperties>;
|
|
34
34
|
default: () => {};
|
|
35
35
|
};
|
|
36
36
|
tooltipProps: {
|
|
@@ -59,19 +59,19 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
59
59
|
default: null;
|
|
60
60
|
};
|
|
61
61
|
majorStyles: {
|
|
62
|
-
type: PropType<
|
|
62
|
+
type: PropType<CSSProperties>;
|
|
63
63
|
default: () => {};
|
|
64
64
|
};
|
|
65
65
|
majorColorStyles: {
|
|
66
|
-
type: PropType<
|
|
66
|
+
type: PropType<CSSProperties>;
|
|
67
67
|
default: () => {};
|
|
68
68
|
};
|
|
69
69
|
minorStyles: {
|
|
70
|
-
type: PropType<
|
|
70
|
+
type: PropType<CSSProperties>;
|
|
71
71
|
default: () => {};
|
|
72
72
|
};
|
|
73
73
|
minorColorStyles: {
|
|
74
|
-
type: PropType<
|
|
74
|
+
type: PropType<CSSProperties>;
|
|
75
75
|
default: () => {};
|
|
76
76
|
};
|
|
77
77
|
tooltipProps: {
|
|
@@ -96,10 +96,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
96
96
|
major: string | number | Function | Record<string, any>;
|
|
97
97
|
minor: string | number | Function | Record<string, any>;
|
|
98
98
|
tooltipProps: Record<string, any>;
|
|
99
|
-
majorStyles:
|
|
100
|
-
majorColorStyles:
|
|
101
|
-
minorStyles:
|
|
102
|
-
minorColorStyles:
|
|
99
|
+
majorStyles: CSSProperties;
|
|
100
|
+
majorColorStyles: CSSProperties;
|
|
101
|
+
minorStyles: CSSProperties;
|
|
102
|
+
minorColorStyles: CSSProperties;
|
|
103
103
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
104
104
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
105
105
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@aplus-frontend/antdv");require("../../../config-provider/index.js");const a=require("../utils.js"),s=require("../../../config-provider/hooks/use-namespace.js"),m=e.defineComponent({name:"ApLadderSimpleMode",__name:"SimpleMode",props:{major:{type:[String,Number,Function,Object],default:null},minor:{type:[String,Number,Function,Object],default:null},majorStyles:{type:Object,default:()=>({})},majorColorStyles:{type:Object,default:()=>({})},minorStyles:{type:Object,default:()=>({})},minorColorStyles:{type:Object,default:()=>({})},tooltipProps:{type:Object,default:()=>({})},layout:{type:String,default:"vertical"},tooltip:{type:Boolean,default:!1},convertValue:{type:Function,required:!0}},setup(t){const{b:o,e:l,m:n}=s.useNamespace("ap-ladder");return(r,c)=>(e.openBlock(),e.createBlock(e.unref(i.Tooltip),e.normalizeProps(e.guardReactiveProps(t.tooltipProps)),e.createSlots({default:e.withCtx(()=>[!e.unref(a.isNull)(t.major)||!e.unref(a.isNull)(t.minor)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.layout==="vertical"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(o)("base"),e.unref(n)("vertical")])},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(l)("major")]),style:e.normalizeStyle([t.majorStyles,t.majorColorStyles])},e.toDisplayString(t.convertValue(t.major)),7),e.createElementVNode("span",{class:e.normalizeClass([e.unref(l)("minor")]),style:e.normalizeStyle([t.minorStyles,t.minorColorStyles])},e.toDisplayString(t.convertValue(t.minor)),7)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(o)("base"),e.unref(n)("horizontal")])},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(l)("major")]),style:e.normalizeStyle([t.majorStyles,t.majorColorStyles])},e.toDisplayString(t.convertValue(t.major)),7),e.createElementVNode("span",{class:e.normalizeClass([e.unref(l)("minor")]),style:e.normalizeStyle([t.minorStyles,t.minorColorStyles])},e.toDisplayString(t.convertValue(t.minor)),7)],2))],64)):e.createCommentVNode("",!0)]),_:2},[r.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"title")]),key:"0"}:t.tooltip?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("tooltip"))},[e.unref(a.isNull)(t.major)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(l)("tooltip-item"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)("tooltip-label"))},e.toDisplayString(t.convertValue(t.major)),3)],2)),e.unref(a.isNull)(t.minor)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(l)("tooltip-item"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)("tooltip-label"))},e.toDisplayString(t.convertValue(t.minor)),3)],2))],2)]),key:"1"}:void 0]),1040))}});exports.default=m;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
import { ApLadderLabelValue } from '../interface';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
attrs: Partial<{}>;
|
|
@@ -19,27 +19,27 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
21
|
labelStyles: {
|
|
22
|
-
type: PropType<
|
|
22
|
+
type: PropType<CSSProperties>;
|
|
23
23
|
default: () => {};
|
|
24
24
|
};
|
|
25
25
|
valueStyles: {
|
|
26
|
-
type: PropType<
|
|
26
|
+
type: PropType<CSSProperties>;
|
|
27
27
|
default: () => {};
|
|
28
28
|
};
|
|
29
29
|
linkStyles: {
|
|
30
|
-
type: PropType<
|
|
30
|
+
type: PropType<CSSProperties>;
|
|
31
31
|
default: () => {};
|
|
32
32
|
};
|
|
33
33
|
unitStyles: {
|
|
34
|
-
type: PropType<
|
|
34
|
+
type: PropType<CSSProperties>;
|
|
35
35
|
default: () => {};
|
|
36
36
|
};
|
|
37
37
|
tooltipLabelStyles: {
|
|
38
|
-
type: PropType<
|
|
38
|
+
type: PropType<CSSProperties>;
|
|
39
39
|
default: () => {};
|
|
40
40
|
};
|
|
41
41
|
tooltipValueStyles: {
|
|
42
|
-
type: PropType<
|
|
42
|
+
type: PropType<CSSProperties>;
|
|
43
43
|
default: () => {};
|
|
44
44
|
};
|
|
45
45
|
tooltipProps: {
|
|
@@ -63,27 +63,27 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
63
63
|
default: string;
|
|
64
64
|
};
|
|
65
65
|
labelStyles: {
|
|
66
|
-
type: PropType<
|
|
66
|
+
type: PropType<CSSProperties>;
|
|
67
67
|
default: () => {};
|
|
68
68
|
};
|
|
69
69
|
valueStyles: {
|
|
70
|
-
type: PropType<
|
|
70
|
+
type: PropType<CSSProperties>;
|
|
71
71
|
default: () => {};
|
|
72
72
|
};
|
|
73
73
|
linkStyles: {
|
|
74
|
-
type: PropType<
|
|
74
|
+
type: PropType<CSSProperties>;
|
|
75
75
|
default: () => {};
|
|
76
76
|
};
|
|
77
77
|
unitStyles: {
|
|
78
|
-
type: PropType<
|
|
78
|
+
type: PropType<CSSProperties>;
|
|
79
79
|
default: () => {};
|
|
80
80
|
};
|
|
81
81
|
tooltipLabelStyles: {
|
|
82
|
-
type: PropType<
|
|
82
|
+
type: PropType<CSSProperties>;
|
|
83
83
|
default: () => {};
|
|
84
84
|
};
|
|
85
85
|
tooltipValueStyles: {
|
|
86
|
-
type: PropType<
|
|
86
|
+
type: PropType<CSSProperties>;
|
|
87
87
|
default: () => {};
|
|
88
88
|
};
|
|
89
89
|
tooltipProps: {
|
|
@@ -102,12 +102,12 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
102
102
|
labelAlign: string;
|
|
103
103
|
tooltipProps: Record<string, any>;
|
|
104
104
|
labelValues: ApLadderLabelValue[];
|
|
105
|
-
labelStyles:
|
|
106
|
-
valueStyles:
|
|
107
|
-
linkStyles:
|
|
108
|
-
unitStyles:
|
|
109
|
-
tooltipLabelStyles:
|
|
110
|
-
tooltipValueStyles:
|
|
105
|
+
labelStyles: CSSProperties;
|
|
106
|
+
valueStyles: CSSProperties;
|
|
107
|
+
linkStyles: CSSProperties;
|
|
108
|
+
unitStyles: CSSProperties;
|
|
109
|
+
tooltipLabelStyles: CSSProperties;
|
|
110
|
+
tooltipValueStyles: CSSProperties;
|
|
111
111
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
112
112
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
113
113
|
export default _default;
|