@aplus-frontend/ui 0.4.23 → 0.4.25
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-form/ap-form.vue.d.ts +1 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/ap-table.vue2.mjs +67 -64
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/es/src/business/ap-attachment/ApAttachment.mjs +31 -31
- package/es/src/business/ap-attachment/interface.d.ts +2 -2
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +6 -2
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +36 -32
- package/es/src/business/ap-batch-action-group/index.d.ts +16 -7
- package/es/src/business/ap-batch-action-group/interface.d.ts +5 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- 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/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/scroll-bar/index.vue.d.ts +2 -1
- package/es/src/scroll-bar/index.vue.mjs +38 -41
- package/es/src/scroll-bar/internal.vue.mjs +10 -11
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- 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-list/index.vue.d.ts +2 -4
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- 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-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/interface.d.ts +2 -2
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +6 -2
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +16 -7
- package/lib/src/business/ap-batch-action-group/interface.d.ts +5 -0
- 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-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- 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-bar/index.vue.d.ts +2 -1
- package/lib/src/scroll-bar/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.js +1 -1
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/package.json +1 -1
- package/theme/ap-scroll-bar/index.css +31 -0
- package/theme/ap-scroll-bar/index.less +39 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApFormProps, WatchFunc, ApFormInternalInstance } from './interface';
|
|
2
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign,
|
|
2
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
3
3
|
import { Recordable } from '../type';
|
|
4
4
|
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
|
|
5
5
|
import { VueTypeDef, VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
@@ -7,7 +7,6 @@ import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
|
7
7
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
8
8
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
9
9
|
import { Options } from '../../node_modules/scroll-into-view-if-needed';
|
|
10
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
10
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
declare function __VLS_template(): {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApFormDrawerFormProps, CustomizeResizeType } from '../interface';
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
|
|
3
|
-
import { InternalNamePath, NamePath, ValidateOptions, ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity
|
|
3
|
+
import { InternalNamePath, NamePath, ValidateOptions, ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
4
|
import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
|
|
5
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
6
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
@@ -8,7 +8,6 @@ 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, ApFormSubmitterConfig } from '..';
|
|
14
13
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -118,7 +117,7 @@ declare function __VLS_template(): {
|
|
|
118
117
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
119
118
|
readonly initialValues?: Recordable | undefined;
|
|
120
119
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
121
|
-
readonly syncToUrl?:
|
|
120
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
122
121
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
123
122
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
124
123
|
$attrs: {
|
|
@@ -1060,7 +1059,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1060
1059
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1061
1060
|
readonly initialValues?: Recordable | undefined;
|
|
1062
1061
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1063
|
-
readonly syncToUrl?:
|
|
1062
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1064
1063
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1065
1064
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1066
1065
|
$attrs: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApFormModalFormProps } from '../interface';
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
|
|
3
|
-
import { InternalNamePath, NamePath, ValidateOptions, ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity
|
|
3
|
+
import { InternalNamePath, NamePath, ValidateOptions, ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
4
|
import { Recordable } from '../../type';
|
|
5
5
|
import { ButtonSize, SizeType, ButtonType, ButtonShape } from '@aplus-frontend/antdv/es/button';
|
|
6
6
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
@@ -8,7 +8,6 @@ import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
|
8
8
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
9
9
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
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, ApFormSubmitterConfig } from '..';
|
|
14
13
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -118,7 +117,7 @@ declare function __VLS_template(): {
|
|
|
118
117
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
119
118
|
readonly initialValues?: Recordable | undefined;
|
|
120
119
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
121
|
-
readonly syncToUrl?:
|
|
120
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
122
121
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
123
122
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
124
123
|
$attrs: {
|
|
@@ -1248,7 +1247,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1248
1247
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1249
1248
|
readonly initialValues?: Recordable | undefined;
|
|
1250
1249
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1251
|
-
readonly syncToUrl?:
|
|
1250
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1252
1251
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1253
1252
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1254
1253
|
$attrs: {
|
|
@@ -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,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;
|
|
@@ -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<{
|
|
@@ -83,9 +83,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
83
83
|
}) => void;
|
|
84
84
|
};
|
|
85
85
|
emit: {};
|
|
86
|
-
}>) => VNode
|
|
87
|
-
[key: string]: any;
|
|
88
|
-
}> & {
|
|
86
|
+
}>) => VNode & {
|
|
89
87
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
90
88
|
};
|
|
91
89
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as ze, useSlots as Pe, ref as h, computed as s, unref as l, createVNode as p, Fragment as J, watchEffect as Ne, watch as Q, openBlock as m, createElementBlock as k, normalizeClass as y, normalizeStyle as X, mergeProps as w, createSlots as Y, withCtx as
|
|
1
|
+
import { defineComponent as ze, useSlots as Pe, ref as h, computed as s, unref as l, createVNode as p, Fragment as J, watchEffect as Ne, watch as Q, openBlock as m, createElementBlock as k, normalizeClass as y, normalizeStyle as X, mergeProps as w, createSlots as Y, withCtx as v, renderList as Z, createBlock as ee, resolveDynamicComponent as Ie, renderSlot as R, createCommentVNode as oe, createElementVNode as I, normalizeProps as Ee, guardReactiveProps as Ke } from "vue";
|
|
2
2
|
import { Divider as Oe, Table as Le } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useToken as Ve } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
4
|
import { ApForm as Ae } from "../ap-form/index.mjs";
|
|
5
|
-
import { noRenderAsFormItemValueList as
|
|
5
|
+
import { noRenderAsFormItemValueList as ae } from "./constants.mjs";
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
7
|
import { useTablePaging as De } from "./hooks/use-table-paging-ng.mjs";
|
|
8
|
-
import { isUndefined as g, omit as
|
|
8
|
+
import { isUndefined as g, omit as re, isBoolean as $e } from "lodash-unified";
|
|
9
9
|
import { getColumnOrder as te, updateFormProps as We, getFieldProps as je, getSearchFormItemRenderNode as _e, recursionApColumns as le, apColumnToColumn as He, getTableTitle as Ue, getTableRenderType as qe, getTableRenderProps as Me, getTableCellRenderNode as Ge, falseToUndefined as Je } from "./utils.mjs";
|
|
10
10
|
import Qe from "./hooks/use-table-content-height.mjs";
|
|
11
11
|
import Xe from "./hooks/use-table-row-selection.mjs";
|
|
@@ -16,8 +16,8 @@ import { useProvideApTable as Ze } from "./context.mjs";
|
|
|
16
16
|
import "../scroll-bar/index.mjs";
|
|
17
17
|
import { useStickyScroll as eo } from "./hooks/use-sticky-scroll.mjs";
|
|
18
18
|
import { scrollbarSize as oo } from "../config-provider/css-var.mjs";
|
|
19
|
-
import { useNamespace as
|
|
20
|
-
import { useGlobalConfig as
|
|
19
|
+
import { useNamespace as ao } from "../config-provider/hooks/use-namespace.mjs";
|
|
20
|
+
import { useGlobalConfig as ro } from "../config-provider/hooks/use-global-config.mjs";
|
|
21
21
|
import to from "./components/paragraph-ellipsis/index.vue2.mjs";
|
|
22
22
|
import lo from "./components/setting/modal/index.vue2.mjs";
|
|
23
23
|
import no from "../scroll-bar/index.vue.mjs";
|
|
@@ -155,7 +155,7 @@ const No = /* @__PURE__ */ ze({
|
|
|
155
155
|
b: c,
|
|
156
156
|
be: K,
|
|
157
157
|
m: ue
|
|
158
|
-
} =
|
|
158
|
+
} = ao("ap-table"), O = ro("valueTypeMap"), {
|
|
159
159
|
height: ie,
|
|
160
160
|
contentRef: ce
|
|
161
161
|
} = Qe(), L = h(), V = h(), {
|
|
@@ -175,11 +175,11 @@ const No = /* @__PURE__ */ ze({
|
|
|
175
175
|
dataSource: s(() => l(b).records)
|
|
176
176
|
});
|
|
177
177
|
const $ = s(() => {
|
|
178
|
-
var e,
|
|
179
|
-
return E++, ((
|
|
178
|
+
var e, r, a;
|
|
179
|
+
return E++, ((a = (r = (e = o.columns) == null ? void 0 : e.filter((t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !ae.includes(t.valueType))) == null ? void 0 : r.sort((t, d) => {
|
|
180
180
|
let n = te(t.order);
|
|
181
181
|
return te(d.order) - n;
|
|
182
|
-
})) == null ? void 0 :
|
|
182
|
+
})) == null ? void 0 : a.map((t) => {
|
|
183
183
|
const d = We(t, je(t.fieldProps, {})), n = {
|
|
184
184
|
...t,
|
|
185
185
|
fieldProps: {
|
|
@@ -218,16 +218,16 @@ const No = /* @__PURE__ */ ze({
|
|
|
218
218
|
getColumnSFConfig: be
|
|
219
219
|
} = De({
|
|
220
220
|
async request(e) {
|
|
221
|
-
var
|
|
221
|
+
var a, t;
|
|
222
222
|
if (!T.value.preserveSelectedRowKeys && g(o.dataSource) && x.clearAll(), !g(o.dataSource))
|
|
223
223
|
return {
|
|
224
224
|
data: o.dataSource || [],
|
|
225
225
|
total: o.dataSource.length || 0
|
|
226
226
|
};
|
|
227
|
-
const
|
|
228
|
-
return (t = o.onLoad) == null || t.call(o, (
|
|
229
|
-
data: (
|
|
230
|
-
total: (
|
|
227
|
+
const r = await ((a = o.request) == null ? void 0 : a.call(o, e));
|
|
228
|
+
return (t = o.onLoad) == null || t.call(o, (r == null ? void 0 : r.data) || []), {
|
|
229
|
+
data: (r == null ? void 0 : r.data) || [],
|
|
230
|
+
total: (r == null ? void 0 : r.total) || 0
|
|
231
231
|
};
|
|
232
232
|
},
|
|
233
233
|
filterFields: pe,
|
|
@@ -238,12 +238,12 @@ const No = /* @__PURE__ */ ze({
|
|
|
238
238
|
formatParams: o.beforeSearchSubmit,
|
|
239
239
|
pagination: o.pagination
|
|
240
240
|
}), Se = () => {
|
|
241
|
-
var
|
|
242
|
-
let e = ((
|
|
243
|
-
function
|
|
241
|
+
var a;
|
|
242
|
+
let e = ((a = o.columns) == null ? void 0 : a.filter((t) => !t.hideInTable)) || [];
|
|
243
|
+
function r(t, d) {
|
|
244
244
|
return t.map((n) => ({
|
|
245
245
|
resizable: Ye(n.resizable) ? n.resizable : o.columnResizable,
|
|
246
|
-
...
|
|
246
|
+
...re(He(n), ["ellipsis"]),
|
|
247
247
|
...be(n),
|
|
248
248
|
fixed: d ? d.fixed : n.fixed,
|
|
249
249
|
title: Ue(n, K("table-header", "title"), C.headerCell, l(de).colorPrimary),
|
|
@@ -265,7 +265,7 @@ const No = /* @__PURE__ */ ze({
|
|
|
265
265
|
value: f,
|
|
266
266
|
...S
|
|
267
267
|
})]) : ke;
|
|
268
|
-
let N =
|
|
268
|
+
let N = Re(n, q, Be);
|
|
269
269
|
return n.customRender && (N = n.customRender({
|
|
270
270
|
value: f,
|
|
271
271
|
...S,
|
|
@@ -274,21 +274,21 @@ const No = /* @__PURE__ */ ze({
|
|
|
274
274
|
originalText: q
|
|
275
275
|
})), N;
|
|
276
276
|
},
|
|
277
|
-
children:
|
|
277
|
+
children: r(n.children || [], d || n)
|
|
278
278
|
}));
|
|
279
279
|
}
|
|
280
|
-
return
|
|
280
|
+
return r(e);
|
|
281
281
|
};
|
|
282
282
|
Ne(() => {
|
|
283
283
|
const e = Se();
|
|
284
284
|
u.value = e, D.value = e;
|
|
285
285
|
});
|
|
286
286
|
const he = s(() => {
|
|
287
|
-
var
|
|
288
|
-
if (o.adaptive && (b.total > 0 || ((
|
|
287
|
+
var r, a;
|
|
288
|
+
if (o.adaptive && (b.total > 0 || ((r = o.dataSource) == null ? void 0 : r.length)))
|
|
289
289
|
return {
|
|
290
290
|
y: l(ie),
|
|
291
|
-
x: ((
|
|
291
|
+
x: ((a = o.scroll) == null ? void 0 : a.x) || "100%"
|
|
292
292
|
};
|
|
293
293
|
if (o.scroll)
|
|
294
294
|
return o.scroll;
|
|
@@ -296,53 +296,56 @@ const No = /* @__PURE__ */ ze({
|
|
|
296
296
|
var e;
|
|
297
297
|
if (o.tableLayout)
|
|
298
298
|
return o.tableLayout;
|
|
299
|
-
if ((e = o.columns) != null && e.some((
|
|
299
|
+
if ((e = o.columns) != null && e.some((r) => r.ellipsis))
|
|
300
300
|
return "fixed";
|
|
301
301
|
}), H = s(() => {
|
|
302
|
-
var
|
|
303
|
-
const e = l(_),
|
|
302
|
+
var a;
|
|
303
|
+
const e = l(_), r = l(T);
|
|
304
304
|
return {
|
|
305
305
|
...o,
|
|
306
306
|
...e,
|
|
307
|
-
rowSelection: o.rowSelection === !0 || ((
|
|
308
|
-
...
|
|
307
|
+
rowSelection: o.rowSelection === !0 || ((a = o.rowSelection) == null ? void 0 : a.mode) === "internal" ? {
|
|
308
|
+
...r,
|
|
309
309
|
// tips 如果是前端分页,则默认会走缓存
|
|
310
|
-
preserveSelectedRowKeys: g(o.dataSource) ?
|
|
310
|
+
preserveSelectedRowKeys: g(o.dataSource) ? r.preserveSelectedRowKeys : !0
|
|
311
311
|
} : Je(o.rowSelection),
|
|
312
312
|
loading: g(o.loading) ? e.loading : o.loading,
|
|
313
313
|
pagination: o.pagination === !1 ? !1 : e.pagination,
|
|
314
314
|
scroll: l(he)
|
|
315
315
|
};
|
|
316
|
-
}),
|
|
317
|
-
|
|
318
|
-
return
|
|
316
|
+
}), ve = s(() => {
|
|
317
|
+
var e;
|
|
318
|
+
return [c(), o.card ? null : c("wrapper"), o.adaptive ? c("adaptive") : null, A.value && ((e = i.value) != null && e.visible) ? ue(`sticky-${oo === 0 ? "absolute" : "relative"}`) : null].filter(Boolean);
|
|
319
|
+
});
|
|
320
|
+
function Re(e, r, a) {
|
|
321
|
+
return ae.includes(e.valueType) ? a : e.copyable || e.ellipsis ? p(to, {
|
|
319
322
|
copyable: e.copyable,
|
|
320
323
|
ellipsis: e.ellipsis ? $e(e.ellipsis) ? {
|
|
321
|
-
tooltip:
|
|
324
|
+
tooltip: a,
|
|
322
325
|
rows: 1
|
|
323
326
|
} : {
|
|
324
327
|
...e.ellipsis,
|
|
325
|
-
tooltip:
|
|
328
|
+
tooltip: a
|
|
326
329
|
} : !1,
|
|
327
|
-
content:
|
|
328
|
-
}, null) :
|
|
330
|
+
content: a
|
|
331
|
+
}, null) : a;
|
|
329
332
|
}
|
|
330
333
|
Q(() => l(b).loading, (e) => {
|
|
331
|
-
var
|
|
332
|
-
(
|
|
334
|
+
var r;
|
|
335
|
+
(r = o.onLoadingChange) == null || r.call(o, e);
|
|
333
336
|
}), Q(() => o.dataSource, (e) => {
|
|
334
337
|
ge(e);
|
|
335
338
|
}, {
|
|
336
339
|
immediate: !0
|
|
337
340
|
});
|
|
338
341
|
function Ce(e) {
|
|
339
|
-
var
|
|
340
|
-
(t = (
|
|
342
|
+
var r, a, t;
|
|
343
|
+
(t = (a = (r = P.value) == null ? void 0 : r.apForm) == null ? void 0 : a.setFieldsValue) == null || t.call(a, e);
|
|
341
344
|
}
|
|
342
345
|
function Te(e = !1) {
|
|
343
|
-
var
|
|
344
|
-
const
|
|
345
|
-
return (d = (t = (
|
|
346
|
+
var a, t, d;
|
|
347
|
+
const r = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
348
|
+
return (d = (t = (a = P.value) == null ? void 0 : a.apForm) == null ? void 0 : t[r]) == null ? void 0 : d.call(t, !0);
|
|
346
349
|
}
|
|
347
350
|
function Fe() {
|
|
348
351
|
return l(u);
|
|
@@ -366,16 +369,16 @@ const No = /* @__PURE__ */ ze({
|
|
|
366
369
|
return ((e = i == null ? void 0 : i.value) == null ? void 0 : e.currentScroll) ?? 0;
|
|
367
370
|
},
|
|
368
371
|
scroll: (e) => {
|
|
369
|
-
var
|
|
370
|
-
return (
|
|
372
|
+
var r, a;
|
|
373
|
+
return (a = (r = i == null ? void 0 : i.value) == null ? void 0 : r.scroll) == null ? void 0 : a.call(r, e);
|
|
371
374
|
}
|
|
372
375
|
},
|
|
373
376
|
y: void 0
|
|
374
377
|
}
|
|
375
|
-
}), (e,
|
|
378
|
+
}), (e, r) => (m(), k("div", {
|
|
376
379
|
ref_key: "tableWrapperRef",
|
|
377
380
|
ref: L,
|
|
378
|
-
class: y(
|
|
381
|
+
class: y(ve.value)
|
|
379
382
|
}, [l(g)(e.dataSource) && e.searchForm !== !1 && $.value.length > 0 ? (m(), k("div", {
|
|
380
383
|
key: 0,
|
|
381
384
|
class: y(e.card ? l(B)("search-wrapper") : null),
|
|
@@ -388,18 +391,18 @@ const No = /* @__PURE__ */ ze({
|
|
|
388
391
|
onSubmit: l(W),
|
|
389
392
|
onReset: l(j)
|
|
390
393
|
}), Y({
|
|
391
|
-
default:
|
|
392
|
-
key:
|
|
393
|
-
item:
|
|
394
|
+
default: v(() => [(m(!0), k(J, null, Z($.value, (a) => (m(), ee(Ie(a.renderNode.Comp), w({
|
|
395
|
+
key: a.dataIndex,
|
|
396
|
+
item: a,
|
|
394
397
|
ref_for: !0
|
|
395
|
-
},
|
|
396
|
-
span:
|
|
397
|
-
"custom-render":
|
|
398
|
+
}, a.fieldProps || {}, {
|
|
399
|
+
span: a.span,
|
|
400
|
+
"custom-render": a.renderNode.render
|
|
398
401
|
}), null, 16, ["item", "span", "custom-render"]))), 128))]),
|
|
399
402
|
_: 2
|
|
400
403
|
}, [C.searchFormExtra ? {
|
|
401
404
|
name: "extra",
|
|
402
|
-
fn:
|
|
405
|
+
fn: v(() => [R(e.$slots, "searchFormExtra")]),
|
|
403
406
|
key: "0"
|
|
404
407
|
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : oe("", !0), I("div", {
|
|
405
408
|
ref_key: "contentRef",
|
|
@@ -413,7 +416,7 @@ const No = /* @__PURE__ */ ze({
|
|
|
413
416
|
class: y(l(c)("header"))
|
|
414
417
|
}, [I("div", {
|
|
415
418
|
class: y(l(K)("header", "title"))
|
|
416
|
-
}, [
|
|
419
|
+
}, [R(e.$slots, "title", w({
|
|
417
420
|
selectedRows: l(F),
|
|
418
421
|
selectedRowKeys: l(T).selectedRowKeys,
|
|
419
422
|
shownColumns: u.value
|
|
@@ -422,7 +425,7 @@ const No = /* @__PURE__ */ ze({
|
|
|
422
425
|
type: "vertical"
|
|
423
426
|
})) : oe("", !0), p(lo, {
|
|
424
427
|
config: e.settings === !0 ? {} : e.settings
|
|
425
|
-
}, null, 8, ["config"])], 2)) :
|
|
428
|
+
}, null, 8, ["config"])], 2)) : R(e.$slots, "title", w({
|
|
426
429
|
key: 1,
|
|
427
430
|
selectedRows: l(F),
|
|
428
431
|
selectedRowKeys: l(T).selectedRowKeys,
|
|
@@ -435,9 +438,9 @@ const No = /* @__PURE__ */ ze({
|
|
|
435
438
|
size: z.value,
|
|
436
439
|
"table-layout": we.value,
|
|
437
440
|
columns: u.value,
|
|
438
|
-
onResizeColumn:
|
|
441
|
+
onResizeColumn: r[0] || (r[0] = (a, t) => t.width = a)
|
|
439
442
|
}), Y({
|
|
440
|
-
summary:
|
|
443
|
+
summary: v(() => [R(e.$slots, "summary", {
|
|
441
444
|
columns: u.value,
|
|
442
445
|
records: H.value.dataSource,
|
|
443
446
|
selectedRows: l(F)
|
|
@@ -445,19 +448,19 @@ const No = /* @__PURE__ */ ze({
|
|
|
445
448
|
_: 2
|
|
446
449
|
}, [l(A) ? {
|
|
447
450
|
name: "bottomPaginationTop",
|
|
448
|
-
fn:
|
|
449
|
-
var
|
|
451
|
+
fn: v(() => {
|
|
452
|
+
var a, t;
|
|
450
453
|
return [p(l(no), {
|
|
451
454
|
ref_key: "scrollBarRef",
|
|
452
455
|
ref: i,
|
|
453
|
-
"scroll-container": (t = (
|
|
456
|
+
"scroll-container": (t = (a = V.value) == null ? void 0 : a.table) == null ? void 0 : t.scrollBodyRef,
|
|
454
457
|
direction: "horizontal"
|
|
455
458
|
}, null, 8, ["scroll-container"])];
|
|
456
459
|
}),
|
|
457
460
|
key: "0"
|
|
458
|
-
} : void 0, Z(l(
|
|
461
|
+
} : void 0, Z(l(re)(C, ["title", "searchFormExtra", "headerCell", "summary"]), (a, t) => ({
|
|
459
462
|
name: t,
|
|
460
|
-
fn:
|
|
463
|
+
fn: v((d) => [R(e.$slots, t, Ee(Ke(d || {})))])
|
|
461
464
|
}))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 2));
|
|
462
465
|
}
|
|
463
466
|
});
|
|
@@ -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,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;
|