@aplus-frontend/ui 7.17.0 → 7.17.1
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/cascader/index.vue.mjs +86 -131
- package/es/src/ap-field/cascader/read.vue2.mjs +36 -35
- package/es/src/ap-field/checkbox/index.vue.d.ts +18 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +42 -43
- package/es/src/ap-field/checkbox/read.vue2.mjs +1 -1
- package/es/src/ap-field/date/index.vue.mjs +48 -48
- package/es/src/ap-field/date/read.vue2.mjs +1 -1
- package/es/src/ap-field/date-range/index.vue.mjs +31 -31
- package/es/src/ap-field/date-range/read.vue2.mjs +1 -1
- package/es/src/ap-field/interface.d.ts +7 -22
- package/es/src/ap-field/number/index.vue.mjs +36 -34
- package/es/src/ap-field/number/read.vue2.mjs +1 -1
- package/es/src/ap-field/radio/index.vue.mjs +34 -42
- package/es/src/ap-field/radio/read.vue2.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.mjs +23 -23
- package/es/src/ap-field/second/index.vue.mjs +27 -29
- package/es/src/ap-field/second/read.vue2.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +37 -37
- package/es/src/ap-field/select/index.vue.mjs +90 -92
- package/es/src/ap-field/select/read.vue2.mjs +1 -1
- package/es/src/ap-field/slider/index.vue.mjs +35 -37
- package/es/src/ap-field/switch/index.vue.mjs +38 -38
- package/es/src/ap-field/switch/read.vue2.mjs +3 -3
- package/es/src/ap-field/text/index.vue.d.ts +478 -3
- package/es/src/ap-field/text/index.vue2.mjs +47 -46
- package/es/src/ap-field/text/password.vue.d.ts +549 -3
- package/es/src/ap-field/text/password.vue.mjs +61 -56
- package/es/src/ap-field/text/read-password.vue2.mjs +16 -16
- package/es/src/ap-field/text/read.vue2.mjs +1 -1
- package/es/src/ap-field/text-area/index.vue.mjs +29 -31
- package/es/src/ap-field/text-area/read.vue2.mjs +1 -1
- package/es/src/ap-field/tree-select/index.vue.mjs +47 -47
- package/es/src/ap-field/tree-select/read.vue2.mjs +3 -3
- package/es/src/ap-form/drawer-form/index.vue.mjs +99 -90
- package/es/src/ap-form/hooks/use-regist-form.d.ts +7 -0
- package/es/src/ap-form/hooks/use-regist-form.mjs +24 -0
- package/es/src/ap-form/item/index.vue.d.ts +6 -6
- package/es/src/ap-form/item/index.vue.mjs +85 -94
- package/es/src/ap-form/item-group/index.vue.mjs +14 -14
- package/es/src/ap-form/items/cascader/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +159 -47
- package/es/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/switch/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/index.vue.d.ts +476 -4
- package/es/src/ap-form/items/text/password.vue.d.ts +547 -4
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/es/src/ap-form/list/index.vue.mjs +29 -34
- package/es/src/ap-form/modal-form/index.vue.mjs +77 -68
- package/es/src/ap-form/set/index.vue.d.ts +2 -4
- package/es/src/ap-form/set/index.vue.mjs +23 -18
- package/es/src/ap-grid/index.vue.mjs +1 -1
- package/es/src/ap-table/constants.d.ts +593 -31
- package/es/src/ap-table/utils.d.ts +1 -1
- package/es/src/business/batch-input-group/index.vue.d.ts +240 -3
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-field/cascader/index.vue.js +1 -1
- package/lib/src/ap-field/cascader/read.vue2.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.d.ts +18 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date/read.vue2.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/interface.d.ts +7 -22
- 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/radio/read.vue2.js +1 -1
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/second/index.vue.js +1 -1
- package/lib/src/ap-field/second/read.vue2.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- 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/switch/read.vue2.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +478 -3
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +549 -3
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text/read-password.vue2.js +1 -1
- package/lib/src/ap-field/text/read.vue2.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-regist-form.d.ts +7 -0
- package/lib/src/ap-form/hooks/use-regist-form.js +1 -0
- package/lib/src/ap-form/item/index.vue.d.ts +6 -6
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/items/cascader/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +159 -47
- package/lib/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/index.vue.d.ts +476 -4
- package/lib/src/ap-form/items/text/password.vue.d.ts +547 -4
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/list/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/set/index.vue.d.ts +2 -4
- package/lib/src/ap-form/set/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +593 -31
- package/lib/src/ap-table/utils.d.ts +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +240 -3
- package/lib/src/business/batch-input-group/index.vue.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { InputGroup as
|
|
3
|
-
import { getTimeFormatToZone as
|
|
1
|
+
import { defineComponent as I, useSlots as U, ref as H, computed as r, unref as t, createElementBlock as B, createBlock as h, openBlock as i, Fragment as g, createTextVNode as b, toDisplayString as P, normalizeStyle as K, withCtx as s, createVNode as w, createCommentVNode as W, isRef as G, renderList as C, mergeProps as L, createSlots as Y, renderSlot as Z, normalizeProps as $, guardReactiveProps as q } from "vue";
|
|
2
|
+
import { InputGroup as J, FormItemRest as Q, Select as X, SelectOption as ee, DatePicker as oe } from "@aplus-frontend/antdv";
|
|
3
|
+
import { getTimeFormatToZone as te } from "@aplus-frontend/utils";
|
|
4
4
|
import u from "dayjs";
|
|
5
|
-
import { isNil as
|
|
5
|
+
import { isNil as S, omit as ae } from "lodash-unified";
|
|
6
6
|
import "../../hooks/index.mjs";
|
|
7
|
-
import { useDateTimezone as
|
|
8
|
-
import { useDefaultPlaceholder as
|
|
9
|
-
import { ApFieldDatePresetFormats as
|
|
10
|
-
import { formatDayWithTimezone as
|
|
11
|
-
import { useControllableValue as
|
|
12
|
-
const
|
|
7
|
+
import { useDateTimezone as ne } from "../hooks/use-date-timezone.mjs";
|
|
8
|
+
import { useDefaultPlaceholder as le } from "../hooks/use-default-placeholder.mjs";
|
|
9
|
+
import { ApFieldDatePresetFormats as re, PRESET_FORMAT_MAP as O, PRESET_FORMAT_PICK_MAP as ue, PRESET_FORMAT_TIME_MAP as de } from "./constant.mjs";
|
|
10
|
+
import { formatDayWithTimezone as ie } from "./helper.mjs";
|
|
11
|
+
import { useControllableValue as se } from "../../hooks/useControllableValue.mjs";
|
|
12
|
+
const Pe = /* @__PURE__ */ I({
|
|
13
13
|
name: "ApFieldDate",
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
16
16
|
mode: { default: "edit" },
|
|
17
17
|
class: {},
|
|
18
18
|
style: {},
|
|
19
|
+
emptyText: { default: "--" },
|
|
19
20
|
dropdownClassName: {},
|
|
20
21
|
dropdownAlign: {},
|
|
21
22
|
popupStyle: {},
|
|
@@ -80,7 +81,6 @@ const ge = /* @__PURE__ */ j({
|
|
|
80
81
|
disabledMinutes: {},
|
|
81
82
|
disabledSeconds: {},
|
|
82
83
|
valueFormat: {},
|
|
83
|
-
emptyText: { default: "--" },
|
|
84
84
|
value: {},
|
|
85
85
|
defaultValue: {},
|
|
86
86
|
"onUpdate:value": {},
|
|
@@ -92,23 +92,23 @@ const ge = /* @__PURE__ */ j({
|
|
|
92
92
|
timezone: {}
|
|
93
93
|
},
|
|
94
94
|
emits: ["update:value"],
|
|
95
|
-
setup(T, { expose:
|
|
96
|
-
const e = T,
|
|
95
|
+
setup(T, { expose: _, emit: F }) {
|
|
96
|
+
const R = U(), e = T, A = F, f = H(), { value: c, updateValue: k } = se(
|
|
97
97
|
e,
|
|
98
|
-
|
|
99
|
-
),
|
|
100
|
-
() =>
|
|
101
|
-
),
|
|
102
|
-
() => l.value ?
|
|
98
|
+
A
|
|
99
|
+
), M = le("Date", e), { currentTimezone: d } = ne(e), l = r(
|
|
100
|
+
() => re.indexOf(e.format) > -1
|
|
101
|
+
), x = r(() => e.shownFormat ? e.shownFormat : l.value ? O[e.format] : e.format), m = r(
|
|
102
|
+
() => l.value ? O[e.format] : e.format
|
|
103
103
|
), v = r(() => {
|
|
104
|
-
if (
|
|
104
|
+
if (S(t(c)))
|
|
105
105
|
return;
|
|
106
106
|
let o = u(t(c));
|
|
107
|
-
return e.timezone && (o = u(
|
|
108
|
-
}), D = r(() => t(l) ? e.picker ??
|
|
109
|
-
const o = t(l) ?
|
|
107
|
+
return e.timezone && (o = u(te(t(c), d.value))), o;
|
|
108
|
+
}), D = r(() => t(l) ? e.picker ?? ue[e.format] : e.picker), V = r(() => {
|
|
109
|
+
const o = t(l) ? de[e.format] : {};
|
|
110
110
|
return {
|
|
111
|
-
...
|
|
111
|
+
...ae(e, [
|
|
112
112
|
"value",
|
|
113
113
|
"defaultValue",
|
|
114
114
|
"onChange",
|
|
@@ -117,12 +117,12 @@ const ge = /* @__PURE__ */ j({
|
|
|
117
117
|
"onUpdate:value",
|
|
118
118
|
"mode"
|
|
119
119
|
]),
|
|
120
|
-
placeholder: t(
|
|
120
|
+
placeholder: t(M),
|
|
121
121
|
...o
|
|
122
122
|
};
|
|
123
|
-
}), y = (o, n, a = !0) =>
|
|
124
|
-
function
|
|
125
|
-
if (
|
|
123
|
+
}), y = (o, n, a = !0) => ie(d.value)(o, n, a);
|
|
124
|
+
function z(o) {
|
|
125
|
+
if (S(o)) {
|
|
126
126
|
k(null);
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
@@ -135,7 +135,7 @@ const ge = /* @__PURE__ */ j({
|
|
|
135
135
|
)
|
|
136
136
|
);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function E(o, n) {
|
|
139
139
|
const a = u(o), p = o ? y(
|
|
140
140
|
a,
|
|
141
141
|
t(l) ? t(m) : void 0,
|
|
@@ -143,7 +143,7 @@ const ge = /* @__PURE__ */ j({
|
|
|
143
143
|
) : null;
|
|
144
144
|
e.onChange?.(p, n);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function N(o) {
|
|
147
147
|
const n = u(o), a = o ? y(
|
|
148
148
|
n,
|
|
149
149
|
t(l) ? t(m) : void 0,
|
|
@@ -151,32 +151,32 @@ const ge = /* @__PURE__ */ j({
|
|
|
151
151
|
) : null;
|
|
152
152
|
e.onOk?.(a);
|
|
153
153
|
}
|
|
154
|
-
return
|
|
154
|
+
return _({
|
|
155
155
|
focus: () => f.value?.focus(),
|
|
156
156
|
blur: () => f.value?.blur()
|
|
157
157
|
}), (o, n) => o.mode === "read" ? (i(), B(g, { key: 0 }, [
|
|
158
158
|
b(P(v.value ? t(u)(v.value).format(m.value) : o.emptyText), 1)
|
|
159
|
-
], 64)) : (i(), h(t(
|
|
159
|
+
], 64)) : (i(), h(t(J), {
|
|
160
160
|
key: 1,
|
|
161
161
|
compact: "",
|
|
162
|
-
style:
|
|
162
|
+
style: K({
|
|
163
163
|
display: Array.isArray(e.timezone) && e.timezone.length ? "flex" : "block"
|
|
164
164
|
})
|
|
165
165
|
}, {
|
|
166
166
|
default: s(() => [
|
|
167
|
-
w(t(
|
|
167
|
+
w(t(Q), null, {
|
|
168
168
|
default: s(() => [
|
|
169
|
-
Array.isArray(e.timezone) && e.timezone.length ? (i(), h(t(
|
|
169
|
+
Array.isArray(e.timezone) && e.timezone.length ? (i(), h(t(X), {
|
|
170
170
|
key: 0,
|
|
171
171
|
value: t(d),
|
|
172
|
-
"onUpdate:value": n[0] || (n[0] = (a) =>
|
|
172
|
+
"onUpdate:value": n[0] || (n[0] = (a) => G(d) ? d.value = a : null),
|
|
173
173
|
"default-active-first-option": "",
|
|
174
174
|
"dropdown-match-select-width": !1,
|
|
175
175
|
style: { "max-width": "50%" },
|
|
176
176
|
disabled: o.disabled
|
|
177
177
|
}, {
|
|
178
178
|
default: s(() => [
|
|
179
|
-
(i(!0), B(g, null, C(e.timezone, (a) => (i(), h(t(
|
|
179
|
+
(i(!0), B(g, null, C(e.timezone, (a) => (i(), h(t(ee), {
|
|
180
180
|
key: a?.value,
|
|
181
181
|
value: a?.value
|
|
182
182
|
}, {
|
|
@@ -187,25 +187,25 @@ const ge = /* @__PURE__ */ j({
|
|
|
187
187
|
}, 1032, ["value"]))), 128))
|
|
188
188
|
]),
|
|
189
189
|
_: 1
|
|
190
|
-
}, 8, ["value", "disabled"])) :
|
|
190
|
+
}, 8, ["value", "disabled"])) : W("", !0)
|
|
191
191
|
]),
|
|
192
192
|
_: 1
|
|
193
193
|
}),
|
|
194
|
-
w(t(
|
|
194
|
+
w(t(oe), L({
|
|
195
195
|
ref_key: "datePickerRef",
|
|
196
196
|
ref: f
|
|
197
|
-
},
|
|
197
|
+
}, V.value, {
|
|
198
198
|
value: v.value,
|
|
199
|
-
format:
|
|
199
|
+
format: x.value,
|
|
200
200
|
picker: D.value,
|
|
201
|
-
"onUpdate:value":
|
|
202
|
-
onChange:
|
|
203
|
-
onOk:
|
|
204
|
-
}),
|
|
205
|
-
C(
|
|
201
|
+
"onUpdate:value": z,
|
|
202
|
+
onChange: E,
|
|
203
|
+
onOk: N
|
|
204
|
+
}), Y({ _: 2 }, [
|
|
205
|
+
C(R, (a, p) => ({
|
|
206
206
|
name: p,
|
|
207
|
-
fn: s((
|
|
208
|
-
|
|
207
|
+
fn: s((j) => [
|
|
208
|
+
Z(o.$slots, p, $(q(j || {})))
|
|
209
209
|
])
|
|
210
210
|
}))
|
|
211
211
|
]), 1040, ["value", "format", "picker"])
|
|
@@ -215,5 +215,5 @@ const ge = /* @__PURE__ */ j({
|
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
217
|
export {
|
|
218
|
-
|
|
218
|
+
Pe as default
|
|
219
219
|
};
|
|
@@ -11,6 +11,7 @@ const S = /* @__PURE__ */ u({
|
|
|
11
11
|
mode: {},
|
|
12
12
|
class: {},
|
|
13
13
|
style: {},
|
|
14
|
+
emptyText: { default: "--" },
|
|
14
15
|
dropdownClassName: {},
|
|
15
16
|
dropdownAlign: {},
|
|
16
17
|
popupStyle: {},
|
|
@@ -75,7 +76,6 @@ const S = /* @__PURE__ */ u({
|
|
|
75
76
|
disabledMinutes: {},
|
|
76
77
|
disabledSeconds: {},
|
|
77
78
|
valueFormat: {},
|
|
78
|
-
emptyText: { default: "--" },
|
|
79
79
|
value: {},
|
|
80
80
|
defaultValue: {},
|
|
81
81
|
"onUpdate:value": {},
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as $, useSlots as q, ref as J, computed as s, unref as t, isVNode as Q, createVNode as D, Fragment as m, createElementBlock as g, createBlock as k, openBlock as u, createTextVNode as S, toDisplayString as C, resolveDynamicComponent as X, normalizeStyle as ee, withCtx as P, createCommentVNode as oe, isRef as te, renderList as T, mergeProps as ne, createSlots as ae, renderSlot as re, normalizeProps as le, guardReactiveProps as ue } from "vue";
|
|
2
2
|
import { SwapRightOutlined as de } from "@ant-design/icons-vue";
|
|
3
3
|
import { InputGroup as ie, Select as se, SelectOption as fe, DatePicker as pe } from "@aplus-frontend/antdv";
|
|
4
|
-
import { getTimeFormatToZone as
|
|
4
|
+
import { getTimeFormatToZone as M } from "@aplus-frontend/utils";
|
|
5
5
|
import d from "dayjs";
|
|
6
|
-
import { isNil as
|
|
6
|
+
import { isNil as R, omit as A, isString as c, isFunction as me } from "lodash-unified";
|
|
7
7
|
import "../../hooks/index.mjs";
|
|
8
8
|
import { omitUndefined as ce } from "../../utils/index.mjs";
|
|
9
|
-
import { ApFieldDatePresetFormats as ye, PRESET_FORMAT_MAP as
|
|
9
|
+
import { ApFieldDatePresetFormats as ye, PRESET_FORMAT_MAP as _, PRESET_FORMAT_PICK_MAP as ve, PRESET_FORMAT_TIME_MAP as he } from "../date/constant.mjs";
|
|
10
10
|
import { formatDayWithTimezone as ge } from "../date/helper.mjs";
|
|
11
11
|
import { useDateTimezone as ke } from "../hooks/use-date-timezone.mjs";
|
|
12
12
|
import { useDefaultPlaceholder as Se } from "../hooks/use-default-placeholder.mjs";
|
|
13
13
|
import { useDefaultPresets as Ce } from "../hooks/use-default-presets.mjs";
|
|
14
14
|
import { useControllableValue as Pe } from "../../hooks/useControllableValue.mjs";
|
|
15
|
-
const Ee = /* @__PURE__ */
|
|
15
|
+
const Ee = /* @__PURE__ */ $({
|
|
16
16
|
name: "ApFieldDateRange",
|
|
17
17
|
__name: "index",
|
|
18
18
|
props: {
|
|
@@ -21,6 +21,9 @@ const Ee = /* @__PURE__ */ Z({
|
|
|
21
21
|
},
|
|
22
22
|
class: {},
|
|
23
23
|
style: {},
|
|
24
|
+
emptyText: {
|
|
25
|
+
default: "--"
|
|
26
|
+
},
|
|
24
27
|
id: {},
|
|
25
28
|
defaultPickerValue: {},
|
|
26
29
|
placeholder: {},
|
|
@@ -142,9 +145,6 @@ const Ee = /* @__PURE__ */ Z({
|
|
|
142
145
|
disabledMinutes: {},
|
|
143
146
|
disabledSeconds: {},
|
|
144
147
|
valueFormat: {},
|
|
145
|
-
emptyText: {
|
|
146
|
-
default: "--"
|
|
147
|
-
},
|
|
148
148
|
value: {},
|
|
149
149
|
defaultValue: {},
|
|
150
150
|
"onUpdate:value": {},
|
|
@@ -162,13 +162,13 @@ const Ee = /* @__PURE__ */ Z({
|
|
|
162
162
|
},
|
|
163
163
|
emits: ["update:value"],
|
|
164
164
|
setup(F, {
|
|
165
|
-
expose:
|
|
166
|
-
emit:
|
|
165
|
+
expose: x,
|
|
166
|
+
emit: z
|
|
167
167
|
}) {
|
|
168
|
-
const o = F,
|
|
168
|
+
const o = F, N = z, b = q(), B = J(), i = s(() => ye.indexOf(o.format) > -1), y = s(() => i.value ? _[o.format] : o.format), {
|
|
169
169
|
value: v,
|
|
170
|
-
updateValue:
|
|
171
|
-
} = Pe(o,
|
|
170
|
+
updateValue: w
|
|
171
|
+
} = Pe(o, N), E = s(() => o.shownFormat ? o.shownFormat : i.value ? _[o.format] : o.format), V = Se("DateRange", o), {
|
|
172
172
|
currentTimezone: l
|
|
173
173
|
} = ke(o), {
|
|
174
174
|
presets: j,
|
|
@@ -178,14 +178,14 @@ const Ee = /* @__PURE__ */ Z({
|
|
|
178
178
|
timezone: l
|
|
179
179
|
}), f = (e, a, n = !0) => ge(l.value)(e, a, n), h = s(() => {
|
|
180
180
|
const e = t(v);
|
|
181
|
-
if (
|
|
181
|
+
if (R(e) || !e?.length)
|
|
182
182
|
return e;
|
|
183
|
-
const a = l.value ?
|
|
183
|
+
const a = l.value ? M(t(v)[0], l.value) : t(v)?.[0], n = o.timezone ? M(t(v)[1], l.value) : t(v)?.[1];
|
|
184
184
|
return [d(a), d(n)];
|
|
185
185
|
}), U = s(() => t(i) ? o.picker ?? ve[o.format] : o.picker), H = s(() => {
|
|
186
186
|
const e = t(i) ? he[o.format] : {};
|
|
187
187
|
return {
|
|
188
|
-
...ce(
|
|
188
|
+
...ce(A(o, ["value", "onUpdate:value", "onChange", "onOk", "format", "mode", "presets"])),
|
|
189
189
|
placeholder: t(V),
|
|
190
190
|
presets: t(j),
|
|
191
191
|
...e
|
|
@@ -193,43 +193,43 @@ const Ee = /* @__PURE__ */ Z({
|
|
|
193
193
|
});
|
|
194
194
|
function K(e) {
|
|
195
195
|
if (!e) {
|
|
196
|
-
|
|
196
|
+
w(e);
|
|
197
197
|
return;
|
|
198
198
|
}
|
|
199
199
|
let a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1];
|
|
200
200
|
const r = t(i) ? t(y) : void 0;
|
|
201
|
-
|
|
201
|
+
w([f(a, r), f(n, r, !1)]);
|
|
202
202
|
}
|
|
203
203
|
function W(e) {
|
|
204
204
|
const a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1], r = t(i) ? t(y) : void 0, p = e[0] ? f(a, r) : null, O = e[1] ? f(n, r, !1) : null;
|
|
205
205
|
o.onOk?.([p, O]);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function G(e) {
|
|
208
208
|
e && I(), o.onOpenChange?.(e);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
if (
|
|
210
|
+
function L(e, a) {
|
|
211
|
+
if (R(e)) {
|
|
212
212
|
o.onChange?.(e, a);
|
|
213
213
|
return;
|
|
214
214
|
}
|
|
215
|
-
const n = c(e[0]) ? d(e[0]) : e[0], r = c(e[1]) ? d(e[1]) : e[1], p = t(i) ? t(y) : void 0, O = e[0] ? f(n, p) : null,
|
|
216
|
-
o.onChange?.([O,
|
|
215
|
+
const n = c(e[0]) ? d(e[0]) : e[0], r = c(e[1]) ? d(e[1]) : e[1], p = t(i) ? t(y) : void 0, O = e[0] ? f(n, p) : null, Z = e[1] ? f(r, p, !1) : null;
|
|
216
|
+
o.onChange?.([O, Z], a);
|
|
217
217
|
}
|
|
218
|
-
const
|
|
218
|
+
const Y = s(() => {
|
|
219
219
|
const e = o.readModeSeparator;
|
|
220
220
|
if (e)
|
|
221
221
|
return Q(e) || me(e) ? o.readModeSeparator : D(m, null, [o.readModeSeparator]);
|
|
222
|
-
const a =
|
|
222
|
+
const a = b.readModeSeparator?.();
|
|
223
223
|
return a ? D(m, null, [a]) : de;
|
|
224
224
|
});
|
|
225
|
-
return
|
|
225
|
+
return x({
|
|
226
226
|
focus: B.value?.focus(),
|
|
227
227
|
blur: B.value?.blur()
|
|
228
228
|
}), (e, a) => e.mode === "read" ? (u(), g(m, {
|
|
229
229
|
key: 0
|
|
230
230
|
}, [h.value ? (u(), g(m, {
|
|
231
231
|
key: 0
|
|
232
|
-
}, [S(C(h.value[0]?.format(y.value)) + " ", 1), (u(), k(X(
|
|
232
|
+
}, [S(C(h.value[0]?.format(y.value)) + " ", 1), (u(), k(X(Y.value))), S(" " + C(h.value[1]?.format(y.value)), 1)], 64)) : (u(), g(m, {
|
|
233
233
|
key: 1
|
|
234
234
|
}, [S(C(e.emptyText), 1)], 64))], 64)) : (u(), k(t(ie), {
|
|
235
235
|
key: 1,
|
|
@@ -245,7 +245,7 @@ const Ee = /* @__PURE__ */ Z({
|
|
|
245
245
|
"default-active-first-option": "",
|
|
246
246
|
"dropdown-match-select-width": !1
|
|
247
247
|
}, {
|
|
248
|
-
default: P(() => [(u(!0), g(m, null,
|
|
248
|
+
default: P(() => [(u(!0), g(m, null, T(o.timezone, (n) => (u(), k(t(fe), {
|
|
249
249
|
key: n?.value,
|
|
250
250
|
value: n?.value
|
|
251
251
|
}, {
|
|
@@ -261,12 +261,12 @@ const Ee = /* @__PURE__ */ Z({
|
|
|
261
261
|
picker: U.value,
|
|
262
262
|
format: E.value,
|
|
263
263
|
"onUpdate:value": K,
|
|
264
|
-
onChange:
|
|
264
|
+
onChange: L,
|
|
265
265
|
onOk: W,
|
|
266
|
-
onOpenChange:
|
|
266
|
+
onOpenChange: G
|
|
267
267
|
}), ae({
|
|
268
268
|
_: 2
|
|
269
|
-
}, [
|
|
269
|
+
}, [T(t(A)(b, "readModeSeparator"), (n, r) => ({
|
|
270
270
|
name: r,
|
|
271
271
|
fn: P((p) => [re(e.$slots, r, le(ue(p || {})))])
|
|
272
272
|
}))]), 1040, ["value", "picker", "format"])]),
|
|
@@ -11,6 +11,7 @@ const M = /* @__PURE__ */ v({
|
|
|
11
11
|
mode: {},
|
|
12
12
|
class: {},
|
|
13
13
|
style: {},
|
|
14
|
+
emptyText: { default: "--" },
|
|
14
15
|
id: {},
|
|
15
16
|
defaultPickerValue: {},
|
|
16
17
|
placeholder: {},
|
|
@@ -76,7 +77,6 @@ const M = /* @__PURE__ */ v({
|
|
|
76
77
|
disabledMinutes: {},
|
|
77
78
|
disabledSeconds: {},
|
|
78
79
|
valueFormat: {},
|
|
79
|
-
emptyText: { default: "--" },
|
|
80
80
|
value: {},
|
|
81
81
|
defaultValue: {},
|
|
82
82
|
"onUpdate:value": {},
|
|
@@ -20,9 +20,9 @@ export type BasicApFieldProps<FieldPropsType = any> = {
|
|
|
20
20
|
mode?: FieldMode;
|
|
21
21
|
class?: unknown;
|
|
22
22
|
style?: unknown;
|
|
23
|
+
emptyText?: string;
|
|
23
24
|
} & FieldPropsType;
|
|
24
25
|
export type ApFieldTextProps = BasicApFieldProps<InputProps> & {
|
|
25
|
-
emptyText?: string;
|
|
26
26
|
/**
|
|
27
27
|
* 输入生效前的事件,受控输入拦截
|
|
28
28
|
* @param nextVal
|
|
@@ -30,10 +30,6 @@ export type ApFieldTextProps = BasicApFieldProps<InputProps> & {
|
|
|
30
30
|
*/
|
|
31
31
|
beforeInput?: (nextVal: string) => string;
|
|
32
32
|
};
|
|
33
|
-
export type ApFieldTextPasswordProps = BasicApFieldProps<InputPasswordProps> & {
|
|
34
|
-
emptyText?: string;
|
|
35
|
-
};
|
|
36
|
-
export type ApFieldTextPasswordExpose = Omit<CommonApFieldExpose, 'request'>;
|
|
37
33
|
export type ApFieldTextExpose = {
|
|
38
34
|
focus: (options?: InputFocusOptions) => void;
|
|
39
35
|
blur: () => void;
|
|
@@ -41,14 +37,14 @@ export type ApFieldTextExpose = {
|
|
|
41
37
|
setSelectionRange: (start: number, end: number, direction?: 'forward' | 'backward' | 'none') => void;
|
|
42
38
|
select: () => void;
|
|
43
39
|
};
|
|
40
|
+
export type ApFieldTextPasswordProps = BasicApFieldProps<InputPasswordProps>;
|
|
41
|
+
export type ApFieldTextPasswordExpose = Omit<CommonApFieldExpose, 'request'>;
|
|
44
42
|
export type ApFieldCheckboxProps = BasicApFieldProps<CheckboxGroupProps> & {
|
|
45
|
-
emptyText?: string;
|
|
46
43
|
request?: () => Promise<CheckboxGroupProps['options']>;
|
|
47
44
|
vertical?: boolean;
|
|
48
45
|
};
|
|
49
46
|
export type ApFieldCheckboxExpose = Pick<CommonApFieldExpose, 'request'>;
|
|
50
47
|
export type ApFieldDateProps = BasicApFieldProps<Omit<DatePickerProps, 'mode' | 'value' | 'defaultValue' | 'onChange' | 'onOk' | 'format' | 'onUpdate:value'>> & {
|
|
51
|
-
emptyText?: string;
|
|
52
48
|
value?: number | null;
|
|
53
49
|
defaultValue?: number;
|
|
54
50
|
'onUpdate:value'?: (ts: number | null) => void;
|
|
@@ -79,7 +75,6 @@ export type ApFieldNumberProps = BasicApFieldProps<Omit<InputNumberProps, 'mode'
|
|
|
79
75
|
* 输入框的显示模式(输入框/数字轮播)
|
|
80
76
|
*/
|
|
81
77
|
inputMode?: InputNumberProps['mode'];
|
|
82
|
-
emptyText?: string;
|
|
83
78
|
/**
|
|
84
79
|
* 是否展示千分位,只读模式可用
|
|
85
80
|
*/
|
|
@@ -91,20 +86,17 @@ export type ApFieldNumberProps = BasicApFieldProps<Omit<InputNumberProps, 'mode'
|
|
|
91
86
|
};
|
|
92
87
|
export type ApiFieldNumberExpose = Omit<CommonApFieldExpose, 'request'>;
|
|
93
88
|
export type ApFieldRadioProps = BasicApFieldProps<RadioGroupProps> & {
|
|
94
|
-
emptyText?: string;
|
|
95
89
|
request?: () => Promise<RadioGroupProps['options']>;
|
|
96
90
|
vertical?: boolean;
|
|
97
91
|
};
|
|
98
92
|
export type ApFieldRadioExpose = Pick<CommonApFieldExpose, 'request'>;
|
|
99
93
|
export type ApFieldSwitchConfirmConfig = Pick<PopconfirmProps, 'title' | 'okText' | 'cancelText' | 'description' | 'showCancel' | 'icon' | 'okType' | 'onCancel' | 'okButtonProps' | 'cancelButtonProps'>;
|
|
100
94
|
export type ApFieldSwitchProps = BasicApFieldProps<Omit<SwitchProps, 'onClick'>> & {
|
|
101
|
-
emptyText?: string;
|
|
102
95
|
onAction?: (checked: string | boolean | number, e?: Event) => boolean | Promise<boolean>;
|
|
103
96
|
confirm?: ApFieldSwitchConfirmConfig | ((checked: string | number | boolean) => ApFieldSwitchConfirmConfig);
|
|
104
97
|
};
|
|
105
98
|
export type ApFieldSwitchExpose = Omit<CommonApFieldExpose, 'request'>;
|
|
106
99
|
export type ApFieldTextAreaProps = BasicApFieldProps<Omit<TextAreaProps, 'autosize'>> & {
|
|
107
|
-
emptyText?: string;
|
|
108
100
|
/**
|
|
109
101
|
* 输入生效前的事件,受控输入拦截
|
|
110
102
|
* @param nextVal
|
|
@@ -123,7 +115,6 @@ export type ApFieldTextAreaExpose = Pick<CommonApFieldExpose, 'blur'> & {
|
|
|
123
115
|
resizableTextArea: any;
|
|
124
116
|
};
|
|
125
117
|
export type ApFieldDateRangeProps = BasicApFieldProps<Omit<RangePickerProps, 'value' | 'onChange' | 'onPanelChange' | 'defaultValue' | 'onOk' | 'renderExtraFooter' | 'onUpdate:value' | 'mode' | 'format' | 'presets'>> & {
|
|
126
|
-
emptyText?: string;
|
|
127
118
|
value?: RangeValue<number> | null;
|
|
128
119
|
defaultValue?: RangeValue<number>;
|
|
129
120
|
'onUpdate:value'?: (ts: RangeValue<number> | null) => void;
|
|
@@ -194,7 +185,6 @@ export type ApFieldDateRangeProps = BasicApFieldProps<Omit<RangePickerProps, 'va
|
|
|
194
185
|
};
|
|
195
186
|
export type ApFieldDateRangeExpose = Omit<CommonApFieldExpose, 'request'>;
|
|
196
187
|
export type ApFieldSelectProps = BasicApFieldProps<Omit<SelectProps, 'mode' | 'value' | 'onUpdate:value' | 'onSearch'>> & {
|
|
197
|
-
emptyText?: string;
|
|
198
188
|
request?: (value?: string, extraParams?: Recordable) => Promise<SelectProps['options']>;
|
|
199
189
|
multiple?: boolean;
|
|
200
190
|
value?: SelectProps['value'];
|
|
@@ -235,8 +225,10 @@ export type ApFieldSelectProps = BasicApFieldProps<Omit<SelectProps, 'mode' | 'v
|
|
|
235
225
|
*/
|
|
236
226
|
allowOnlySelect?: boolean;
|
|
237
227
|
};
|
|
228
|
+
export type ApFieldSelectExpose = Omit<CommonApFieldExpose, 'request'> & {
|
|
229
|
+
request: (clear?: boolean) => Promise<void>;
|
|
230
|
+
};
|
|
238
231
|
export type ApFieldTreeSelectProps = BasicApFieldProps<Omit<TreeSelectProps, 'loadData'>> & {
|
|
239
|
-
emptyText?: string;
|
|
240
232
|
/**
|
|
241
233
|
* 用于请求treeNode
|
|
242
234
|
* @param currentNode 异步加载时表示当前节点,非异步请求时为undefined
|
|
@@ -257,9 +249,6 @@ export type ApFieldTreeSelectProps = BasicApFieldProps<Omit<TreeSelectProps, 'lo
|
|
|
257
249
|
*/
|
|
258
250
|
loadData?: boolean;
|
|
259
251
|
};
|
|
260
|
-
export type ApFieldSelectExpose = Omit<CommonApFieldExpose, 'request'> & {
|
|
261
|
-
request: (clear?: boolean) => Promise<void>;
|
|
262
|
-
};
|
|
263
252
|
export type ApFieldTreeSelectExpose = Omit<ApFieldSelectExpose, 'request'> & {
|
|
264
253
|
/**
|
|
265
254
|
* 手动请求treeData
|
|
@@ -270,26 +259,22 @@ export type ApFieldTreeSelectExpose = Omit<ApFieldSelectExpose, 'request'> & {
|
|
|
270
259
|
request: (currentNode?: LegacyDataNode, clear?: boolean) => Promise<void>;
|
|
271
260
|
};
|
|
272
261
|
export type ApFieldSliderProps = BasicApFieldProps<Partial<SliderProps>> & {
|
|
273
|
-
emptyText?: string;
|
|
274
262
|
defaultValue?: number | [number, number];
|
|
275
263
|
};
|
|
276
264
|
export type ApFieldSliderExpose = Omit<CommonApFieldExpose, 'request'>;
|
|
277
265
|
export type ApFieldSegmentedProps = BasicApFieldProps<SegmentedProps> & {
|
|
278
|
-
emptyText?: string;
|
|
279
266
|
defaultValue?: string | number;
|
|
280
267
|
request?: () => Promise<SegmentedProps['options']>;
|
|
281
268
|
};
|
|
282
|
-
export type ApFieldRateProps = BasicApFieldProps<RateProps> & {
|
|
269
|
+
export type ApFieldRateProps = Omit<BasicApFieldProps<RateProps>, 'emptyText'> & {
|
|
283
270
|
defaultValue?: number;
|
|
284
271
|
};
|
|
285
272
|
export type ApFieldRateExpose = Omit<CommonApFieldExpose, 'request'>;
|
|
286
273
|
export type ApFieldSecondProps = BasicApFieldProps<Omit<InputNumberProps, 'mode'>> & {
|
|
287
274
|
placeholder?: string;
|
|
288
|
-
emptyText?: string;
|
|
289
275
|
};
|
|
290
276
|
export type ApFieldSecondExpose = ApiFieldNumberExpose;
|
|
291
277
|
export type ApFieldCascaderProps = BasicApFieldProps<Omit<CascaderProps, 'loadData'>> & {
|
|
292
|
-
emptyText?: string;
|
|
293
278
|
/**
|
|
294
279
|
* 手动请求节点数据
|
|
295
280
|
* @param currentNode 当前选中项
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { InputNumber as
|
|
3
|
-
import {
|
|
4
|
-
import { roundWith as
|
|
1
|
+
import { defineComponent as D, useSlots as R, computed as m, shallowRef as V, unref as t, createElementBlock as s, createBlock as I, openBlock as l, normalizeClass as i, createCommentVNode as f, createElementVNode as M, renderSlot as u, toDisplayString as $, mergeProps as A, createSlots as U, renderList as z, withCtx as E, normalizeProps as T, guardReactiveProps as w } from "vue";
|
|
2
|
+
import { InputNumber as F } from "@aplus-frontend/antdv";
|
|
3
|
+
import { omit as O, isNil as W } from "lodash-unified";
|
|
4
|
+
import { roundWith as _, toDecimalMark as L } from "../../utils/format.mjs";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
6
|
import "../../hooks/index.mjs";
|
|
7
|
-
import { useDefaultPlaceholder as
|
|
8
|
-
import
|
|
9
|
-
import { addZeroToDecimalPlaces as
|
|
10
|
-
import { useNamespace as
|
|
11
|
-
import { useControllableValue as
|
|
12
|
-
const
|
|
7
|
+
import { useDefaultPlaceholder as Z } from "../hooks/use-default-placeholder.mjs";
|
|
8
|
+
import j from "../style/index.mjs";
|
|
9
|
+
import { addZeroToDecimalPlaces as q } from "./helper.mjs";
|
|
10
|
+
import { useNamespace as G } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import { useControllableValue as H } from "../../hooks/useControllableValue.mjs";
|
|
12
|
+
const se = /* @__PURE__ */ D({
|
|
13
13
|
name: "ApFieldNumber",
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
16
16
|
mode: {},
|
|
17
17
|
class: {},
|
|
18
18
|
style: {},
|
|
19
|
+
emptyText: { default: "--" },
|
|
19
20
|
size: {},
|
|
20
21
|
bordered: { type: Boolean, default: !0 },
|
|
21
22
|
placeholder: {},
|
|
@@ -56,63 +57,64 @@ const le = /* @__PURE__ */ N({
|
|
|
56
57
|
onBlur: {},
|
|
57
58
|
onFocus: {},
|
|
58
59
|
inputMode: {},
|
|
59
|
-
emptyText: { default: "--" },
|
|
60
60
|
thousands: { type: Boolean, default: !1 },
|
|
61
61
|
limitDecimalsRetain: { type: Boolean }
|
|
62
62
|
},
|
|
63
63
|
emits: ["update:value"],
|
|
64
|
-
setup(
|
|
65
|
-
const v =
|
|
64
|
+
setup(c, { expose: y, emit: v }) {
|
|
65
|
+
const h = v, B = R(), { b: r } = G("field-number"), b = j("field"), o = c, g = m(
|
|
66
|
+
() => O(o, ["value", "onUpdate:value", "mode"])
|
|
67
|
+
), n = V(), { value: p, updateValue: k } = H(
|
|
66
68
|
o,
|
|
67
|
-
|
|
68
|
-
),
|
|
69
|
+
h
|
|
70
|
+
), S = Z("Number", o), x = m(() => {
|
|
69
71
|
let e = t(p);
|
|
70
|
-
if (
|
|
72
|
+
if (W(e))
|
|
71
73
|
return o.emptyText;
|
|
72
|
-
o.precision && (e =
|
|
73
|
-
let a = o.thousands ?
|
|
74
|
-
return o.precision && o.limitDecimalsRetain && (a =
|
|
74
|
+
o.precision && (e = _(e, o.precision));
|
|
75
|
+
let a = o.thousands ? L(e) : String(e);
|
|
76
|
+
return o.precision && o.limitDecimalsRetain && (a = q(a, o.precision)), a;
|
|
75
77
|
});
|
|
76
|
-
function
|
|
78
|
+
function C() {
|
|
77
79
|
n.value?.focus();
|
|
78
80
|
}
|
|
79
|
-
function
|
|
81
|
+
function N() {
|
|
80
82
|
n.value?.blur();
|
|
81
83
|
}
|
|
82
|
-
return
|
|
84
|
+
return y({ focus: C, blur: N }), (e, a) => e.mode === "read" ? (l(), s("span", {
|
|
83
85
|
key: 0,
|
|
84
|
-
class: i([t(r)(), t(
|
|
86
|
+
class: i([t(r)(), t(b)])
|
|
85
87
|
}, [
|
|
86
88
|
e.$slots.prefix ? (l(), s("span", {
|
|
87
89
|
key: 0,
|
|
88
90
|
class: i(t(r)("label-left"))
|
|
89
91
|
}, [
|
|
90
92
|
u(e.$slots, "prefix")
|
|
91
|
-
], 2)) :
|
|
92
|
-
|
|
93
|
+
], 2)) : f("", !0),
|
|
94
|
+
M("span", null, $(x.value), 1),
|
|
93
95
|
e.$slots.addonAfter ? (l(), s("span", {
|
|
94
96
|
key: 1,
|
|
95
97
|
class: i(t(r)("label-right"))
|
|
96
98
|
}, [
|
|
97
99
|
u(e.$slots, "addonAfter")
|
|
98
|
-
], 2)) :
|
|
99
|
-
], 2)) : (l(),
|
|
100
|
+
], 2)) : f("", !0)
|
|
101
|
+
], 2)) : (l(), I(t(F), A({ key: 1 }, g.value, {
|
|
100
102
|
ref_key: "inputRef",
|
|
101
103
|
ref: n,
|
|
102
|
-
placeholder: t(
|
|
104
|
+
placeholder: t(S),
|
|
103
105
|
value: t(p),
|
|
104
106
|
mode: e.inputMode,
|
|
105
|
-
"onUpdate:value": t(
|
|
106
|
-
}),
|
|
107
|
-
|
|
107
|
+
"onUpdate:value": t(k)
|
|
108
|
+
}), U({ _: 2 }, [
|
|
109
|
+
z(B, (J, d) => ({
|
|
108
110
|
name: d,
|
|
109
|
-
fn:
|
|
110
|
-
u(e.$slots, d,
|
|
111
|
+
fn: E((P) => [
|
|
112
|
+
u(e.$slots, d, T(w(P || {})))
|
|
111
113
|
])
|
|
112
114
|
}))
|
|
113
115
|
]), 1040, ["placeholder", "value", "mode", "onUpdate:value"]));
|
|
114
116
|
}
|
|
115
117
|
});
|
|
116
118
|
export {
|
|
117
|
-
|
|
119
|
+
se as default
|
|
118
120
|
};
|
|
@@ -15,6 +15,7 @@ const h = {
|
|
|
15
15
|
mode: {},
|
|
16
16
|
class: {},
|
|
17
17
|
style: {},
|
|
18
|
+
emptyText: { default: "--" },
|
|
18
19
|
size: {},
|
|
19
20
|
bordered: { type: Boolean },
|
|
20
21
|
placeholder: {},
|
|
@@ -55,7 +56,6 @@ const h = {
|
|
|
55
56
|
onBlur: {},
|
|
56
57
|
onFocus: {},
|
|
57
58
|
inputMode: {},
|
|
58
|
-
emptyText: { default: "--" },
|
|
59
59
|
thousands: { type: Boolean, default: !1 },
|
|
60
60
|
limitDecimalsRetain: { type: Boolean }
|
|
61
61
|
},
|