@aplus-frontend/ui 0.0.6 → 0.0.8
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/index.mjs +129 -119
- package/es/src/ap-field/checkbox/index.vue.mjs +8 -8
- package/es/src/ap-field/date/index.vue.d.ts +2 -2
- package/es/src/ap-field/date/index.vue.mjs +1 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +6 -2
- package/es/src/ap-field/date-range/index.vue.mjs +46 -44
- package/es/src/ap-field/index.d.ts +8 -2
- package/es/src/ap-field/index.mjs +27 -16
- package/es/src/ap-field/interface.d.ts +29 -1
- package/es/src/ap-field/rate/index.vue.d.ts +64 -0
- package/es/src/ap-field/rate/index.vue.mjs +64 -0
- package/es/src/ap-field/rate/index.vue2.mjs +4 -0
- package/es/src/ap-field/segmented/index.vue.d.ts +54 -0
- package/es/src/ap-field/segmented/index.vue.mjs +81 -0
- package/es/src/ap-field/segmented/index.vue2.mjs +4 -0
- package/es/src/ap-field/select/index.vue.d.ts +2 -2
- package/es/src/ap-field/select/index.vue.mjs +4 -4
- package/es/src/ap-field/slider/index.vue.d.ts +64 -0
- package/es/src/ap-field/slider/index.vue.mjs +90 -0
- package/es/src/ap-field/slider/index.vue2.mjs +4 -0
- package/es/src/ap-field/switch/index.vue.mjs +7 -7
- package/es/src/ap-field/text/index.d.ts +8 -0
- package/es/src/ap-field/text/index.mjs +10 -0
- package/es/src/ap-field/text/index.vue.d.ts +2 -2
- package/es/src/ap-field/text/index.vue.mjs +2 -131
- package/es/src/ap-field/text/index.vue2.mjs +131 -2
- package/es/src/ap-field/text/input-password-props.d.ts +13 -0
- package/es/src/ap-field/text/password.vue.d.ts +74 -0
- package/es/src/ap-field/text/password.vue.mjs +152 -0
- package/es/src/ap-field/text/password.vue2.mjs +4 -0
- package/es/src/ap-field/text-area/index.vue.d.ts +3 -0
- package/es/src/ap-field/text-area/index.vue.mjs +1 -1
- package/es/src/ap-form/items/index.d.ts +2 -2
- package/es/src/ap-form/items/index.mjs +4 -1
- package/es/src/ap-form/items/interface.d.ts +6 -1
- package/es/src/ap-form/items/text/index.d.ts +8 -0
- package/es/src/ap-form/items/text/index.mjs +10 -0
- package/es/src/ap-form/items/text/index.vue.mjs +2 -93
- package/es/src/ap-form/items/text/index.vue2.mjs +93 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +63 -0
- package/es/src/ap-form/items/text/password.vue.mjs +83 -0
- package/es/src/ap-form/items/text/password.vue2.mjs +4 -0
- package/es/src/ap-form/search-form/index.vue.mjs +53 -53
- package/es/src/ap-table/ap-table.vue.d.ts +2 -1
- package/es/src/ap-table/ap-table.vue.mjs +71 -70
- package/es/src/ap-table/constants.d.ts +4644 -1597
- package/es/src/ap-table/constants.mjs +40 -37
- package/es/src/ap-table/hooks/use-table-paging.mjs +14 -14
- package/es/src/ap-table/interface.d.ts +11 -3
- package/es/src/ap-table/utils.d.ts +1 -1
- package/es/src/index.mjs +112 -102
- package/lib/index.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +2 -2
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +6 -2
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/index.d.ts +8 -2
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/interface.d.ts +29 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +64 -0
- package/lib/src/ap-field/rate/index.vue.js +1 -0
- package/lib/src/ap-field/rate/index.vue2.js +1 -0
- package/lib/src/ap-field/segmented/index.vue.d.ts +54 -0
- package/lib/src/ap-field/segmented/index.vue.js +1 -0
- package/lib/src/ap-field/segmented/index.vue2.js +1 -0
- package/lib/src/ap-field/select/index.vue.d.ts +2 -2
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +64 -0
- package/lib/src/ap-field/slider/index.vue.js +1 -0
- package/lib/src/ap-field/slider/index.vue2.js +1 -0
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.d.ts +8 -0
- package/lib/src/ap-field/text/index.js +1 -0
- package/lib/src/ap-field/text/index.vue.d.ts +2 -2
- package/lib/src/ap-field/text/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/input-password-props.d.ts +13 -0
- package/lib/src/ap-field/text/password.vue.d.ts +74 -0
- package/lib/src/ap-field/text/password.vue.js +1 -0
- package/lib/src/ap-field/text/password.vue2.js +1 -0
- package/lib/src/ap-field/text-area/index.vue.d.ts +3 -0
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/index.d.ts +2 -2
- package/lib/src/ap-form/items/index.js +1 -1
- package/lib/src/ap-form/items/interface.d.ts +6 -1
- package/lib/src/ap-form/items/text/index.d.ts +8 -0
- package/lib/src/ap-form/items/text/index.js +1 -0
- package/lib/src/ap-form/items/text/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +63 -0
- package/lib/src/ap-form/items/text/password.vue.js +1 -0
- package/lib/src/ap-form/items/text/password.vue2.js +1 -0
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +4644 -1597
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/interface.d.ts +11 -3
- package/lib/src/ap-table/utils.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/package.json +3 -3
|
@@ -1,95 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../../ap-form-item.vue2.mjs";
|
|
3
|
-
import { ApField as R } from "../../../ap-field/index.mjs";
|
|
4
|
-
import { omit as k } from "lodash-unified";
|
|
5
|
-
import C from "../../ap-form-item.vue.mjs";
|
|
6
|
-
const q = /* @__PURE__ */ m({
|
|
7
|
-
name: "ApFormItemText",
|
|
8
|
-
__name: "index",
|
|
9
|
-
props: {
|
|
10
|
-
htmlFor: {},
|
|
11
|
-
prefixCls: {},
|
|
12
|
-
label: {},
|
|
13
|
-
help: {},
|
|
14
|
-
extra: {},
|
|
15
|
-
labelCol: {},
|
|
16
|
-
wrapperCol: {},
|
|
17
|
-
hasFeedback: { type: Boolean, default: !1 },
|
|
18
|
-
colon: { type: Boolean, default: void 0 },
|
|
19
|
-
labelAlign: {},
|
|
20
|
-
prop: {},
|
|
21
|
-
name: {},
|
|
22
|
-
rules: {},
|
|
23
|
-
autoLink: { type: Boolean, default: !0 },
|
|
24
|
-
required: { type: Boolean, default: void 0 },
|
|
25
|
-
validateFirst: { type: Boolean, default: void 0 },
|
|
26
|
-
validateStatus: {},
|
|
27
|
-
validateTrigger: {},
|
|
28
|
-
messageVariables: {},
|
|
29
|
-
hidden: { type: Boolean },
|
|
30
|
-
noStyle: { type: Boolean },
|
|
31
|
-
tooltip: {},
|
|
32
|
-
span: {},
|
|
33
|
-
order: {},
|
|
34
|
-
offset: {},
|
|
35
|
-
push: {},
|
|
36
|
-
pull: {},
|
|
37
|
-
xs: {},
|
|
38
|
-
sm: {},
|
|
39
|
-
md: {},
|
|
40
|
-
lg: {},
|
|
41
|
-
xl: {},
|
|
42
|
-
xxl: {},
|
|
43
|
-
flex: {},
|
|
44
|
-
bordered: { type: Boolean },
|
|
45
|
-
valuePropName: {},
|
|
46
|
-
field: { default: () => ({}) },
|
|
47
|
-
placeholder: {},
|
|
48
|
-
disabled: { type: Boolean, default: !1 }
|
|
49
|
-
},
|
|
50
|
-
setup(p, { expose: i }) {
|
|
51
|
-
const { Text: u } = R, f = p, l = b();
|
|
52
|
-
return i({
|
|
53
|
-
focus: (e) => {
|
|
54
|
-
var o;
|
|
55
|
-
(o = l.value) == null || o.focus(e);
|
|
56
|
-
},
|
|
57
|
-
blur: () => {
|
|
58
|
-
var e;
|
|
59
|
-
(e = l.value) == null || e.blur();
|
|
60
|
-
},
|
|
61
|
-
setSelectionRange: (e, o, a) => {
|
|
62
|
-
var t;
|
|
63
|
-
(t = l.value) == null || t.setSelectionRange(e, o, a);
|
|
64
|
-
},
|
|
65
|
-
select: () => {
|
|
66
|
-
var e;
|
|
67
|
-
(e = l.value) == null || e.select();
|
|
68
|
-
},
|
|
69
|
-
input: v(() => {
|
|
70
|
-
var e;
|
|
71
|
-
return (e = l.value) == null ? void 0 : e.input;
|
|
72
|
-
})
|
|
73
|
-
}), (e, o) => (h(), y(C, r(s(n(k)(f, ["field", "disabled", "placeholder"]))), {
|
|
74
|
-
default: d(() => [
|
|
75
|
-
B(n(u), g({
|
|
76
|
-
ref_key: "inputRef",
|
|
77
|
-
ref: l,
|
|
78
|
-
disabled: e.disabled,
|
|
79
|
-
placeholder: e.placeholder
|
|
80
|
-
}, e.field), x({ _: 2 }, [
|
|
81
|
-
S(e.$slots, (a, t) => ({
|
|
82
|
-
name: t,
|
|
83
|
-
fn: d((c) => [
|
|
84
|
-
_(e.$slots, t, r(s(c || {})))
|
|
85
|
-
])
|
|
86
|
-
}))
|
|
87
|
-
]), 1040, ["disabled", "placeholder"])
|
|
88
|
-
]),
|
|
89
|
-
_: 3
|
|
90
|
-
}, 16));
|
|
91
|
-
}
|
|
92
|
-
});
|
|
1
|
+
import f from "./index.vue2.mjs";
|
|
93
2
|
export {
|
|
94
|
-
|
|
3
|
+
f as default
|
|
95
4
|
};
|
|
@@ -1,4 +1,95 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as m, ref as b, computed as v, openBlock as h, createBlock as y, normalizeProps as r, guardReactiveProps as s, unref as n, withCtx as d, createVNode as B, mergeProps as g, createSlots as x, renderList as S, renderSlot as _ } from "vue";
|
|
2
|
+
import "../../ap-form-item.vue2.mjs";
|
|
3
|
+
import { ApField as R } from "../../../ap-field/index.mjs";
|
|
4
|
+
import { omit as k } from "lodash-unified";
|
|
5
|
+
import C from "../../ap-form-item.vue.mjs";
|
|
6
|
+
const q = /* @__PURE__ */ m({
|
|
7
|
+
name: "ApFormItemText",
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
htmlFor: {},
|
|
11
|
+
prefixCls: {},
|
|
12
|
+
label: {},
|
|
13
|
+
help: {},
|
|
14
|
+
extra: {},
|
|
15
|
+
labelCol: {},
|
|
16
|
+
wrapperCol: {},
|
|
17
|
+
hasFeedback: { type: Boolean, default: !1 },
|
|
18
|
+
colon: { type: Boolean, default: void 0 },
|
|
19
|
+
labelAlign: {},
|
|
20
|
+
prop: {},
|
|
21
|
+
name: {},
|
|
22
|
+
rules: {},
|
|
23
|
+
autoLink: { type: Boolean, default: !0 },
|
|
24
|
+
required: { type: Boolean, default: void 0 },
|
|
25
|
+
validateFirst: { type: Boolean, default: void 0 },
|
|
26
|
+
validateStatus: {},
|
|
27
|
+
validateTrigger: {},
|
|
28
|
+
messageVariables: {},
|
|
29
|
+
hidden: { type: Boolean },
|
|
30
|
+
noStyle: { type: Boolean },
|
|
31
|
+
tooltip: {},
|
|
32
|
+
span: {},
|
|
33
|
+
order: {},
|
|
34
|
+
offset: {},
|
|
35
|
+
push: {},
|
|
36
|
+
pull: {},
|
|
37
|
+
xs: {},
|
|
38
|
+
sm: {},
|
|
39
|
+
md: {},
|
|
40
|
+
lg: {},
|
|
41
|
+
xl: {},
|
|
42
|
+
xxl: {},
|
|
43
|
+
flex: {},
|
|
44
|
+
bordered: { type: Boolean },
|
|
45
|
+
valuePropName: {},
|
|
46
|
+
field: { default: () => ({}) },
|
|
47
|
+
placeholder: {},
|
|
48
|
+
disabled: { type: Boolean, default: !1 }
|
|
49
|
+
},
|
|
50
|
+
setup(p, { expose: i }) {
|
|
51
|
+
const { Text: u } = R, f = p, l = b();
|
|
52
|
+
return i({
|
|
53
|
+
focus: (e) => {
|
|
54
|
+
var o;
|
|
55
|
+
(o = l.value) == null || o.focus(e);
|
|
56
|
+
},
|
|
57
|
+
blur: () => {
|
|
58
|
+
var e;
|
|
59
|
+
(e = l.value) == null || e.blur();
|
|
60
|
+
},
|
|
61
|
+
setSelectionRange: (e, o, a) => {
|
|
62
|
+
var t;
|
|
63
|
+
(t = l.value) == null || t.setSelectionRange(e, o, a);
|
|
64
|
+
},
|
|
65
|
+
select: () => {
|
|
66
|
+
var e;
|
|
67
|
+
(e = l.value) == null || e.select();
|
|
68
|
+
},
|
|
69
|
+
input: v(() => {
|
|
70
|
+
var e;
|
|
71
|
+
return (e = l.value) == null ? void 0 : e.input;
|
|
72
|
+
})
|
|
73
|
+
}), (e, o) => (h(), y(C, r(s(n(k)(f, ["field", "disabled", "placeholder"]))), {
|
|
74
|
+
default: d(() => [
|
|
75
|
+
B(n(u), g({
|
|
76
|
+
ref_key: "inputRef",
|
|
77
|
+
ref: l,
|
|
78
|
+
disabled: e.disabled,
|
|
79
|
+
placeholder: e.placeholder
|
|
80
|
+
}, e.field), x({ _: 2 }, [
|
|
81
|
+
S(e.$slots, (a, t) => ({
|
|
82
|
+
name: t,
|
|
83
|
+
fn: d((c) => [
|
|
84
|
+
_(e.$slots, t, r(s(c || {})))
|
|
85
|
+
])
|
|
86
|
+
}))
|
|
87
|
+
]), 1040, ["disabled", "placeholder"])
|
|
88
|
+
]),
|
|
89
|
+
_: 3
|
|
90
|
+
}, 16));
|
|
91
|
+
}
|
|
92
|
+
});
|
|
2
93
|
export {
|
|
3
|
-
|
|
94
|
+
q as default
|
|
4
95
|
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ApFormItemTextPasswordProps } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { ApFieldTextPasswordProps } from '../../../ap-field';
|
|
4
|
+
|
|
5
|
+
type ApFormItemTextSlots = {
|
|
6
|
+
addonAfter: any;
|
|
7
|
+
addonBefore: any;
|
|
8
|
+
prefix: any;
|
|
9
|
+
suffix: any;
|
|
10
|
+
clearIcon: any;
|
|
11
|
+
iconRender: any;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemTextPasswordProps>, {
|
|
14
|
+
hasFeedback: boolean;
|
|
15
|
+
colon: undefined;
|
|
16
|
+
autoLink: boolean;
|
|
17
|
+
required: undefined;
|
|
18
|
+
validateFirst: undefined;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
field: () => {};
|
|
21
|
+
}>, {
|
|
22
|
+
focus: () => void;
|
|
23
|
+
blur: () => void;
|
|
24
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemTextPasswordProps>, {
|
|
25
|
+
hasFeedback: boolean;
|
|
26
|
+
colon: undefined;
|
|
27
|
+
autoLink: boolean;
|
|
28
|
+
required: undefined;
|
|
29
|
+
validateFirst: undefined;
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
field: () => {};
|
|
32
|
+
}>>>, {
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
required: boolean;
|
|
35
|
+
field: Omit< ApFieldTextPasswordProps, "value" | "onUpdate:value">;
|
|
36
|
+
colon: boolean;
|
|
37
|
+
hasFeedback: boolean;
|
|
38
|
+
autoLink: boolean;
|
|
39
|
+
validateFirst: boolean;
|
|
40
|
+
}, {}>, Readonly<ApFormItemTextSlots> & ApFormItemTextSlots>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
43
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
44
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
45
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
46
|
+
} : {
|
|
47
|
+
type: PropType<T[K]>;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
type __VLS_WithDefaults<P, D> = {
|
|
52
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
53
|
+
default: D[K];
|
|
54
|
+
}> : P[K];
|
|
55
|
+
};
|
|
56
|
+
type __VLS_Prettify<T> = {
|
|
57
|
+
[K in keyof T]: T[K];
|
|
58
|
+
} & {};
|
|
59
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
60
|
+
new (): {
|
|
61
|
+
$slots: S;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { defineComponent as m, useSlots as c, ref as b, openBlock as h, createBlock as y, normalizeProps as a, guardReactiveProps as r, unref as t, withCtx as s, createVNode as B, mergeProps as v, createSlots as x, renderList as _, renderSlot as g } from "vue";
|
|
2
|
+
import "../../ap-form-item.vue2.mjs";
|
|
3
|
+
import { ApField as k } from "../../../ap-field/index.mjs";
|
|
4
|
+
import { omit as C } from "lodash-unified";
|
|
5
|
+
import F from "../../ap-form-item.vue.mjs";
|
|
6
|
+
const $ = /* @__PURE__ */ m({
|
|
7
|
+
name: "ApFormItemText",
|
|
8
|
+
__name: "password",
|
|
9
|
+
props: {
|
|
10
|
+
htmlFor: {},
|
|
11
|
+
prefixCls: {},
|
|
12
|
+
label: {},
|
|
13
|
+
help: {},
|
|
14
|
+
extra: {},
|
|
15
|
+
labelCol: {},
|
|
16
|
+
wrapperCol: {},
|
|
17
|
+
hasFeedback: { type: Boolean, default: !1 },
|
|
18
|
+
colon: { type: Boolean, default: void 0 },
|
|
19
|
+
labelAlign: {},
|
|
20
|
+
prop: {},
|
|
21
|
+
name: {},
|
|
22
|
+
rules: {},
|
|
23
|
+
autoLink: { type: Boolean, default: !0 },
|
|
24
|
+
required: { type: Boolean, default: void 0 },
|
|
25
|
+
validateFirst: { type: Boolean, default: void 0 },
|
|
26
|
+
validateStatus: {},
|
|
27
|
+
validateTrigger: {},
|
|
28
|
+
messageVariables: {},
|
|
29
|
+
hidden: { type: Boolean },
|
|
30
|
+
noStyle: { type: Boolean },
|
|
31
|
+
tooltip: {},
|
|
32
|
+
span: {},
|
|
33
|
+
order: {},
|
|
34
|
+
offset: {},
|
|
35
|
+
push: {},
|
|
36
|
+
pull: {},
|
|
37
|
+
xs: {},
|
|
38
|
+
sm: {},
|
|
39
|
+
md: {},
|
|
40
|
+
lg: {},
|
|
41
|
+
xl: {},
|
|
42
|
+
xxl: {},
|
|
43
|
+
flex: {},
|
|
44
|
+
bordered: { type: Boolean },
|
|
45
|
+
valuePropName: {},
|
|
46
|
+
field: { default: () => ({}) },
|
|
47
|
+
placeholder: {},
|
|
48
|
+
disabled: { type: Boolean, default: !1 }
|
|
49
|
+
},
|
|
50
|
+
setup(d, { expose: p }) {
|
|
51
|
+
const { Text: n } = k, i = c(), f = d, o = b();
|
|
52
|
+
return p({
|
|
53
|
+
focus: () => {
|
|
54
|
+
var e;
|
|
55
|
+
(e = o.value) == null || e.focus();
|
|
56
|
+
},
|
|
57
|
+
blur: () => {
|
|
58
|
+
var e;
|
|
59
|
+
(e = o.value) == null || e.blur();
|
|
60
|
+
}
|
|
61
|
+
}), (e, w) => (h(), y(F, a(r(t(C)(f, ["field", "disabled", "placeholder"]))), {
|
|
62
|
+
default: s(() => [
|
|
63
|
+
B(t(n).Password, v({
|
|
64
|
+
ref_key: "inputRef",
|
|
65
|
+
ref: o,
|
|
66
|
+
disabled: e.disabled,
|
|
67
|
+
placeholder: e.placeholder
|
|
68
|
+
}, e.field), x({ _: 2 }, [
|
|
69
|
+
_(i, (A, l) => ({
|
|
70
|
+
name: l,
|
|
71
|
+
fn: s((u) => [
|
|
72
|
+
g(e.$slots, l, a(r(u || {})))
|
|
73
|
+
])
|
|
74
|
+
}))
|
|
75
|
+
]), 1040, ["disabled", "placeholder"])
|
|
76
|
+
]),
|
|
77
|
+
_: 3
|
|
78
|
+
}, 16));
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export {
|
|
82
|
+
$ as default
|
|
83
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { isVNode as J, defineComponent as K, useSlots as Q, ref as X, unref as o, shallowRef as
|
|
2
|
-
import { Flex as
|
|
1
|
+
import { isVNode as J, defineComponent as K, useSlots as Q, ref as X, unref as o, shallowRef as P, computed as C, watch as k, cloneVNode as Y, createVNode as a, Fragment as Z, openBlock as A, createBlock as E, mergeProps as ee, withCtx as N, resolveDynamicComponent as te } from "vue";
|
|
2
|
+
import { Flex as T, Space as oe, Button as y } from "ant-design-vue";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../ap-form-item-group/index.vue2.mjs";
|
|
5
5
|
import "../ap-form-item.vue2.mjs";
|
|
6
6
|
import "../../hooks/index.mjs";
|
|
7
|
-
import { genRealChildren as
|
|
7
|
+
import { genRealChildren as V } from "../ap-form-item-group/helper.mjs";
|
|
8
8
|
import { DoubleRightOutlined as ae } from "@ant-design/icons-vue";
|
|
9
9
|
import "../../config-provider/index.mjs";
|
|
10
10
|
import "../style/search-form.css";
|
|
@@ -12,13 +12,13 @@ import { omit as le } from "lodash-unified";
|
|
|
12
12
|
import { useControllableValue as ne } from "../../hooks/useControllableValue.mjs";
|
|
13
13
|
import { useNamespace as re } from "../../config-provider/hooks/use-namespace.mjs";
|
|
14
14
|
import { useLocale as se } from "../../config-provider/hooks/use-locale.mjs";
|
|
15
|
-
import
|
|
15
|
+
import I from "../ap-form-item.vue.mjs";
|
|
16
16
|
import pe from "../ap-form.vue2.mjs";
|
|
17
17
|
import ce from "../ap-form-item-group/index.vue.mjs";
|
|
18
18
|
function ie(i) {
|
|
19
19
|
return typeof i == "function" || Object.prototype.toString.call(i) === "[object Object]" && !J(i);
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const s = 24, Pe = /* @__PURE__ */ K({
|
|
22
22
|
name: "ApFormSearchForm",
|
|
23
23
|
__name: "index",
|
|
24
24
|
props: {
|
|
@@ -98,106 +98,106 @@ const c = 24, Pe = /* @__PURE__ */ K({
|
|
|
98
98
|
},
|
|
99
99
|
emits: ["update:collapse"],
|
|
100
100
|
setup(i, {
|
|
101
|
-
expose:
|
|
102
|
-
emit:
|
|
101
|
+
expose: j,
|
|
102
|
+
emit: M
|
|
103
103
|
}) {
|
|
104
104
|
var S;
|
|
105
|
-
const l = Q(), t = i,
|
|
106
|
-
value:
|
|
107
|
-
updateValue:
|
|
108
|
-
} = ne(t,
|
|
105
|
+
const l = Q(), t = i, O = M, {
|
|
106
|
+
value: u,
|
|
107
|
+
updateValue: $
|
|
108
|
+
} = ne(t, O, {
|
|
109
109
|
valuePropName: "collapse",
|
|
110
110
|
defaultValuePropName: "defaultCollapse"
|
|
111
111
|
}), {
|
|
112
|
-
b:
|
|
112
|
+
b: D
|
|
113
113
|
} = re("ap-form-search-form"), {
|
|
114
114
|
t: g
|
|
115
115
|
} = se(), m = X();
|
|
116
|
-
function D() {
|
|
117
|
-
O(!o(f));
|
|
118
|
-
}
|
|
119
116
|
function L() {
|
|
117
|
+
$(!o(u));
|
|
118
|
+
}
|
|
119
|
+
function q() {
|
|
120
120
|
var e, n;
|
|
121
121
|
(n = (e = m.value) == null ? void 0 : e.validateFields()) == null || n.then(t.onSubmit);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
var e, n,
|
|
125
|
-
t.customReset || (n = (e = m.value) == null ? void 0 : e.resetFields) == null || n.call(e), (
|
|
123
|
+
function z() {
|
|
124
|
+
var e, n, f;
|
|
125
|
+
t.customReset || (n = (e = m.value) == null ? void 0 : e.resetFields) == null || n.call(e), (f = t.onReset) == null || f.call(t);
|
|
126
126
|
}
|
|
127
|
-
const R =
|
|
128
|
-
|
|
129
|
-
R.value =
|
|
130
|
-
}),
|
|
127
|
+
const R = P(V(l.default())), d = P((S = l.extra) == null ? void 0 : S.call(l)), F = C(() => Math.floor(s / t.countPerRow));
|
|
128
|
+
k(() => l.default(), (e) => {
|
|
129
|
+
R.value = V(e);
|
|
130
|
+
}), k(() => {
|
|
131
131
|
var e;
|
|
132
132
|
return (e = l.extra) == null ? void 0 : e.call(l);
|
|
133
133
|
}, (e) => {
|
|
134
|
-
|
|
134
|
+
d.value = e;
|
|
135
135
|
});
|
|
136
|
-
const
|
|
136
|
+
const U = C(() => {
|
|
137
137
|
let e;
|
|
138
|
-
const n = [...o(R)],
|
|
138
|
+
const n = [...o(R)], f = [], b = [], r = o(F);
|
|
139
139
|
let h = 0;
|
|
140
|
-
n.forEach((
|
|
141
|
-
const
|
|
142
|
-
|
|
140
|
+
n.forEach((p) => {
|
|
141
|
+
const c = p.props;
|
|
142
|
+
c != null && c.hidden ? f.push(p) : (h += c.span || r, b.push(p));
|
|
143
143
|
});
|
|
144
|
-
const B =
|
|
144
|
+
const B = s - (h + r) % s, w = B < r ? s : B, x = s - r * (o(d) && !t.extraInAction ? 2 : 1), W = !t.forceExpand && h > x;
|
|
145
145
|
let _ = 0;
|
|
146
|
-
const G = b.map((
|
|
147
|
-
const
|
|
148
|
-
return _ +=
|
|
149
|
-
span:
|
|
150
|
-
key: `ApFormSearchFormItem-${
|
|
151
|
-
hidden: !t.forceExpand && o(
|
|
146
|
+
const G = b.map((p, c) => {
|
|
147
|
+
const v = p.props;
|
|
148
|
+
return _ += v.span || r, Y(p, {
|
|
149
|
+
span: v.span || r,
|
|
150
|
+
key: `ApFormSearchFormItem-${c}`,
|
|
151
|
+
hidden: !t.forceExpand && o(u) && _ > x
|
|
152
152
|
});
|
|
153
|
-
}), H =
|
|
154
|
-
return a(Z, null, [G,
|
|
153
|
+
}), H = s - Math.min(x, _) - r;
|
|
154
|
+
return a(Z, null, [G, f, a(I, {
|
|
155
155
|
span: o(F)
|
|
156
156
|
}, {
|
|
157
|
-
default: () => [a(
|
|
157
|
+
default: () => [a(T, {
|
|
158
158
|
justify: "space-between"
|
|
159
159
|
}, {
|
|
160
160
|
default: () => [a(oe, null, {
|
|
161
161
|
default: () => [a(y, {
|
|
162
162
|
type: "primary",
|
|
163
|
-
onClick:
|
|
163
|
+
onClick: q,
|
|
164
164
|
loading: t.submitLoading
|
|
165
165
|
}, {
|
|
166
166
|
default: () => [t.searchText || g("ap.apForm.search.search")]
|
|
167
167
|
}), a(y, {
|
|
168
|
-
onClick:
|
|
168
|
+
onClick: z
|
|
169
169
|
}, {
|
|
170
170
|
default: () => [t.resetText || g("ap.apForm.search.reset")]
|
|
171
171
|
}), W ? a(y, {
|
|
172
|
-
onClick:
|
|
172
|
+
onClick: L,
|
|
173
173
|
icon: a(ae, {
|
|
174
174
|
style: "color:#B8C3D1",
|
|
175
|
-
rotate: o(
|
|
175
|
+
rotate: o(u) ? 90 : -90
|
|
176
176
|
}, null)
|
|
177
177
|
}, null) : null]
|
|
178
|
-
}), t.extraInAction ? o(
|
|
178
|
+
}), t.extraInAction ? o(d) : null]
|
|
179
179
|
})]
|
|
180
|
-
}), !t.extraInAction && o(
|
|
181
|
-
span: o(
|
|
180
|
+
}), !t.extraInAction && o(d) ? a(I, {
|
|
181
|
+
span: o(u) ? H : w
|
|
182
182
|
}, {
|
|
183
|
-
default: () => [a(
|
|
184
|
-
justify: "end"
|
|
185
|
-
}, ie(e = o(
|
|
183
|
+
default: () => [a(T, {
|
|
184
|
+
justify: !o(u) && w === s ? "start" : "end"
|
|
185
|
+
}, ie(e = o(d)) ? e : {
|
|
186
186
|
default: () => [e]
|
|
187
187
|
})]
|
|
188
188
|
}) : null]);
|
|
189
189
|
});
|
|
190
|
-
return
|
|
190
|
+
return j({
|
|
191
191
|
apForm: C(() => o(m))
|
|
192
|
-
}), (e, n) => (
|
|
193
|
-
class: o(
|
|
192
|
+
}), (e, n) => (A(), E(pe, ee({
|
|
193
|
+
class: o(D)(),
|
|
194
194
|
ref_key: "apForm",
|
|
195
195
|
ref: m
|
|
196
196
|
}, o(le)(t, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
|
|
197
|
-
default:
|
|
197
|
+
default: N(() => [a(ce, {
|
|
198
198
|
"count-per-row": t.countPerRow
|
|
199
199
|
}, {
|
|
200
|
-
default:
|
|
200
|
+
default: N(() => [(A(), E(te(U.value)))]),
|
|
201
201
|
_: 1
|
|
202
202
|
}, 8, ["count-per-row"])]),
|
|
203
203
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApTableProps } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties } from 'vue';
|
|
2
|
+
import { ComputedRef, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties } from 'vue';
|
|
3
3
|
import { SpinSize } from 'ant-design-vue/es/spin/Spin';
|
|
4
4
|
import { VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
5
5
|
import { GetRowKey } from 'ant-design-vue/es/vc-table/interface';
|
|
@@ -52,6 +52,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
52
52
|
reset: () => void;
|
|
53
53
|
setSearchFormValues: typeof setSearchFormValues;
|
|
54
54
|
getSearchFormValues: typeof getSearchFormValues;
|
|
55
|
+
dataSource: ComputedRef<any[]>;
|
|
55
56
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApTableProps<any, any, "text">>, {
|
|
56
57
|
bordered: boolean;
|
|
57
58
|
childrenColumnName: string;
|