@aplus-frontend/ui 7.17.1-beta.0 → 7.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +29 -31
- package/es/src/ag-grid/editable/form-item.vue.mjs +48 -48
- package/es/src/ap-field/cascader/index.vue.mjs +82 -130
- 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 +13 -23
- 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.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.mjs +147 -136
- package/es/src/ap-field/select/read.vue2.mjs +2 -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/interface.d.ts +18 -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 +10 -8
- package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
- 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 +600 -37
- 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/check-card/index.vue2.mjs +61 -64
- package/es/src/hooks/index.d.ts +0 -1
- package/es/src/hooks/index.mjs +10 -12
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +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 +13 -23
- 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.d.ts +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/interface.d.ts +18 -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 +10 -8
- package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
- 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 +600 -37
- 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/check-card/index.vue2.js +1 -1
- package/lib/src/hooks/index.d.ts +0 -1
- package/lib/src/hooks/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
- package/es/src/hooks/useMessage.d.ts +0 -62
- package/es/src/hooks/useMessage.mjs +0 -86
- package/lib/src/hooks/useMessage.d.ts +0 -62
- package/lib/src/hooks/useMessage.js +0 -1
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Switch as
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as D, useSlots as U, computed as p, ref as b, unref as o, createVNode as d, Fragment as s, createBlock as k, createElementBlock as E, openBlock as f, resolveDynamicComponent as K, mergeProps as C, createSlots as w, renderList as B, withCtx as y, renderSlot as P, normalizeProps as A, guardReactiveProps as _ } from "vue";
|
|
2
|
+
import { Switch as S, Popconfirm as L } from "@aplus-frontend/antdv";
|
|
3
|
+
import { omit as M, isNil as j, isFunction as q } from "lodash-unified";
|
|
4
4
|
import "../../utils/index.mjs";
|
|
5
5
|
import "../../hooks/index.mjs";
|
|
6
|
-
import { useControllableValue as
|
|
6
|
+
import { useControllableValue as G } from "../../hooks/useControllableValue.mjs";
|
|
7
7
|
import { isDef as r } from "../../utils/is.mjs";
|
|
8
|
-
const
|
|
8
|
+
const Y = /* @__PURE__ */ D({
|
|
9
9
|
name: "ApFieldSwitch",
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
12
12
|
mode: {},
|
|
13
13
|
class: {},
|
|
14
14
|
style: {},
|
|
15
|
+
emptyText: {
|
|
16
|
+
default: "--"
|
|
17
|
+
},
|
|
15
18
|
id: {},
|
|
16
19
|
prefixCls: {},
|
|
17
20
|
size: {
|
|
@@ -44,89 +47,86 @@ const X = /* @__PURE__ */ z({
|
|
|
44
47
|
"onUpdate:checked": {},
|
|
45
48
|
onBlur: {},
|
|
46
49
|
onFocus: {},
|
|
47
|
-
emptyText: {
|
|
48
|
-
default: "--"
|
|
49
|
-
},
|
|
50
50
|
onAction: {},
|
|
51
51
|
confirm: {}
|
|
52
52
|
},
|
|
53
53
|
emits: ["update:checked"],
|
|
54
54
|
setup(F, {
|
|
55
55
|
expose: N,
|
|
56
|
-
emit:
|
|
56
|
+
emit: $
|
|
57
57
|
}) {
|
|
58
|
-
const
|
|
58
|
+
const i = U(), e = F, v = p(() => M(e, ["onUpdate:checked", "emptyText"])), R = $, h = b(), {
|
|
59
59
|
value: t,
|
|
60
|
-
updateValue:
|
|
61
|
-
} =
|
|
60
|
+
updateValue: u
|
|
61
|
+
} = G(e, R, {
|
|
62
62
|
valuePropName: "checked"
|
|
63
|
-
}), c =
|
|
64
|
-
async function
|
|
63
|
+
}), c = b(!1);
|
|
64
|
+
async function g(n, a) {
|
|
65
65
|
if (!r(e.confirm)) {
|
|
66
66
|
if (!r(e.onAction)) {
|
|
67
|
-
|
|
67
|
+
u(n);
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
70
|
c.value = !0;
|
|
71
71
|
try {
|
|
72
|
-
await e.onAction(n,
|
|
72
|
+
await e.onAction(n, a) && u(n);
|
|
73
73
|
} finally {
|
|
74
74
|
c.value = !1;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
async function
|
|
78
|
+
async function T() {
|
|
79
79
|
const n = o(t) === e.checkedValue ? e.unCheckedValue : e.checkedValue;
|
|
80
80
|
if (!r(e.onAction)) {
|
|
81
|
-
|
|
81
|
+
u(n);
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
|
-
await e.onAction(n) &&
|
|
84
|
+
await e.onAction(n) && u(n);
|
|
85
85
|
}
|
|
86
|
-
const
|
|
86
|
+
const x = p(() => {
|
|
87
87
|
const n = o(t);
|
|
88
|
-
return
|
|
89
|
-
}),
|
|
88
|
+
return j(n) ? d(s, null, [e.emptyText]) : n === e.checkedValue ? d(s, null, [e.checkedChildren || i.checkedChildren?.() || `${e.checkedValue}`]) : d(s, null, [e.unCheckedChildren || i.unCheckedChildren?.() || `${e.unCheckedValue}`]);
|
|
89
|
+
}), z = p(() => r(e.confirm) ? q(e.confirm) ? e.confirm(o(t)) : e.confirm : {});
|
|
90
90
|
return N({
|
|
91
91
|
focus: () => h.value?.focus(),
|
|
92
92
|
blur: () => h.value?.blur()
|
|
93
|
-
}), (n,
|
|
93
|
+
}), (n, a) => n.mode === "read" ? (f(), k(K(x.value), {
|
|
94
94
|
key: 0
|
|
95
95
|
})) : (f(), E(s, {
|
|
96
96
|
key: 1
|
|
97
|
-
}, [!o(r)(n.confirm) || n.disabled ? (f(),
|
|
97
|
+
}, [!o(r)(n.confirm) || n.disabled ? (f(), k(o(S), C({
|
|
98
98
|
key: 0,
|
|
99
99
|
ref_key: "switchRef",
|
|
100
100
|
ref: h
|
|
101
|
-
},
|
|
101
|
+
}, v.value, {
|
|
102
102
|
checked: o(t),
|
|
103
103
|
loading: n.loading ?? c.value,
|
|
104
|
-
onClick:
|
|
105
|
-
}),
|
|
104
|
+
onClick: g
|
|
105
|
+
}), w({
|
|
106
106
|
_: 2
|
|
107
|
-
}, [
|
|
107
|
+
}, [B(i, (V, l) => ({
|
|
108
108
|
name: l,
|
|
109
|
-
fn:
|
|
110
|
-
}))]), 1040, ["checked", "loading"])) : (f(),
|
|
109
|
+
fn: y((m) => [P(n.$slots, l, A(_(m || {})))])
|
|
110
|
+
}))]), 1040, ["checked", "loading"])) : (f(), k(o(L), C({
|
|
111
111
|
key: 1,
|
|
112
112
|
disabled: c.value
|
|
113
|
-
},
|
|
114
|
-
onConfirm:
|
|
113
|
+
}, z.value, {
|
|
114
|
+
onConfirm: T
|
|
115
115
|
}), {
|
|
116
|
-
default:
|
|
116
|
+
default: y(() => [d(o(S), C(v.value, {
|
|
117
117
|
checked: o(t),
|
|
118
118
|
loading: n.loading ?? c.value,
|
|
119
|
-
onClick:
|
|
120
|
-
}),
|
|
119
|
+
onClick: g
|
|
120
|
+
}), w({
|
|
121
121
|
_: 2
|
|
122
|
-
}, [
|
|
122
|
+
}, [B(i, (V, l) => ({
|
|
123
123
|
name: l,
|
|
124
|
-
fn:
|
|
124
|
+
fn: y((m) => [P(n.$slots, l, A(_(m || {})))])
|
|
125
125
|
}))]), 1040, ["checked", "loading"])]),
|
|
126
126
|
_: 3
|
|
127
127
|
}, 16, ["disabled"]))], 64));
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
export {
|
|
131
|
-
|
|
131
|
+
Y as default
|
|
132
132
|
};
|
|
@@ -7,6 +7,9 @@ const k = /* @__PURE__ */ u({
|
|
|
7
7
|
mode: {},
|
|
8
8
|
class: {},
|
|
9
9
|
style: {},
|
|
10
|
+
emptyText: {
|
|
11
|
+
default: "--"
|
|
12
|
+
},
|
|
10
13
|
id: {},
|
|
11
14
|
prefixCls: {},
|
|
12
15
|
size: {
|
|
@@ -39,9 +42,6 @@ const k = /* @__PURE__ */ u({
|
|
|
39
42
|
"onUpdate:checked": {},
|
|
40
43
|
onBlur: {},
|
|
41
44
|
onFocus: {},
|
|
42
|
-
emptyText: {
|
|
43
|
-
default: "--"
|
|
44
|
-
},
|
|
45
45
|
onAction: {},
|
|
46
46
|
confirm: {}
|
|
47
47
|
},
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
2
2
|
import { ApFieldTextProps } from '../interface';
|
|
3
|
-
import {
|
|
3
|
+
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
|
|
4
|
+
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
5
|
+
import { CompositionEventHandler, FocusEventHandler, ChangeEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
6
|
+
import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
|
|
7
|
+
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
8
|
+
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
4
9
|
import { FieldMode } from '..';
|
|
5
10
|
type ApFieldTextSlots = {
|
|
6
11
|
addonAfter?: any;
|
|
@@ -12,7 +17,242 @@ type ApFieldTextSlots = {
|
|
|
12
17
|
declare function __VLS_template(): {
|
|
13
18
|
attrs: Partial<{}>;
|
|
14
19
|
slots: Readonly<ApFieldTextSlots> & ApFieldTextSlots;
|
|
15
|
-
refs: {
|
|
20
|
+
refs: {
|
|
21
|
+
inputRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
22
|
+
variant: {
|
|
23
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
24
|
+
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
25
|
+
};
|
|
26
|
+
size: {
|
|
27
|
+
type: PropType<SizeType>;
|
|
28
|
+
};
|
|
29
|
+
value: {
|
|
30
|
+
type: PropType<string | number>;
|
|
31
|
+
default: any;
|
|
32
|
+
};
|
|
33
|
+
name: StringConstructor;
|
|
34
|
+
type: {
|
|
35
|
+
type: PropType<"number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel">;
|
|
36
|
+
default: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
37
|
+
};
|
|
38
|
+
onCompositionend: PropType<CompositionEventHandler>;
|
|
39
|
+
onCompositionstart: PropType<CompositionEventHandler>;
|
|
40
|
+
onFocus: PropType<FocusEventHandler>;
|
|
41
|
+
onBlur: PropType<FocusEventHandler>;
|
|
42
|
+
onChange: PropType<ChangeEventHandler>;
|
|
43
|
+
onInput: PropType<ChangeEventHandler>;
|
|
44
|
+
onKeydown: PropType<KeyboardEventHandler>;
|
|
45
|
+
onKeyup: PropType<KeyboardEventHandler>;
|
|
46
|
+
onMousedown: {
|
|
47
|
+
type: PropType<MouseEventHandler>;
|
|
48
|
+
default: any;
|
|
49
|
+
};
|
|
50
|
+
focused: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: any;
|
|
53
|
+
};
|
|
54
|
+
hidden: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: any;
|
|
57
|
+
};
|
|
58
|
+
disabled: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: any;
|
|
61
|
+
};
|
|
62
|
+
prefixCls: StringConstructor;
|
|
63
|
+
id: StringConstructor;
|
|
64
|
+
readonly: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: any;
|
|
67
|
+
};
|
|
68
|
+
autofocus: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: any;
|
|
71
|
+
};
|
|
72
|
+
autocomplete: StringConstructor;
|
|
73
|
+
placeholder: {
|
|
74
|
+
type: PropType<string | number>;
|
|
75
|
+
};
|
|
76
|
+
lazy: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
maxlength: NumberConstructor;
|
|
81
|
+
loading: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: any;
|
|
84
|
+
};
|
|
85
|
+
bordered: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: any;
|
|
88
|
+
};
|
|
89
|
+
showCount: {
|
|
90
|
+
type: PropType<boolean | ShowCountProps>;
|
|
91
|
+
};
|
|
92
|
+
htmlSize: NumberConstructor;
|
|
93
|
+
onPressEnter: PropType<KeyboardEventHandler>;
|
|
94
|
+
onMouseUp: {
|
|
95
|
+
type: PropType<MouseEventHandler>;
|
|
96
|
+
default: any;
|
|
97
|
+
};
|
|
98
|
+
onRawInput: PropType<ChangeEventHandler>;
|
|
99
|
+
'onUpdate:value': PropType<(val: string) => void>;
|
|
100
|
+
valueModifiers: ObjectConstructor;
|
|
101
|
+
status: PropType<"" | "error" | "warning">;
|
|
102
|
+
defaultValue: {
|
|
103
|
+
type: PropType<string | number>;
|
|
104
|
+
default: any;
|
|
105
|
+
};
|
|
106
|
+
inputElement: VueTypeValidableDef<any>;
|
|
107
|
+
triggerFocus: PropType<() => void>;
|
|
108
|
+
handleReset: PropType<MouseEventHandler>;
|
|
109
|
+
addonBefore: VueTypeValidableDef<any>;
|
|
110
|
+
addonAfter: VueTypeValidableDef<any>;
|
|
111
|
+
prefix: VueTypeValidableDef<any>;
|
|
112
|
+
suffix: VueTypeValidableDef<any>;
|
|
113
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
114
|
+
allowClear: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: any;
|
|
117
|
+
};
|
|
118
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
119
|
+
value: string | number;
|
|
120
|
+
type: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
121
|
+
onMousedown: MouseEventHandler;
|
|
122
|
+
focused: boolean;
|
|
123
|
+
hidden: boolean;
|
|
124
|
+
disabled: boolean;
|
|
125
|
+
readonly: boolean;
|
|
126
|
+
autofocus: boolean;
|
|
127
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
128
|
+
lazy: boolean;
|
|
129
|
+
loading: boolean;
|
|
130
|
+
bordered: boolean;
|
|
131
|
+
onMouseUp: MouseEventHandler;
|
|
132
|
+
defaultValue: string | number;
|
|
133
|
+
allowClear: boolean;
|
|
134
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
135
|
+
P: {};
|
|
136
|
+
B: {};
|
|
137
|
+
D: {};
|
|
138
|
+
C: {};
|
|
139
|
+
M: {};
|
|
140
|
+
Defaults: {};
|
|
141
|
+
}, Readonly< ExtractPropTypes<{
|
|
142
|
+
variant: {
|
|
143
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
144
|
+
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
145
|
+
};
|
|
146
|
+
size: {
|
|
147
|
+
type: PropType<SizeType>;
|
|
148
|
+
};
|
|
149
|
+
value: {
|
|
150
|
+
type: PropType<string | number>;
|
|
151
|
+
default: any;
|
|
152
|
+
};
|
|
153
|
+
name: StringConstructor;
|
|
154
|
+
type: {
|
|
155
|
+
type: PropType<"number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel">;
|
|
156
|
+
default: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
157
|
+
};
|
|
158
|
+
onCompositionend: PropType<CompositionEventHandler>;
|
|
159
|
+
onCompositionstart: PropType<CompositionEventHandler>;
|
|
160
|
+
onFocus: PropType<FocusEventHandler>;
|
|
161
|
+
onBlur: PropType<FocusEventHandler>;
|
|
162
|
+
onChange: PropType<ChangeEventHandler>;
|
|
163
|
+
onInput: PropType<ChangeEventHandler>;
|
|
164
|
+
onKeydown: PropType<KeyboardEventHandler>;
|
|
165
|
+
onKeyup: PropType<KeyboardEventHandler>;
|
|
166
|
+
onMousedown: {
|
|
167
|
+
type: PropType<MouseEventHandler>;
|
|
168
|
+
default: any;
|
|
169
|
+
};
|
|
170
|
+
focused: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: any;
|
|
173
|
+
};
|
|
174
|
+
hidden: {
|
|
175
|
+
type: BooleanConstructor;
|
|
176
|
+
default: any;
|
|
177
|
+
};
|
|
178
|
+
disabled: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: any;
|
|
181
|
+
};
|
|
182
|
+
prefixCls: StringConstructor;
|
|
183
|
+
id: StringConstructor;
|
|
184
|
+
readonly: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: any;
|
|
187
|
+
};
|
|
188
|
+
autofocus: {
|
|
189
|
+
type: BooleanConstructor;
|
|
190
|
+
default: any;
|
|
191
|
+
};
|
|
192
|
+
autocomplete: StringConstructor;
|
|
193
|
+
placeholder: {
|
|
194
|
+
type: PropType<string | number>;
|
|
195
|
+
};
|
|
196
|
+
lazy: {
|
|
197
|
+
type: BooleanConstructor;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
200
|
+
maxlength: NumberConstructor;
|
|
201
|
+
loading: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
default: any;
|
|
204
|
+
};
|
|
205
|
+
bordered: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
default: any;
|
|
208
|
+
};
|
|
209
|
+
showCount: {
|
|
210
|
+
type: PropType<boolean | ShowCountProps>;
|
|
211
|
+
};
|
|
212
|
+
htmlSize: NumberConstructor;
|
|
213
|
+
onPressEnter: PropType<KeyboardEventHandler>;
|
|
214
|
+
onMouseUp: {
|
|
215
|
+
type: PropType<MouseEventHandler>;
|
|
216
|
+
default: any;
|
|
217
|
+
};
|
|
218
|
+
onRawInput: PropType<ChangeEventHandler>;
|
|
219
|
+
'onUpdate:value': PropType<(val: string) => void>;
|
|
220
|
+
valueModifiers: ObjectConstructor;
|
|
221
|
+
status: PropType<"" | "error" | "warning">;
|
|
222
|
+
defaultValue: {
|
|
223
|
+
type: PropType<string | number>;
|
|
224
|
+
default: any;
|
|
225
|
+
};
|
|
226
|
+
inputElement: VueTypeValidableDef<any>;
|
|
227
|
+
triggerFocus: PropType<() => void>;
|
|
228
|
+
handleReset: PropType<MouseEventHandler>;
|
|
229
|
+
addonBefore: VueTypeValidableDef<any>;
|
|
230
|
+
addonAfter: VueTypeValidableDef<any>;
|
|
231
|
+
prefix: VueTypeValidableDef<any>;
|
|
232
|
+
suffix: VueTypeValidableDef<any>;
|
|
233
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
234
|
+
allowClear: {
|
|
235
|
+
type: BooleanConstructor;
|
|
236
|
+
default: any;
|
|
237
|
+
};
|
|
238
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
239
|
+
value: string | number;
|
|
240
|
+
type: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
241
|
+
onMousedown: MouseEventHandler;
|
|
242
|
+
focused: boolean;
|
|
243
|
+
hidden: boolean;
|
|
244
|
+
disabled: boolean;
|
|
245
|
+
readonly: boolean;
|
|
246
|
+
autofocus: boolean;
|
|
247
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
248
|
+
lazy: boolean;
|
|
249
|
+
loading: boolean;
|
|
250
|
+
bordered: boolean;
|
|
251
|
+
onMouseUp: MouseEventHandler;
|
|
252
|
+
defaultValue: string | number;
|
|
253
|
+
allowClear: boolean;
|
|
254
|
+
}> | null;
|
|
255
|
+
};
|
|
16
256
|
rootEl: any;
|
|
17
257
|
};
|
|
18
258
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -34,7 +274,242 @@ declare const __VLS_component: DefineComponent<ApFieldTextProps, {
|
|
|
34
274
|
bordered: boolean;
|
|
35
275
|
allowClear: boolean;
|
|
36
276
|
emptyText: string;
|
|
37
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
277
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
278
|
+
inputRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
279
|
+
variant: {
|
|
280
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
281
|
+
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
282
|
+
};
|
|
283
|
+
size: {
|
|
284
|
+
type: PropType<SizeType>;
|
|
285
|
+
};
|
|
286
|
+
value: {
|
|
287
|
+
type: PropType<string | number>;
|
|
288
|
+
default: any;
|
|
289
|
+
};
|
|
290
|
+
name: StringConstructor;
|
|
291
|
+
type: {
|
|
292
|
+
type: PropType<"number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel">;
|
|
293
|
+
default: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
294
|
+
};
|
|
295
|
+
onCompositionend: PropType<CompositionEventHandler>;
|
|
296
|
+
onCompositionstart: PropType<CompositionEventHandler>;
|
|
297
|
+
onFocus: PropType<FocusEventHandler>;
|
|
298
|
+
onBlur: PropType<FocusEventHandler>;
|
|
299
|
+
onChange: PropType<ChangeEventHandler>;
|
|
300
|
+
onInput: PropType<ChangeEventHandler>;
|
|
301
|
+
onKeydown: PropType<KeyboardEventHandler>;
|
|
302
|
+
onKeyup: PropType<KeyboardEventHandler>;
|
|
303
|
+
onMousedown: {
|
|
304
|
+
type: PropType<MouseEventHandler>;
|
|
305
|
+
default: any;
|
|
306
|
+
};
|
|
307
|
+
focused: {
|
|
308
|
+
type: BooleanConstructor;
|
|
309
|
+
default: any;
|
|
310
|
+
};
|
|
311
|
+
hidden: {
|
|
312
|
+
type: BooleanConstructor;
|
|
313
|
+
default: any;
|
|
314
|
+
};
|
|
315
|
+
disabled: {
|
|
316
|
+
type: BooleanConstructor;
|
|
317
|
+
default: any;
|
|
318
|
+
};
|
|
319
|
+
prefixCls: StringConstructor;
|
|
320
|
+
id: StringConstructor;
|
|
321
|
+
readonly: {
|
|
322
|
+
type: BooleanConstructor;
|
|
323
|
+
default: any;
|
|
324
|
+
};
|
|
325
|
+
autofocus: {
|
|
326
|
+
type: BooleanConstructor;
|
|
327
|
+
default: any;
|
|
328
|
+
};
|
|
329
|
+
autocomplete: StringConstructor;
|
|
330
|
+
placeholder: {
|
|
331
|
+
type: PropType<string | number>;
|
|
332
|
+
};
|
|
333
|
+
lazy: {
|
|
334
|
+
type: BooleanConstructor;
|
|
335
|
+
default: boolean;
|
|
336
|
+
};
|
|
337
|
+
maxlength: NumberConstructor;
|
|
338
|
+
loading: {
|
|
339
|
+
type: BooleanConstructor;
|
|
340
|
+
default: any;
|
|
341
|
+
};
|
|
342
|
+
bordered: {
|
|
343
|
+
type: BooleanConstructor;
|
|
344
|
+
default: any;
|
|
345
|
+
};
|
|
346
|
+
showCount: {
|
|
347
|
+
type: PropType<boolean | ShowCountProps>;
|
|
348
|
+
};
|
|
349
|
+
htmlSize: NumberConstructor;
|
|
350
|
+
onPressEnter: PropType<KeyboardEventHandler>;
|
|
351
|
+
onMouseUp: {
|
|
352
|
+
type: PropType<MouseEventHandler>;
|
|
353
|
+
default: any;
|
|
354
|
+
};
|
|
355
|
+
onRawInput: PropType<ChangeEventHandler>;
|
|
356
|
+
'onUpdate:value': PropType<(val: string) => void>;
|
|
357
|
+
valueModifiers: ObjectConstructor;
|
|
358
|
+
status: PropType<"" | "error" | "warning">;
|
|
359
|
+
defaultValue: {
|
|
360
|
+
type: PropType<string | number>;
|
|
361
|
+
default: any;
|
|
362
|
+
};
|
|
363
|
+
inputElement: VueTypeValidableDef<any>;
|
|
364
|
+
triggerFocus: PropType<() => void>;
|
|
365
|
+
handleReset: PropType<MouseEventHandler>;
|
|
366
|
+
addonBefore: VueTypeValidableDef<any>;
|
|
367
|
+
addonAfter: VueTypeValidableDef<any>;
|
|
368
|
+
prefix: VueTypeValidableDef<any>;
|
|
369
|
+
suffix: VueTypeValidableDef<any>;
|
|
370
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
371
|
+
allowClear: {
|
|
372
|
+
type: BooleanConstructor;
|
|
373
|
+
default: any;
|
|
374
|
+
};
|
|
375
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
376
|
+
value: string | number;
|
|
377
|
+
type: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
378
|
+
onMousedown: MouseEventHandler;
|
|
379
|
+
focused: boolean;
|
|
380
|
+
hidden: boolean;
|
|
381
|
+
disabled: boolean;
|
|
382
|
+
readonly: boolean;
|
|
383
|
+
autofocus: boolean;
|
|
384
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
385
|
+
lazy: boolean;
|
|
386
|
+
loading: boolean;
|
|
387
|
+
bordered: boolean;
|
|
388
|
+
onMouseUp: MouseEventHandler;
|
|
389
|
+
defaultValue: string | number;
|
|
390
|
+
allowClear: boolean;
|
|
391
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
392
|
+
P: {};
|
|
393
|
+
B: {};
|
|
394
|
+
D: {};
|
|
395
|
+
C: {};
|
|
396
|
+
M: {};
|
|
397
|
+
Defaults: {};
|
|
398
|
+
}, Readonly< ExtractPropTypes<{
|
|
399
|
+
variant: {
|
|
400
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
401
|
+
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
402
|
+
};
|
|
403
|
+
size: {
|
|
404
|
+
type: PropType<SizeType>;
|
|
405
|
+
};
|
|
406
|
+
value: {
|
|
407
|
+
type: PropType<string | number>;
|
|
408
|
+
default: any;
|
|
409
|
+
};
|
|
410
|
+
name: StringConstructor;
|
|
411
|
+
type: {
|
|
412
|
+
type: PropType<"number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel">;
|
|
413
|
+
default: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
414
|
+
};
|
|
415
|
+
onCompositionend: PropType<CompositionEventHandler>;
|
|
416
|
+
onCompositionstart: PropType<CompositionEventHandler>;
|
|
417
|
+
onFocus: PropType<FocusEventHandler>;
|
|
418
|
+
onBlur: PropType<FocusEventHandler>;
|
|
419
|
+
onChange: PropType<ChangeEventHandler>;
|
|
420
|
+
onInput: PropType<ChangeEventHandler>;
|
|
421
|
+
onKeydown: PropType<KeyboardEventHandler>;
|
|
422
|
+
onKeyup: PropType<KeyboardEventHandler>;
|
|
423
|
+
onMousedown: {
|
|
424
|
+
type: PropType<MouseEventHandler>;
|
|
425
|
+
default: any;
|
|
426
|
+
};
|
|
427
|
+
focused: {
|
|
428
|
+
type: BooleanConstructor;
|
|
429
|
+
default: any;
|
|
430
|
+
};
|
|
431
|
+
hidden: {
|
|
432
|
+
type: BooleanConstructor;
|
|
433
|
+
default: any;
|
|
434
|
+
};
|
|
435
|
+
disabled: {
|
|
436
|
+
type: BooleanConstructor;
|
|
437
|
+
default: any;
|
|
438
|
+
};
|
|
439
|
+
prefixCls: StringConstructor;
|
|
440
|
+
id: StringConstructor;
|
|
441
|
+
readonly: {
|
|
442
|
+
type: BooleanConstructor;
|
|
443
|
+
default: any;
|
|
444
|
+
};
|
|
445
|
+
autofocus: {
|
|
446
|
+
type: BooleanConstructor;
|
|
447
|
+
default: any;
|
|
448
|
+
};
|
|
449
|
+
autocomplete: StringConstructor;
|
|
450
|
+
placeholder: {
|
|
451
|
+
type: PropType<string | number>;
|
|
452
|
+
};
|
|
453
|
+
lazy: {
|
|
454
|
+
type: BooleanConstructor;
|
|
455
|
+
default: boolean;
|
|
456
|
+
};
|
|
457
|
+
maxlength: NumberConstructor;
|
|
458
|
+
loading: {
|
|
459
|
+
type: BooleanConstructor;
|
|
460
|
+
default: any;
|
|
461
|
+
};
|
|
462
|
+
bordered: {
|
|
463
|
+
type: BooleanConstructor;
|
|
464
|
+
default: any;
|
|
465
|
+
};
|
|
466
|
+
showCount: {
|
|
467
|
+
type: PropType<boolean | ShowCountProps>;
|
|
468
|
+
};
|
|
469
|
+
htmlSize: NumberConstructor;
|
|
470
|
+
onPressEnter: PropType<KeyboardEventHandler>;
|
|
471
|
+
onMouseUp: {
|
|
472
|
+
type: PropType<MouseEventHandler>;
|
|
473
|
+
default: any;
|
|
474
|
+
};
|
|
475
|
+
onRawInput: PropType<ChangeEventHandler>;
|
|
476
|
+
'onUpdate:value': PropType<(val: string) => void>;
|
|
477
|
+
valueModifiers: ObjectConstructor;
|
|
478
|
+
status: PropType<"" | "error" | "warning">;
|
|
479
|
+
defaultValue: {
|
|
480
|
+
type: PropType<string | number>;
|
|
481
|
+
default: any;
|
|
482
|
+
};
|
|
483
|
+
inputElement: VueTypeValidableDef<any>;
|
|
484
|
+
triggerFocus: PropType<() => void>;
|
|
485
|
+
handleReset: PropType<MouseEventHandler>;
|
|
486
|
+
addonBefore: VueTypeValidableDef<any>;
|
|
487
|
+
addonAfter: VueTypeValidableDef<any>;
|
|
488
|
+
prefix: VueTypeValidableDef<any>;
|
|
489
|
+
suffix: VueTypeValidableDef<any>;
|
|
490
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
491
|
+
allowClear: {
|
|
492
|
+
type: BooleanConstructor;
|
|
493
|
+
default: any;
|
|
494
|
+
};
|
|
495
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
496
|
+
value: string | number;
|
|
497
|
+
type: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
498
|
+
onMousedown: MouseEventHandler;
|
|
499
|
+
focused: boolean;
|
|
500
|
+
hidden: boolean;
|
|
501
|
+
disabled: boolean;
|
|
502
|
+
readonly: boolean;
|
|
503
|
+
autofocus: boolean;
|
|
504
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
505
|
+
lazy: boolean;
|
|
506
|
+
loading: boolean;
|
|
507
|
+
bordered: boolean;
|
|
508
|
+
onMouseUp: MouseEventHandler;
|
|
509
|
+
defaultValue: string | number;
|
|
510
|
+
allowClear: boolean;
|
|
511
|
+
}> | null;
|
|
512
|
+
}, any>;
|
|
38
513
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
39
514
|
export default _default;
|
|
40
515
|
type __VLS_WithTemplateSlots<T, S> = T & {
|