@aplus-frontend/ui 0.0.19 → 0.0.21
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-item.vue.d.ts +2 -8
- package/es/src/ap-form/constant.d.ts +4 -0
- package/es/src/ap-form/constant.mjs +4 -3
- package/es/src/ap-form/hooks/use-watch.d.ts +2 -2
- package/es/src/ap-form/interface.d.ts +10 -0
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +9 -2
- package/es/src/ap-form/items/checkbox/index.vue.mjs +20 -13
- package/es/src/ap-form/items/date/index.vue.d.ts +26 -14
- package/es/src/ap-form/items/date/index.vue.mjs +26 -18
- package/es/src/ap-form/items/date-range/index.vue.d.ts +24 -13
- package/es/src/ap-form/items/date-range/index.vue.mjs +27 -19
- package/es/src/ap-form/items/number/index.vue.d.ts +16 -9
- package/es/src/ap-form/items/number/index.vue.mjs +30 -22
- package/es/src/ap-form/items/radio/index.vue.d.ts +9 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +21 -14
- package/es/src/ap-form/items/select/index.vue.d.ts +28 -15
- package/es/src/ap-form/items/select/index.vue.mjs +30 -22
- package/es/src/ap-form/items/switch/index.vue.d.ts +10 -6
- package/es/src/ap-form/items/switch/index.vue.mjs +25 -17
- package/es/src/ap-form/items/text/index.vue.d.ts +14 -8
- package/es/src/ap-form/items/text/index.vue2.mjs +32 -24
- package/es/src/ap-form/items/text/password.vue.d.ts +16 -9
- package/es/src/ap-form/items/text/password.vue.mjs +29 -21
- package/es/src/ap-form/items/text-area/index.vue.d.ts +9 -2
- package/es/src/ap-form/items/text-area/index.vue.mjs +24 -17
- package/es/src/ap-list/interface.d.ts +67 -0
- package/es/src/ap-list/style/index.css +6 -0
- package/es/src/ap-table/ap-table.vue.mjs +131 -123
- package/es/src/ap-table/constants.d.ts +2692 -1453
- package/es/src/ap-table/interface.d.ts +6 -4
- package/es/src/ap-table/style/ap-table.css +19 -0
- package/es/src/ap-table/utils.d.ts +826 -670
- package/es/src/editable-table/hooks/use-get-columns.d.ts +3 -25
- package/es/src/editable-table/hooks/use-get-columns.mjs +47 -45
- package/es/src/editable-table/interface.d.ts +6 -1
- package/es/src/editable-table/style/index.css +3 -0
- package/es/src/theme/ap-list/index.css +6 -0
- package/es/src/theme/ap-table/ap-table.css +19 -0
- package/es/src/theme/editable-table/index.css +3 -0
- package/lib/src/ap-form/ap-form-item.vue.d.ts +2 -8
- package/lib/src/ap-form/constant.d.ts +4 -0
- package/lib/src/ap-form/constant.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.d.ts +2 -2
- package/lib/src/ap-form/interface.d.ts +10 -0
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +9 -2
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.d.ts +26 -14
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +24 -13
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +16 -9
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.d.ts +9 -2
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +28 -15
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.d.ts +10 -6
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +14 -8
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +16 -9
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +9 -2
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +67 -0
- package/lib/src/ap-list/style/index.css +6 -0
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2692 -1453
- package/lib/src/ap-table/interface.d.ts +6 -4
- package/lib/src/ap-table/style/ap-table.css +19 -0
- package/lib/src/ap-table/utils.d.ts +826 -670
- package/lib/src/editable-table/hooks/use-get-columns.d.ts +3 -25
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/interface.d.ts +6 -1
- package/lib/src/editable-table/style/index.css +3 -0
- package/lib/src/theme/ap-list/index.css +6 -0
- package/lib/src/theme/ap-table/ap-table.css +19 -0
- package/lib/src/theme/editable-table/index.css +3 -0
- package/package.json +3 -3
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
import { ApFormItemSelectProps } from '../interface';
|
|
2
|
+
import { ApFormItemSlots } from '../../interface';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
4
|
import { ApFieldSelectProps } from '../../../ap-field';
|
|
4
5
|
|
|
5
|
-
type ApFormItemSelectSlots = {
|
|
6
|
-
notFoundContent: any;
|
|
7
|
-
suffixIcon: any;
|
|
8
|
-
itemIcon: any;
|
|
9
|
-
removeIcon: any;
|
|
10
|
-
clearIcon: any;
|
|
11
|
-
dropdownRender: any;
|
|
12
|
-
option: any;
|
|
13
|
-
placeholder: any;
|
|
14
|
-
tagRender: any;
|
|
15
|
-
maxTagPlaceholder: any;
|
|
16
|
-
optionLabel: any;
|
|
17
|
-
default: any;
|
|
18
|
-
};
|
|
19
6
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemSelectProps>, {
|
|
20
7
|
hasFeedback: boolean;
|
|
21
8
|
colon: undefined;
|
|
@@ -43,7 +30,33 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
43
30
|
hasFeedback: boolean;
|
|
44
31
|
autoLink: boolean;
|
|
45
32
|
validateFirst: boolean;
|
|
46
|
-
}, {}>, Readonly<
|
|
33
|
+
}, {}>, Readonly<{
|
|
34
|
+
notFoundContent: any;
|
|
35
|
+
suffixIcon: any;
|
|
36
|
+
itemIcon: any;
|
|
37
|
+
removeIcon: any;
|
|
38
|
+
clearIcon: any;
|
|
39
|
+
dropdownRender: any;
|
|
40
|
+
option: any;
|
|
41
|
+
placeholder: any;
|
|
42
|
+
tagRender: any;
|
|
43
|
+
maxTagPlaceholder: any;
|
|
44
|
+
optionLabel: any;
|
|
45
|
+
default: any;
|
|
46
|
+
} & Omit<ApFormItemSlots, "default">> & {
|
|
47
|
+
notFoundContent: any;
|
|
48
|
+
suffixIcon: any;
|
|
49
|
+
itemIcon: any;
|
|
50
|
+
removeIcon: any;
|
|
51
|
+
clearIcon: any;
|
|
52
|
+
dropdownRender: any;
|
|
53
|
+
option: any;
|
|
54
|
+
placeholder: any;
|
|
55
|
+
tagRender: any;
|
|
56
|
+
maxTagPlaceholder: any;
|
|
57
|
+
optionLabel: any;
|
|
58
|
+
default: any;
|
|
59
|
+
} & Omit<ApFormItemSlots, "default">>;
|
|
47
60
|
export default _default;
|
|
48
61
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
62
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as x, ref as y, useSlots as S, computed as g, openBlock as F, createBlock as k, normalizeProps as t, guardReactiveProps as a, unref as l, createSlots as f, withCtx as n, createVNode as C, renderList as u, renderSlot as m } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
|
-
import { isUndefined as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
4
|
+
import { isUndefined as P, omit as c, pick as $ } from "lodash-unified";
|
|
5
|
+
import { apFormItemSlotNames as b } from "../../constant.mjs";
|
|
6
|
+
import N from "../../ap-form-item.vue.mjs";
|
|
7
|
+
import w from "../../../ap-field/select/index.vue.mjs";
|
|
8
|
+
const j = /* @__PURE__ */ x({
|
|
8
9
|
name: "ApFormItemSelect",
|
|
9
10
|
__name: "index",
|
|
10
11
|
props: {
|
|
@@ -48,42 +49,49 @@ const q = /* @__PURE__ */ c({
|
|
|
48
49
|
placeholder: {},
|
|
49
50
|
disabled: { type: Boolean, default: !1 }
|
|
50
51
|
},
|
|
51
|
-
setup(
|
|
52
|
-
const o =
|
|
53
|
-
|
|
52
|
+
setup(_, { expose: h }) {
|
|
53
|
+
const o = _, p = y();
|
|
54
|
+
h({
|
|
54
55
|
focus: () => {
|
|
55
56
|
var e;
|
|
56
|
-
(e =
|
|
57
|
+
(e = p.value) == null || e.focus();
|
|
57
58
|
},
|
|
58
59
|
blur: () => {
|
|
59
60
|
var e;
|
|
60
|
-
(e =
|
|
61
|
+
(e = p.value) == null || e.blur();
|
|
61
62
|
}
|
|
62
63
|
});
|
|
63
|
-
const
|
|
64
|
-
var e,
|
|
64
|
+
const i = S(), v = g(() => {
|
|
65
|
+
var e, d;
|
|
65
66
|
return {
|
|
66
67
|
placeholder: o.placeholder,
|
|
67
68
|
disabled: o.disabled,
|
|
68
69
|
...o.field || {},
|
|
69
|
-
bordered: o.bordered ? !1 :
|
|
70
|
+
bordered: o.bordered ? !1 : P((e = o.field) == null ? void 0 : e.bordered) ? !0 : (d = o.field) == null ? void 0 : d.bordered
|
|
70
71
|
};
|
|
71
72
|
});
|
|
72
|
-
return (e,
|
|
73
|
+
return (e, d) => (F(), k(N, t(a(l(c)(o, ["field", "placeholder", "disabled"]))), f({
|
|
73
74
|
default: n(() => [
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
name:
|
|
77
|
-
fn: n((
|
|
78
|
-
|
|
75
|
+
C(l(w), t(a(v.value)), f({ _: 2 }, [
|
|
76
|
+
u(l(c)(i, l(b)), (B, r) => ({
|
|
77
|
+
name: r,
|
|
78
|
+
fn: n((s) => [
|
|
79
|
+
m(e.$slots, r, t(a(s || {})))
|
|
79
80
|
])
|
|
80
81
|
}))
|
|
81
82
|
]), 1040)
|
|
82
83
|
]),
|
|
83
|
-
_:
|
|
84
|
-
},
|
|
84
|
+
_: 2
|
|
85
|
+
}, [
|
|
86
|
+
u(l($)(i, l(b)), (B, r) => ({
|
|
87
|
+
name: r,
|
|
88
|
+
fn: n((s) => [
|
|
89
|
+
m(e.$slots, r, t(a(s || {})))
|
|
90
|
+
])
|
|
91
|
+
}))
|
|
92
|
+
]), 1040));
|
|
85
93
|
}
|
|
86
94
|
});
|
|
87
95
|
export {
|
|
88
|
-
|
|
96
|
+
j as default
|
|
89
97
|
};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ApFormItemSwitchProps } from '../interface';
|
|
2
|
+
import { ApFormItemSlots } from '../../interface';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
4
|
import { ApFieldSwitchProps } from '../../..';
|
|
4
5
|
|
|
5
|
-
type ApFormItemSwitchSlots = {
|
|
6
|
-
checkedChildren: any;
|
|
7
|
-
unCheckedChildren: any;
|
|
8
|
-
default: any;
|
|
9
|
-
};
|
|
10
6
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemSwitchProps>, {
|
|
11
7
|
hasFeedback: boolean;
|
|
12
8
|
colon: undefined;
|
|
@@ -34,7 +30,15 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
34
30
|
autoLink: boolean;
|
|
35
31
|
validateFirst: boolean;
|
|
36
32
|
valuePropName: string;
|
|
37
|
-
}, {}>, Readonly<
|
|
33
|
+
}, {}>, Readonly<{
|
|
34
|
+
checkedChildren: any;
|
|
35
|
+
unCheckedChildren: any;
|
|
36
|
+
default: any;
|
|
37
|
+
} & Omit<ApFormItemSlots, "default">> & {
|
|
38
|
+
checkedChildren: any;
|
|
39
|
+
unCheckedChildren: any;
|
|
40
|
+
default: any;
|
|
41
|
+
} & Omit<ApFormItemSlots, "default">>;
|
|
38
42
|
export default _default;
|
|
39
43
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
40
44
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as B, useSlots as _, openBlock as h, createBlock as y, normalizeProps as t, guardReactiveProps as r, unref as o, createSlots as i, withCtx as s, createVNode as v, mergeProps as g, renderList as n, renderSlot as p } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/switch/index.vue2.mjs";
|
|
4
|
-
import { omit as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
4
|
+
import { omit as m, pick as x } from "lodash-unified";
|
|
5
|
+
import { apFormItemSlotNames as f } from "../../constant.mjs";
|
|
6
|
+
import S from "../../ap-form-item.vue.mjs";
|
|
7
|
+
import k from "../../../ap-field/switch/index.vue.mjs";
|
|
8
|
+
const L = /* @__PURE__ */ B({
|
|
8
9
|
name: "ApFormItemSwitch",
|
|
9
10
|
__name: "index",
|
|
10
11
|
props: {
|
|
@@ -46,23 +47,30 @@ const A = /* @__PURE__ */ n({
|
|
|
46
47
|
field: { default: () => ({}) },
|
|
47
48
|
disabled: { type: Boolean, default: !1 }
|
|
48
49
|
},
|
|
49
|
-
setup(
|
|
50
|
-
const
|
|
51
|
-
return (
|
|
52
|
-
default:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
name:
|
|
56
|
-
fn:
|
|
57
|
-
|
|
50
|
+
setup(u) {
|
|
51
|
+
const c = u, d = _();
|
|
52
|
+
return (l, C) => (h(), y(S, t(r(o(m)(c, ["field", "disabled"]))), i({
|
|
53
|
+
default: s(() => [
|
|
54
|
+
v(k, g({ disabled: l.disabled }, l.field), i({ _: 2 }, [
|
|
55
|
+
n(o(m)(d, o(f)), (b, e) => ({
|
|
56
|
+
name: e,
|
|
57
|
+
fn: s((a) => [
|
|
58
|
+
p(l.$slots, e, t(r(a || {})))
|
|
58
59
|
])
|
|
59
60
|
}))
|
|
60
61
|
]), 1040, ["disabled"])
|
|
61
62
|
]),
|
|
62
|
-
_:
|
|
63
|
-
},
|
|
63
|
+
_: 2
|
|
64
|
+
}, [
|
|
65
|
+
n(o(x)(d, o(f)), (b, e) => ({
|
|
66
|
+
name: e,
|
|
67
|
+
fn: s((a) => [
|
|
68
|
+
p(l.$slots, e, t(r(a || {})))
|
|
69
|
+
])
|
|
70
|
+
}))
|
|
71
|
+
]), 1040));
|
|
64
72
|
}
|
|
65
73
|
});
|
|
66
74
|
export {
|
|
67
|
-
|
|
75
|
+
L as default
|
|
68
76
|
};
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { ApFormItemTextProps } from '../interface';
|
|
2
2
|
import { InputFocusOptions } from 'ant-design-vue/es/vc-input/utils/commonUtils';
|
|
3
|
+
import { ApFormItemSlots } from '../../interface';
|
|
3
4
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
5
|
import { ApFieldTextProps } from '../../../ap-field';
|
|
5
6
|
|
|
6
|
-
type ApFormItemTextSlots = {
|
|
7
|
-
addonAfter: any;
|
|
8
|
-
addonBefore: any;
|
|
9
|
-
prefix: any;
|
|
10
|
-
suffix: any;
|
|
11
|
-
clearIcon: any;
|
|
12
|
-
};
|
|
13
7
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemTextProps>, {
|
|
14
8
|
hasFeedback: boolean;
|
|
15
9
|
colon: undefined;
|
|
@@ -40,7 +34,19 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
40
34
|
hasFeedback: boolean;
|
|
41
35
|
autoLink: boolean;
|
|
42
36
|
validateFirst: boolean;
|
|
43
|
-
}, {}>, Readonly<
|
|
37
|
+
}, {}>, Readonly<{
|
|
38
|
+
addonAfter: any;
|
|
39
|
+
addonBefore: any;
|
|
40
|
+
prefix: any;
|
|
41
|
+
suffix: any;
|
|
42
|
+
clearIcon: any;
|
|
43
|
+
} & Omit<ApFormItemSlots, "default">> & {
|
|
44
|
+
addonAfter: any;
|
|
45
|
+
addonBefore: any;
|
|
46
|
+
prefix: any;
|
|
47
|
+
suffix: any;
|
|
48
|
+
clearIcon: any;
|
|
49
|
+
} & Omit<ApFormItemSlots, "default">>;
|
|
44
50
|
export default _default;
|
|
45
51
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
46
52
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as g, useSlots as x, ref as S, computed as _, openBlock as k, createBlock as F, normalizeProps as n, guardReactiveProps as p, unref as t, createSlots as u, withCtx as d, createVNode as R, mergeProps as C, renderList as f, renderSlot as c } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
|
-
import { ApField as
|
|
4
|
-
import { omit as
|
|
5
|
-
import
|
|
6
|
-
|
|
3
|
+
import { ApField as P } from "../../../ap-field/index.mjs";
|
|
4
|
+
import { omit as m, pick as A } from "lodash-unified";
|
|
5
|
+
import { apFormItemSlotNames as b } from "../../constant.mjs";
|
|
6
|
+
import N from "../../ap-form-item.vue.mjs";
|
|
7
|
+
const E = /* @__PURE__ */ g({
|
|
7
8
|
name: "ApFormItemText",
|
|
8
9
|
__name: "index",
|
|
9
10
|
props: {
|
|
@@ -47,49 +48,56 @@ const q = /* @__PURE__ */ m({
|
|
|
47
48
|
placeholder: {},
|
|
48
49
|
disabled: { type: Boolean, default: !1 }
|
|
49
50
|
},
|
|
50
|
-
setup(
|
|
51
|
-
const { Text:
|
|
52
|
-
return
|
|
51
|
+
setup(v, { expose: h }) {
|
|
52
|
+
const { Text: y } = P, i = x(), B = v, l = S();
|
|
53
|
+
return h({
|
|
53
54
|
focus: (e) => {
|
|
54
|
-
var
|
|
55
|
-
(
|
|
55
|
+
var a;
|
|
56
|
+
(a = l.value) == null || a.focus(e);
|
|
56
57
|
},
|
|
57
58
|
blur: () => {
|
|
58
59
|
var e;
|
|
59
60
|
(e = l.value) == null || e.blur();
|
|
60
61
|
},
|
|
61
|
-
setSelectionRange: (e,
|
|
62
|
-
var
|
|
63
|
-
(
|
|
62
|
+
setSelectionRange: (e, a, r) => {
|
|
63
|
+
var o;
|
|
64
|
+
(o = l.value) == null || o.setSelectionRange(e, a, r);
|
|
64
65
|
},
|
|
65
66
|
select: () => {
|
|
66
67
|
var e;
|
|
67
68
|
(e = l.value) == null || e.select();
|
|
68
69
|
},
|
|
69
|
-
input:
|
|
70
|
+
input: _(() => {
|
|
70
71
|
var e;
|
|
71
72
|
return (e = l.value) == null ? void 0 : e.input;
|
|
72
73
|
})
|
|
73
|
-
}), (e,
|
|
74
|
+
}), (e, a) => (k(), F(N, n(p(t(m)(B, ["field", "disabled", "placeholder"]))), u({
|
|
74
75
|
default: d(() => [
|
|
75
|
-
|
|
76
|
+
R(t(y), C({
|
|
76
77
|
ref_key: "inputRef",
|
|
77
78
|
ref: l,
|
|
78
79
|
disabled: e.disabled,
|
|
79
80
|
placeholder: e.placeholder
|
|
80
|
-
}, e.field),
|
|
81
|
-
|
|
82
|
-
name:
|
|
83
|
-
fn: d((
|
|
84
|
-
|
|
81
|
+
}, e.field), u({ _: 2 }, [
|
|
82
|
+
f(t(m)(i, t(b)), (r, o) => ({
|
|
83
|
+
name: o,
|
|
84
|
+
fn: d((s) => [
|
|
85
|
+
c(e.$slots, o, n(p(s || {})))
|
|
85
86
|
])
|
|
86
87
|
}))
|
|
87
88
|
]), 1040, ["disabled", "placeholder"])
|
|
88
89
|
]),
|
|
89
|
-
_:
|
|
90
|
-
},
|
|
90
|
+
_: 2
|
|
91
|
+
}, [
|
|
92
|
+
f(t(A)(i, t(b)), (r, o) => ({
|
|
93
|
+
name: o,
|
|
94
|
+
fn: d((s) => [
|
|
95
|
+
c(e.$slots, o, n(p(s || {})))
|
|
96
|
+
])
|
|
97
|
+
}))
|
|
98
|
+
]), 1040));
|
|
91
99
|
}
|
|
92
100
|
});
|
|
93
101
|
export {
|
|
94
|
-
|
|
102
|
+
E as default
|
|
95
103
|
};
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import { ApFormItemTextPasswordProps } from '../interface';
|
|
2
|
+
import { ApFormItemSlots } from '../../interface';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
4
|
import { ApFieldTextPasswordProps } from '../../../ap-field';
|
|
4
5
|
|
|
5
|
-
type ApFormItemTextSlots = {
|
|
6
|
-
addonAfter: any;
|
|
7
|
-
addonBefore: any;
|
|
8
|
-
prefix: any;
|
|
9
|
-
suffix: any;
|
|
10
|
-
clearIcon: any;
|
|
11
|
-
iconRender: any;
|
|
12
|
-
};
|
|
13
6
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemTextPasswordProps>, {
|
|
14
7
|
hasFeedback: boolean;
|
|
15
8
|
colon: undefined;
|
|
@@ -37,7 +30,21 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
37
30
|
hasFeedback: boolean;
|
|
38
31
|
autoLink: boolean;
|
|
39
32
|
validateFirst: boolean;
|
|
40
|
-
}, {}>, Readonly<
|
|
33
|
+
}, {}>, Readonly<{
|
|
34
|
+
addonAfter: any;
|
|
35
|
+
addonBefore: any;
|
|
36
|
+
prefix: any;
|
|
37
|
+
suffix: any;
|
|
38
|
+
clearIcon: any;
|
|
39
|
+
iconRender: any;
|
|
40
|
+
} & Omit<ApFormItemSlots, "default">> & {
|
|
41
|
+
addonAfter: any;
|
|
42
|
+
addonBefore: any;
|
|
43
|
+
prefix: any;
|
|
44
|
+
suffix: any;
|
|
45
|
+
clearIcon: any;
|
|
46
|
+
iconRender: any;
|
|
47
|
+
} & Omit<ApFormItemSlots, "default">>;
|
|
41
48
|
export default _default;
|
|
42
49
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
43
50
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as v, useSlots as x, ref as _, openBlock as g, createBlock as k, normalizeProps as t, guardReactiveProps as s, unref as o, createSlots as n, withCtx as p, createVNode as F, mergeProps as S, renderList as i, renderSlot as f } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
|
-
import { ApField as
|
|
4
|
-
import { omit as
|
|
5
|
-
import
|
|
6
|
-
|
|
3
|
+
import { ApField as C } from "../../../ap-field/index.mjs";
|
|
4
|
+
import { omit as u, pick as P } from "lodash-unified";
|
|
5
|
+
import { apFormItemSlotNames as m } from "../../constant.mjs";
|
|
6
|
+
import w from "../../ap-form-item.vue.mjs";
|
|
7
|
+
const z = /* @__PURE__ */ v({
|
|
7
8
|
name: "ApFormItemText",
|
|
8
9
|
__name: "password",
|
|
9
10
|
props: {
|
|
@@ -47,37 +48,44 @@ const $ = /* @__PURE__ */ m({
|
|
|
47
48
|
placeholder: {},
|
|
48
49
|
disabled: { type: Boolean, default: !1 }
|
|
49
50
|
},
|
|
50
|
-
setup(
|
|
51
|
-
const { Text:
|
|
52
|
-
return
|
|
51
|
+
setup(c, { expose: b }) {
|
|
52
|
+
const { Text: h } = C, d = x(), y = c, a = _();
|
|
53
|
+
return b({
|
|
53
54
|
focus: () => {
|
|
54
55
|
var e;
|
|
55
|
-
(e =
|
|
56
|
+
(e = a.value) == null || e.focus();
|
|
56
57
|
},
|
|
57
58
|
blur: () => {
|
|
58
59
|
var e;
|
|
59
|
-
(e =
|
|
60
|
+
(e = a.value) == null || e.blur();
|
|
60
61
|
}
|
|
61
|
-
}), (e,
|
|
62
|
-
default:
|
|
63
|
-
|
|
62
|
+
}), (e, R) => (g(), k(w, t(s(o(u)(y, ["field", "disabled", "placeholder"]))), n({
|
|
63
|
+
default: p(() => [
|
|
64
|
+
F(o(h).Password, S({
|
|
64
65
|
ref_key: "inputRef",
|
|
65
|
-
ref:
|
|
66
|
+
ref: a,
|
|
66
67
|
disabled: e.disabled,
|
|
67
68
|
placeholder: e.placeholder
|
|
68
|
-
}, e.field),
|
|
69
|
-
|
|
69
|
+
}, e.field), n({ _: 2 }, [
|
|
70
|
+
i(o(u)(d, o(m)), (B, l) => ({
|
|
70
71
|
name: l,
|
|
71
|
-
fn:
|
|
72
|
-
|
|
72
|
+
fn: p((r) => [
|
|
73
|
+
f(e.$slots, l, t(s(r || {})))
|
|
73
74
|
])
|
|
74
75
|
}))
|
|
75
76
|
]), 1040, ["disabled", "placeholder"])
|
|
76
77
|
]),
|
|
77
|
-
_:
|
|
78
|
-
},
|
|
78
|
+
_: 2
|
|
79
|
+
}, [
|
|
80
|
+
i(o(P)(d, o(m)), (B, l) => ({
|
|
81
|
+
name: l,
|
|
82
|
+
fn: p((r) => [
|
|
83
|
+
f(e.$slots, l, t(s(r || {})))
|
|
84
|
+
])
|
|
85
|
+
}))
|
|
86
|
+
]), 1040));
|
|
79
87
|
}
|
|
80
88
|
});
|
|
81
89
|
export {
|
|
82
|
-
|
|
90
|
+
z as default
|
|
83
91
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ApFormItemTextAreaProps } from '../interface';
|
|
2
2
|
import { InputFocusOptions } from 'ant-design-vue/es/vc-input/utils/commonUtils';
|
|
3
|
+
import { ApFormItemSlots } from '../../interface';
|
|
3
4
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
5
|
import { ApFieldTextAreaProps } from '../../../ap-field';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
type ApFormItemTextAreaSlots = Omit<ApFormItemSlots, 'default'>;
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemTextAreaProps>, {
|
|
7
9
|
hasFeedback: boolean;
|
|
8
10
|
colon: undefined;
|
|
9
11
|
autoLink: boolean;
|
|
@@ -31,7 +33,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
31
33
|
hasFeedback: boolean;
|
|
32
34
|
autoLink: boolean;
|
|
33
35
|
validateFirst: boolean;
|
|
34
|
-
}, {}>;
|
|
36
|
+
}, {}>, Readonly<ApFormItemTextAreaSlots> & ApFormItemTextAreaSlots>;
|
|
35
37
|
export default _default;
|
|
36
38
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
39
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -50,3 +52,8 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
50
52
|
type __VLS_Prettify<T> = {
|
|
51
53
|
[K in keyof T]: T[K];
|
|
52
54
|
} & {};
|
|
55
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as c, useSlots as b, ref as x, computed as h, openBlock as v, createBlock as y, normalizeProps as r, guardReactiveProps as t, unref as s, createSlots as B, withCtx as d, createVNode as A, mergeProps as g, renderList as _, renderSlot as k } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
|
-
import { ApField as
|
|
4
|
-
import { omit as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
3
|
+
import { ApField as C } from "../../../ap-field/index.mjs";
|
|
4
|
+
import { omit as F } from "lodash-unified";
|
|
5
|
+
import S from "../../ap-form-item.vue.mjs";
|
|
6
|
+
const $ = /* @__PURE__ */ c({
|
|
7
7
|
name: "ApFormItemTextArea",
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
@@ -46,34 +46,41 @@ const P = /* @__PURE__ */ s({
|
|
|
46
46
|
placeholder: {},
|
|
47
47
|
disabled: { type: Boolean, default: !1 }
|
|
48
48
|
},
|
|
49
|
-
setup(
|
|
50
|
-
const { TextArea:
|
|
51
|
-
return
|
|
49
|
+
setup(p, { expose: n }) {
|
|
50
|
+
const { TextArea: i } = C, f = b(), u = p, l = x();
|
|
51
|
+
return n({
|
|
52
52
|
focus: (e) => {
|
|
53
|
-
var
|
|
54
|
-
(
|
|
53
|
+
var o;
|
|
54
|
+
(o = l.value) == null || o.focus(e);
|
|
55
55
|
},
|
|
56
56
|
blur: () => {
|
|
57
57
|
var e;
|
|
58
58
|
(e = l.value) == null || e.blur();
|
|
59
59
|
},
|
|
60
|
-
resizableTextArea:
|
|
60
|
+
resizableTextArea: h(() => {
|
|
61
61
|
var e;
|
|
62
62
|
return (e = l.value) == null ? void 0 : e.resizableTextArea;
|
|
63
63
|
})
|
|
64
|
-
}), (e,
|
|
65
|
-
default:
|
|
66
|
-
|
|
64
|
+
}), (e, o) => (v(), y(S, r(t(s(F)(u, ["field", "disabled", "placeholder"]))), B({
|
|
65
|
+
default: d(() => [
|
|
66
|
+
A(s(i), g({
|
|
67
67
|
ref_key: "textAreaRef",
|
|
68
68
|
ref: l,
|
|
69
69
|
disabled: e.disabled,
|
|
70
70
|
placeholder: e.placeholder
|
|
71
71
|
}, e.field), null, 16, ["disabled", "placeholder"])
|
|
72
72
|
]),
|
|
73
|
-
_:
|
|
74
|
-
},
|
|
73
|
+
_: 2
|
|
74
|
+
}, [
|
|
75
|
+
_(f, (z, a) => ({
|
|
76
|
+
name: a,
|
|
77
|
+
fn: d((m) => [
|
|
78
|
+
k(e.$slots, a, r(t(m || {})))
|
|
79
|
+
])
|
|
80
|
+
}))
|
|
81
|
+
]), 1040));
|
|
75
82
|
}
|
|
76
83
|
});
|
|
77
84
|
export {
|
|
78
|
-
|
|
85
|
+
$ as default
|
|
79
86
|
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
import { RequestData } from '../ap-table';
|
|
3
|
+
import { Recordable } from '../type';
|
|
4
|
+
|
|
5
|
+
export type ApListProps<RecordType = any, ParamsType = Recordable> = {
|
|
6
|
+
/**
|
|
7
|
+
* 列表数据源,传入后`request`和`defaultData`都将失效
|
|
8
|
+
*/
|
|
9
|
+
dataSource?: RecordType[];
|
|
10
|
+
/**
|
|
11
|
+
* 是否是加载中
|
|
12
|
+
*/
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 当点击列表项时触发
|
|
16
|
+
* @deprecated 暂未实现
|
|
17
|
+
*/
|
|
18
|
+
onItem?: (record: RecordType, index: number) => void;
|
|
19
|
+
/**
|
|
20
|
+
* 依赖的额外的参数(该参数变更不会触发网络请求)
|
|
21
|
+
*/
|
|
22
|
+
params?: ParamsType;
|
|
23
|
+
/**
|
|
24
|
+
* 请求数据
|
|
25
|
+
* @param params
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
request?: (params: Partial<ParamsType> & {
|
|
29
|
+
pageSize?: number;
|
|
30
|
+
current?: number;
|
|
31
|
+
}) => Promise<Partial<RequestData<RecordType>>>;
|
|
32
|
+
/**
|
|
33
|
+
* 表格的默认数据源,这些数据源将会在第一次请求后被替换
|
|
34
|
+
*/
|
|
35
|
+
defaultData?: RecordType[];
|
|
36
|
+
/**
|
|
37
|
+
* 表格loading状态变更后触发
|
|
38
|
+
* @param loading
|
|
39
|
+
* @returns
|
|
40
|
+
*/
|
|
41
|
+
onLoadingChange?: (loading: boolean) => void;
|
|
42
|
+
/**
|
|
43
|
+
* 查询表单提交之前,一般用于自定义对查询数据进行变更
|
|
44
|
+
* @param params
|
|
45
|
+
* @returns
|
|
46
|
+
*/
|
|
47
|
+
beforeSearchSubmit?: (params: Partial<ParamsType>) => any;
|
|
48
|
+
/**
|
|
49
|
+
* 是否显示分页器(特定的分页器)或者指定默认的当前页和pageSize
|
|
50
|
+
*/
|
|
51
|
+
pagination?: false | {
|
|
52
|
+
defaultCurrent?: number;
|
|
53
|
+
defaultPageSize?: number;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* 是否手动发起第一次网络请求
|
|
57
|
+
*/
|
|
58
|
+
manual?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* List容器的自定义样式
|
|
61
|
+
*/
|
|
62
|
+
containerStyle?: CSSProperties;
|
|
63
|
+
/**
|
|
64
|
+
* 底部分页器容器的样式
|
|
65
|
+
*/
|
|
66
|
+
footerWarpperStyle?: CSSProperties;
|
|
67
|
+
};
|