@aplus-frontend/ui 0.2.23 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-field/checkbox/index.vue.d.ts +3 -0
- package/es/src/ap-field/checkbox/index.vue.mjs +6 -6
- package/es/src/ap-field/number/index.vue.d.ts +3 -0
- package/es/src/ap-field/number/index.vue.mjs +1 -1
- package/es/src/ap-field/radio/index.vue.d.ts +3 -0
- package/es/src/ap-field/radio/index.vue.mjs +8 -8
- package/es/src/ap-field/rate/index.vue.d.ts +2 -2
- package/es/src/ap-field/rate/index.vue.mjs +3 -3
- package/es/src/ap-field/slider/index.vue.d.ts +3 -0
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.d.ts +3 -0
- package/es/src/ap-field/switch/index.vue.mjs +2 -1
- package/es/src/ap-field/text/index.vue.d.ts +3 -0
- package/es/src/ap-field/text/index.vue2.mjs +9 -8
- package/es/src/ap-field/text/password.vue.d.ts +3 -0
- package/es/src/ap-field/text/password.vue.mjs +8 -7
- package/es/src/ap-field/text-area/index.vue.d.ts +3 -0
- package/es/src/ap-field/text-area/index.vue.mjs +5 -5
- package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/es/src/ap-form/hooks/use-watch.mjs +28 -22
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/checkbox/index.vue.mjs +12 -12
- package/es/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +10 -10
- package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +9 -9
- package/es/src/ap-form/items/number/index.vue.d.ts +8 -3
- package/es/src/ap-form/items/number/index.vue.mjs +10 -10
- package/es/src/ap-form/items/radio/index.vue.d.ts +7 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +6 -6
- package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/select/index.vue.mjs +10 -10
- package/es/src/ap-form/items/switch/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/switch/index.vue.mjs +10 -10
- package/es/src/ap-form/items/text/index.vue.d.ts +8 -3
- package/es/src/ap-form/items/text/index.vue2.mjs +15 -15
- package/es/src/ap-form/items/text/password.vue.d.ts +8 -3
- package/es/src/ap-form/items/text/password.vue.mjs +10 -10
- package/es/src/ap-form/items/text-area/index.vue.d.ts +7 -2
- package/es/src/ap-form/items/text-area/index.vue.mjs +11 -11
- package/es/src/ap-table/ap-table.vue2.mjs +30 -33
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +21 -21
- package/es/src/ap-table/constants.d.ts +77 -40
- package/es/src/ap-table/utils.d.ts +40 -40
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -0
- package/es/src/ap-upload/apUpload.vue.mjs +7 -6
- package/es/src/design-token/index.mjs +3 -1
- package/es/src/theme/antd-global-overwrite/admin/form.css +0 -3
- package/es/src/theme/antd-global-overwrite/admin/index.css +0 -3
- package/es/src/theme/antd-global-overwrite/aplus/form.css +0 -4
- package/es/src/theme/antd-global-overwrite/aplus/index.css +0 -4
- package/lib/src/ap-field/checkbox/index.vue.d.ts +3 -0
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +3 -0
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +3 -0
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +2 -2
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +3 -0
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.d.ts +3 -0
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +3 -0
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +3 -0
- package/lib/src/ap-field/text/password.vue.js +1 -1
- 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/hooks/use-watch.d.ts +1 -1
- package/lib/src/ap-form/hooks/use-watch.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +8 -3
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.d.ts +7 -2
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +8 -3
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +8 -3
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +7 -2
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +77 -40
- package/lib/src/ap-table/utils.d.ts +40 -40
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -0
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/theme/antd-global-overwrite/admin/form.css +0 -3
- package/lib/src/theme/antd-global-overwrite/admin/index.css +0 -3
- package/lib/src/theme/antd-global-overwrite/aplus/form.css +0 -4
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +0 -4
- package/package.json +2 -2
|
@@ -6,16 +6,19 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
6
6
|
emptyText: string;
|
|
7
7
|
mode: string;
|
|
8
8
|
options: () => never[];
|
|
9
|
+
disabled: undefined;
|
|
9
10
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
11
|
"update:value": (...args: any[]) => void;
|
|
11
12
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldCheckboxProps>, {
|
|
12
13
|
emptyText: string;
|
|
13
14
|
mode: string;
|
|
14
15
|
options: () => never[];
|
|
16
|
+
disabled: undefined;
|
|
15
17
|
}>>> & {
|
|
16
18
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
17
19
|
}, {
|
|
18
20
|
mode: FieldMode;
|
|
21
|
+
disabled: boolean;
|
|
19
22
|
options: (string | number | CheckboxOptionType)[];
|
|
20
23
|
emptyText: string;
|
|
21
24
|
}, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, ref as b, onMounted as C, openBlock as o, createElementBlock as l, Fragment as n, unref as e, createTextVNode as m, toDisplayString as
|
|
1
|
+
import { defineComponent as h, ref as b, onMounted as C, openBlock as o, createElementBlock as l, Fragment as n, unref as e, createTextVNode as m, toDisplayString as d, createBlock as c, mergeProps as V } from "vue";
|
|
2
2
|
import { isFunction as B, isNil as O, omit as q } from "lodash-unified";
|
|
3
3
|
import { Spin as T, CheckboxGroup as U } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
@@ -22,7 +22,7 @@ const I = /* @__PURE__ */ h({
|
|
|
22
22
|
name: {},
|
|
23
23
|
prefixCls: {},
|
|
24
24
|
options: { default: () => [] },
|
|
25
|
-
disabled: { type: Boolean },
|
|
25
|
+
disabled: { type: Boolean, default: void 0 },
|
|
26
26
|
id: {},
|
|
27
27
|
emptyText: { default: "--" },
|
|
28
28
|
request: {},
|
|
@@ -47,15 +47,15 @@ const I = /* @__PURE__ */ h({
|
|
|
47
47
|
var u;
|
|
48
48
|
return a.mode === "read" ? (o(), l(n, { key: 0 }, [
|
|
49
49
|
e(O)(e(r)) ? (o(), l(n, { key: 0 }, [
|
|
50
|
-
m(
|
|
50
|
+
m(d(t.emptyText), 1)
|
|
51
51
|
], 64)) : (o(), l(n, { key: 1 }, [
|
|
52
|
-
m(
|
|
52
|
+
m(d(((u = e(p)) == null ? void 0 : u.filter((s) => e(r).indexOf(e(_)(s)) > -1).map((s) => e(F)(s)).join("、")) || t.emptyText), 1)
|
|
53
53
|
], 64))
|
|
54
54
|
], 64)) : (o(), l(n, { key: 1 }, [
|
|
55
|
-
i.value ? (o(),
|
|
55
|
+
i.value ? (o(), c(e(T), {
|
|
56
56
|
key: 0,
|
|
57
57
|
size: "small"
|
|
58
|
-
})) : (o(),
|
|
58
|
+
})) : (o(), c(e(U), V({ key: 1 }, e(q)(t, ["onUpdate:value", "value", "request", "vertical"]), {
|
|
59
59
|
options: e(p),
|
|
60
60
|
value: e(r),
|
|
61
61
|
"onUpdate:value": e(g),
|
|
@@ -472,6 +472,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
472
472
|
max: number;
|
|
473
473
|
min: number;
|
|
474
474
|
step: number;
|
|
475
|
+
disabled: undefined;
|
|
475
476
|
}>, {
|
|
476
477
|
focus: typeof focus;
|
|
477
478
|
blur: typeof blur;
|
|
@@ -486,9 +487,11 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
486
487
|
max: number;
|
|
487
488
|
min: number;
|
|
488
489
|
step: number;
|
|
490
|
+
disabled: undefined;
|
|
489
491
|
}>>> & {
|
|
490
492
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
491
493
|
}, {
|
|
494
|
+
disabled: boolean;
|
|
492
495
|
bordered: boolean;
|
|
493
496
|
keyboard: boolean;
|
|
494
497
|
max: ValueType;
|
|
@@ -38,7 +38,7 @@ const te = /* @__PURE__ */ x({
|
|
|
38
38
|
tabindex: {},
|
|
39
39
|
controls: { type: Boolean, default: !0 },
|
|
40
40
|
readonly: { type: Boolean },
|
|
41
|
-
disabled: { type: Boolean },
|
|
41
|
+
disabled: { type: Boolean, default: void 0 },
|
|
42
42
|
autofocus: { type: Boolean },
|
|
43
43
|
keyboard: { type: Boolean, default: !0 },
|
|
44
44
|
parser: {},
|
|
@@ -7,6 +7,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
7
7
|
emptyText: string;
|
|
8
8
|
mode: string;
|
|
9
9
|
vertical: boolean;
|
|
10
|
+
disabled: undefined;
|
|
10
11
|
}>, {
|
|
11
12
|
focus: typeof focus;
|
|
12
13
|
blur: typeof blur;
|
|
@@ -16,11 +17,13 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
16
17
|
emptyText: string;
|
|
17
18
|
mode: string;
|
|
18
19
|
vertical: boolean;
|
|
20
|
+
disabled: undefined;
|
|
19
21
|
}>>> & {
|
|
20
22
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
21
23
|
}, {
|
|
22
24
|
mode: FieldMode;
|
|
23
25
|
vertical: boolean;
|
|
26
|
+
disabled: boolean;
|
|
24
27
|
emptyText: string;
|
|
25
28
|
}, {}>;
|
|
26
29
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, ref as p, onMounted as C, computed as O, unref as o, openBlock as l, createElementBlock as m, Fragment as
|
|
1
|
+
import { defineComponent as q, ref as p, onMounted as C, computed as O, unref as o, openBlock as l, createElementBlock as m, Fragment as d, createTextVNode as R, toDisplayString as U, createBlock as f, mergeProps as h } from "vue";
|
|
2
2
|
import { Spin as G, RadioGroup as N } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as S, omit as z } from "lodash-unified";
|
|
@@ -18,7 +18,7 @@ const W = /* @__PURE__ */ q({
|
|
|
18
18
|
value: {},
|
|
19
19
|
size: {},
|
|
20
20
|
options: {},
|
|
21
|
-
disabled: { type: Boolean },
|
|
21
|
+
disabled: { type: Boolean, default: void 0 },
|
|
22
22
|
name: {},
|
|
23
23
|
buttonStyle: {},
|
|
24
24
|
id: {},
|
|
@@ -30,8 +30,8 @@ const W = /* @__PURE__ */ q({
|
|
|
30
30
|
vertical: { type: Boolean, default: !1 }
|
|
31
31
|
},
|
|
32
32
|
emits: ["update:value"],
|
|
33
|
-
setup(
|
|
34
|
-
const t =
|
|
33
|
+
setup(c, { expose: v, emit: y }) {
|
|
34
|
+
const t = c, g = y, n = p(), { options: u, updateOptions: k } = D(t), { value: i, updateValue: x } = E(t, g), { m: b } = L("field-radio"), r = p(!1);
|
|
35
35
|
C(() => {
|
|
36
36
|
var e;
|
|
37
37
|
t.request && (r.value = !0, (e = t.request) == null || e.call(t).then((a) => k(a)).finally(() => {
|
|
@@ -59,13 +59,13 @@ const W = /* @__PURE__ */ q({
|
|
|
59
59
|
return v({
|
|
60
60
|
focus: B,
|
|
61
61
|
blur: V
|
|
62
|
-
}), (e, a) => e.mode === "read" ? (l(), m(
|
|
62
|
+
}), (e, a) => e.mode === "read" ? (l(), m(d, { key: 0 }, [
|
|
63
63
|
R(U(T.value), 1)
|
|
64
|
-
], 64)) : (l(), m(
|
|
65
|
-
r.value ? (l(),
|
|
64
|
+
], 64)) : (l(), m(d, { key: 1 }, [
|
|
65
|
+
r.value ? (l(), f(o(G), {
|
|
66
66
|
key: 0,
|
|
67
67
|
size: "small"
|
|
68
|
-
})) : (l(),
|
|
68
|
+
})) : (l(), f(o(N), h(
|
|
69
69
|
{ key: 1 },
|
|
70
70
|
o(z)(t, [
|
|
71
71
|
"value",
|
|
@@ -136,7 +136,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
136
136
|
autofocus: boolean;
|
|
137
137
|
count: number;
|
|
138
138
|
character: undefined;
|
|
139
|
-
disabled:
|
|
139
|
+
disabled: undefined;
|
|
140
140
|
}>, {
|
|
141
141
|
focus: typeof focus;
|
|
142
142
|
blur: typeof blur;
|
|
@@ -149,7 +149,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
149
149
|
autofocus: boolean;
|
|
150
150
|
count: number;
|
|
151
151
|
character: undefined;
|
|
152
|
-
disabled:
|
|
152
|
+
disabled: undefined;
|
|
153
153
|
}>>> & {
|
|
154
154
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
155
155
|
}, {
|
|
@@ -16,7 +16,7 @@ const D = /* @__PURE__ */ v({
|
|
|
16
16
|
allowHalf: { type: Boolean, default: !1 },
|
|
17
17
|
allowClear: { type: Boolean, default: !0 },
|
|
18
18
|
tooltips: {},
|
|
19
|
-
disabled: { type: Boolean, default:
|
|
19
|
+
disabled: { type: Boolean, default: void 0 },
|
|
20
20
|
character: { default: void 0 },
|
|
21
21
|
autofocus: { type: Boolean, default: !1 },
|
|
22
22
|
tabindex: {},
|
|
@@ -32,7 +32,7 @@ const D = /* @__PURE__ */ v({
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["update:value"],
|
|
34
34
|
setup(r, { expose: u, emit: n }) {
|
|
35
|
-
const a = r, l = b(),
|
|
35
|
+
const a = r, l = b(), d = n, s = h(), { value: f, updateValue: c } = V(a, d), i = y(() => a.mode === "read" ? !0 : a.disabled);
|
|
36
36
|
function p() {
|
|
37
37
|
var e, t;
|
|
38
38
|
(t = (e = l.value) == null ? void 0 : e.focus) == null || t.call(e);
|
|
@@ -51,7 +51,7 @@ const D = /* @__PURE__ */ v({
|
|
|
51
51
|
ref_key: "rateRef",
|
|
52
52
|
ref: l
|
|
53
53
|
}), x({ _: 2 }, [
|
|
54
|
-
|
|
54
|
+
s.character ? {
|
|
55
55
|
name: "character",
|
|
56
56
|
fn: g(() => [
|
|
57
57
|
k(e.$slots, "character")
|
|
@@ -381,6 +381,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
381
381
|
tooltipOpen: undefined;
|
|
382
382
|
tooltipVisible: undefined;
|
|
383
383
|
emptyText: string;
|
|
384
|
+
disabled: undefined;
|
|
384
385
|
}>, {
|
|
385
386
|
focus: typeof focus;
|
|
386
387
|
blur: typeof blur;
|
|
@@ -394,9 +395,11 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
394
395
|
tooltipOpen: undefined;
|
|
395
396
|
tooltipVisible: undefined;
|
|
396
397
|
emptyText: string;
|
|
398
|
+
disabled: undefined;
|
|
397
399
|
}>>> & {
|
|
398
400
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
399
401
|
}, {
|
|
402
|
+
disabled: boolean;
|
|
400
403
|
max: number;
|
|
401
404
|
min: number;
|
|
402
405
|
step: number;
|
|
@@ -23,7 +23,7 @@ const I = /* @__PURE__ */ x({
|
|
|
23
23
|
value: {},
|
|
24
24
|
defaultValue: {},
|
|
25
25
|
included: { type: Boolean, default: !0 },
|
|
26
|
-
disabled: { type: Boolean },
|
|
26
|
+
disabled: { type: Boolean, default: void 0 },
|
|
27
27
|
vertical: { type: Boolean },
|
|
28
28
|
tipFormatter: {},
|
|
29
29
|
tooltipOpen: { type: Boolean, default: void 0 },
|
|
@@ -41,8 +41,8 @@ const I = /* @__PURE__ */ x({
|
|
|
41
41
|
emptyText: { default: "--" }
|
|
42
42
|
},
|
|
43
43
|
emits: ["update:value"],
|
|
44
|
-
setup(
|
|
45
|
-
const d = g(), l = k(), a =
|
|
44
|
+
setup(i, { expose: p, emit: s }) {
|
|
45
|
+
const d = g(), l = k(), a = i, f = s, { value: r, updateValue: m } = E(a, f), c = C(() => {
|
|
46
46
|
const e = o(r);
|
|
47
47
|
return w(e) ? a.emptyText : z(e) ? `${e[0]}-${e[1]}` : e;
|
|
48
48
|
});
|
|
@@ -54,7 +54,7 @@ const I = /* @__PURE__ */ x({
|
|
|
54
54
|
var e, t;
|
|
55
55
|
(t = (e = l.value) == null ? void 0 : e.blur) == null || t.call(e);
|
|
56
56
|
}
|
|
57
|
-
return
|
|
57
|
+
return p({
|
|
58
58
|
focus: v,
|
|
59
59
|
blur: y
|
|
60
60
|
}), (e, t) => e.mode === "read" ? (u(), S(_, { key: 0 }, [
|
|
@@ -17,6 +17,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
17
17
|
unCheckedValue: boolean;
|
|
18
18
|
size: string;
|
|
19
19
|
loading: undefined;
|
|
20
|
+
disabled: undefined;
|
|
20
21
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
21
22
|
"update:checked": (...args: any[]) => void;
|
|
22
23
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldSwitchProps>, {
|
|
@@ -25,10 +26,12 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
25
26
|
unCheckedValue: boolean;
|
|
26
27
|
size: string;
|
|
27
28
|
loading: undefined;
|
|
29
|
+
disabled: undefined;
|
|
28
30
|
}>>> & {
|
|
29
31
|
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
30
32
|
}, {
|
|
31
33
|
size: "small" | "default";
|
|
34
|
+
disabled: boolean;
|
|
32
35
|
loading: boolean;
|
|
33
36
|
checkedValue: string | number | boolean;
|
|
34
37
|
unCheckedValue: string | number | boolean;
|
|
@@ -22,6 +22,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
22
22
|
type: string;
|
|
23
23
|
lazy: boolean;
|
|
24
24
|
allowClear: boolean;
|
|
25
|
+
disabled: undefined;
|
|
25
26
|
}>, {
|
|
26
27
|
focus: (options?: InputFocusOptions) => void;
|
|
27
28
|
blur: () => void;
|
|
@@ -37,11 +38,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
37
38
|
type: string;
|
|
38
39
|
lazy: boolean;
|
|
39
40
|
allowClear: boolean;
|
|
41
|
+
disabled: undefined;
|
|
40
42
|
}>>> & {
|
|
41
43
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
44
|
}, {
|
|
43
45
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
|
|
44
46
|
mode: FieldMode;
|
|
47
|
+
disabled: boolean;
|
|
45
48
|
bordered: boolean;
|
|
46
49
|
lazy: boolean;
|
|
47
50
|
allowClear: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as v, defineComponent as B, ref as g, useSlots as h, computed as b, createVNode as
|
|
1
|
+
import { isVNode as v, defineComponent as B, ref as g, useSlots as h, computed as b, createVNode as d, mergeProps as C, unref as u, Fragment as S, openBlock as _, createBlock as R, resolveDynamicComponent as T } from "vue";
|
|
2
2
|
import { Input as V } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { omit as j } from "lodash-unified";
|
|
@@ -63,7 +63,8 @@ const M = /* @__PURE__ */ B({
|
|
|
63
63
|
inputElement: {},
|
|
64
64
|
prefixCls: {},
|
|
65
65
|
disabled: {
|
|
66
|
-
type: Boolean
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: void 0
|
|
67
68
|
},
|
|
68
69
|
focused: {
|
|
69
70
|
type: Boolean
|
|
@@ -88,11 +89,11 @@ const M = /* @__PURE__ */ B({
|
|
|
88
89
|
},
|
|
89
90
|
emits: ["update:value"],
|
|
90
91
|
setup(l, {
|
|
91
|
-
expose:
|
|
92
|
-
emit:
|
|
92
|
+
expose: i,
|
|
93
|
+
emit: c
|
|
93
94
|
}) {
|
|
94
95
|
const a = g(), t = h();
|
|
95
|
-
|
|
96
|
+
i({
|
|
96
97
|
focus: (e) => {
|
|
97
98
|
var o;
|
|
98
99
|
(o = a.value) == null || o.focus(e);
|
|
@@ -114,20 +115,20 @@ const M = /* @__PURE__ */ B({
|
|
|
114
115
|
return (e = a.value) == null ? void 0 : e.input;
|
|
115
116
|
})
|
|
116
117
|
});
|
|
117
|
-
const f =
|
|
118
|
+
const f = c, n = l, {
|
|
118
119
|
value: r,
|
|
119
120
|
updateValue: s
|
|
120
121
|
} = w(n, f), m = F("Text", n);
|
|
121
122
|
function y() {
|
|
122
123
|
var e, o;
|
|
123
|
-
return n.mode === "edit" ?
|
|
124
|
+
return n.mode === "edit" ? d(V, C(j(n, ["mode", "emptyText", "value", "onUpdate:value"]), {
|
|
124
125
|
placeholder: u(m),
|
|
125
126
|
value: u(r),
|
|
126
127
|
"onUpdate:value": s,
|
|
127
128
|
ref: a
|
|
128
129
|
}), z(t) ? t : {
|
|
129
130
|
default: () => [t]
|
|
130
|
-
}) :
|
|
131
|
+
}) : d(S, null, [n.prefix || ((e = t == null ? void 0 : t.prefix) == null ? void 0 : e.call(t)), u(r) || n.emptyText, n.suffix || ((o = t == null ? void 0 : t.suffix) == null ? void 0 : o.call(t))]);
|
|
131
132
|
}
|
|
132
133
|
return (e, o) => (_(), R(T(y())));
|
|
133
134
|
}
|
|
@@ -25,6 +25,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
25
25
|
visibilityToggle: boolean;
|
|
26
26
|
action: string;
|
|
27
27
|
visible: undefined;
|
|
28
|
+
disabled: undefined;
|
|
28
29
|
}>, {
|
|
29
30
|
focus: () => void;
|
|
30
31
|
blur: () => void;
|
|
@@ -41,6 +42,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
41
42
|
visibilityToggle: boolean;
|
|
42
43
|
action: string;
|
|
43
44
|
visible: undefined;
|
|
45
|
+
disabled: undefined;
|
|
44
46
|
}>>> & {
|
|
45
47
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
46
48
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -48,6 +50,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
48
50
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
|
|
49
51
|
mode: FieldMode;
|
|
50
52
|
visible: boolean;
|
|
53
|
+
disabled: boolean;
|
|
51
54
|
bordered: boolean;
|
|
52
55
|
lazy: boolean;
|
|
53
56
|
allowClear: boolean;
|
|
@@ -4,7 +4,7 @@ import "../../hooks/index.mjs";
|
|
|
4
4
|
import { omit as O } from "lodash-unified";
|
|
5
5
|
import { EyeOutlined as j, EyeInvisibleOutlined as k } from "@ant-design/icons-vue";
|
|
6
6
|
import { useDefaultPlaceholder as E } from "../hooks/use-default-placeholder.mjs";
|
|
7
|
-
import { useControllableValue as
|
|
7
|
+
import { useControllableValue as p } from "../../hooks/useControllableValue.mjs";
|
|
8
8
|
function F(l) {
|
|
9
9
|
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !x(l);
|
|
10
10
|
}
|
|
@@ -64,7 +64,8 @@ const G = /* @__PURE__ */ h({
|
|
|
64
64
|
inputElement: {},
|
|
65
65
|
prefixCls: {},
|
|
66
66
|
disabled: {
|
|
67
|
-
type: Boolean
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: void 0
|
|
68
69
|
},
|
|
69
70
|
focused: {
|
|
70
71
|
type: Boolean
|
|
@@ -119,10 +120,10 @@ const G = /* @__PURE__ */ h({
|
|
|
119
120
|
const s = f, t = l, {
|
|
120
121
|
value: m,
|
|
121
122
|
updateValue: y
|
|
122
|
-
} =
|
|
123
|
+
} = p(t, s), v = E("TextPassword", t), {
|
|
123
124
|
value: b,
|
|
124
125
|
updateValue: r
|
|
125
|
-
} =
|
|
126
|
+
} = p(t, s, {
|
|
126
127
|
valuePropName: "visible"
|
|
127
128
|
});
|
|
128
129
|
function B() {
|
|
@@ -138,15 +139,15 @@ const G = /* @__PURE__ */ h({
|
|
|
138
139
|
}), F(u) ? u : {
|
|
139
140
|
default: () => [u]
|
|
140
141
|
});
|
|
141
|
-
let
|
|
142
|
-
return e && (
|
|
142
|
+
let d = o(w, null, [t.emptyText]);
|
|
143
|
+
return e && (d = o(U, null, {
|
|
143
144
|
default: () => [o("span", null, [n ? e : "********"]), o("span", {
|
|
144
145
|
style: {
|
|
145
146
|
cursor: "pointer"
|
|
146
147
|
},
|
|
147
148
|
onClick: () => r(!n)
|
|
148
149
|
}, [n ? o(j, null, null) : o(k, null, null)])]
|
|
149
|
-
})),
|
|
150
|
+
})), d;
|
|
150
151
|
}
|
|
151
152
|
return (e, n) => (V(), _(S(B())));
|
|
152
153
|
}
|
|
@@ -9,6 +9,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
9
9
|
type: string;
|
|
10
10
|
lazy: boolean;
|
|
11
11
|
allowClear: boolean;
|
|
12
|
+
disabled: undefined;
|
|
12
13
|
}>, {
|
|
13
14
|
focus: (options?: InputFocusOptions) => void;
|
|
14
15
|
blur: () => void;
|
|
@@ -22,11 +23,13 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
22
23
|
type: string;
|
|
23
24
|
lazy: boolean;
|
|
24
25
|
allowClear: boolean;
|
|
26
|
+
disabled: undefined;
|
|
25
27
|
}>>> & {
|
|
26
28
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
27
29
|
}, {
|
|
28
30
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
|
|
29
31
|
mode: FieldMode;
|
|
32
|
+
disabled: boolean;
|
|
30
33
|
bordered: boolean;
|
|
31
34
|
lazy: boolean;
|
|
32
35
|
allowClear: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, ref as y, computed as
|
|
1
|
+
import { defineComponent as f, ref as y, computed as v, openBlock as r, createElementBlock as x, normalizeClass as B, unref as o, toDisplayString as h, createBlock as b, mergeProps as C } from "vue";
|
|
2
2
|
import { isNil as z, omit as A } from "lodash-unified";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -31,7 +31,7 @@ const V = /* @__PURE__ */ f({
|
|
|
31
31
|
onKeyup: {},
|
|
32
32
|
focused: { type: Boolean },
|
|
33
33
|
hidden: { type: Boolean },
|
|
34
|
-
disabled: { type: Boolean },
|
|
34
|
+
disabled: { type: Boolean, default: void 0 },
|
|
35
35
|
prefixCls: {},
|
|
36
36
|
id: {},
|
|
37
37
|
autofocus: { type: Boolean },
|
|
@@ -67,13 +67,13 @@ const V = /* @__PURE__ */ f({
|
|
|
67
67
|
var e;
|
|
68
68
|
(e = t.value) == null || e.blur();
|
|
69
69
|
},
|
|
70
|
-
resizableTextArea:
|
|
70
|
+
resizableTextArea: v(() => {
|
|
71
71
|
var e;
|
|
72
72
|
return (e = t.value) == null ? void 0 : e.resizableTextArea;
|
|
73
73
|
})
|
|
74
|
-
}), (e, n) => e.mode === "read" ? (r(),
|
|
74
|
+
}), (e, n) => e.mode === "read" ? (r(), x("span", {
|
|
75
75
|
key: 0,
|
|
76
|
-
class:
|
|
76
|
+
class: B(o(m)())
|
|
77
77
|
}, h(o(z)(o(a)) || o(a) === "" ? e.emptyText : o(a)), 3)) : (r(), b(o(g).TextArea, C({ key: 1 }, o(A)(l, ["onUpdate:value", "value"]), {
|
|
78
78
|
placeholder: o(c),
|
|
79
79
|
value: o(a),
|
|
@@ -2,5 +2,5 @@ import { NamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
|
2
2
|
import { ApFormExpose } from '../interface';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
type ApFormIns<T> = ApFormExpose<T>;
|
|
5
|
-
declare const useWatch: <ValueType = any, StoreType = any>(name: NamePath
|
|
5
|
+
declare const useWatch: <ValueType = any, StoreType = any>(name: NamePath | Ref<NamePath>, form?: Ref<ApFormIns<StoreType> | undefined>) => Ref<ValueType | undefined>;
|
|
6
6
|
export default useWatch;
|
|
@@ -1,34 +1,40 @@
|
|
|
1
|
-
import { useInjectForm as
|
|
2
|
-
import { ref as
|
|
3
|
-
import { isArray as
|
|
4
|
-
import { INTERNAL_FORM_INSTANCE_MARK as
|
|
5
|
-
function
|
|
6
|
-
return
|
|
1
|
+
import { useInjectForm as V } from "../context.mjs";
|
|
2
|
+
import { ref as N, watchEffect as A, unref as l, watch as M } from "vue";
|
|
3
|
+
import { isArray as R } from "lodash-unified";
|
|
4
|
+
import { INTERNAL_FORM_INSTANCE_MARK as y } from "../constant.mjs";
|
|
5
|
+
function w(t, e) {
|
|
6
|
+
return R(e) ? e.reduce((n, u) => n == null ? void 0 : n[u], t) : t == null ? void 0 : t[e];
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function I(t) {
|
|
9
9
|
try {
|
|
10
10
|
return JSON.stringify(t);
|
|
11
11
|
} catch {
|
|
12
12
|
return Math.random();
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
const
|
|
16
|
-
const { internalInstance:
|
|
17
|
-
let a = "",
|
|
18
|
-
return
|
|
19
|
-
var
|
|
20
|
-
const
|
|
21
|
-
if (!
|
|
22
|
-
|
|
15
|
+
const F = (t, e) => {
|
|
16
|
+
const { internalInstance: n, model: u } = V(), i = N();
|
|
17
|
+
let a = "", o = !0;
|
|
18
|
+
return A((s) => {
|
|
19
|
+
var f;
|
|
20
|
+
const r = ((f = e == null ? void 0 : e.value) == null ? void 0 : f.getInternalInstance(y)) || n;
|
|
21
|
+
if (!r) {
|
|
22
|
+
o = !1;
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
}),
|
|
25
|
+
const c = r.registerWatch((S) => {
|
|
26
|
+
const g = w(S, l(t)), h = I(g);
|
|
27
|
+
h !== a && (i.value = g, a = h);
|
|
28
|
+
}, o);
|
|
29
|
+
s(c);
|
|
30
|
+
}), M(
|
|
31
|
+
() => l(t),
|
|
32
|
+
(s) => {
|
|
33
|
+
const r = w(l(u), s), c = I(r);
|
|
34
|
+
c !== a && (i.value = r, a = c);
|
|
35
|
+
}
|
|
36
|
+
), i;
|
|
31
37
|
};
|
|
32
38
|
export {
|
|
33
|
-
|
|
39
|
+
F as default
|
|
34
40
|
};
|
|
@@ -15,7 +15,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
15
15
|
autoLink: boolean;
|
|
16
16
|
required: undefined;
|
|
17
17
|
validateFirst: undefined;
|
|
18
|
-
disabled:
|
|
18
|
+
disabled: undefined;
|
|
19
19
|
field: () => {};
|
|
20
20
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFormItemCheckboxProps>, {
|
|
21
21
|
hasFeedback: boolean;
|
|
@@ -23,7 +23,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
23
23
|
autoLink: boolean;
|
|
24
24
|
required: undefined;
|
|
25
25
|
validateFirst: undefined;
|
|
26
|
-
disabled:
|
|
26
|
+
disabled: undefined;
|
|
27
27
|
field: () => {};
|
|
28
28
|
}>>>, {
|
|
29
29
|
disabled: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as f, useSlots as m, openBlock as u, createBlock as c, normalizeProps as a, guardReactiveProps as t, unref as
|
|
1
|
+
import { defineComponent as f, useSlots as m, openBlock as u, createBlock as c, normalizeProps as a, guardReactiveProps as t, unref as o, createSlots as b, withCtx as r, createVNode as B, mergeProps as _, renderList as v, renderSlot as x } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
|
-
import { omit as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import { omit as i } from "lodash-unified";
|
|
5
|
+
import y from "../../item/index.vue.mjs";
|
|
6
|
+
import g from "../../../ap-field/checkbox/index.vue.mjs";
|
|
7
7
|
const w = /* @__PURE__ */ f({
|
|
8
8
|
name: "ApFormItemCheckbox",
|
|
9
9
|
__name: "index",
|
|
@@ -47,20 +47,20 @@ const w = /* @__PURE__ */ f({
|
|
|
47
47
|
_signal: {},
|
|
48
48
|
transform: {},
|
|
49
49
|
field: { default: () => ({}) },
|
|
50
|
-
disabled: { type: Boolean, default:
|
|
50
|
+
disabled: { type: Boolean, default: void 0 }
|
|
51
51
|
},
|
|
52
|
-
setup(
|
|
53
|
-
const
|
|
54
|
-
return (e,
|
|
52
|
+
setup(d) {
|
|
53
|
+
const s = d, n = m();
|
|
54
|
+
return (e, h) => (u(), c(y, a(t(o(i)(s, ["field", "disabled"]))), b({
|
|
55
55
|
default: r(() => [
|
|
56
|
-
B(
|
|
56
|
+
B(o(g), _({ disabled: e.disabled }, e.field), null, 16, ["disabled"])
|
|
57
57
|
]),
|
|
58
58
|
_: 2
|
|
59
59
|
}, [
|
|
60
|
-
|
|
61
|
-
name:
|
|
60
|
+
v(o(i)(n, "default"), (C, l) => ({
|
|
61
|
+
name: l,
|
|
62
62
|
fn: r((p) => [
|
|
63
|
-
|
|
63
|
+
x(e.$slots, l, a(t(p || {})))
|
|
64
64
|
])
|
|
65
65
|
}))
|
|
66
66
|
]), 1040));
|
|
@@ -38,7 +38,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
38
38
|
autoLink: boolean;
|
|
39
39
|
required: undefined;
|
|
40
40
|
validateFirst: undefined;
|
|
41
|
-
disabled:
|
|
41
|
+
disabled: undefined;
|
|
42
42
|
field: () => {};
|
|
43
43
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFormItemDateProps>, {
|
|
44
44
|
hasFeedback: boolean;
|
|
@@ -46,7 +46,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
46
46
|
autoLink: boolean;
|
|
47
47
|
required: undefined;
|
|
48
48
|
validateFirst: undefined;
|
|
49
|
-
disabled:
|
|
49
|
+
disabled: undefined;
|
|
50
50
|
field: () => {};
|
|
51
51
|
}>>>, {
|
|
52
52
|
disabled: boolean;
|