@aplus-frontend/ui 0.2.22 → 0.2.24
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-drawer/interface.d.ts +1 -1
- package/es/src/ap-drawer/utils/createDrawer.mjs +31 -32
- 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-modal/interface.d.ts +1 -0
- package/es/src/ap-modal/utils/createModal.mjs +41 -35
- package/es/src/ap-table/ap-table.vue2.mjs +31 -34
- 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/ap-upload/apUploadTypes.d.ts +1 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +30 -30
- package/es/src/ap-upload/components/Picture.vue2.mjs +33 -33
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +40 -40
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +1 -1
- 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-drawer/interface.d.ts +1 -1
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- 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-modal/interface.d.ts +1 -0
- package/lib/src/ap-modal/utils/createModal.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/ap-upload/apUploadTypes.d.ts +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/batch-input-group/popover-input/index.vue2.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 +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DrawerProps } from '@aplus-frontend/antdv';
|
|
2
|
-
export type CreateDrawerFuncProps<ContentRecord = any> = Omit<DrawerProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onClose' | 'getContainer' | 'extra' | 'footer'> & Partial<{
|
|
2
|
+
export type CreateDrawerFuncProps<ContentRecord = any> = Omit<DrawerProps, 'visible' | 'onUpdate:visible' | 'afterVisibleChange' | 'onAfterVisibleOChange' | 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onClose' | 'getContainer' | 'extra' | 'footer'> & Partial<{
|
|
3
3
|
onClose: (params: ContentRecord) => any | Promise<any>;
|
|
4
4
|
getContainer: HTMLElement;
|
|
5
5
|
content: any;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { render as
|
|
2
|
-
import { Drawer as
|
|
3
|
-
import { ConfigProvider as
|
|
4
|
-
import { omit as
|
|
5
|
-
const
|
|
6
|
-
let o,
|
|
1
|
+
import { render as x, defineComponent as D, createVNode as v, mergeProps as O, h as V } from "vue";
|
|
2
|
+
import { Drawer as E } from "@aplus-frontend/antdv";
|
|
3
|
+
import { ConfigProvider as U, globalConfigCached as A } from "../../config-provider/config-provider.mjs";
|
|
4
|
+
import { omit as N } from "lodash-unified";
|
|
5
|
+
const z = (l) => {
|
|
6
|
+
let o, c;
|
|
7
7
|
const {
|
|
8
|
-
destroyOnClose:
|
|
9
|
-
} =
|
|
10
|
-
function
|
|
8
|
+
destroyOnClose: f = !0
|
|
9
|
+
} = l;
|
|
10
|
+
function h() {
|
|
11
11
|
o && o(!1), setTimeout(() => {
|
|
12
12
|
var e;
|
|
13
|
-
|
|
13
|
+
x(null, t), (e = t.parentElement) == null || e.removeChild(t);
|
|
14
14
|
}, 500);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function b() {
|
|
17
17
|
o && o(!0);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function m() {
|
|
20
20
|
o && o(!1);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
22
|
+
function w(e) {
|
|
23
|
+
c && c(e);
|
|
24
24
|
}
|
|
25
|
-
const P = /* @__PURE__ */
|
|
25
|
+
const P = /* @__PURE__ */ D({
|
|
26
26
|
data() {
|
|
27
27
|
return {
|
|
28
|
-
open:
|
|
29
|
-
props:
|
|
28
|
+
open: f,
|
|
29
|
+
props: l
|
|
30
30
|
};
|
|
31
31
|
},
|
|
32
32
|
methods: {
|
|
@@ -36,13 +36,13 @@ const B = (c) => {
|
|
|
36
36
|
const i = ((s = (r = (n = this.props) == null ? void 0 : n.content) == null ? void 0 : r.component) == null ? void 0 : s.exposed) ?? void 0;
|
|
37
37
|
await ((p = this.props) == null ? void 0 : p.onClose(i));
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
f ? h() : m();
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
created() {
|
|
43
43
|
o = (e) => {
|
|
44
44
|
this.open = e;
|
|
45
|
-
},
|
|
45
|
+
}, c = (e) => {
|
|
46
46
|
this.props = {
|
|
47
47
|
...this.props,
|
|
48
48
|
...e
|
|
@@ -51,33 +51,32 @@ const B = (c) => {
|
|
|
51
51
|
},
|
|
52
52
|
render() {
|
|
53
53
|
var s, p, i;
|
|
54
|
-
const e =
|
|
55
|
-
return v(
|
|
54
|
+
const e = N(this.props, ["onClose", "extra", "footer", "visible", "onUpdate:visible", "afterVisibleChange", "onAfterVisibleOChange", "open", "onUpdate:open", "getContainer"]), n = ((i = (p = (s = this.props) == null ? void 0 : s.content) == null ? void 0 : p.component) == null ? void 0 : i.exposed) ?? void 0, r = () => f ? h() : m();
|
|
55
|
+
return v(U, A.value, {
|
|
56
56
|
default: () => {
|
|
57
57
|
var a, u, d, C;
|
|
58
|
-
return [v(
|
|
58
|
+
return [v(E, O({
|
|
59
59
|
open: this.open,
|
|
60
|
-
destroyOnClose: !0,
|
|
61
60
|
onClose: this.handleClose,
|
|
62
61
|
extra: (u = (a = this.props) == null ? void 0 : a.extra) == null ? void 0 : u.call(a, n, r),
|
|
63
62
|
footer: (C = (d = this.props) == null ? void 0 : d.footer) == null ? void 0 : C.call(d, n, r)
|
|
64
63
|
}, e), {
|
|
65
64
|
default: () => {
|
|
66
|
-
var
|
|
67
|
-
return [(
|
|
65
|
+
var g;
|
|
66
|
+
return [(g = this.props) == null ? void 0 : g.content];
|
|
68
67
|
}
|
|
69
68
|
})];
|
|
70
69
|
}
|
|
71
70
|
});
|
|
72
71
|
}
|
|
73
|
-
}),
|
|
74
|
-
return
|
|
75
|
-
destroy:
|
|
76
|
-
update:
|
|
77
|
-
open:
|
|
78
|
-
close:
|
|
72
|
+
}), y = l.getContainer || document.body, t = document.createElement("div");
|
|
73
|
+
return y.appendChild(t), x(V(P), t), {
|
|
74
|
+
destroy: h,
|
|
75
|
+
update: w,
|
|
76
|
+
open: b,
|
|
77
|
+
close: m
|
|
79
78
|
};
|
|
80
79
|
};
|
|
81
80
|
export {
|
|
82
|
-
|
|
81
|
+
z as createDrawer
|
|
83
82
|
};
|
|
@@ -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;
|