@aplus-frontend/ui 0.0.30 → 0.0.31
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/date-range/index.vue.mjs +15 -15
- package/es/src/ap-form/ap-form-item.vue.mjs +11 -10
- package/es/src/ap-form/interface.d.ts +4 -0
- package/es/src/ap-form/items/checkbox/index.vue.mjs +11 -10
- package/es/src/ap-form/items/date/index.vue.mjs +6 -5
- package/es/src/ap-form/items/date-range/index.vue.mjs +7 -6
- package/es/src/ap-form/items/number/index.vue.mjs +7 -6
- package/es/src/ap-form/items/radio/index.vue.mjs +4 -3
- package/es/src/ap-form/items/select/index.vue.mjs +8 -7
- package/es/src/ap-form/items/switch/index.vue.mjs +7 -6
- package/es/src/ap-form/items/text/index.vue2.mjs +6 -5
- package/es/src/ap-form/items/text/password.vue.mjs +4 -3
- package/es/src/ap-form/items/text-area/index.vue.mjs +7 -6
- package/es/src/ap-form/search-form/index.vue.mjs +82 -79
- package/es/src/ap-form/search-form/utils.d.ts +5 -0
- package/es/src/ap-form/search-form/utils.mjs +35 -0
- package/es/src/ap-table/ap-table.vue.mjs +84 -81
- package/es/src/ap-table/constants.d.ts +132 -0
- package/es/src/editable-table/hooks/use-get-columns.mjs +26 -25
- package/es/src/editable-table/style/index.css +7 -1
- package/es/src/editable-table/utils.d.ts +1 -0
- package/es/src/editable-table/utils.mjs +31 -22
- package/es/src/theme/editable-table/index.css +7 -1
- package/es/src/transition/create-transition.mjs +34 -34
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +4 -0
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/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/switch/index.vue.js +1 -1
- 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/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/utils.d.ts +5 -0
- package/lib/src/ap-form/search-form/utils.js +1 -0
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +132 -0
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/style/index.css +7 -1
- package/lib/src/editable-table/utils.d.ts +1 -0
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/theme/editable-table/index.css +7 -1
- package/lib/src/transition/create-transition.js +1 -1
- package/package.json +1 -1
|
@@ -101,8 +101,8 @@ const fe = /* @__PURE__ */ x({
|
|
|
101
101
|
const e = t(p);
|
|
102
102
|
if (S(e) || !(e != null && e.length))
|
|
103
103
|
return e;
|
|
104
|
-
const
|
|
105
|
-
return
|
|
104
|
+
const n = o.timezone ? M(t(p)[0], o.timezone) : (l = t(p)) == null ? void 0 : l[0], a = o.timezone ? M(t(p)[1], o.timezone) : (d = t(p)) == null ? void 0 : d[1];
|
|
105
|
+
return [u(n), u(a)];
|
|
106
106
|
}), A = c(() => t(i) ? o.picker ?? Z[o.format] : o.picker), F = c(() => {
|
|
107
107
|
const e = t(i) ? q[o.format] : {};
|
|
108
108
|
return {
|
|
@@ -124,31 +124,31 @@ const fe = /* @__PURE__ */ x({
|
|
|
124
124
|
h(e);
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
|
-
let
|
|
128
|
-
|
|
129
|
-
m(
|
|
130
|
-
m(
|
|
131
|
-
]) : h([D(
|
|
127
|
+
let n = f(e[0]) ? u(e[0]) : e[0], a = f(e[1]) ? u(e[1]) : e[1];
|
|
128
|
+
t(i) ? h([
|
|
129
|
+
m(n, t(r)),
|
|
130
|
+
m(a, t(r), !1)
|
|
131
|
+
]) : h([D(n), D(a)]);
|
|
132
132
|
}
|
|
133
133
|
function E(e) {
|
|
134
134
|
var s;
|
|
135
|
-
const
|
|
135
|
+
const n = f(e[0]) ? u(e[0]) : e[0], a = f(e[1]) ? u(e[1]) : e[1], l = e[0] ? t(i) ? m(n, t(r)) : n.valueOf() : null, d = e[1] ? t(i) ? m(a, t(r), !1) : a.valueOf() : null;
|
|
136
136
|
(s = o.onOk) == null || s.call(o, [l, d]);
|
|
137
137
|
}
|
|
138
|
-
function N(e,
|
|
138
|
+
function N(e, n) {
|
|
139
139
|
var y, P;
|
|
140
140
|
if (S(e)) {
|
|
141
|
-
(y = o.onChange) == null || y.call(o, e,
|
|
141
|
+
(y = o.onChange) == null || y.call(o, e, n);
|
|
142
142
|
return;
|
|
143
143
|
}
|
|
144
|
-
const
|
|
145
|
-
(P = o.onChange) == null || P.call(o, [d, s],
|
|
144
|
+
const a = f(e[0]) ? u(e[0]) : e[0], l = f(e[1]) ? u(e[1]) : e[1], d = e[0] ? t(i) ? m(a, t(r)) : a.valueOf() : null, s = e[1] ? t(i) ? m(l, t(r), !1) : l.valueOf() : null;
|
|
145
|
+
(P = o.onChange) == null || P.call(o, [d, s], n);
|
|
146
146
|
}
|
|
147
|
-
return (e,
|
|
148
|
-
var
|
|
147
|
+
return (e, n) => {
|
|
148
|
+
var a, l;
|
|
149
149
|
return e.mode === "read" ? (g(), k(B, { key: 0 }, [
|
|
150
150
|
v.value ? (g(), k(B, { key: 0 }, [
|
|
151
|
-
O(C((
|
|
151
|
+
O(C((a = v.value[0]) == null ? void 0 : a.format(r.value)) + " ", 1),
|
|
152
152
|
T(e.$slots, "readModeSeparator", {}, () => [
|
|
153
153
|
V(t(Q))
|
|
154
154
|
]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, useSlots as D, ref as f, onMounted as E, computed as
|
|
1
|
+
import { defineComponent as q, useSlots as D, ref as f, onMounted as E, computed as g, unref as t, watch as K, cloneVNode as O, openBlock as h, createBlock as C, mergeProps as Q, createSlots as U, withCtx as i, resolveDynamicComponent as w, createCommentVNode as G, createElementVNode as H, normalizeClass as J, createVNode as V, normalizeStyle as M, renderList as W, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
|
|
2
2
|
import { Form as ee, Tooltip as oe } from "ant-design-vue";
|
|
3
3
|
import { useToken as te } from "ant-design-vue/es/theme/internal";
|
|
4
4
|
import { isArray as le, omit as k } from "lodash-unified";
|
|
@@ -48,7 +48,8 @@ const be = /* @__PURE__ */ q({
|
|
|
48
48
|
flex: {},
|
|
49
49
|
bordered: { type: Boolean, default: !1 },
|
|
50
50
|
valuePropName: { default: "value" },
|
|
51
|
-
initialValue: {}
|
|
51
|
+
initialValue: {},
|
|
52
|
+
_signal: {}
|
|
52
53
|
},
|
|
53
54
|
setup(N, { expose: P }) {
|
|
54
55
|
var F, b;
|
|
@@ -59,7 +60,7 @@ const be = /* @__PURE__ */ q({
|
|
|
59
60
|
initialValue: o.initialValue
|
|
60
61
|
});
|
|
61
62
|
});
|
|
62
|
-
const c =
|
|
63
|
+
const c = g(() => o.name ? le(o.name) ? o.name.reduce((e, a) => e == null ? void 0 : e[a], t(u)) : u == null ? void 0 : u.value[o.name] : null), v = f((b = (F = l.default) == null ? void 0 : F.call(l)) == null ? void 0 : b[0]);
|
|
63
64
|
K(
|
|
64
65
|
() => {
|
|
65
66
|
var e;
|
|
@@ -69,25 +70,25 @@ const be = /* @__PURE__ */ q({
|
|
|
69
70
|
v.value = e == null ? void 0 : e[0];
|
|
70
71
|
}
|
|
71
72
|
);
|
|
72
|
-
function
|
|
73
|
+
function _(e) {
|
|
73
74
|
d == null || d(o.name, e);
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
+
function I() {
|
|
76
77
|
m.value = !0;
|
|
77
78
|
}
|
|
78
79
|
function z() {
|
|
79
80
|
m.value = !1;
|
|
80
81
|
}
|
|
81
|
-
const y =
|
|
82
|
+
const y = g(() => {
|
|
82
83
|
var a, n;
|
|
83
84
|
if (!o.name)
|
|
84
85
|
return (a = l.default()) == null ? void 0 : a[0];
|
|
85
86
|
const e = t(v);
|
|
86
87
|
return e ? O(e, {
|
|
87
88
|
[o.valuePropName]: t(c),
|
|
88
|
-
[`onUpdate:${o.valuePropName}`]:
|
|
89
|
+
[`onUpdate:${o.valuePropName}`]: _,
|
|
89
90
|
bordered: o.bordered ? !1 : (n = e == null ? void 0 : e.props) == null ? void 0 : n.bordered,
|
|
90
|
-
onFocus:
|
|
91
|
+
onFocus: I,
|
|
91
92
|
onBlur: z
|
|
92
93
|
}) : null;
|
|
93
94
|
});
|
|
@@ -116,7 +117,7 @@ const be = /* @__PURE__ */ q({
|
|
|
116
117
|
clearValidate: T,
|
|
117
118
|
resetField: L,
|
|
118
119
|
getFieldValue: $
|
|
119
|
-
}), (e, a) => (
|
|
120
|
+
}), (e, a) => (h(), C(t(ee).Item, Q({
|
|
120
121
|
ref_key: "formItemRef",
|
|
121
122
|
ref: r
|
|
122
123
|
}, t(k)(o, [...t(re), "tooltip"]), {
|
|
@@ -128,7 +129,7 @@ const be = /* @__PURE__ */ q({
|
|
|
128
129
|
colon: e.bordered ? !1 : o.colon
|
|
129
130
|
}), U({
|
|
130
131
|
default: i(() => [
|
|
131
|
-
y.value ? (
|
|
132
|
+
y.value ? (h(), C(w(y.value), { key: 0 })) : G("", !0)
|
|
132
133
|
]),
|
|
133
134
|
_: 2
|
|
134
135
|
}, [
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as f, useSlots as m, openBlock as u, createBlock as c, normalizeProps as a, guardReactiveProps as t, unref as l, createSlots as b, withCtx as r, createVNode as B, mergeProps as
|
|
1
|
+
import { defineComponent as f, useSlots as m, openBlock as u, createBlock as c, normalizeProps as a, guardReactiveProps as t, unref as l, createSlots as b, withCtx as r, createVNode as B, mergeProps as _, renderList as x, renderSlot as y } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
|
-
import { omit as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import { omit as i } from "lodash-unified";
|
|
5
|
+
import g from "../../ap-form-item.vue.mjs";
|
|
6
|
+
import h from "../../../ap-field/checkbox/index.vue.mjs";
|
|
7
7
|
const w = /* @__PURE__ */ f({
|
|
8
8
|
name: "ApFormItemCheckbox",
|
|
9
9
|
__name: "index",
|
|
@@ -44,21 +44,22 @@ const w = /* @__PURE__ */ f({
|
|
|
44
44
|
flex: {},
|
|
45
45
|
valuePropName: {},
|
|
46
46
|
initialValue: {},
|
|
47
|
+
_signal: {},
|
|
47
48
|
field: { default: () => ({}) },
|
|
48
49
|
disabled: { type: Boolean, default: !1 }
|
|
49
50
|
},
|
|
50
|
-
setup(
|
|
51
|
-
const
|
|
52
|
-
return (e,
|
|
51
|
+
setup(s) {
|
|
52
|
+
const d = s, n = m();
|
|
53
|
+
return (e, v) => (u(), c(g, a(t(l(i)(d, ["field", "disabled"]))), b({
|
|
53
54
|
default: r(() => [
|
|
54
|
-
B(l(
|
|
55
|
+
B(l(h), _({ disabled: e.disabled }, e.field), null, 16, ["disabled"])
|
|
55
56
|
]),
|
|
56
57
|
_: 2
|
|
57
58
|
}, [
|
|
58
|
-
|
|
59
|
+
x(l(i)(n, "default"), (C, o) => ({
|
|
59
60
|
name: o,
|
|
60
61
|
fn: r((p) => [
|
|
61
|
-
|
|
62
|
+
y(e.$slots, o, a(t(p || {})))
|
|
62
63
|
])
|
|
63
64
|
}))
|
|
64
65
|
]), 1040));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, useSlots as B, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as a, createSlots as
|
|
1
|
+
import { defineComponent as h, useSlots as B, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as a, createSlots as s, withCtx as i, createVNode as g, renderList as p, renderSlot as f } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/date/index.vue2.mjs";
|
|
4
4
|
import { isUndefined as F, omit as m, pick as S } from "lodash-unified";
|
|
@@ -46,6 +46,7 @@ const L = /* @__PURE__ */ h({
|
|
|
46
46
|
bordered: { type: Boolean },
|
|
47
47
|
valuePropName: {},
|
|
48
48
|
initialValue: {},
|
|
49
|
+
_signal: {},
|
|
49
50
|
field: { default: () => ({}) },
|
|
50
51
|
placeholder: {},
|
|
51
52
|
disabled: { type: Boolean, default: !1 }
|
|
@@ -60,10 +61,10 @@ const L = /* @__PURE__ */ h({
|
|
|
60
61
|
bordered: e.bordered ? !1 : F((o = e.field) == null ? void 0 : o.bordered) ? !0 : e.field.bordered
|
|
61
62
|
};
|
|
62
63
|
});
|
|
63
|
-
return (o, P) => (v(), x(k, r(t(a(m)(e, ["field", "placeholder", "disabled"]))),
|
|
64
|
+
return (o, P) => (v(), x(k, r(t(a(m)(e, ["field", "placeholder", "disabled"]))), s({
|
|
64
65
|
default: i(() => [
|
|
65
|
-
g(C, r(t(b.value)),
|
|
66
|
-
|
|
66
|
+
g(C, r(t(b.value)), s({ _: 2 }, [
|
|
67
|
+
p(a(m)(n, a(u)), (_, l) => ({
|
|
67
68
|
name: l,
|
|
68
69
|
fn: i((d) => [
|
|
69
70
|
f(o.$slots, l, r(t(d || {})))
|
|
@@ -73,7 +74,7 @@ const L = /* @__PURE__ */ h({
|
|
|
73
74
|
]),
|
|
74
75
|
_: 2
|
|
75
76
|
}, [
|
|
76
|
-
|
|
77
|
+
p(a(S)(n, a(u)), (_, l) => ({
|
|
77
78
|
name: l,
|
|
78
79
|
fn: i((d) => [
|
|
79
80
|
f(o.$slots, l, r(t(d || {})))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as
|
|
1
|
+
import { defineComponent as B, useSlots as g, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as o, createSlots as p, withCtx as i, createVNode as F, renderList as f, renderSlot as m } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as S, omit as u, pick as k } from "lodash-unified";
|
|
@@ -46,12 +46,13 @@ const I = /* @__PURE__ */ B({
|
|
|
46
46
|
bordered: { type: Boolean },
|
|
47
47
|
valuePropName: {},
|
|
48
48
|
initialValue: {},
|
|
49
|
+
_signal: {},
|
|
49
50
|
field: { default: () => ({}) },
|
|
50
51
|
placeholder: {},
|
|
51
52
|
disabled: { type: Boolean, default: !1 }
|
|
52
53
|
},
|
|
53
54
|
setup(b) {
|
|
54
|
-
const e = b,
|
|
55
|
+
const e = b, s = g(), _ = y(() => {
|
|
55
56
|
var l, d;
|
|
56
57
|
return {
|
|
57
58
|
placeholder: e.placeholder,
|
|
@@ -60,10 +61,10 @@ const I = /* @__PURE__ */ B({
|
|
|
60
61
|
bordered: e.bordered ? !1 : S((l = e.field) == null ? void 0 : l.bordered) ? !0 : (d = e.field) == null ? void 0 : d.bordered
|
|
61
62
|
};
|
|
62
63
|
});
|
|
63
|
-
return (l, d) => (v(), x(C, r(t(o(u)(e, ["field", "placeholder", "disabled"]))),
|
|
64
|
+
return (l, d) => (v(), x(C, r(t(o(u)(e, ["field", "placeholder", "disabled"]))), p({
|
|
64
65
|
default: i(() => [
|
|
65
|
-
F(o(P), r(t(_.value)),
|
|
66
|
-
f(o(u)(
|
|
66
|
+
F(o(P), r(t(_.value)), p({ _: 2 }, [
|
|
67
|
+
f(o(u)(s, o(c)), (h, a) => ({
|
|
67
68
|
name: a,
|
|
68
69
|
fn: i((n) => [
|
|
69
70
|
m(l.$slots, a, r(t(n || {})))
|
|
@@ -73,7 +74,7 @@ const I = /* @__PURE__ */ B({
|
|
|
73
74
|
]),
|
|
74
75
|
_: 2
|
|
75
76
|
}, [
|
|
76
|
-
f(o(k)(
|
|
77
|
+
f(o(k)(s, o(c)), (h, a) => ({
|
|
77
78
|
name: a,
|
|
78
79
|
fn: i((n) => [
|
|
79
80
|
m(l.$slots, a, r(t(n || {})))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as
|
|
1
|
+
import { defineComponent as B, useSlots as _, ref as v, openBlock as g, createBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as d, withCtx as p, createVNode as k, mergeProps as N, renderList as i, renderSlot as u } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/number/index.vue2.mjs";
|
|
4
4
|
import { omit as f, pick as S } from "lodash-unified";
|
|
@@ -46,12 +46,13 @@ const T = /* @__PURE__ */ B({
|
|
|
46
46
|
bordered: { type: Boolean },
|
|
47
47
|
valuePropName: {},
|
|
48
48
|
initialValue: {},
|
|
49
|
+
_signal: {},
|
|
49
50
|
field: { default: () => ({}) },
|
|
50
51
|
placeholder: {},
|
|
51
52
|
disabled: { type: Boolean, default: !1 }
|
|
52
53
|
},
|
|
53
54
|
setup(c, { expose: b }) {
|
|
54
|
-
const h = c,
|
|
55
|
+
const h = c, n = _(), a = v();
|
|
55
56
|
return b({
|
|
56
57
|
focus: () => {
|
|
57
58
|
var e;
|
|
@@ -61,15 +62,15 @@ const T = /* @__PURE__ */ B({
|
|
|
61
62
|
var e;
|
|
62
63
|
(e = a.value) == null || e.blur();
|
|
63
64
|
}
|
|
64
|
-
}), (e, R) => (g(), x(C, t(s(l(f)(h, ["field", "placeholder", "disabled"]))),
|
|
65
|
+
}), (e, R) => (g(), x(C, t(s(l(f)(h, ["field", "placeholder", "disabled"]))), d({
|
|
65
66
|
default: p(() => [
|
|
66
67
|
k(F, N({
|
|
67
68
|
ref_key: "inputNumberRef",
|
|
68
69
|
ref: a,
|
|
69
70
|
placeholder: e.placeholder,
|
|
70
71
|
disabled: e.disabled
|
|
71
|
-
}, e.field),
|
|
72
|
-
i(l(f)(
|
|
72
|
+
}, e.field), d({ _: 2 }, [
|
|
73
|
+
i(l(f)(n, l(m)), (y, o) => ({
|
|
73
74
|
name: o,
|
|
74
75
|
fn: p((r) => [
|
|
75
76
|
u(e.$slots, o, t(s(r || {})))
|
|
@@ -79,7 +80,7 @@ const T = /* @__PURE__ */ B({
|
|
|
79
80
|
]),
|
|
80
81
|
_: 2
|
|
81
82
|
}, [
|
|
82
|
-
i(l(S)(
|
|
83
|
+
i(l(S)(n, l(m)), (y, o) => ({
|
|
83
84
|
name: o,
|
|
84
85
|
fn: p((r) => [
|
|
85
86
|
u(e.$slots, o, t(s(r || {})))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, useSlots as m, ref as c, openBlock as b, createBlock as
|
|
1
|
+
import { defineComponent as u, useSlots as m, ref as c, openBlock as b, createBlock as _, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as v, withCtx as s, createVNode as y, mergeProps as B, renderList as x, renderSlot as g } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as h } from "lodash-unified";
|
|
@@ -44,6 +44,7 @@ const q = /* @__PURE__ */ u({
|
|
|
44
44
|
flex: {},
|
|
45
45
|
valuePropName: {},
|
|
46
46
|
initialValue: {},
|
|
47
|
+
_signal: {},
|
|
47
48
|
field: { default: () => ({}) },
|
|
48
49
|
disabled: { type: Boolean, default: !1 }
|
|
49
50
|
},
|
|
@@ -58,9 +59,9 @@ const q = /* @__PURE__ */ u({
|
|
|
58
59
|
var e;
|
|
59
60
|
(e = o.value) == null || e.blur();
|
|
60
61
|
}
|
|
61
|
-
}), (e, P) => (b(),
|
|
62
|
+
}), (e, P) => (b(), _(k, a(t(r(h)(n, ["field", "disabled"]))), v({
|
|
62
63
|
default: s(() => [
|
|
63
|
-
|
|
64
|
+
y(r(C), B({
|
|
64
65
|
ref_key: "radioRef",
|
|
65
66
|
ref: o,
|
|
66
67
|
disabled: e.disabled
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, ref as y, useSlots as
|
|
1
|
+
import { defineComponent as x, ref as y, useSlots as g, computed as S, openBlock as F, createBlock as k, normalizeProps as t, guardReactiveProps as a, unref as l, createSlots as f, withCtx as n, createVNode as C, renderList as u, renderSlot as m } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as P, omit as c, pick as $ } from "lodash-unified";
|
|
@@ -46,23 +46,24 @@ const j = /* @__PURE__ */ x({
|
|
|
46
46
|
bordered: { type: Boolean },
|
|
47
47
|
valuePropName: {},
|
|
48
48
|
initialValue: {},
|
|
49
|
+
_signal: {},
|
|
49
50
|
field: { default: () => ({}) },
|
|
50
51
|
placeholder: {},
|
|
51
52
|
disabled: { type: Boolean, default: !1 }
|
|
52
53
|
},
|
|
53
54
|
setup(_, { expose: h }) {
|
|
54
|
-
const o = _,
|
|
55
|
+
const o = _, i = y();
|
|
55
56
|
h({
|
|
56
57
|
focus: () => {
|
|
57
58
|
var e;
|
|
58
|
-
(e =
|
|
59
|
+
(e = i.value) == null || e.focus();
|
|
59
60
|
},
|
|
60
61
|
blur: () => {
|
|
61
62
|
var e;
|
|
62
|
-
(e =
|
|
63
|
+
(e = i.value) == null || e.blur();
|
|
63
64
|
}
|
|
64
65
|
});
|
|
65
|
-
const
|
|
66
|
+
const p = g(), v = S(() => {
|
|
66
67
|
var e, d;
|
|
67
68
|
return {
|
|
68
69
|
placeholder: o.placeholder,
|
|
@@ -74,7 +75,7 @@ const j = /* @__PURE__ */ x({
|
|
|
74
75
|
return (e, d) => (F(), k(N, t(a(l(c)(o, ["field", "placeholder", "disabled"]))), f({
|
|
75
76
|
default: n(() => [
|
|
76
77
|
C(l(V), t(a(v.value)), f({ _: 2 }, [
|
|
77
|
-
u(l(c)(
|
|
78
|
+
u(l(c)(p, l(b)), (B, r) => ({
|
|
78
79
|
name: r,
|
|
79
80
|
fn: n((s) => [
|
|
80
81
|
m(e.$slots, r, t(a(s || {})))
|
|
@@ -84,7 +85,7 @@ const j = /* @__PURE__ */ x({
|
|
|
84
85
|
]),
|
|
85
86
|
_: 2
|
|
86
87
|
}, [
|
|
87
|
-
u(l($)(
|
|
88
|
+
u(l($)(p, l(b)), (B, r) => ({
|
|
88
89
|
name: r,
|
|
89
90
|
fn: n((s) => [
|
|
90
91
|
m(e.$slots, r, t(a(s || {})))
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, useSlots as B, openBlock as h, createBlock as y, normalizeProps as t, guardReactiveProps as r, unref as o, createSlots as d, withCtx as s, createVNode as g, mergeProps as v, renderList as n, renderSlot as p } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/switch/index.vue2.mjs";
|
|
4
4
|
import { omit as m, pick as x } from "lodash-unified";
|
|
5
5
|
import { apFormItemSlotNames as f } from "../../constant.mjs";
|
|
6
6
|
import S from "../../ap-form-item.vue.mjs";
|
|
7
7
|
import k from "../../../ap-field/switch/index.vue.mjs";
|
|
8
|
-
const I = /* @__PURE__ */
|
|
8
|
+
const I = /* @__PURE__ */ b({
|
|
9
9
|
name: "ApFormItemSwitch",
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
@@ -45,15 +45,16 @@ const I = /* @__PURE__ */ B({
|
|
|
45
45
|
flex: {},
|
|
46
46
|
valuePropName: { default: "checked" },
|
|
47
47
|
initialValue: {},
|
|
48
|
+
_signal: {},
|
|
48
49
|
field: { default: () => ({}) },
|
|
49
50
|
disabled: { type: Boolean, default: !1 }
|
|
50
51
|
},
|
|
51
52
|
setup(u) {
|
|
52
|
-
const c = u, i =
|
|
53
|
+
const c = u, i = B();
|
|
53
54
|
return (l, C) => (h(), y(S, t(r(o(m)(c, ["field", "disabled"]))), d({
|
|
54
55
|
default: s(() => [
|
|
55
|
-
|
|
56
|
-
n(o(m)(i, o(f)), (
|
|
56
|
+
g(k, v({ disabled: l.disabled }, l.field), d({ _: 2 }, [
|
|
57
|
+
n(o(m)(i, o(f)), (_, e) => ({
|
|
57
58
|
name: e,
|
|
58
59
|
fn: s((a) => [
|
|
59
60
|
p(l.$slots, e, t(r(a || {})))
|
|
@@ -63,7 +64,7 @@ const I = /* @__PURE__ */ B({
|
|
|
63
64
|
]),
|
|
64
65
|
_: 2
|
|
65
66
|
}, [
|
|
66
|
-
n(o(x)(i, o(f)), (
|
|
67
|
+
n(o(x)(i, o(f)), (_, e) => ({
|
|
67
68
|
name: e,
|
|
68
69
|
fn: s((a) => [
|
|
69
70
|
p(l.$slots, e, t(r(a || {})))
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as B, useSlots as x, ref as S, computed as _, openBlock as k, createBlock as F, normalizeProps as n, guardReactiveProps as p, unref as t, createSlots as u, withCtx as d, createVNode as R, mergeProps as C, renderList as f, renderSlot as c } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import { ApField as P } from "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as m, pick as A } from "lodash-unified";
|
|
5
5
|
import { apFormItemSlotNames as b } from "../../constant.mjs";
|
|
6
6
|
import N from "../../ap-form-item.vue.mjs";
|
|
7
|
-
const E = /* @__PURE__ */
|
|
7
|
+
const E = /* @__PURE__ */ B({
|
|
8
8
|
name: "ApFormItemText",
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -45,12 +45,13 @@ const E = /* @__PURE__ */ g({
|
|
|
45
45
|
bordered: { type: Boolean },
|
|
46
46
|
valuePropName: {},
|
|
47
47
|
initialValue: {},
|
|
48
|
+
_signal: {},
|
|
48
49
|
field: { default: () => ({}) },
|
|
49
50
|
placeholder: {},
|
|
50
51
|
disabled: { type: Boolean, default: !1 }
|
|
51
52
|
},
|
|
52
53
|
setup(v, { expose: h }) {
|
|
53
|
-
const { Text:
|
|
54
|
+
const { Text: g } = P, i = x(), y = v, o = S();
|
|
54
55
|
return h({
|
|
55
56
|
focus: (e) => {
|
|
56
57
|
var a;
|
|
@@ -72,9 +73,9 @@ const E = /* @__PURE__ */ g({
|
|
|
72
73
|
var e;
|
|
73
74
|
return (e = o.value) == null ? void 0 : e.input;
|
|
74
75
|
})
|
|
75
|
-
}), (e, a) => (k(), F(N, n(p(t(m)(
|
|
76
|
+
}), (e, a) => (k(), F(N, n(p(t(m)(y, ["field", "disabled", "placeholder"]))), u({
|
|
76
77
|
default: d(() => [
|
|
77
|
-
R(t(
|
|
78
|
+
R(t(g), C({
|
|
78
79
|
ref_key: "inputRef",
|
|
79
80
|
ref: o,
|
|
80
81
|
disabled: e.disabled,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, useSlots as
|
|
1
|
+
import { defineComponent as v, useSlots as _, ref as g, openBlock as x, createBlock as k, normalizeProps as t, guardReactiveProps as s, unref as o, createSlots as n, withCtx as p, createVNode as F, mergeProps as S, renderList as i, renderSlot as f } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import { ApField as C } from "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as u, pick as P } from "lodash-unified";
|
|
@@ -45,12 +45,13 @@ const z = /* @__PURE__ */ v({
|
|
|
45
45
|
bordered: { type: Boolean },
|
|
46
46
|
valuePropName: {},
|
|
47
47
|
initialValue: {},
|
|
48
|
+
_signal: {},
|
|
48
49
|
field: { default: () => ({}) },
|
|
49
50
|
placeholder: {},
|
|
50
51
|
disabled: { type: Boolean, default: !1 }
|
|
51
52
|
},
|
|
52
53
|
setup(c, { expose: b }) {
|
|
53
|
-
const { Text: h } = C, d =
|
|
54
|
+
const { Text: h } = C, d = _(), y = c, a = g();
|
|
54
55
|
return b({
|
|
55
56
|
focus: () => {
|
|
56
57
|
var e;
|
|
@@ -60,7 +61,7 @@ const z = /* @__PURE__ */ v({
|
|
|
60
61
|
var e;
|
|
61
62
|
(e = a.value) == null || e.blur();
|
|
62
63
|
}
|
|
63
|
-
}), (e, R) => (
|
|
64
|
+
}), (e, R) => (x(), k(w, t(s(o(u)(y, ["field", "disabled", "placeholder"]))), n({
|
|
64
65
|
default: p(() => [
|
|
65
66
|
F(o(h).Password, S({
|
|
66
67
|
ref_key: "inputRef",
|
|
@@ -43,6 +43,7 @@ const $ = /* @__PURE__ */ c({
|
|
|
43
43
|
flex: {},
|
|
44
44
|
valuePropName: {},
|
|
45
45
|
initialValue: {},
|
|
46
|
+
_signal: {},
|
|
46
47
|
field: { default: () => ({}) },
|
|
47
48
|
placeholder: {},
|
|
48
49
|
disabled: { type: Boolean, default: !1 }
|
|
@@ -51,8 +52,8 @@ const $ = /* @__PURE__ */ c({
|
|
|
51
52
|
const { TextArea: n } = C, u = b(), f = p, l = x();
|
|
52
53
|
return i({
|
|
53
54
|
focus: (e) => {
|
|
54
|
-
var
|
|
55
|
-
(
|
|
55
|
+
var a;
|
|
56
|
+
(a = l.value) == null || a.focus(e);
|
|
56
57
|
},
|
|
57
58
|
blur: () => {
|
|
58
59
|
var e;
|
|
@@ -62,7 +63,7 @@ const $ = /* @__PURE__ */ c({
|
|
|
62
63
|
var e;
|
|
63
64
|
return (e = l.value) == null ? void 0 : e.resizableTextArea;
|
|
64
65
|
})
|
|
65
|
-
}), (e,
|
|
66
|
+
}), (e, a) => (v(), y(S, r(t(s(F)(f, ["field", "disabled", "placeholder"]))), B({
|
|
66
67
|
default: d(() => [
|
|
67
68
|
A(s(n), g({
|
|
68
69
|
ref_key: "textAreaRef",
|
|
@@ -73,10 +74,10 @@ const $ = /* @__PURE__ */ c({
|
|
|
73
74
|
]),
|
|
74
75
|
_: 2
|
|
75
76
|
}, [
|
|
76
|
-
_(u, (z,
|
|
77
|
-
name:
|
|
77
|
+
_(u, (z, o) => ({
|
|
78
|
+
name: o,
|
|
78
79
|
fn: d((m) => [
|
|
79
|
-
k(e.$slots,
|
|
80
|
+
k(e.$slots, o, r(t(m || {})))
|
|
80
81
|
])
|
|
81
82
|
}))
|
|
82
83
|
]), 1040));
|