@aplus-frontend/ui 0.0.18 → 0.0.20
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 +26 -23
- package/es/src/ap-field/date/index.vue.d.ts +3 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +3 -3
- package/es/src/ap-field/date-range/index.vue.mjs +1 -1
- package/es/src/ap-field/interface.d.ts +1 -1
- package/es/src/ap-form/ap-form-item.vue.d.ts +2 -8
- package/es/src/ap-form/ap-form-item.vue.mjs +61 -57
- package/es/src/ap-form/constant.d.ts +4 -0
- package/es/src/ap-form/constant.mjs +4 -3
- 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-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/style/ap-form-item.css +11 -0
- package/es/src/ap-modal/index.d.ts +9 -0
- package/es/src/ap-modal/index.mjs +10 -0
- package/es/src/ap-modal/type.d.ts +13 -0
- package/es/src/ap-modal/type.mjs +1 -0
- package/es/src/ap-modal/utils/createModal.d.ts +3 -0
- package/es/src/ap-modal/utils/createModal.mjs +74 -0
- package/es/src/ap-modal/utils/index.d.ts +1 -0
- package/es/src/ap-modal/utils/index.mjs +4 -0
- package/es/src/ap-table/ap-table.vue.mjs +135 -124
- package/es/src/ap-table/constants.d.ts +2716 -1475
- package/es/src/ap-table/interface.d.ts +4 -0
- package/es/src/ap-table/style/ap-table.css +1 -0
- package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +81 -0
- package/es/src/business/expandAlert/ApExpandAlert.vue.mjs +4 -0
- package/es/src/business/expandAlert/ApExpandAlert.vue2.mjs +113 -0
- package/es/src/business/expandAlert/interface.d.ts +26 -0
- package/es/src/business/expandAlert/style.css +42 -0
- package/es/src/business/index.d.ts +161 -1
- package/es/src/business/index.mjs +7 -4
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +194 -191
- package/es/src/theme/ap-expand-alert/ap-expand-alert.css +42 -0
- package/es/src/theme/ap-form/ap-form-item.css +11 -0
- package/es/src/theme/ap-table/ap-table.css +1 -0
- package/es/src/type.d.ts +3 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +3 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +3 -3
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +1 -1
- package/lib/src/ap-form/ap-form-item.vue.d.ts +2 -8
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/constant.d.ts +4 -0
- package/lib/src/ap-form/constant.js +1 -1
- 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-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/style/ap-form-item.css +11 -0
- package/lib/src/ap-modal/index.d.ts +9 -0
- package/lib/src/ap-modal/index.js +1 -0
- package/lib/src/ap-modal/type.d.ts +13 -0
- package/lib/src/ap-modal/type.js +1 -0
- package/lib/src/ap-modal/utils/createModal.d.ts +3 -0
- package/lib/src/ap-modal/utils/createModal.js +1 -0
- package/lib/src/ap-modal/utils/index.d.ts +1 -0
- package/lib/src/ap-modal/utils/index.js +1 -0
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2716 -1475
- package/lib/src/ap-table/interface.d.ts +4 -0
- package/lib/src/ap-table/style/ap-table.css +1 -0
- package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +81 -0
- package/lib/src/business/expandAlert/ApExpandAlert.vue.js +1 -0
- package/lib/src/business/expandAlert/ApExpandAlert.vue2.js +1 -0
- package/lib/src/business/expandAlert/interface.d.ts +26 -0
- package/lib/src/business/expandAlert/style.css +42 -0
- package/lib/src/business/index.d.ts +161 -1
- package/lib/src/business/index.js +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/theme/ap-expand-alert/ap-expand-alert.css +42 -0
- package/lib/src/theme/ap-form/ap-form-item.css +11 -0
- package/lib/src/theme/ap-table/ap-table.css +1 -0
- package/lib/src/type.d.ts +3 -1
- package/package.json +2 -2
|
@@ -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
|
};
|
|
@@ -147,7 +147,7 @@ const s = 24, Pe = /* @__PURE__ */ K({
|
|
|
147
147
|
const v = p.props;
|
|
148
148
|
return _ += v.span || r, Y(p, {
|
|
149
149
|
span: v.span || r,
|
|
150
|
-
key: `ApFormSearchFormItem-${c}`,
|
|
150
|
+
key: `ApFormSearchFormItem-${c}-${Date.now()}`,
|
|
151
151
|
hidden: !t.forceExpand && o(u) && _ > x
|
|
152
152
|
});
|
|
153
153
|
}), H = s - Math.min(x, _) - r;
|
|
@@ -48,3 +48,14 @@
|
|
|
48
48
|
border-color: #66a9ff;
|
|
49
49
|
box-shadow: 0 0 0 2px rgba(5, 155, 255, 0.1);
|
|
50
50
|
}
|
|
51
|
+
.aplus-ap-form-item .ant-form-show-help .ant-form-item-explain-error {
|
|
52
|
+
font-size: 12px;
|
|
53
|
+
line-height: 18px;
|
|
54
|
+
margin-top: 2px;
|
|
55
|
+
}
|
|
56
|
+
.aplus-ap-form-item .ant-col .ant-form-item-extra {
|
|
57
|
+
line-height: 22px;
|
|
58
|
+
min-height: unset;
|
|
59
|
+
margin-top: 4px;
|
|
60
|
+
margin-bottom: 12px;
|
|
61
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Modal as _Modal } from 'ant-design-vue';
|
|
2
|
+
import { CreateModalFunc } from './type';
|
|
3
|
+
|
|
4
|
+
export * from './type';
|
|
5
|
+
type ApModalMixedProps = typeof _Modal & {
|
|
6
|
+
createModal: CreateModalFunc;
|
|
7
|
+
};
|
|
8
|
+
declare const ApModal: ApModalMixedProps;
|
|
9
|
+
export { ApModal };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ModalProps } from 'ant-design-vue';
|
|
2
|
+
|
|
3
|
+
export type CreateModalFuncProps = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer'> & Partial<{
|
|
4
|
+
onCancel: (e: MouseEvent) => void | Promise<unknown>;
|
|
5
|
+
onOk: (e: MouseEvent) => void | Promise<unknown>;
|
|
6
|
+
getContainer: HTMLElement;
|
|
7
|
+
content: any;
|
|
8
|
+
}>;
|
|
9
|
+
export type CreateModalFuncReturn = {
|
|
10
|
+
destroy: () => void;
|
|
11
|
+
update: (newConfig: CreateModalFuncProps) => void;
|
|
12
|
+
};
|
|
13
|
+
export type CreateModalFunc = (props: CreateModalFuncProps) => CreateModalFuncReturn;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { render as d, defineComponent as h, createVNode as m, mergeProps as f, h as u } from "vue";
|
|
2
|
+
import { Modal as C } from "ant-design-vue";
|
|
3
|
+
const k = (a) => {
|
|
4
|
+
let r, t;
|
|
5
|
+
function s() {
|
|
6
|
+
r && r(!1), setTimeout(() => {
|
|
7
|
+
d(null, o), i.removeChild(o);
|
|
8
|
+
}, 500);
|
|
9
|
+
}
|
|
10
|
+
function c(e) {
|
|
11
|
+
t && t(e);
|
|
12
|
+
}
|
|
13
|
+
const l = /* @__PURE__ */ h({
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
open: !0,
|
|
17
|
+
props: a
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
methods: {
|
|
21
|
+
async handleCancel(e) {
|
|
22
|
+
var n, p;
|
|
23
|
+
(n = this.props) != null && n.onCancel && await ((p = this.props) == null ? void 0 : p.onCancel(e)), s();
|
|
24
|
+
},
|
|
25
|
+
async handleOk(e) {
|
|
26
|
+
var n;
|
|
27
|
+
try {
|
|
28
|
+
t({
|
|
29
|
+
confirmLoading: !0
|
|
30
|
+
}), (n = this.props) != null && n.onOk && await this.props.onOk(e), t({
|
|
31
|
+
confirmLoading: !1
|
|
32
|
+
}), s();
|
|
33
|
+
} catch {
|
|
34
|
+
t({
|
|
35
|
+
confirmLoading: !1
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
created() {
|
|
41
|
+
r = (e) => {
|
|
42
|
+
this.open = e;
|
|
43
|
+
}, t = (e) => {
|
|
44
|
+
this.props = {
|
|
45
|
+
...this.props,
|
|
46
|
+
...e
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
render() {
|
|
51
|
+
const {
|
|
52
|
+
...e
|
|
53
|
+
} = this.props;
|
|
54
|
+
return delete e.onCancel, delete e.onOk, m(C, f({
|
|
55
|
+
open: this.open,
|
|
56
|
+
destroyOnClose: !0,
|
|
57
|
+
onCancel: this.handleCancel,
|
|
58
|
+
onOk: this.handleOk
|
|
59
|
+
}, e), {
|
|
60
|
+
default: () => {
|
|
61
|
+
var n;
|
|
62
|
+
return [(n = this.props) == null ? void 0 : n.content];
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}), i = a.getContainer || document.body, o = document.createElement("div");
|
|
67
|
+
return i.appendChild(o), d(u(l), o), {
|
|
68
|
+
destroy: s,
|
|
69
|
+
update: c
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
k as createModal
|
|
74
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './createModal';
|