@aplus-frontend/ui 7.7.3 → 7.7.5
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.d.ts +1 -0
- package/es/src/ap-action/group/index.vue.mjs +28 -28
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +25 -1
- package/es/src/ap-button/ap-action-button.vue.d.ts +2 -1
- package/es/src/ap-button/ap-button.vue.d.ts +2 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +18 -8
- package/es/src/ap-field/number/index.vue.d.ts +20 -0
- package/es/src/ap-field/number/index.vue.mjs +24 -23
- package/es/src/ap-field/number/read.vue2.mjs +3 -2
- package/es/src/ap-field/radio/index.vue.mjs +24 -24
- package/es/src/ap-field/rate/index.vue.mjs +10 -10
- package/es/src/ap-field/select/index.vue.d.ts +12 -4
- package/es/src/ap-field/select/index.vue.mjs +74 -71
- package/es/src/ap-field/slider/index.vue.d.ts +4 -2
- package/es/src/ap-field/slider/index.vue.mjs +12 -12
- package/es/src/ap-field/switch/index.vue.mjs +20 -20
- package/es/src/ap-field/text/index.vue2.mjs +23 -23
- package/es/src/ap-field/text/password.vue.mjs +9 -9
- package/es/src/ap-field/text-area/index.vue.mjs +24 -20
- package/es/src/ap-field/tree-select/index.vue.d.ts +2 -0
- package/es/src/ap-field/tree-select/index.vue.mjs +17 -17
- package/es/src/ap-form/ap-form.vue2.mjs +64 -64
- package/es/src/ap-form/drawer-form/index.vue.mjs +41 -41
- package/es/src/ap-form/item/index.vue.mjs +64 -64
- package/es/src/ap-form/items/number/index.vue.d.ts +22 -0
- package/es/src/ap-form/items/number/index.vue.mjs +10 -10
- package/es/src/ap-form/items/radio/index.vue.mjs +3 -3
- package/es/src/ap-form/items/select/index.vue.d.ts +18 -6
- package/es/src/ap-form/items/select/index.vue.mjs +5 -5
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/index.vue2.mjs +6 -6
- package/es/src/ap-form/items/text/password.vue.mjs +7 -7
- package/es/src/ap-form/items/text-area/index.vue.mjs +5 -5
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -0
- package/es/src/ap-form/items/tree-select/index.vue.mjs +7 -7
- package/es/src/ap-form/modal-form/index.vue.d.ts +25 -1
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +19 -1
- package/es/src/ap-form/search-form/index.vue.mjs +63 -63
- package/es/src/ap-form/style/item.mjs +8 -7
- package/es/src/ap-list/index.vue.mjs +6 -6
- package/es/src/ap-table/constants.d.ts +23 -4
- package/es/src/business/ap-batch-action-group/index.d.ts +34 -4
- package/es/src/business/ap-descriptions/ap-descriptions.vue.d.ts +3 -10
- package/es/src/business/ap-descriptions/ap-descriptions.vue.mjs +58 -79
- package/es/src/business/ap-descriptions/interface.d.ts +2 -3
- package/es/src/business/ap-upload/apUpload.vue.d.ts +9 -0
- package/es/src/business/ap-upload/apUpload.vue.mjs +33 -29
- package/es/src/business/ap-upload/apUploadTypes.d.ts +4 -0
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +50 -49
- package/es/src/business/ap-upload/components/Picture.vue2.mjs +66 -65
- package/es/src/business/ap-upload/components/SingleFile.vue2.mjs +95 -94
- package/es/src/business/ap-upload/hooks/useOss.d.ts +2 -1
- package/es/src/business/ap-upload/hooks/useOss.mjs +26 -24
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/editable-table/form-item.vue.mjs +64 -64
- package/es/src/editable-table/index.vue.mjs +66 -66
- package/es/src/scroll-bar/index.vue.d.ts +7 -7
- package/es/src/scroll-bar/index.vue.mjs +21 -21
- package/es/src/scroll-bar/internal.vue.d.ts +4 -4
- package/es/src/scroll-bar/internal.vue.mjs +20 -20
- package/es/src/scroll-view/hooks/use-scroll-wrapper.d.ts +4 -4
- package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +13 -13
- package/es/src/scroll-view/index.vue.d.ts +25 -25
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +1 -0
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +25 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +2 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +2 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +20 -0
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/number/read.vue2.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +12 -4
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +4 -2
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.d.ts +2 -0
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +22 -0
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +18 -6
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -0
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +25 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +19 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/style/item.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +23 -4
- package/lib/src/business/ap-batch-action-group/index.d.ts +34 -4
- package/lib/src/business/ap-descriptions/ap-descriptions.vue.d.ts +3 -10
- package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/business/ap-descriptions/interface.d.ts +2 -3
- package/lib/src/business/ap-upload/apUpload.vue.d.ts +9 -0
- package/lib/src/business/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/business/ap-upload/apUploadTypes.d.ts +4 -0
- package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/business/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/business/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-upload/hooks/useOss.d.ts +2 -1
- package/lib/src/business/ap-upload/hooks/useOss.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/scroll-bar/index.vue.d.ts +7 -7
- package/lib/src/scroll-bar/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.d.ts +4 -4
- package/lib/src/scroll-bar/internal.vue.js +1 -1
- package/lib/src/scroll-view/hooks/use-scroll-wrapper.d.ts +4 -4
- package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
- package/lib/src/scroll-view/index.vue.d.ts +25 -25
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApFormModalFormProps } from '../interface';
|
|
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';
|
|
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, RendererNode, RendererElement, CSSProperties } from 'vue';
|
|
3
3
|
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
4
|
import { Recordable } from '../../type';
|
|
5
5
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
@@ -942,9 +942,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
942
942
|
loading: {
|
|
943
943
|
type: PropType<boolean | {
|
|
944
944
|
delay?: number;
|
|
945
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
946
|
+
[key: string]: any;
|
|
947
|
+
}>;
|
|
945
948
|
}>;
|
|
946
949
|
default: () => boolean | {
|
|
947
950
|
delay?: number;
|
|
951
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
952
|
+
[key: string]: any;
|
|
953
|
+
}>;
|
|
948
954
|
};
|
|
949
955
|
};
|
|
950
956
|
disabled: {
|
|
@@ -997,9 +1003,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
997
1003
|
loading: {
|
|
998
1004
|
type: PropType<boolean | {
|
|
999
1005
|
delay?: number;
|
|
1006
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
1007
|
+
[key: string]: any;
|
|
1008
|
+
}>;
|
|
1000
1009
|
}>;
|
|
1001
1010
|
default: () => boolean | {
|
|
1002
1011
|
delay?: number;
|
|
1012
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
1013
|
+
[key: string]: any;
|
|
1014
|
+
}>;
|
|
1003
1015
|
};
|
|
1004
1016
|
};
|
|
1005
1017
|
disabled: {
|
|
@@ -1054,9 +1066,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1054
1066
|
loading: {
|
|
1055
1067
|
type: PropType<boolean | {
|
|
1056
1068
|
delay?: number;
|
|
1069
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
1070
|
+
[key: string]: any;
|
|
1071
|
+
}>;
|
|
1057
1072
|
}>;
|
|
1058
1073
|
default: () => boolean | {
|
|
1059
1074
|
delay?: number;
|
|
1075
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
1076
|
+
[key: string]: any;
|
|
1077
|
+
}>;
|
|
1060
1078
|
};
|
|
1061
1079
|
};
|
|
1062
1080
|
disabled: {
|
|
@@ -1109,9 +1127,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1109
1127
|
loading: {
|
|
1110
1128
|
type: PropType<boolean | {
|
|
1111
1129
|
delay?: number;
|
|
1130
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
1131
|
+
[key: string]: any;
|
|
1132
|
+
}>;
|
|
1112
1133
|
}>;
|
|
1113
1134
|
default: () => boolean | {
|
|
1114
1135
|
delay?: number;
|
|
1136
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
1137
|
+
[key: string]: any;
|
|
1138
|
+
}>;
|
|
1115
1139
|
};
|
|
1116
1140
|
};
|
|
1117
1141
|
disabled: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApFormSearchFormPopoverFilterProps } from '../../interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
3
|
import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
4
4
|
import { ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
5
5
|
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
@@ -22,9 +22,15 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
|
|
|
22
22
|
loading: {
|
|
23
23
|
type: PropType<boolean | {
|
|
24
24
|
delay?: number;
|
|
25
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}>;
|
|
25
28
|
}>;
|
|
26
29
|
default: () => boolean | {
|
|
27
30
|
delay?: number;
|
|
31
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}>;
|
|
28
34
|
};
|
|
29
35
|
};
|
|
30
36
|
disabled: {
|
|
@@ -66,6 +72,9 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
|
|
|
66
72
|
autoInsertSpace: boolean;
|
|
67
73
|
loading: boolean | {
|
|
68
74
|
delay?: number;
|
|
75
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
76
|
+
[key: string]: any;
|
|
77
|
+
}>;
|
|
69
78
|
};
|
|
70
79
|
danger: boolean;
|
|
71
80
|
htmlType: ButtonHTMLType;
|
|
@@ -97,9 +106,15 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
|
|
|
97
106
|
loading: {
|
|
98
107
|
type: PropType<boolean | {
|
|
99
108
|
delay?: number;
|
|
109
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
}>;
|
|
100
112
|
}>;
|
|
101
113
|
default: () => boolean | {
|
|
102
114
|
delay?: number;
|
|
115
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
116
|
+
[key: string]: any;
|
|
117
|
+
}>;
|
|
103
118
|
};
|
|
104
119
|
};
|
|
105
120
|
disabled: {
|
|
@@ -141,6 +156,9 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
|
|
|
141
156
|
autoInsertSpace: boolean;
|
|
142
157
|
loading: boolean | {
|
|
143
158
|
delay?: number;
|
|
159
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
160
|
+
[key: string]: any;
|
|
161
|
+
}>;
|
|
144
162
|
};
|
|
145
163
|
danger: boolean;
|
|
146
164
|
htmlType: ButtonHTMLType;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Col as
|
|
1
|
+
import { isVNode as ie, defineComponent as ce, useSlots as ue, ref as pe, shallowRef as w, computed as R, unref as a, watch as M, createVNode as o, Fragment as _, createBlock as x, openBlock as p, mergeProps as de, withCtx as I, resolveDynamicComponent as T, createElementBlock as fe, renderList as me, normalizeStyle as he } from "vue";
|
|
2
|
+
import { Col as b, Flex as k, Button as q, Row as ge } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../item/index.vue2.mjs";
|
|
5
|
-
import { genRealChildren as
|
|
5
|
+
import { genRealChildren as H } from "../item-group/helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
7
|
import { isArray as xe, isBoolean as ye, omit as ve } from "lodash-unified";
|
|
8
8
|
import "../../utils/index.mjs";
|
|
9
|
-
import { execFunc as
|
|
9
|
+
import { execFunc as G, diffFormItem as Se } from "./utils.mjs";
|
|
10
10
|
import "./components/popover-filter.vue.mjs";
|
|
11
11
|
import { useCountPerRow as Ce } from "./hooks/use-count-per-row.mjs";
|
|
12
12
|
import "./components/popover-sorter/index.vue.mjs";
|
|
@@ -14,18 +14,18 @@ import { useSorter as we } from "./hooks/use-sorter.mjs";
|
|
|
14
14
|
import { getTargetNode as Re } from "./hooks/use-collapse-input-count.mjs";
|
|
15
15
|
import { useDevWarning as _e } from "../../utils/warning.mjs";
|
|
16
16
|
import be from "../style/search-form.mjs";
|
|
17
|
-
import { floorWith as
|
|
17
|
+
import { floorWith as J } from "../../utils/format.mjs";
|
|
18
18
|
import { useNamespace as Fe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
19
19
|
import { useLocale as Ae } from "../../config-provider/hooks/use-locale.mjs";
|
|
20
|
-
import { isDef as
|
|
21
|
-
import
|
|
20
|
+
import { isDef as K } from "../../utils/is.mjs";
|
|
21
|
+
import Q from "../item/index.vue.mjs";
|
|
22
22
|
import Ne from "./components/popover-filter.vue2.mjs";
|
|
23
23
|
import Be from "./components/popover-sorter/index.vue2.mjs";
|
|
24
24
|
import Ie from "../ap-form.vue2.mjs";
|
|
25
25
|
function Te(d) {
|
|
26
|
-
return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !
|
|
26
|
+
return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !ie(d);
|
|
27
27
|
}
|
|
28
|
-
const r = 100, nt = /* @__PURE__ */
|
|
28
|
+
const r = 100, nt = /* @__PURE__ */ ce({
|
|
29
29
|
name: "ApFormSearchForm",
|
|
30
30
|
__name: "index",
|
|
31
31
|
props: {
|
|
@@ -123,73 +123,73 @@ const r = 100, nt = /* @__PURE__ */ ue({
|
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
setup(d, {
|
|
126
|
-
expose:
|
|
126
|
+
expose: X
|
|
127
127
|
}) {
|
|
128
|
-
const y =
|
|
128
|
+
const y = ue(), t = d;
|
|
129
129
|
_e("SearchForm").deprecated(typeof t.resizeTarget < "u", "resizeTarget", "resize.target");
|
|
130
|
-
const
|
|
130
|
+
const Y = be("ap-form-search-form"), {
|
|
131
131
|
b: f
|
|
132
132
|
} = Fe("ap-form-search-form"), {
|
|
133
133
|
t: P
|
|
134
|
-
} = Ae(), v =
|
|
134
|
+
} = Ae(), v = pe(), E = w(), Z = Ce(t, E), W = w();
|
|
135
135
|
function z() {
|
|
136
136
|
const e = v.value?.getFieldsValueTransformed(!0);
|
|
137
|
-
|
|
137
|
+
G(t.onSubmit, e);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
t.customReset || v.value?.resetFields?.(),
|
|
139
|
+
function ee() {
|
|
140
|
+
t.customReset || v.value?.resetFields?.(), G(t.onReset);
|
|
141
141
|
}
|
|
142
|
-
const
|
|
142
|
+
const te = (e) => K(e) ? (xe(e) ? e : [e]).join("") : Date.now();
|
|
143
143
|
let O = [];
|
|
144
|
-
const m =
|
|
145
|
-
items:
|
|
144
|
+
const m = w(H(y.default())), c = w(y.extra?.()), L = R(() => J(r / a(Z), 4)), {
|
|
145
|
+
items: F,
|
|
146
146
|
sorted: $,
|
|
147
|
-
handleClickConfirm:
|
|
147
|
+
handleClickConfirm: A
|
|
148
148
|
} = we(m);
|
|
149
|
-
|
|
150
|
-
O = m.value, m.value = Se(O,
|
|
151
|
-
}),
|
|
149
|
+
M(() => y.default(), (e) => {
|
|
150
|
+
O = m.value, m.value = Se(O, H(e)), $.value = !1;
|
|
151
|
+
}), M(() => y.extra?.(), (e) => {
|
|
152
152
|
c.value = e;
|
|
153
153
|
});
|
|
154
|
-
function
|
|
155
|
-
return
|
|
154
|
+
function oe(e) {
|
|
155
|
+
return J(e * (r / 24), 4);
|
|
156
156
|
}
|
|
157
|
-
const n =
|
|
157
|
+
const n = R(() => {
|
|
158
158
|
const e = m.value, u = [], l = [], g = [], s = a(L);
|
|
159
|
-
let S = 0,
|
|
160
|
-
const
|
|
161
|
-
e.forEach((
|
|
162
|
-
const D = Re(
|
|
159
|
+
let S = 0, N = 0;
|
|
160
|
+
const le = r * t.maxRows - s * (a(c) && !t.extraInAction ? 2 : 1);
|
|
161
|
+
e.forEach((B) => {
|
|
162
|
+
const D = Re(B);
|
|
163
163
|
if (!D)
|
|
164
164
|
return;
|
|
165
165
|
const i = D.props;
|
|
166
|
-
if (ye(i.hidden) ? !!i.hidden :
|
|
167
|
-
u.push(
|
|
166
|
+
if (ye(i.hidden) ? !!i.hidden : K(i.hidden))
|
|
167
|
+
u.push(B);
|
|
168
168
|
else {
|
|
169
|
-
let C = i.span ?
|
|
169
|
+
let C = i.span ? oe(i.span) : s;
|
|
170
170
|
const V = {
|
|
171
|
-
node:
|
|
171
|
+
node: B,
|
|
172
172
|
span: C,
|
|
173
|
-
key: `ApFormSearchFormItem-${
|
|
173
|
+
key: `ApFormSearchFormItem-${te(i.name)}-${i._signal}`
|
|
174
174
|
}, U = r - S % r;
|
|
175
|
-
U < C && (C += U), S += C, S >
|
|
175
|
+
U < C && (C += U), S += C, S > le ? l.push(V) : (N = S, g.push(V));
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
|
-
const j = r - (
|
|
178
|
+
const j = r - (N + s) % r, re = Math.ceil(N) % r < s, se = j < s ? r : j;
|
|
179
179
|
return {
|
|
180
|
-
hideNode: o(
|
|
180
|
+
hideNode: o(_, null, [u]),
|
|
181
181
|
nodes: g,
|
|
182
182
|
collapseNodes: l,
|
|
183
|
-
extraSpan:
|
|
184
|
-
lastRowOnlyIncludeActionAndExtra:
|
|
183
|
+
extraSpan: se,
|
|
184
|
+
lastRowOnlyIncludeActionAndExtra: re
|
|
185
185
|
};
|
|
186
|
-
}), h = (e) => `${e}%`,
|
|
186
|
+
}), h = (e) => `${e}%`, ae = R(() => {
|
|
187
187
|
let e;
|
|
188
|
-
const u = n.value.collapseNodes.length || t.sortable && m.value.length, l = o(
|
|
188
|
+
const u = n.value.collapseNodes.length || t.sortable && m.value.length, l = o(b, {
|
|
189
189
|
flex: h(a(L)),
|
|
190
190
|
key: "actionWrapper"
|
|
191
191
|
}, {
|
|
192
|
-
default: () => [o(
|
|
192
|
+
default: () => [o(Q, null, {
|
|
193
193
|
default: () => [o(k, {
|
|
194
194
|
wrap: "wrap",
|
|
195
195
|
justify: n.value.lastRowOnlyIncludeActionAndExtra && !(a(c) && t.extraInAction) ? "flex-end" : "space-between"
|
|
@@ -204,12 +204,12 @@ const r = 100, nt = /* @__PURE__ */ ue({
|
|
|
204
204
|
onSubmit: z,
|
|
205
205
|
config: n.value.collapseNodes,
|
|
206
206
|
submitLoading: t.submitLoading
|
|
207
|
-
}, null) : null, t.sortable &&
|
|
207
|
+
}, null) : null, t.sortable && F.value.length ? o(Be, {
|
|
208
208
|
ref: W,
|
|
209
|
-
items:
|
|
210
|
-
onClickConfirm:
|
|
209
|
+
items: F.value,
|
|
210
|
+
onClickConfirm: A,
|
|
211
211
|
sorted: $.value
|
|
212
|
-
}, null) : null]) : null, o(
|
|
212
|
+
}, null) : null]) : null, o(q, {
|
|
213
213
|
type: "primary",
|
|
214
214
|
onClick: z,
|
|
215
215
|
loading: t.submitLoading ? {
|
|
@@ -219,8 +219,8 @@ const r = 100, nt = /* @__PURE__ */ ue({
|
|
|
219
219
|
class: f("action-btn")
|
|
220
220
|
}, {
|
|
221
221
|
default: () => [t.searchText || P("ap.apForm.search.search")]
|
|
222
|
-
}), o(
|
|
223
|
-
onClick:
|
|
222
|
+
}), o(q, {
|
|
223
|
+
onClick: ee,
|
|
224
224
|
type: "text",
|
|
225
225
|
class: [f("action-btn"), f("action-btn-reset")]
|
|
226
226
|
}, {
|
|
@@ -229,42 +229,42 @@ const r = 100, nt = /* @__PURE__ */ ue({
|
|
|
229
229
|
}), t.extraInAction ? a(c) : null]
|
|
230
230
|
})]
|
|
231
231
|
})]
|
|
232
|
-
}), g = !t.extraInAction && a(c) ? o(
|
|
232
|
+
}), g = !t.extraInAction && a(c) ? o(b, {
|
|
233
233
|
flex: h(n.value.extraSpan),
|
|
234
234
|
key: "extraNode"
|
|
235
235
|
}, {
|
|
236
|
-
default: () => [o(
|
|
236
|
+
default: () => [o(Q, null, {
|
|
237
237
|
default: () => [o(k, {
|
|
238
238
|
justify: n.value.extraSpan === r || n.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
|
|
239
239
|
}, Te(e = a(c)) ? e : {
|
|
240
240
|
default: () => [e]
|
|
241
241
|
})]
|
|
242
242
|
})]
|
|
243
|
-
}) : null, s = o(
|
|
243
|
+
}) : null, s = o(b, {
|
|
244
244
|
flex: h(n.value.extraSpan)
|
|
245
245
|
}, null);
|
|
246
|
-
return n.value.lastRowOnlyIncludeActionAndExtra ? o(
|
|
246
|
+
return n.value.lastRowOnlyIncludeActionAndExtra ? o(_, null, [g || s, l]) : o(_, null, [l, g]);
|
|
247
247
|
});
|
|
248
|
-
function
|
|
248
|
+
function ne() {
|
|
249
249
|
const e = W.value?.getCachedList();
|
|
250
|
-
|
|
250
|
+
A(e);
|
|
251
251
|
}
|
|
252
|
-
return
|
|
253
|
-
apForm:
|
|
254
|
-
getSorterItems: () =>
|
|
255
|
-
setSorterItems:
|
|
256
|
-
resetSorterItems:
|
|
252
|
+
return X({
|
|
253
|
+
apForm: R(() => a(v)),
|
|
254
|
+
getSorterItems: () => F.value,
|
|
255
|
+
setSorterItems: A,
|
|
256
|
+
resetSorterItems: ne
|
|
257
257
|
}), (e, u) => (p(), x(Ie, de({
|
|
258
258
|
ref_key: "apForm",
|
|
259
259
|
ref: v,
|
|
260
|
-
class: [a(f)(), a(
|
|
260
|
+
class: [a(f)(), a(Y)]
|
|
261
261
|
}, a(ve)(t, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
|
|
262
262
|
default: I(() => [(p(), x(T(n.value.hideNode))), o(a(ge), {
|
|
263
263
|
ref_key: "contentWrapperRef",
|
|
264
264
|
ref: E,
|
|
265
265
|
gutter: 8
|
|
266
266
|
}, {
|
|
267
|
-
default: I(() => [(p(!0), fe(
|
|
267
|
+
default: I(() => [(p(!0), fe(_, null, me(n.value.nodes, (l) => (p(), x(a(b), {
|
|
268
268
|
key: l.key,
|
|
269
269
|
flex: h(l.span),
|
|
270
270
|
style: he({
|
|
@@ -273,7 +273,7 @@ const r = 100, nt = /* @__PURE__ */ ue({
|
|
|
273
273
|
}, {
|
|
274
274
|
default: I(() => [(p(), x(T(l.node)))]),
|
|
275
275
|
_: 2
|
|
276
|
-
}, 1032, ["flex", "style"]))), 128)), (p(), x(T(
|
|
276
|
+
}, 1032, ["flex", "style"]))), 128)), (p(), x(T(ae.value)))]),
|
|
277
277
|
_: 1
|
|
278
278
|
}, 512)]),
|
|
279
279
|
_: 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { genComponentStyleHook as
|
|
2
|
-
const
|
|
3
|
-
const { componentCls: a, namespace: t } = n
|
|
1
|
+
import { genComponentStyleHook as i } from "../../utils/cssinjs/index.mjs";
|
|
2
|
+
const r = (n) => {
|
|
3
|
+
const { componentCls: a, namespace: t } = n, e = `${a}--disabled`;
|
|
4
4
|
return {
|
|
5
5
|
[a]: {
|
|
6
6
|
// bordered
|
|
@@ -83,7 +83,7 @@ const i = (n) => {
|
|
|
83
83
|
height: "unset"
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
|
-
|
|
86
|
+
[`&:hover:not(${e})`]: {
|
|
87
87
|
borderColor: n.hoverColorBase
|
|
88
88
|
},
|
|
89
89
|
"&:focus": {
|
|
@@ -96,6 +96,7 @@ const i = (n) => {
|
|
|
96
96
|
},
|
|
97
97
|
// disabled
|
|
98
98
|
"&--disabled": {
|
|
99
|
+
cursor: "not-allowed",
|
|
99
100
|
backgroundColor: n.colorBgDisabled,
|
|
100
101
|
".ant-select-selector": {
|
|
101
102
|
backgroundColor: "transparent !important"
|
|
@@ -131,8 +132,8 @@ const i = (n) => {
|
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
|
-
},
|
|
135
|
+
}, p = i("ApForm", (n) => [r(n)]);
|
|
135
136
|
export {
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
p as default,
|
|
138
|
+
r as genApFormItemStyle
|
|
138
139
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Z,
|
|
1
|
+
import { defineComponent as Z, shallowRef as _, toRef as x, unref as e, computed as p, watch as ee, createElementBlock as s, openBlock as o, normalizeStyle as h, normalizeClass as i, renderSlot as u, createElementVNode as te, createCommentVNode as P, createVNode as g, Fragment as z, createBlock as C, withCtx as b, renderList as ae, mergeProps as ne } from "vue";
|
|
2
2
|
import { Empty as F, Spin as re, Pagination as oe } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useTablePaging as ie } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
@@ -29,8 +29,8 @@ const De = /* @__PURE__ */ Z({
|
|
|
29
29
|
rowKey: {},
|
|
30
30
|
adaptive: { type: Boolean, default: !1 }
|
|
31
31
|
},
|
|
32
|
-
setup(E, { expose:
|
|
33
|
-
const
|
|
32
|
+
setup(E, { expose: R }) {
|
|
33
|
+
const L = F.PRESENTED_IMAGE_SIMPLE, a = E, { b: d, e: y, bm: O, m: N } = pe("ap-list"), T = fe("ap-list"), k = _(), {
|
|
34
34
|
formRef: S,
|
|
35
35
|
submit: I,
|
|
36
36
|
reset: w,
|
|
@@ -88,7 +88,7 @@ const De = /* @__PURE__ */ Z({
|
|
|
88
88
|
function X(t) {
|
|
89
89
|
S.value?.apForm?.setFieldsValue?.(t);
|
|
90
90
|
}
|
|
91
|
-
return
|
|
91
|
+
return R({
|
|
92
92
|
submit: () => I(),
|
|
93
93
|
reset: () => w(),
|
|
94
94
|
refresh: () => A(),
|
|
@@ -110,7 +110,7 @@ const De = /* @__PURE__ */ Z({
|
|
|
110
110
|
te("div", {
|
|
111
111
|
class: i([
|
|
112
112
|
e(d)("content-container"),
|
|
113
|
-
{ [e(
|
|
113
|
+
{ [e(O)("content-container", "spinning")]: c.value }
|
|
114
114
|
])
|
|
115
115
|
}, [
|
|
116
116
|
c.value ? (o(), s("div", {
|
|
@@ -123,7 +123,7 @@ const De = /* @__PURE__ */ Z({
|
|
|
123
123
|
key: 1,
|
|
124
124
|
loading: c.value
|
|
125
125
|
}, () => [
|
|
126
|
-
g(e(F), { image: e(
|
|
126
|
+
g(e(F), { image: e(L) }, null, 8, ["image"])
|
|
127
127
|
]) : (o(), s("div", {
|
|
128
128
|
key: 2,
|
|
129
129
|
ref_key: "contentRef",
|
|
@@ -195,6 +195,7 @@ export declare const apTableFormItemMap: {
|
|
|
195
195
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
196
196
|
readonly defaultValue?: ValueType | undefined;
|
|
197
197
|
readonly changeOnWheel?: boolean | undefined;
|
|
198
|
+
readonly changeOnBlur?: boolean | undefined;
|
|
198
199
|
readonly stringMode?: boolean | undefined;
|
|
199
200
|
readonly min?: ValueType | undefined;
|
|
200
201
|
readonly max?: ValueType | undefined;
|
|
@@ -264,6 +265,10 @@ export declare const apTableFormItemMap: {
|
|
|
264
265
|
type: BooleanConstructor;
|
|
265
266
|
default: boolean;
|
|
266
267
|
};
|
|
268
|
+
changeOnBlur: {
|
|
269
|
+
type: BooleanConstructor;
|
|
270
|
+
default: boolean;
|
|
271
|
+
};
|
|
267
272
|
stringMode: {
|
|
268
273
|
type: BooleanConstructor;
|
|
269
274
|
default: boolean;
|
|
@@ -380,6 +385,7 @@ export declare const apTableFormItemMap: {
|
|
|
380
385
|
defaultValue: ValueType;
|
|
381
386
|
step: ValueType;
|
|
382
387
|
changeOnWheel: boolean;
|
|
388
|
+
changeOnBlur: boolean;
|
|
383
389
|
stringMode: boolean;
|
|
384
390
|
controls: boolean;
|
|
385
391
|
keyboard: boolean;
|
|
@@ -441,6 +447,10 @@ export declare const apTableFormItemMap: {
|
|
|
441
447
|
type: BooleanConstructor;
|
|
442
448
|
default: boolean;
|
|
443
449
|
};
|
|
450
|
+
changeOnBlur: {
|
|
451
|
+
type: BooleanConstructor;
|
|
452
|
+
default: boolean;
|
|
453
|
+
};
|
|
444
454
|
stringMode: {
|
|
445
455
|
type: BooleanConstructor;
|
|
446
456
|
default: boolean;
|
|
@@ -557,6 +567,7 @@ export declare const apTableFormItemMap: {
|
|
|
557
567
|
defaultValue: ValueType;
|
|
558
568
|
step: ValueType;
|
|
559
569
|
changeOnWheel: boolean;
|
|
570
|
+
changeOnBlur: boolean;
|
|
560
571
|
stringMode: boolean;
|
|
561
572
|
controls: boolean;
|
|
562
573
|
keyboard: boolean;
|
|
@@ -950,7 +961,9 @@ export declare const apTableFormItemMap: {
|
|
|
950
961
|
readonly autoClearSearchValue?: boolean | undefined;
|
|
951
962
|
readonly onDeselect?: SelectHandler<(string | number) | LabeledValue, DefaultOptionType> | undefined;
|
|
952
963
|
readonly filterOption?: boolean | FilterFunc<DefaultOptionType> | undefined;
|
|
953
|
-
readonly filterSort?: ((optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
964
|
+
readonly filterSort?: ((optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
965
|
+
searchValue: string;
|
|
966
|
+
}) => number) | undefined;
|
|
954
967
|
readonly optionFilterProp?: string | undefined;
|
|
955
968
|
readonly optionLabelProp?: string | undefined;
|
|
956
969
|
readonly options?: DefaultOptionType[] | undefined;
|
|
@@ -1113,7 +1126,9 @@ export declare const apTableFormItemMap: {
|
|
|
1113
1126
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
1114
1127
|
default: any;
|
|
1115
1128
|
};
|
|
1116
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
1129
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
1130
|
+
searchValue: string;
|
|
1131
|
+
}) => number>;
|
|
1117
1132
|
optionFilterProp: StringConstructor;
|
|
1118
1133
|
optionLabelProp: StringConstructor;
|
|
1119
1134
|
options: PropType< DefaultOptionType[]>;
|
|
@@ -1332,7 +1347,9 @@ export declare const apTableFormItemMap: {
|
|
|
1332
1347
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
1333
1348
|
default: any;
|
|
1334
1349
|
};
|
|
1335
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
1350
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
1351
|
+
searchValue: string;
|
|
1352
|
+
}) => number>;
|
|
1336
1353
|
optionFilterProp: StringConstructor;
|
|
1337
1354
|
optionLabelProp: StringConstructor;
|
|
1338
1355
|
options: PropType< DefaultOptionType[]>;
|
|
@@ -1773,7 +1790,7 @@ export declare const apTableFormItemMap: {
|
|
|
1773
1790
|
allowClear: boolean;
|
|
1774
1791
|
}> & Omit<Readonly< ApFieldTextProps> & Readonly<{
|
|
1775
1792
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
1776
|
-
}>, "blur" | "focus" | "input" | "select" | ("type" | "mode" | "disabled" | "bordered" | "emptyText" | "lazy" | "allowClear")
|
|
1793
|
+
}>, "blur" | "focus" | "input" | "select" | "setSelectionRange" | ("type" | "mode" | "disabled" | "bordered" | "emptyText" | "lazy" | "allowClear")> & ShallowUnwrapRef<{
|
|
1777
1794
|
focus: (options?: InputFocusOptions) => void;
|
|
1778
1795
|
blur: () => void;
|
|
1779
1796
|
input: any;
|
|
@@ -2880,6 +2897,7 @@ export declare const apTableFormItemMap: {
|
|
|
2880
2897
|
leafIcon?: any;
|
|
2881
2898
|
tagRender?: any;
|
|
2882
2899
|
suffixIcon?: any;
|
|
2900
|
+
clearIcon?: any;
|
|
2883
2901
|
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
2884
2902
|
P: {};
|
|
2885
2903
|
B: {};
|
|
@@ -3411,6 +3429,7 @@ export declare const apTableRenderItemMap: {
|
|
|
3411
3429
|
actions: GroupActionTypes[];
|
|
3412
3430
|
trigger: Trigger | Trigger[];
|
|
3413
3431
|
count: number;
|
|
3432
|
+
iconFirst: boolean;
|
|
3414
3433
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
3415
3434
|
index: DefineComponent<ApTableIndexProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApTableIndexProps> & Readonly<{}>, {
|
|
3416
3435
|
bordered: boolean;
|