@aplus-frontend/ui 7.7.2 → 7.7.4
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 +62 -60
- package/es/src/ap-field/checkbox/index.vue.mjs +18 -8
- package/es/src/ap-field/number/index.vue.mjs +19 -19
- 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.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.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.mjs +10 -10
- package/es/src/ap-form/items/radio/index.vue.mjs +3 -3
- 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.mjs +7 -7
- package/es/src/ap-form/search-form/index.vue.mjs +63 -63
- package/es/src/ap-form/style/item.mjs +17 -10
- package/es/src/ap-list/index.vue.mjs +6 -6
- package/es/src/ap-table/constants.d.ts +1 -1
- package/es/src/business/ap-descriptions/index.d.ts +1 -0
- package/es/src/business/ap-descriptions/index.mjs +4 -0
- package/es/src/business/ap-value-select-card/style/index.mjs +1 -1
- 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/editable-table/style/index.mjs +5 -5
- package/es/src/index.mjs +46 -44
- 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/index.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/number/index.vue.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.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.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.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- 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.js +1 -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 +1 -1
- package/lib/src/business/ap-descriptions/index.d.ts +1 -0
- package/lib/src/business/ap-descriptions/index.js +1 -1
- package/lib/src/business/ap-value-select-card/style/index.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/editable-table/style/index.js +1 -1
- package/lib/src/index.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 +3 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Form as
|
|
3
|
-
import { useToken as
|
|
4
|
-
import { isFunction as
|
|
5
|
-
import { apFormItemColPropKeys as
|
|
1
|
+
import { defineComponent as L, useSlots as _, ref as j, shallowRef as E, onMounted as M, computed as O, unref as r, cloneVNode as $, createBlock as y, openBlock as b, mergeProps as q, createSlots as K, withCtx as i, resolveDynamicComponent as Q, renderList as U, createElementVNode as Y, normalizeClass as G, createVNode as f, normalizeStyle as H, renderSlot as J, normalizeProps as W, guardReactiveProps as X } from "vue";
|
|
2
|
+
import { Form as Z, Tooltip as ee, TypographyText as oe } from "@aplus-frontend/antdv";
|
|
3
|
+
import { useToken as te } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
|
+
import { isFunction as v, cloneDeep as re, isArray as le, omit as F } from "lodash-unified";
|
|
5
|
+
import { apFormItemColPropKeys as ae } from "../constant.mjs";
|
|
6
6
|
import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
|
-
import { useInjectForm as
|
|
9
|
-
import { getValidVNodeList as
|
|
10
|
-
import
|
|
11
|
-
import { isPromise as
|
|
12
|
-
import { useNamespace as
|
|
13
|
-
const
|
|
8
|
+
import { useInjectForm as ie } from "../context.mjs";
|
|
9
|
+
import { getValidVNodeList as se } from "../../utils/slot.mjs";
|
|
10
|
+
import ue from "../style/item.mjs";
|
|
11
|
+
import { isPromise as de } from "../../utils/is.mjs";
|
|
12
|
+
import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
13
|
+
const ke = /* @__PURE__ */ L({
|
|
14
14
|
name: "ApFormItem",
|
|
15
15
|
__name: "index",
|
|
16
16
|
props: {
|
|
@@ -57,111 +57,111 @@ const Ce = /* @__PURE__ */ _({
|
|
|
57
57
|
customFilled: {},
|
|
58
58
|
disabled: { type: Boolean }
|
|
59
59
|
},
|
|
60
|
-
setup(
|
|
61
|
-
const o =
|
|
62
|
-
|
|
63
|
-
let e =
|
|
64
|
-
|
|
60
|
+
setup(V, { expose: h }) {
|
|
61
|
+
const o = V, m = _(), { model: p, updateModel: g, internalInstance: B } = ie(), { m: u, b: C } = fe("ap-form-item"), k = ue("ap-form-item"), d = j(!1), n = E(), [, P] = te();
|
|
62
|
+
M(async () => {
|
|
63
|
+
let e = v(o.initialValue) ? o.initialValue() : o.initialValue;
|
|
64
|
+
de(e) && (e = await e), B?.registerField({
|
|
65
65
|
name: o.name,
|
|
66
|
-
initialValue:
|
|
66
|
+
initialValue: re(e),
|
|
67
67
|
transform: o.transform
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
|
-
const c =
|
|
71
|
-
function
|
|
72
|
-
const l = Object.keys(t),
|
|
70
|
+
const c = O(() => o.name ? le(o.name) ? o.name.reduce((e, t) => e?.[t], r(p)) : p?.value[o.name] : null);
|
|
71
|
+
function x(e, t) {
|
|
72
|
+
const l = Object.keys(t), a = { ...t };
|
|
73
73
|
return l.forEach((s) => {
|
|
74
|
-
s in e || delete
|
|
75
|
-
}),
|
|
74
|
+
s in e || delete a[s];
|
|
75
|
+
}), a;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function N() {
|
|
78
78
|
const e = m.default?.() || [];
|
|
79
79
|
if (!o.name)
|
|
80
80
|
return e[0];
|
|
81
|
-
const t =
|
|
81
|
+
const t = se(e)[0];
|
|
82
82
|
if (!t)
|
|
83
83
|
return null;
|
|
84
|
-
const l = t?.type?.props ?? {},
|
|
84
|
+
const l = t?.type?.props ?? {}, a = {
|
|
85
85
|
variant: o.bordered ? "borderless" : t?.props?.variant,
|
|
86
86
|
bordered: o.bordered ? !1 : t?.props?.bordered,
|
|
87
|
-
onFocus:
|
|
88
|
-
onBlur:
|
|
87
|
+
onFocus: S,
|
|
88
|
+
onBlur: T
|
|
89
89
|
};
|
|
90
|
-
return
|
|
91
|
-
...
|
|
90
|
+
return $(t, {
|
|
91
|
+
...x(l, a),
|
|
92
92
|
[o.valuePropName]: r(c),
|
|
93
|
-
[`onUpdate:${o.valuePropName}`]:
|
|
93
|
+
[`onUpdate:${o.valuePropName}`]: I
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
|
|
96
|
+
function I(e) {
|
|
97
|
+
g?.(o.name, e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function S() {
|
|
100
100
|
d.value = !0;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function T() {
|
|
103
103
|
d.value = !1;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
|
|
105
|
+
function w() {
|
|
106
|
+
n.value?.onFieldBlur();
|
|
107
107
|
}
|
|
108
108
|
function R() {
|
|
109
|
-
|
|
109
|
+
n.value?.onFieldChange();
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
|
|
111
|
+
function z() {
|
|
112
|
+
n.value?.clearValidate();
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
114
|
+
function A() {
|
|
115
|
+
n.value?.resetField();
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function D(e = !1) {
|
|
118
118
|
const t = r(c);
|
|
119
119
|
if (!e || !o.transform)
|
|
120
120
|
return t;
|
|
121
|
-
const l =
|
|
121
|
+
const l = v(o.transform) ? o.transform : o.transform.transformer;
|
|
122
122
|
return o.transform ? l(t) : t;
|
|
123
123
|
}
|
|
124
124
|
return h({
|
|
125
|
-
onFieldBlur:
|
|
125
|
+
onFieldBlur: w,
|
|
126
126
|
onFieldChange: R,
|
|
127
|
-
clearValidate:
|
|
128
|
-
resetField:
|
|
129
|
-
getFieldValue:
|
|
130
|
-
}), (e, t) => (
|
|
127
|
+
clearValidate: z,
|
|
128
|
+
resetField: A,
|
|
129
|
+
getFieldValue: D
|
|
130
|
+
}), (e, t) => (b(), y(r(Z).Item, q(
|
|
131
131
|
{
|
|
132
132
|
ref_key: "formItemRef",
|
|
133
|
-
ref:
|
|
133
|
+
ref: n
|
|
134
134
|
},
|
|
135
|
-
r(
|
|
135
|
+
r(F)(o, [...r(ae), "tooltip", "label", "description"]),
|
|
136
136
|
{
|
|
137
137
|
class: {
|
|
138
138
|
[r(u)("bordered")]: e.bordered,
|
|
139
139
|
[r(u)("focused")]: e.bordered && d.value,
|
|
140
140
|
[r(u)("disabled")]: e.bordered && e.disabled,
|
|
141
|
-
[r(
|
|
142
|
-
[r(
|
|
141
|
+
[r(C)()]: !0,
|
|
142
|
+
[r(k)]: !0
|
|
143
143
|
},
|
|
144
144
|
colon: e.bordered ? !1 : o.colon
|
|
145
145
|
}
|
|
146
|
-
),
|
|
146
|
+
), K({
|
|
147
147
|
default: i(() => [
|
|
148
|
-
(
|
|
148
|
+
(b(), y(Q(N())))
|
|
149
149
|
]),
|
|
150
150
|
_: 2
|
|
151
151
|
}, [
|
|
152
152
|
o.tooltip ? {
|
|
153
153
|
name: "tooltip",
|
|
154
154
|
fn: i(({ class: l }) => [
|
|
155
|
-
|
|
156
|
-
class:
|
|
155
|
+
Y("span", {
|
|
156
|
+
class: G(l)
|
|
157
157
|
}, [
|
|
158
|
-
f(r(
|
|
158
|
+
f(r(ee), {
|
|
159
159
|
title: o.tooltip
|
|
160
160
|
}, {
|
|
161
161
|
default: i(() => [
|
|
162
162
|
f(r(ne), {
|
|
163
|
-
style:
|
|
164
|
-
color: r(
|
|
163
|
+
style: H({
|
|
164
|
+
color: r(P).colorTextTertiary,
|
|
165
165
|
fontSize: "14px",
|
|
166
166
|
transform: "translateY(1px)"
|
|
167
167
|
})
|
|
@@ -176,7 +176,7 @@ const Ce = /* @__PURE__ */ _({
|
|
|
176
176
|
e.label ? {
|
|
177
177
|
name: "label",
|
|
178
178
|
fn: i(() => [
|
|
179
|
-
f(r(
|
|
179
|
+
f(r(oe), {
|
|
180
180
|
content: e.label,
|
|
181
181
|
ellipsis: { tooltip: e.label },
|
|
182
182
|
style: { "min-width": "0px", flex: "1" }
|
|
@@ -184,15 +184,15 @@ const Ce = /* @__PURE__ */ _({
|
|
|
184
184
|
]),
|
|
185
185
|
key: "1"
|
|
186
186
|
} : void 0,
|
|
187
|
-
|
|
188
|
-
name:
|
|
187
|
+
U(r(F)(m, "default"), (l, a) => ({
|
|
188
|
+
name: a,
|
|
189
189
|
fn: i((s) => [
|
|
190
|
-
|
|
190
|
+
J(e.$slots, a, W(X(s || {})))
|
|
191
191
|
])
|
|
192
192
|
}))
|
|
193
193
|
]), 1040, ["class", "colon"]));
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
196
|
export {
|
|
197
|
-
|
|
197
|
+
ke as default
|
|
198
198
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, useSlots as B,
|
|
1
|
+
import { defineComponent as y, useSlots as B, shallowRef as _, createBlock as g, openBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as d, withCtx as n, createVNode as k, mergeProps as F, renderList as i, renderSlot as u } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/number/index.vue2.mjs";
|
|
4
4
|
import { omit as f, pick as N } from "lodash-unified";
|
|
@@ -55,26 +55,26 @@ const T = /* @__PURE__ */ y({
|
|
|
55
55
|
placeholder: {}
|
|
56
56
|
},
|
|
57
57
|
setup(c, { expose: b }) {
|
|
58
|
-
const h = c, p = B(),
|
|
58
|
+
const h = c, p = B(), a = _();
|
|
59
59
|
return b({
|
|
60
60
|
focus: () => {
|
|
61
|
-
|
|
61
|
+
a.value?.focus();
|
|
62
62
|
},
|
|
63
63
|
blur: () => {
|
|
64
|
-
|
|
64
|
+
a.value?.blur();
|
|
65
65
|
}
|
|
66
|
-
}), (e,
|
|
66
|
+
}), (e, $) => (x(), g(S, t(s(l(f)(h, ["field", "placeholder"]))), d({
|
|
67
67
|
default: n(() => [
|
|
68
68
|
k(C, F({
|
|
69
69
|
ref_key: "inputNumberRef",
|
|
70
|
-
ref:
|
|
70
|
+
ref: a,
|
|
71
71
|
placeholder: e.placeholder,
|
|
72
72
|
disabled: e.disabled
|
|
73
73
|
}, e.field), d({ _: 2 }, [
|
|
74
74
|
i(l(f)(p, l(m)), (v, o) => ({
|
|
75
75
|
name: o,
|
|
76
|
-
fn: n((
|
|
77
|
-
u(e.$slots, o, t(s(
|
|
76
|
+
fn: n((r) => [
|
|
77
|
+
u(e.$slots, o, t(s(r || {})))
|
|
78
78
|
])
|
|
79
79
|
}))
|
|
80
80
|
]), 1040, ["placeholder", "disabled"])
|
|
@@ -83,8 +83,8 @@ const T = /* @__PURE__ */ y({
|
|
|
83
83
|
}, [
|
|
84
84
|
i(l(N)(p, l(m)), (v, o) => ({
|
|
85
85
|
name: o,
|
|
86
|
-
fn: n((
|
|
87
|
-
u(e.$slots, o, t(s(
|
|
86
|
+
fn: n((r) => [
|
|
87
|
+
u(e.$slots, o, t(s(r || {})))
|
|
88
88
|
])
|
|
89
89
|
}))
|
|
90
90
|
]), 1040));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, useSlots as m,
|
|
1
|
+
import { defineComponent as u, useSlots as m, shallowRef as c, createBlock as b, openBlock as v, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as _, withCtx as s, createVNode as y, mergeProps as B, renderList as x, renderSlot as g } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as h } from "lodash-unified";
|
|
@@ -60,7 +60,7 @@ const q = /* @__PURE__ */ u({
|
|
|
60
60
|
blur: () => {
|
|
61
61
|
e.value?.blur();
|
|
62
62
|
}
|
|
63
|
-
}), (o,
|
|
63
|
+
}), (o, S) => (v(), b(k, a(t(r(h)(d, ["field"]))), _({
|
|
64
64
|
default: s(() => [
|
|
65
65
|
y(r(C), B({
|
|
66
66
|
ref_key: "radioRef",
|
|
@@ -70,7 +70,7 @@ const q = /* @__PURE__ */ u({
|
|
|
70
70
|
]),
|
|
71
71
|
_: 2
|
|
72
72
|
}, [
|
|
73
|
-
x(p, (
|
|
73
|
+
x(p, (P, l) => ({
|
|
74
74
|
name: l,
|
|
75
75
|
fn: s((f) => [
|
|
76
76
|
g(o.$slots, l, a(t(f || {})))
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as y, useSlots as B,
|
|
1
|
+
import { defineComponent as y, useSlots as B, shallowRef as x, computed as g, createBlock as S, openBlock as F, normalizeProps as a, guardReactiveProps as s, unref as o, createSlots as p, withCtx as d, createVNode as k, mergeProps as C, renderList as u, renderSlot as f } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as P, omit as c, pick as q } from "lodash-unified";
|
|
5
5
|
import { apFormItemSlotNames as m } from "../../constant.mjs";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import R from "../../item/index.vue.mjs";
|
|
7
|
+
import $ from "../../../ap-field/select/index.vue.mjs";
|
|
8
8
|
const E = /* @__PURE__ */ y({
|
|
9
9
|
name: "ApFormItemSelect",
|
|
10
10
|
__name: "index",
|
|
@@ -71,9 +71,9 @@ const E = /* @__PURE__ */ y({
|
|
|
71
71
|
request: () => {
|
|
72
72
|
r.value?.request();
|
|
73
73
|
}
|
|
74
|
-
}), (i, A) => (F(), S(
|
|
74
|
+
}), (i, A) => (F(), S(R, a(s(o(c)(e, ["field", "placeholder"]))), p({
|
|
75
75
|
default: d(() => [
|
|
76
|
-
k(o(
|
|
76
|
+
k(o($), C(v.value, {
|
|
77
77
|
ref_key: "selectRef",
|
|
78
78
|
ref: r
|
|
79
79
|
}), p({ _: 2 }, [
|
|
@@ -140,7 +140,7 @@ declare function __VLS_template(): {
|
|
|
140
140
|
allowClear: boolean;
|
|
141
141
|
}> & Omit<Readonly< ApFieldTextProps> & Readonly<{
|
|
142
142
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
143
|
-
}>, "blur" | "focus" | "input" | "select" | ("type" | "mode" | "disabled" | "bordered" | "emptyText" | "lazy" | "allowClear")
|
|
143
|
+
}>, "blur" | "focus" | "input" | "select" | "setSelectionRange" | ("type" | "mode" | "disabled" | "bordered" | "emptyText" | "lazy" | "allowClear")> & ShallowUnwrapRef<{
|
|
144
144
|
focus: (options?: InputFocusOptions) => void;
|
|
145
145
|
blur: () => void;
|
|
146
146
|
input: any;
|
|
@@ -297,7 +297,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
|
|
|
297
297
|
allowClear: boolean;
|
|
298
298
|
}> & Omit<Readonly< ApFieldTextProps> & Readonly<{
|
|
299
299
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
300
|
-
}>, "blur" | "focus" | "input" | "select" | ("type" | "mode" | "disabled" | "bordered" | "emptyText" | "lazy" | "allowClear")
|
|
300
|
+
}>, "blur" | "focus" | "input" | "select" | "setSelectionRange" | ("type" | "mode" | "disabled" | "bordered" | "emptyText" | "lazy" | "allowClear")> & ShallowUnwrapRef<{
|
|
301
301
|
focus: (options?: InputFocusOptions) => void;
|
|
302
302
|
blur: () => void;
|
|
303
303
|
input: any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as x,
|
|
1
|
+
import { defineComponent as B, useSlots as x, shallowRef as S, computed as _, createBlock as F, openBlock as R, normalizeProps as s, guardReactiveProps as n, unref as l, createSlots as u, withCtx as p, createVNode as k, mergeProps as C, renderList as f, renderSlot as c } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import { ApField as P } from "../../../ap-field/index.mjs";
|
|
4
|
-
import { omit as m, pick as
|
|
4
|
+
import { omit as m, pick as w } from "lodash-unified";
|
|
5
5
|
import { apFormItemSlotNames as v } from "../../constant.mjs";
|
|
6
|
-
import
|
|
6
|
+
import A from "../../item/index.vue.mjs";
|
|
7
7
|
const E = /* @__PURE__ */ B({
|
|
8
8
|
name: "ApFormItemText",
|
|
9
9
|
__name: "index",
|
|
@@ -69,9 +69,9 @@ const E = /* @__PURE__ */ B({
|
|
|
69
69
|
o.value?.select();
|
|
70
70
|
},
|
|
71
71
|
input: _(() => o.value?.input)
|
|
72
|
-
}), (e, d) => (
|
|
72
|
+
}), (e, d) => (R(), F(A, s(n(l(m)(y, ["field", "placeholder"]))), u({
|
|
73
73
|
default: p(() => [
|
|
74
|
-
|
|
74
|
+
k(l(g), C({
|
|
75
75
|
ref_key: "inputRef",
|
|
76
76
|
ref: o,
|
|
77
77
|
disabled: e.disabled,
|
|
@@ -87,7 +87,7 @@ const E = /* @__PURE__ */ B({
|
|
|
87
87
|
]),
|
|
88
88
|
_: 2
|
|
89
89
|
}, [
|
|
90
|
-
f(l(
|
|
90
|
+
f(l(w)(i, l(v)), (a, t) => ({
|
|
91
91
|
name: t,
|
|
92
92
|
fn: p((r) => [
|
|
93
93
|
c(e.$slots, t, s(n(r || {})))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as _,
|
|
1
|
+
import { defineComponent as B, useSlots as _, shallowRef as g, createBlock as x, openBlock as F, normalizeProps as t, guardReactiveProps as s, unref as e, createSlots as n, withCtx as d, createVNode as k, mergeProps as w, renderList as i, renderSlot as f } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
|
-
import { ApField as
|
|
4
|
-
import { omit as u, pick as
|
|
3
|
+
import { ApField as P } from "../../../ap-field/index.mjs";
|
|
4
|
+
import { omit as u, pick as S } from "lodash-unified";
|
|
5
5
|
import { apFormItemSlotNames as m } from "../../constant.mjs";
|
|
6
6
|
import C from "../../item/index.vue.mjs";
|
|
7
7
|
const z = /* @__PURE__ */ B({
|
|
@@ -54,7 +54,7 @@ const z = /* @__PURE__ */ B({
|
|
|
54
54
|
placeholder: {}
|
|
55
55
|
},
|
|
56
56
|
setup(c, { expose: b }) {
|
|
57
|
-
const { Text: h } =
|
|
57
|
+
const { Text: h } = P, p = _(), v = c, a = g();
|
|
58
58
|
return b({
|
|
59
59
|
focus: () => {
|
|
60
60
|
a.value?.focus();
|
|
@@ -62,9 +62,9 @@ const z = /* @__PURE__ */ B({
|
|
|
62
62
|
blur: () => {
|
|
63
63
|
a.value?.blur();
|
|
64
64
|
}
|
|
65
|
-
}), (o,
|
|
65
|
+
}), (o, N) => (F(), x(C, t(s(e(u)(v, ["field", "disabled", "placeholder"]))), n({
|
|
66
66
|
default: d(() => [
|
|
67
|
-
k(e(h).Password,
|
|
67
|
+
k(e(h).Password, w({
|
|
68
68
|
ref_key: "inputRef",
|
|
69
69
|
ref: a,
|
|
70
70
|
disabled: o.disabled,
|
|
@@ -80,7 +80,7 @@ const z = /* @__PURE__ */ B({
|
|
|
80
80
|
]),
|
|
81
81
|
_: 2
|
|
82
82
|
}, [
|
|
83
|
-
i(e(
|
|
83
|
+
i(e(S)(p, e(m)), (y, l) => ({
|
|
84
84
|
name: l,
|
|
85
85
|
fn: d((r) => [
|
|
86
86
|
f(o.$slots, l, t(s(r || {})))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, useSlots as c,
|
|
1
|
+
import { defineComponent as m, useSlots as c, shallowRef as b, computed as x, createBlock as h, openBlock as v, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as y, withCtx as s, createVNode as B, mergeProps as A, renderList as g, renderSlot as _ } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import { ApField as F } from "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as k } from "lodash-unified";
|
|
@@ -61,9 +61,9 @@ const $ = /* @__PURE__ */ m({
|
|
|
61
61
|
l.value?.blur();
|
|
62
62
|
},
|
|
63
63
|
resizableTextArea: x(() => l.value?.resizableTextArea)
|
|
64
|
-
}), (e, P) => (v(), h(C, a(r(
|
|
64
|
+
}), (e, P) => (v(), h(C, a(t(r(k)(u, ["field", "placeholder"]))), y({
|
|
65
65
|
default: s(() => [
|
|
66
|
-
B(
|
|
66
|
+
B(r(n), A({
|
|
67
67
|
ref_key: "textAreaRef",
|
|
68
68
|
ref: l,
|
|
69
69
|
disabled: e.disabled,
|
|
@@ -72,10 +72,10 @@ const $ = /* @__PURE__ */ m({
|
|
|
72
72
|
]),
|
|
73
73
|
_: 2
|
|
74
74
|
}, [
|
|
75
|
-
g(p, (
|
|
75
|
+
g(p, (R, o) => ({
|
|
76
76
|
name: o,
|
|
77
77
|
fn: s((f) => [
|
|
78
|
-
_(e.$slots, o, a(
|
|
78
|
+
_(e.$slots, o, a(t(f || {})))
|
|
79
79
|
])
|
|
80
80
|
}))
|
|
81
81
|
]), 1040));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as x,
|
|
1
|
+
import { defineComponent as B, useSlots as x, shallowRef as S, computed as g, createBlock as F, openBlock as k, normalizeProps as s, guardReactiveProps as d, unref as o, createSlots as u, withCtx as n, createVNode as C, mergeProps as P, renderList as f, renderSlot as c } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
|
-
import { isUndefined as q, omit as m, pick as
|
|
4
|
+
import { isUndefined as q, omit as m, pick as R } from "lodash-unified";
|
|
5
5
|
import { apFormItemSlotNames as b } from "../../constant.mjs";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import $ from "../../item/index.vue.mjs";
|
|
7
|
+
import w from "../../../ap-field/tree-select/index.vue.mjs";
|
|
8
8
|
const E = /* @__PURE__ */ B({
|
|
9
9
|
name: "ApFormItemTreeSelect",
|
|
10
10
|
__name: "index",
|
|
@@ -71,9 +71,9 @@ const E = /* @__PURE__ */ B({
|
|
|
71
71
|
request: (t, p) => {
|
|
72
72
|
r.value?.request(t, p);
|
|
73
73
|
}
|
|
74
|
-
}), (t, p) => (k(), F(
|
|
74
|
+
}), (t, p) => (k(), F($, s(d(o(m)(e, ["field", "placeholder"]))), u({
|
|
75
75
|
default: n(() => [
|
|
76
|
-
C(o(
|
|
76
|
+
C(o(w), P(h.value, {
|
|
77
77
|
ref_key: "treeSelectRef",
|
|
78
78
|
ref: r
|
|
79
79
|
}), u({ _: 2 }, [
|
|
@@ -87,7 +87,7 @@ const E = /* @__PURE__ */ B({
|
|
|
87
87
|
]),
|
|
88
88
|
_: 2
|
|
89
89
|
}, [
|
|
90
|
-
f(o(
|
|
90
|
+
f(o(R)(i, o(b)), (y, l) => ({
|
|
91
91
|
name: l,
|
|
92
92
|
fn: n((a) => [
|
|
93
93
|
c(t.$slots, l, s(d(a || {})))
|