@aplus-frontend/ui 7.7.3 → 7.7.5
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-action/group/index.vue.d.ts +1 -0
- package/es/src/ap-action/group/index.vue.mjs +28 -28
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +25 -1
- package/es/src/ap-button/ap-action-button.vue.d.ts +2 -1
- package/es/src/ap-button/ap-button.vue.d.ts +2 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +18 -8
- package/es/src/ap-field/number/index.vue.d.ts +20 -0
- package/es/src/ap-field/number/index.vue.mjs +24 -23
- package/es/src/ap-field/number/read.vue2.mjs +3 -2
- package/es/src/ap-field/radio/index.vue.mjs +24 -24
- package/es/src/ap-field/rate/index.vue.mjs +10 -10
- package/es/src/ap-field/select/index.vue.d.ts +12 -4
- package/es/src/ap-field/select/index.vue.mjs +74 -71
- package/es/src/ap-field/slider/index.vue.d.ts +4 -2
- package/es/src/ap-field/slider/index.vue.mjs +12 -12
- package/es/src/ap-field/switch/index.vue.mjs +20 -20
- package/es/src/ap-field/text/index.vue2.mjs +23 -23
- package/es/src/ap-field/text/password.vue.mjs +9 -9
- package/es/src/ap-field/text-area/index.vue.mjs +24 -20
- package/es/src/ap-field/tree-select/index.vue.d.ts +2 -0
- package/es/src/ap-field/tree-select/index.vue.mjs +17 -17
- package/es/src/ap-form/ap-form.vue2.mjs +64 -64
- package/es/src/ap-form/drawer-form/index.vue.mjs +41 -41
- package/es/src/ap-form/item/index.vue.mjs +64 -64
- package/es/src/ap-form/items/number/index.vue.d.ts +22 -0
- package/es/src/ap-form/items/number/index.vue.mjs +10 -10
- package/es/src/ap-form/items/radio/index.vue.mjs +3 -3
- package/es/src/ap-form/items/select/index.vue.d.ts +18 -6
- package/es/src/ap-form/items/select/index.vue.mjs +5 -5
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/index.vue2.mjs +6 -6
- package/es/src/ap-form/items/text/password.vue.mjs +7 -7
- package/es/src/ap-form/items/text-area/index.vue.mjs +5 -5
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -0
- package/es/src/ap-form/items/tree-select/index.vue.mjs +7 -7
- package/es/src/ap-form/modal-form/index.vue.d.ts +25 -1
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +19 -1
- package/es/src/ap-form/search-form/index.vue.mjs +63 -63
- package/es/src/ap-form/style/item.mjs +8 -7
- package/es/src/ap-list/index.vue.mjs +6 -6
- package/es/src/ap-table/constants.d.ts +23 -4
- package/es/src/business/ap-batch-action-group/index.d.ts +34 -4
- package/es/src/business/ap-descriptions/ap-descriptions.vue.d.ts +3 -10
- package/es/src/business/ap-descriptions/ap-descriptions.vue.mjs +58 -79
- package/es/src/business/ap-descriptions/interface.d.ts +2 -3
- package/es/src/business/ap-upload/apUpload.vue.d.ts +9 -0
- package/es/src/business/ap-upload/apUpload.vue.mjs +33 -29
- package/es/src/business/ap-upload/apUploadTypes.d.ts +4 -0
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +50 -49
- package/es/src/business/ap-upload/components/Picture.vue2.mjs +66 -65
- package/es/src/business/ap-upload/components/SingleFile.vue2.mjs +95 -94
- package/es/src/business/ap-upload/hooks/useOss.d.ts +2 -1
- package/es/src/business/ap-upload/hooks/useOss.mjs +26 -24
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/editable-table/form-item.vue.mjs +64 -64
- package/es/src/editable-table/index.vue.mjs +66 -66
- package/es/src/scroll-bar/index.vue.d.ts +7 -7
- package/es/src/scroll-bar/index.vue.mjs +21 -21
- package/es/src/scroll-bar/internal.vue.d.ts +4 -4
- package/es/src/scroll-bar/internal.vue.mjs +20 -20
- package/es/src/scroll-view/hooks/use-scroll-wrapper.d.ts +4 -4
- package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +13 -13
- package/es/src/scroll-view/index.vue.d.ts +25 -25
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +1 -0
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +25 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +2 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +2 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +20 -0
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/number/read.vue2.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +12 -4
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +4 -2
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.d.ts +2 -0
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +22 -0
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +18 -6
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -0
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +25 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +19 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/style/item.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +23 -4
- package/lib/src/business/ap-batch-action-group/index.d.ts +34 -4
- package/lib/src/business/ap-descriptions/ap-descriptions.vue.d.ts +3 -10
- package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/business/ap-descriptions/interface.d.ts +2 -3
- package/lib/src/business/ap-upload/apUpload.vue.d.ts +9 -0
- package/lib/src/business/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/business/ap-upload/apUploadTypes.d.ts +4 -0
- package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/business/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/business/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-upload/hooks/useOss.d.ts +2 -1
- package/lib/src/business/ap-upload/hooks/useOss.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/scroll-bar/index.vue.d.ts +7 -7
- package/lib/src/scroll-bar/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.d.ts +4 -4
- package/lib/src/scroll-bar/internal.vue.js +1 -1
- package/lib/src/scroll-view/hooks/use-scroll-wrapper.d.ts +4 -4
- package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
- package/lib/src/scroll-view/index.vue.d.ts +25 -25
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +5 -5
|
@@ -7,5 +7,6 @@ declare const _default: DefineComponent<ApActionGroupProps, {}, {}, {}, {}, Comp
|
|
|
7
7
|
actions: GroupActionTypes[];
|
|
8
8
|
trigger: Trigger | Trigger[];
|
|
9
9
|
count: number;
|
|
10
|
+
iconFirst: boolean;
|
|
10
11
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
11
12
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as k, computed as m, unref as c, createBlock as n, openBlock as o, withCtx as A, createElementBlock as a, createCommentVNode as
|
|
2
|
-
import { Space as
|
|
1
|
+
import { defineComponent as k, computed as m, unref as c, createBlock as n, openBlock as o, withCtx as A, createElementBlock as a, createCommentVNode as v, Fragment as p, renderList as y, mergeProps as s } from "vue";
|
|
2
|
+
import { Space as F } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../item/index.vue.mjs";
|
|
4
4
|
import "../item-modal/index.vue2.mjs";
|
|
5
5
|
import "../item-popconfirm/index.vue2.mjs";
|
|
6
6
|
import "../item-dropdown/index.vue2.mjs";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
|
-
import { isUndefined as
|
|
8
|
+
import { isUndefined as w } from "lodash-unified";
|
|
9
9
|
import { useLocale as x } from "../../config-provider/hooks/use-locale.mjs";
|
|
10
10
|
import f from "../item-dropdown/index.vue.mjs";
|
|
11
11
|
import B from "../item-modal/index.vue.mjs";
|
|
@@ -19,59 +19,59 @@ const q = /* @__PURE__ */ k({
|
|
|
19
19
|
trigger: { default: () => ["hover"] },
|
|
20
20
|
placement: { default: "bottomRight" },
|
|
21
21
|
actions: { default: () => [] },
|
|
22
|
-
iconFirst: { type: Boolean }
|
|
22
|
+
iconFirst: { type: Boolean, default: void 0 }
|
|
23
23
|
},
|
|
24
24
|
setup(_) {
|
|
25
|
-
const r = _, { t:
|
|
25
|
+
const r = _, { t: d } = x(), l = m(
|
|
26
26
|
() => r.actions.filter(
|
|
27
|
-
(
|
|
27
|
+
(e) => e.visible || w(e.visible)
|
|
28
28
|
)
|
|
29
|
-
),
|
|
30
|
-
const
|
|
31
|
-
if (
|
|
29
|
+
), g = m(() => c(l).length > r.count), u = m(() => {
|
|
30
|
+
const e = c(l);
|
|
31
|
+
if (e.length <= r.count)
|
|
32
32
|
return {
|
|
33
|
-
showActions:
|
|
34
|
-
...
|
|
35
|
-
iconFirst: !0
|
|
33
|
+
showActions: e.map((t) => ({
|
|
34
|
+
...t,
|
|
35
|
+
iconFirst: t.iconFirst ?? r.iconFirst ?? !0
|
|
36
36
|
})),
|
|
37
37
|
menuActions: []
|
|
38
38
|
};
|
|
39
|
-
let i =
|
|
40
|
-
return r.iconFirst && (i = i.map((
|
|
41
|
-
...
|
|
39
|
+
let i = e.slice(0, r.count - 1);
|
|
40
|
+
return r.iconFirst && (i = i.map((t) => ({
|
|
41
|
+
...t,
|
|
42
42
|
iconFirst: !0
|
|
43
43
|
}))), {
|
|
44
44
|
showActions: i,
|
|
45
|
-
menuActions:
|
|
45
|
+
menuActions: e.slice(r.count - 1)
|
|
46
46
|
};
|
|
47
47
|
});
|
|
48
|
-
return (
|
|
48
|
+
return (e, i) => (o(), n(c(F), {
|
|
49
49
|
size: 16,
|
|
50
50
|
align: "center"
|
|
51
51
|
}, {
|
|
52
52
|
default: A(() => [
|
|
53
|
-
(o(!0), a(p, null,
|
|
54
|
-
|
|
53
|
+
(o(!0), a(p, null, y(u.value.showActions, (t, h) => (o(), a(p, { key: h }, [
|
|
54
|
+
t.actions ? (o(), n(f, s({
|
|
55
55
|
key: 0,
|
|
56
56
|
ref_for: !0
|
|
57
|
-
},
|
|
57
|
+
}, t), null, 16)) : t.modalProps ? (o(), n(B, s({
|
|
58
58
|
key: 1,
|
|
59
59
|
ref_for: !0
|
|
60
|
-
},
|
|
60
|
+
}, t), null, 16)) : t.popconfirmProps ? (o(), n($, s({
|
|
61
61
|
key: 2,
|
|
62
62
|
ref_for: !0
|
|
63
|
-
},
|
|
63
|
+
}, t), null, 16)) : (o(), n(b, s({
|
|
64
64
|
key: 3,
|
|
65
65
|
ref_for: !0
|
|
66
|
-
},
|
|
66
|
+
}, t), null, 16))
|
|
67
67
|
], 64))), 128)),
|
|
68
|
-
|
|
68
|
+
g.value ? (o(), n(f, {
|
|
69
69
|
key: 0,
|
|
70
70
|
actions: u.value.menuActions,
|
|
71
|
-
placement:
|
|
72
|
-
trigger:
|
|
73
|
-
text: c(
|
|
74
|
-
}, null, 8, ["actions", "placement", "trigger", "text"])) :
|
|
71
|
+
placement: e.placement,
|
|
72
|
+
trigger: e.trigger,
|
|
73
|
+
text: c(d)("ap.common.more")
|
|
74
|
+
}, null, 8, ["actions", "placement", "trigger", "text"])) : v("", !0)
|
|
75
75
|
]),
|
|
76
76
|
_: 1
|
|
77
77
|
}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApActionItemPopconfirmProps, ApActionItemSlots } from '../interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, HTMLAttributes, CSSProperties, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, HTMLAttributes, CSSProperties, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { ActionColor } from '..';
|
|
4
4
|
import { LegacyButtonType, ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
5
5
|
import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
@@ -73,9 +73,15 @@ declare const __VLS_component: DefineComponent<ApActionItemPopconfirmProps, {},
|
|
|
73
73
|
loading: {
|
|
74
74
|
type: PropType<boolean | {
|
|
75
75
|
delay?: number;
|
|
76
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
77
|
+
[key: string]: any;
|
|
78
|
+
}>;
|
|
76
79
|
}>;
|
|
77
80
|
default: () => boolean | {
|
|
78
81
|
delay?: number;
|
|
82
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
83
|
+
[key: string]: any;
|
|
84
|
+
}>;
|
|
79
85
|
};
|
|
80
86
|
};
|
|
81
87
|
disabled: {
|
|
@@ -128,9 +134,15 @@ declare const __VLS_component: DefineComponent<ApActionItemPopconfirmProps, {},
|
|
|
128
134
|
loading: {
|
|
129
135
|
type: PropType<boolean | {
|
|
130
136
|
delay?: number;
|
|
137
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
138
|
+
[key: string]: any;
|
|
139
|
+
}>;
|
|
131
140
|
}>;
|
|
132
141
|
default: () => boolean | {
|
|
133
142
|
delay?: number;
|
|
143
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
144
|
+
[key: string]: any;
|
|
145
|
+
}>;
|
|
134
146
|
};
|
|
135
147
|
};
|
|
136
148
|
disabled: {
|
|
@@ -185,9 +197,15 @@ declare const __VLS_component: DefineComponent<ApActionItemPopconfirmProps, {},
|
|
|
185
197
|
loading: {
|
|
186
198
|
type: PropType<boolean | {
|
|
187
199
|
delay?: number;
|
|
200
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
201
|
+
[key: string]: any;
|
|
202
|
+
}>;
|
|
188
203
|
}>;
|
|
189
204
|
default: () => boolean | {
|
|
190
205
|
delay?: number;
|
|
206
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
207
|
+
[key: string]: any;
|
|
208
|
+
}>;
|
|
191
209
|
};
|
|
192
210
|
};
|
|
193
211
|
disabled: {
|
|
@@ -240,9 +258,15 @@ declare const __VLS_component: DefineComponent<ApActionItemPopconfirmProps, {},
|
|
|
240
258
|
loading: {
|
|
241
259
|
type: PropType<boolean | {
|
|
242
260
|
delay?: number;
|
|
261
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
262
|
+
[key: string]: any;
|
|
263
|
+
}>;
|
|
243
264
|
}>;
|
|
244
265
|
default: () => boolean | {
|
|
245
266
|
delay?: number;
|
|
267
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
268
|
+
[key: string]: any;
|
|
269
|
+
}>;
|
|
246
270
|
};
|
|
247
271
|
};
|
|
248
272
|
disabled: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApButtonSlots, ApButtonProps } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, VNode, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { ButtonType } from '@aplus-frontend/antdv/es/button';
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
5
|
attrs: Partial<{}>;
|
|
@@ -13,6 +13,7 @@ declare const __VLS_component: DefineComponent<ApButtonProps, {}, {}, {}, {}, Co
|
|
|
13
13
|
minWidth: boolean | number | string;
|
|
14
14
|
loading: boolean | {
|
|
15
15
|
delay?: number;
|
|
16
|
+
icon?: VNode;
|
|
16
17
|
};
|
|
17
18
|
lazy: boolean | number;
|
|
18
19
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApButtonSlots, ApButtonProps } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, VNode, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { ButtonType } from '@aplus-frontend/antdv/es/button';
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
5
|
attrs: Partial<{}>;
|
|
@@ -13,6 +13,7 @@ declare const __VLS_component: DefineComponent<ApButtonProps, {}, {}, {}, {}, Co
|
|
|
13
13
|
minWidth: boolean | number | string;
|
|
14
14
|
loading: boolean | {
|
|
15
15
|
delay?: number;
|
|
16
|
+
icon?: VNode;
|
|
16
17
|
};
|
|
17
18
|
lazy: boolean | number;
|
|
18
19
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as g, ref as C, onMounted as V, createElementBlock as l, openBlock as o, Fragment as i, unref as e, createTextVNode as u, toDisplayString as m, createBlock as d, mergeProps as B } from "vue";
|
|
2
|
-
import { isFunction as O, isNil as
|
|
2
|
+
import { isFunction as O, isNil as T, omit as q } from "lodash-unified";
|
|
3
3
|
import { Spin as U, CheckboxGroup as _ } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
5
|
import { getOptionValue as F, getOptionLabel as N } from "./helper.mjs";
|
|
@@ -45,7 +45,7 @@ const Q = /* @__PURE__ */ g({
|
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
47
|
return (a, D) => a.mode === "read" ? (o(), l(i, { key: 0 }, [
|
|
48
|
-
e(
|
|
48
|
+
e(T)(e(r)) ? (o(), l(i, { key: 0 }, [
|
|
49
49
|
u(m(t.emptyText), 1)
|
|
50
50
|
], 64)) : (o(), l(i, { key: 1 }, [
|
|
51
51
|
u(m(e(p)?.filter((s) => e(r).indexOf(e(F)(s)) > -1).map((s) => e(N)(s)).join("、") || t.emptyText), 1)
|
|
@@ -54,12 +54,22 @@ const Q = /* @__PURE__ */ g({
|
|
|
54
54
|
n.value ? (o(), d(e(U), {
|
|
55
55
|
key: 0,
|
|
56
56
|
size: "small"
|
|
57
|
-
})) : (o(), d(e(_), B(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
})) : (o(), d(e(_), B(
|
|
58
|
+
{ key: 1 },
|
|
59
|
+
e(q)(t, [
|
|
60
|
+
"onUpdate:value",
|
|
61
|
+
"value",
|
|
62
|
+
"request",
|
|
63
|
+
"vertical",
|
|
64
|
+
"emptyText"
|
|
65
|
+
]),
|
|
66
|
+
{
|
|
67
|
+
options: e(p),
|
|
68
|
+
value: e(r),
|
|
69
|
+
class: [e(k)(), a.vertical ? e(x)("vertical") : null, e(h)],
|
|
70
|
+
"onUpdate:value": e(b)
|
|
71
|
+
}
|
|
72
|
+
), null, 16, ["options", "value", "class", "onUpdate:value"]))
|
|
63
73
|
], 64));
|
|
64
74
|
}
|
|
65
75
|
});
|
|
@@ -51,6 +51,10 @@ declare function __VLS_template(): {
|
|
|
51
51
|
type: BooleanConstructor;
|
|
52
52
|
default: boolean;
|
|
53
53
|
};
|
|
54
|
+
changeOnBlur: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
54
58
|
stringMode: {
|
|
55
59
|
type: BooleanConstructor;
|
|
56
60
|
default: boolean;
|
|
@@ -167,6 +171,7 @@ declare function __VLS_template(): {
|
|
|
167
171
|
defaultValue: ValueType;
|
|
168
172
|
step: ValueType;
|
|
169
173
|
changeOnWheel: boolean;
|
|
174
|
+
changeOnBlur: boolean;
|
|
170
175
|
stringMode: boolean;
|
|
171
176
|
controls: boolean;
|
|
172
177
|
keyboard: boolean;
|
|
@@ -228,6 +233,10 @@ declare function __VLS_template(): {
|
|
|
228
233
|
type: BooleanConstructor;
|
|
229
234
|
default: boolean;
|
|
230
235
|
};
|
|
236
|
+
changeOnBlur: {
|
|
237
|
+
type: BooleanConstructor;
|
|
238
|
+
default: boolean;
|
|
239
|
+
};
|
|
231
240
|
stringMode: {
|
|
232
241
|
type: BooleanConstructor;
|
|
233
242
|
default: boolean;
|
|
@@ -344,6 +353,7 @@ declare function __VLS_template(): {
|
|
|
344
353
|
defaultValue: ValueType;
|
|
345
354
|
step: ValueType;
|
|
346
355
|
changeOnWheel: boolean;
|
|
356
|
+
changeOnBlur: boolean;
|
|
347
357
|
stringMode: boolean;
|
|
348
358
|
controls: boolean;
|
|
349
359
|
keyboard: boolean;
|
|
@@ -413,6 +423,10 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
|
|
|
413
423
|
type: BooleanConstructor;
|
|
414
424
|
default: boolean;
|
|
415
425
|
};
|
|
426
|
+
changeOnBlur: {
|
|
427
|
+
type: BooleanConstructor;
|
|
428
|
+
default: boolean;
|
|
429
|
+
};
|
|
416
430
|
stringMode: {
|
|
417
431
|
type: BooleanConstructor;
|
|
418
432
|
default: boolean;
|
|
@@ -529,6 +543,7 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
|
|
|
529
543
|
defaultValue: ValueType;
|
|
530
544
|
step: ValueType;
|
|
531
545
|
changeOnWheel: boolean;
|
|
546
|
+
changeOnBlur: boolean;
|
|
532
547
|
stringMode: boolean;
|
|
533
548
|
controls: boolean;
|
|
534
549
|
keyboard: boolean;
|
|
@@ -590,6 +605,10 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
|
|
|
590
605
|
type: BooleanConstructor;
|
|
591
606
|
default: boolean;
|
|
592
607
|
};
|
|
608
|
+
changeOnBlur: {
|
|
609
|
+
type: BooleanConstructor;
|
|
610
|
+
default: boolean;
|
|
611
|
+
};
|
|
593
612
|
stringMode: {
|
|
594
613
|
type: BooleanConstructor;
|
|
595
614
|
default: boolean;
|
|
@@ -706,6 +725,7 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
|
|
|
706
725
|
defaultValue: ValueType;
|
|
707
726
|
step: ValueType;
|
|
708
727
|
changeOnWheel: boolean;
|
|
728
|
+
changeOnBlur: boolean;
|
|
709
729
|
stringMode: boolean;
|
|
710
730
|
controls: boolean;
|
|
711
731
|
keyboard: boolean;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as C,
|
|
1
|
+
import { defineComponent as C, shallowRef as N, computed as D, unref as t, createElementBlock as s, createBlock as P, openBlock as l, normalizeClass as i, createCommentVNode as f, createElementVNode as R, renderSlot as u, toDisplayString as V, mergeProps as $, createSlots as I, renderList as A, withCtx as U, normalizeProps as z, guardReactiveProps as E } from "vue";
|
|
2
2
|
import { InputNumber as M } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
|
-
import { isNil as T, omit as
|
|
5
|
-
import { addZeroToDecimalPlaces as
|
|
4
|
+
import { isNil as T, omit as w } from "lodash-unified";
|
|
5
|
+
import { addZeroToDecimalPlaces as F } from "./helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import { useDefaultPlaceholder as
|
|
8
|
-
import
|
|
9
|
-
import { roundWith as
|
|
7
|
+
import { useDefaultPlaceholder as O } from "../hooks/use-default-placeholder.mjs";
|
|
8
|
+
import W from "../style/index.mjs";
|
|
9
|
+
import { roundWith as _, toDecimalMark as L } from "../../utils/format.mjs";
|
|
10
10
|
import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
11
|
import { useControllableValue as j } from "../../hooks/useControllableValue.mjs";
|
|
12
|
-
const
|
|
12
|
+
const le = /* @__PURE__ */ C({
|
|
13
13
|
name: "ApFieldNumber",
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
@@ -31,6 +31,7 @@ const re = /* @__PURE__ */ C({
|
|
|
31
31
|
status: {},
|
|
32
32
|
variant: {},
|
|
33
33
|
changeOnWheel: { type: Boolean },
|
|
34
|
+
changeOnBlur: { type: Boolean },
|
|
34
35
|
stringMode: { type: Boolean },
|
|
35
36
|
defaultValue: {},
|
|
36
37
|
value: {},
|
|
@@ -60,47 +61,47 @@ const re = /* @__PURE__ */ C({
|
|
|
60
61
|
},
|
|
61
62
|
emits: ["update:value"],
|
|
62
63
|
setup(m, { expose: c, emit: y }) {
|
|
63
|
-
const v = y, { b:
|
|
64
|
+
const v = y, { b: r } = Z("field-number"), h = W("field"), o = m, n = N(), { value: p, updateValue: B } = j(
|
|
64
65
|
o,
|
|
65
66
|
v
|
|
66
|
-
), b =
|
|
67
|
+
), b = O("Number", o), g = D(() => {
|
|
67
68
|
let e = t(p);
|
|
68
69
|
if (T(e))
|
|
69
70
|
return o.emptyText;
|
|
70
|
-
o.precision && (e =
|
|
71
|
-
let a = o.thousands ?
|
|
72
|
-
return o.precision && o.limitDecimalsRetain && (a =
|
|
71
|
+
o.precision && (e = _(e, o.precision));
|
|
72
|
+
let a = o.thousands ? L(e) : String(e);
|
|
73
|
+
return o.precision && o.limitDecimalsRetain && (a = F(a, o.precision)), a;
|
|
73
74
|
});
|
|
74
|
-
function
|
|
75
|
+
function k() {
|
|
75
76
|
n.value?.focus();
|
|
76
77
|
}
|
|
77
78
|
function S() {
|
|
78
79
|
n.value?.blur();
|
|
79
80
|
}
|
|
80
|
-
return c({ focus:
|
|
81
|
+
return c({ focus: k, blur: S }), (e, a) => e.mode === "read" ? (l(), s("span", {
|
|
81
82
|
key: 0,
|
|
82
|
-
class: i([t(
|
|
83
|
+
class: i([t(r)(), t(h)])
|
|
83
84
|
}, [
|
|
84
|
-
e.$slots.prefix ? (
|
|
85
|
+
e.$slots.prefix ? (l(), s("span", {
|
|
85
86
|
key: 0,
|
|
86
|
-
class: i(t(
|
|
87
|
+
class: i(t(r)("label-left"))
|
|
87
88
|
}, [
|
|
88
89
|
u(e.$slots, "prefix")
|
|
89
90
|
], 2)) : f("", !0),
|
|
90
|
-
|
|
91
|
-
e.$slots.addonAfter ? (
|
|
91
|
+
R("span", null, V(g.value), 1),
|
|
92
|
+
e.$slots.addonAfter ? (l(), s("span", {
|
|
92
93
|
key: 1,
|
|
93
|
-
class: i(t(
|
|
94
|
+
class: i(t(r)("label-right"))
|
|
94
95
|
}, [
|
|
95
96
|
u(e.$slots, "addonAfter")
|
|
96
97
|
], 2)) : f("", !0)
|
|
97
|
-
], 2)) : (
|
|
98
|
+
], 2)) : (l(), P(t(M), $({ key: 1 }, t(w)(o, ["value", "onUpdate:value"]), {
|
|
98
99
|
ref_key: "inputRef",
|
|
99
100
|
ref: n,
|
|
100
101
|
placeholder: t(b),
|
|
101
102
|
value: t(p),
|
|
102
103
|
"onUpdate:value": t(B)
|
|
103
|
-
}),
|
|
104
|
+
}), I({ _: 2 }, [
|
|
104
105
|
A(e.$slots, (q, d) => ({
|
|
105
106
|
name: d,
|
|
106
107
|
fn: U((x) => [
|
|
@@ -111,5 +112,5 @@ const re = /* @__PURE__ */ C({
|
|
|
111
112
|
}
|
|
112
113
|
});
|
|
113
114
|
export {
|
|
114
|
-
|
|
115
|
+
le as default
|
|
115
116
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, computed as d, createElementBlock as a, openBlock as n, createCommentVNode as r, createElementVNode as
|
|
1
|
+
import { defineComponent as p, computed as d, createElementBlock as a, openBlock as n, createCommentVNode as r, createElementVNode as u, renderSlot as l, toDisplayString as m } from "vue";
|
|
2
2
|
import { isNil as c } from "lodash-unified";
|
|
3
3
|
import { addZeroToDecimalPlaces as f } from "./helper.mjs";
|
|
4
4
|
import { roundWith as y, toDecimalMark as B } from "../../utils/format.mjs";
|
|
@@ -30,6 +30,7 @@ const h = {
|
|
|
30
30
|
status: {},
|
|
31
31
|
variant: {},
|
|
32
32
|
changeOnWheel: { type: Boolean },
|
|
33
|
+
changeOnBlur: { type: Boolean },
|
|
33
34
|
stringMode: { type: Boolean },
|
|
34
35
|
defaultValue: {},
|
|
35
36
|
value: {},
|
|
@@ -70,7 +71,7 @@ const h = {
|
|
|
70
71
|
e.$slots.prefix ? (n(), a("span", h, [
|
|
71
72
|
l(e.$slots, "prefix")
|
|
72
73
|
])) : r("", !0),
|
|
73
|
-
|
|
74
|
+
u("span", null, m(i.value), 1),
|
|
74
75
|
e.$slots.addonAfter ? (n(), a("span", g, [
|
|
75
76
|
l(e.$slots, "addonAfter")
|
|
76
77
|
])) : r("", !0)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Spin as
|
|
1
|
+
import { defineComponent as V, shallowRef as _, ref as q, onMounted as C, computed as O, unref as e, createElementBlock as s, openBlock as a, Fragment as p, createTextVNode as S, toDisplayString as U, createBlock as m, mergeProps as G } from "vue";
|
|
2
|
+
import { Spin as N, RadioGroup as z } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
|
-
import { isNil as
|
|
4
|
+
import { isNil as F, omit as w } from "lodash-unified";
|
|
5
5
|
import { getOptionValue as A, getOptionLabel as D } from "./helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
7
|
import E from "../hooks/use-options.mjs";
|
|
8
8
|
import I from "../style/index.mjs";
|
|
9
9
|
import { useControllableValue as L } from "../../hooks/useControllableValue.mjs";
|
|
10
10
|
import { useNamespace as M } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
|
-
const
|
|
11
|
+
const $ = /* @__PURE__ */ V({
|
|
12
12
|
name: "ApFieldRadio",
|
|
13
13
|
__name: "index",
|
|
14
14
|
props: {
|
|
@@ -32,40 +32,40 @@ const Z = /* @__PURE__ */ q({
|
|
|
32
32
|
vertical: { type: Boolean, default: !1 }
|
|
33
33
|
},
|
|
34
34
|
emits: ["update:value"],
|
|
35
|
-
setup(
|
|
36
|
-
const t =
|
|
35
|
+
setup(d, { expose: f, emit: c }) {
|
|
36
|
+
const t = d, v = c, l = _(), { options: r, updateOptions: y } = E(t), { value: u, updateValue: g } = L(t, v), { b: k, m: b } = M("field-radio"), x = I("field"), n = q(!1);
|
|
37
37
|
C(() => {
|
|
38
|
-
t.request && (n.value = !0, t.request?.().then((o) =>
|
|
38
|
+
t.request && (n.value = !0, t.request?.().then((o) => y(o)).finally(() => {
|
|
39
39
|
n.value = !1;
|
|
40
40
|
}));
|
|
41
41
|
});
|
|
42
|
-
const
|
|
42
|
+
const h = O(() => {
|
|
43
43
|
const o = e(u);
|
|
44
|
-
if (
|
|
44
|
+
if (F(o))
|
|
45
45
|
return t.emptyText;
|
|
46
46
|
const i = r.value?.find(
|
|
47
|
-
(
|
|
47
|
+
(R) => o === A(R)
|
|
48
48
|
);
|
|
49
49
|
return D(i) || t.emptyText;
|
|
50
50
|
});
|
|
51
|
-
function
|
|
51
|
+
function B() {
|
|
52
52
|
l.value?.focus();
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function T() {
|
|
55
55
|
l.value?.blur();
|
|
56
56
|
}
|
|
57
|
-
return
|
|
58
|
-
focus:
|
|
59
|
-
blur:
|
|
60
|
-
}), (o, i) => o.mode === "read" ? (a(), p
|
|
61
|
-
|
|
62
|
-
], 64)) : (a(), p
|
|
63
|
-
n.value ? (a(),
|
|
57
|
+
return f({
|
|
58
|
+
focus: B,
|
|
59
|
+
blur: T
|
|
60
|
+
}), (o, i) => o.mode === "read" ? (a(), s(p, { key: 0 }, [
|
|
61
|
+
S(U(h.value), 1)
|
|
62
|
+
], 64)) : (a(), s(p, { key: 1 }, [
|
|
63
|
+
n.value ? (a(), m(e(N), {
|
|
64
64
|
key: 0,
|
|
65
65
|
size: "small"
|
|
66
|
-
})) : (a(),
|
|
66
|
+
})) : (a(), m(e(z), G(
|
|
67
67
|
{ key: 1 },
|
|
68
|
-
e(
|
|
68
|
+
e(w)(t, [
|
|
69
69
|
"value",
|
|
70
70
|
"onUpdate:value",
|
|
71
71
|
"options",
|
|
@@ -77,13 +77,13 @@ const Z = /* @__PURE__ */ q({
|
|
|
77
77
|
ref: l,
|
|
78
78
|
value: e(u),
|
|
79
79
|
options: e(r),
|
|
80
|
-
class: [e(
|
|
81
|
-
"onUpdate:value": e(
|
|
80
|
+
class: [e(k)(), o.vertical ? e(b)("vertical") : null, e(x)],
|
|
81
|
+
"onUpdate:value": e(g)
|
|
82
82
|
}
|
|
83
83
|
), null, 16, ["value", "options", "class", "onUpdate:value"]))
|
|
84
84
|
], 64));
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
export {
|
|
88
|
-
|
|
88
|
+
$ as default
|
|
89
89
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as m,
|
|
2
|
-
import { omit as
|
|
1
|
+
import { defineComponent as m, shallowRef as v, useSlots as b, computed as y, createBlock as h, openBlock as B, unref as o, mergeProps as C, createSlots as _, withCtx as x, renderSlot as k } from "vue";
|
|
2
|
+
import { omit as w } from "lodash-unified";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
|
-
import { Rate as
|
|
5
|
-
import { useControllableValue as
|
|
4
|
+
import { Rate as R } from "@aplus-frontend/antdv";
|
|
5
|
+
import { useControllableValue as g } from "../../hooks/useControllableValue.mjs";
|
|
6
6
|
const D = /* @__PURE__ */ m({
|
|
7
7
|
name: "ApFieldRate",
|
|
8
8
|
__name: "index",
|
|
@@ -32,20 +32,20 @@ const D = /* @__PURE__ */ m({
|
|
|
32
32
|
defaultValue: {}
|
|
33
33
|
},
|
|
34
34
|
emits: ["update:value"],
|
|
35
|
-
setup(
|
|
36
|
-
const e =
|
|
35
|
+
setup(t, { expose: l, emit: r }) {
|
|
36
|
+
const e = t, a = v(), u = r, n = b(), { value: d, updateValue: s } = g(e, u), f = y(() => e.mode === "read" ? !0 : e.disabled);
|
|
37
37
|
function c() {
|
|
38
|
-
|
|
38
|
+
a.value?.focus?.();
|
|
39
39
|
}
|
|
40
40
|
function i() {
|
|
41
|
-
|
|
41
|
+
a.value?.blur?.();
|
|
42
42
|
}
|
|
43
43
|
return l({
|
|
44
44
|
focus: c,
|
|
45
45
|
blur: i
|
|
46
|
-
}), (p, V) => (B(), h(o(
|
|
46
|
+
}), (p, V) => (B(), h(o(R), C(o(w)(e, ["mode", "defaultValue"]), {
|
|
47
47
|
ref_key: "rateRef",
|
|
48
|
-
ref:
|
|
48
|
+
ref: a,
|
|
49
49
|
value: o(d),
|
|
50
50
|
disabled: f.value,
|
|
51
51
|
"onUpdate:value": o(s)
|
|
@@ -145,7 +145,9 @@ declare function __VLS_template(): {
|
|
|
145
145
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
146
146
|
default: any;
|
|
147
147
|
};
|
|
148
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
148
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
149
|
+
searchValue: string;
|
|
150
|
+
}) => number>;
|
|
149
151
|
optionFilterProp: StringConstructor;
|
|
150
152
|
optionLabelProp: StringConstructor;
|
|
151
153
|
options: PropType<DefaultOptionType[]>;
|
|
@@ -364,7 +366,9 @@ declare function __VLS_template(): {
|
|
|
364
366
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
365
367
|
default: any;
|
|
366
368
|
};
|
|
367
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
369
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
370
|
+
searchValue: string;
|
|
371
|
+
}) => number>;
|
|
368
372
|
optionFilterProp: StringConstructor;
|
|
369
373
|
optionLabelProp: StringConstructor;
|
|
370
374
|
options: PropType<DefaultOptionType[]>;
|
|
@@ -597,7 +601,9 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
597
601
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
598
602
|
default: any;
|
|
599
603
|
};
|
|
600
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
604
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
605
|
+
searchValue: string;
|
|
606
|
+
}) => number>;
|
|
601
607
|
optionFilterProp: StringConstructor;
|
|
602
608
|
optionLabelProp: StringConstructor;
|
|
603
609
|
options: PropType<DefaultOptionType[]>;
|
|
@@ -816,7 +822,9 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
816
822
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
817
823
|
default: any;
|
|
818
824
|
};
|
|
819
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
825
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
826
|
+
searchValue: string;
|
|
827
|
+
}) => number>;
|
|
820
828
|
optionFilterProp: StringConstructor;
|
|
821
829
|
optionLabelProp: StringConstructor;
|
|
822
830
|
options: PropType<DefaultOptionType[]>;
|