@das-fed/upf-ui 6.4.0-dev.138 → 6.4.0-dev.140
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/package.json +5 -5
- package/packages/components/button/style.css +1 -1
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/checkbox/index.js +22 -22
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/input/index.js +153 -153
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/radio/style.css +1 -1
- package/packages/components/radio/style.css.gz +0 -0
- package/packages/components/select/index.js +190 -190
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/tabs/style.css +1 -1
- package/packages/components/tabs/style.css.gz +0 -0
- package/packages/components/tree-v2/index.js +2 -1
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/edit-table/src/index.vue.d.ts +0 -4207
- package/packages/components/table/index.d.ts +0 -7208
- package/packages/components/table/src/Table.vue.d.ts +0 -2129
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import '@das-fed/upf-ui/packages/components/input/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { setThemeRule as
|
|
4
|
-
import { unref as O, getCurrentScope as
|
|
2
|
+
import { withInstall as ee } from "@das-fed/upf-utils/with-install/index";
|
|
3
|
+
import { setThemeRule as te } from "@das-fed/upf-web/packages/theme/index";
|
|
4
|
+
import { unref as O, getCurrentScope as oe, onScopeDispose as re, getCurrentInstance as G, onMounted as ne, nextTick as R, ref as v, watch as S, computed as h, defineComponent as ae, createElementBlock as P, openBlock as C, normalizeClass as D, normalizeStyle as le, createCommentVNode as E, createVNode as N, withCtx as z, mergeProps as se, createSlots as ie, renderSlot as k, Fragment as ue, createBlock as de, withDirectives as ce, createTextVNode as pe, toDisplayString as fe } from "vue";
|
|
5
5
|
import "element-plus/es/components/input/style/css";
|
|
6
|
-
import { ElInput as
|
|
7
|
-
import { t as
|
|
8
|
-
import { DasTooltip as
|
|
9
|
-
import { DasErrorOverlayModel as
|
|
10
|
-
import { vDasTooltip as
|
|
11
|
-
const
|
|
6
|
+
import { ElInput as ve } from "element-plus";
|
|
7
|
+
import { t as me, setI18nRule as he } from "@das-fed/upf-web/packages/i18n/index";
|
|
8
|
+
import { DasTooltip as ye } from "@das-fed/upf-ui/packages/components/tooltip/index";
|
|
9
|
+
import { DasErrorOverlayModel as be } from "@das-fed/upf-ui/packages/components/error-overlay-model/index";
|
|
10
|
+
import { vDasTooltip as we } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
|
|
11
|
+
const ge = ["auto", "fit-content", "inherit", "initial", "max-content", "min-content", "revert", "unset", "-webkit-fill-available"], Oe = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(e), xe = (e) => {
|
|
12
12
|
if (e)
|
|
13
|
-
return typeof e == "string" &&
|
|
13
|
+
return typeof e == "string" && Oe(e) || typeof e == "string" && ge.includes(e) ? e : e + "px";
|
|
14
14
|
}, V = {
|
|
15
15
|
large: {
|
|
16
16
|
height: "40px",
|
|
@@ -32,7 +32,7 @@ const be = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
32
32
|
fontSize: "12",
|
|
33
33
|
defaultWidth: "132px"
|
|
34
34
|
}
|
|
35
|
-
},
|
|
35
|
+
}, F = {
|
|
36
36
|
view: {
|
|
37
37
|
color: "#d9d9d9"
|
|
38
38
|
},
|
|
@@ -43,99 +43,99 @@ const be = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
43
43
|
color: "#F0262D"
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
var
|
|
47
|
-
const
|
|
46
|
+
var Q;
|
|
47
|
+
const K = typeof window < "u", _e = (e) => typeof e == "string", Ee = () => {
|
|
48
48
|
};
|
|
49
|
-
|
|
50
|
-
function
|
|
49
|
+
K && ((Q = window == null ? void 0 : window.navigator) != null && Q.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
50
|
+
function q(e) {
|
|
51
51
|
return typeof e == "function" ? e() : O(e);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Ie(e) {
|
|
54
54
|
return e;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
return
|
|
56
|
+
function J(e) {
|
|
57
|
+
return oe() ? (re(e), !0) : !1;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
|
|
59
|
+
function Se(e, o = !0) {
|
|
60
|
+
G() ? ne(e) : o ? e() : R(e);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function I(e) {
|
|
63
63
|
var o;
|
|
64
|
-
const r =
|
|
64
|
+
const r = q(e);
|
|
65
65
|
return (o = r == null ? void 0 : r.$el) != null ? o : r;
|
|
66
66
|
}
|
|
67
|
-
const
|
|
67
|
+
const W = K ? window : void 0;
|
|
68
68
|
function x(...e) {
|
|
69
69
|
let o, r, t, s;
|
|
70
|
-
if (
|
|
71
|
-
return
|
|
70
|
+
if (_e(e[0]) || Array.isArray(e[0]) ? ([r, t, s] = e, o = W) : [o, r, t, s] = e, !o)
|
|
71
|
+
return Ee;
|
|
72
72
|
Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
|
|
73
73
|
const c = [], u = () => {
|
|
74
74
|
c.forEach((a) => a()), c.length = 0;
|
|
75
|
-
}, d = (a, i, m, b) => (a.addEventListener(i, m, b), () => a.removeEventListener(i, m, b)), n =
|
|
75
|
+
}, d = (a, i, m, b) => (a.addEventListener(i, m, b), () => a.removeEventListener(i, m, b)), n = S(() => [I(o), q(s)], ([a, i]) => {
|
|
76
76
|
u(), a && c.push(...r.flatMap((m) => t.map((b) => d(a, m, b, i))));
|
|
77
|
-
}, { immediate: !0, flush: "post" }),
|
|
77
|
+
}, { immediate: !0, flush: "post" }), p = () => {
|
|
78
78
|
n(), u();
|
|
79
79
|
};
|
|
80
|
-
return
|
|
80
|
+
return J(p), p;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Be(e, o = !1) {
|
|
83
83
|
const r = v(), t = () => r.value = !!e();
|
|
84
|
-
return t(),
|
|
84
|
+
return t(), Se(t, o), r;
|
|
85
85
|
}
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
var
|
|
86
|
+
const X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Y = "__vueuse_ssr_handlers__";
|
|
87
|
+
X[Y] = X[Y] || {};
|
|
88
|
+
var U = Object.getOwnPropertySymbols, Te = Object.prototype.hasOwnProperty, Ce = Object.prototype.propertyIsEnumerable, ze = (e, o) => {
|
|
89
89
|
var r = {};
|
|
90
90
|
for (var t in e)
|
|
91
|
-
|
|
92
|
-
if (e != null &&
|
|
93
|
-
for (var t of
|
|
94
|
-
o.indexOf(t) < 0 &&
|
|
91
|
+
Te.call(e, t) && o.indexOf(t) < 0 && (r[t] = e[t]);
|
|
92
|
+
if (e != null && U)
|
|
93
|
+
for (var t of U(e))
|
|
94
|
+
o.indexOf(t) < 0 && Ce.call(e, t) && (r[t] = e[t]);
|
|
95
95
|
return r;
|
|
96
96
|
};
|
|
97
|
-
function
|
|
98
|
-
const t = r, { window: s =
|
|
97
|
+
function We(e, o, r = {}) {
|
|
98
|
+
const t = r, { window: s = W } = t, c = ze(t, ["window"]);
|
|
99
99
|
let u;
|
|
100
|
-
const d =
|
|
100
|
+
const d = Be(() => s && "ResizeObserver" in s), n = () => {
|
|
101
101
|
u && (u.disconnect(), u = void 0);
|
|
102
|
-
},
|
|
102
|
+
}, p = S(() => I(e), (i) => {
|
|
103
103
|
n(), d.value && s && i && (u = new ResizeObserver(o), u.observe(i, c));
|
|
104
104
|
}, { immediate: !0, flush: "post" }), a = () => {
|
|
105
|
-
n(),
|
|
105
|
+
n(), p();
|
|
106
106
|
};
|
|
107
|
-
return
|
|
107
|
+
return J(a), {
|
|
108
108
|
isSupported: d,
|
|
109
109
|
stop: a
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
const { window: t =
|
|
114
|
-
var n,
|
|
115
|
-
return (
|
|
112
|
+
function Pe(e, o = { width: 0, height: 0 }, r = {}) {
|
|
113
|
+
const { window: t = W, box: s = "content-box" } = r, c = h(() => {
|
|
114
|
+
var n, p;
|
|
115
|
+
return (p = (n = I(e)) == null ? void 0 : n.namespaceURI) == null ? void 0 : p.includes("svg");
|
|
116
116
|
}), u = v(o.width), d = v(o.height);
|
|
117
|
-
return
|
|
118
|
-
const
|
|
117
|
+
return We(e, ([n]) => {
|
|
118
|
+
const p = s === "border-box" ? n.borderBoxSize : s === "content-box" ? n.contentBoxSize : n.devicePixelContentBoxSize;
|
|
119
119
|
if (t && c.value) {
|
|
120
|
-
const a =
|
|
120
|
+
const a = I(e);
|
|
121
121
|
if (a) {
|
|
122
122
|
const i = t.getComputedStyle(a);
|
|
123
123
|
u.value = parseFloat(i.width), d.value = parseFloat(i.height);
|
|
124
124
|
}
|
|
125
|
-
} else if (
|
|
126
|
-
const a = Array.isArray(
|
|
125
|
+
} else if (p) {
|
|
126
|
+
const a = Array.isArray(p) ? p : [p];
|
|
127
127
|
u.value = a.reduce((i, { inlineSize: m }) => i + m, 0), d.value = a.reduce((i, { blockSize: m }) => i + m, 0);
|
|
128
128
|
} else
|
|
129
129
|
u.value = n.contentRect.width, d.value = n.contentRect.height;
|
|
130
|
-
}, r),
|
|
130
|
+
}, r), S(() => I(e), (n) => {
|
|
131
131
|
u.value = n ? o.width : 0, d.value = n ? o.height : 0;
|
|
132
132
|
}), {
|
|
133
133
|
width: u,
|
|
134
134
|
height: d
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
const { initialValue: r = !1 } = o, t = v(!1), s = h(() =>
|
|
137
|
+
function ke(e, o = {}) {
|
|
138
|
+
const { initialValue: r = !1 } = o, t = v(!1), s = h(() => I(e));
|
|
139
139
|
x(s, "focus", () => t.value = !0), x(s, "blur", () => t.value = !1);
|
|
140
140
|
const c = h({
|
|
141
141
|
get: () => t.value,
|
|
@@ -144,54 +144,54 @@ function We(e, o = {}) {
|
|
|
144
144
|
!u && t.value ? (d = s.value) == null || d.blur() : u && !t.value && ((n = s.value) == null || n.focus());
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
|
-
return
|
|
147
|
+
return S(s, () => {
|
|
148
148
|
c.value = r;
|
|
149
149
|
}, { immediate: !0, flush: "post" }), { focused: c };
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function $e(e = {}) {
|
|
152
152
|
const {
|
|
153
153
|
type: o = "page",
|
|
154
154
|
touch: r = !0,
|
|
155
155
|
resetOnTouchEnds: t = !1,
|
|
156
156
|
initialValue: s = { x: 0, y: 0 },
|
|
157
|
-
window: c =
|
|
157
|
+
window: c = W,
|
|
158
158
|
eventFilter: u
|
|
159
|
-
} = e, d = v(s.x), n = v(s.y),
|
|
160
|
-
o === "page" ? (d.value =
|
|
159
|
+
} = e, d = v(s.x), n = v(s.y), p = v(null), a = (f) => {
|
|
160
|
+
o === "page" ? (d.value = f.pageX, n.value = f.pageY) : o === "client" ? (d.value = f.clientX, n.value = f.clientY) : o === "movement" && (d.value = f.movementX, n.value = f.movementY), p.value = "mouse";
|
|
161
161
|
}, i = () => {
|
|
162
162
|
d.value = s.x, n.value = s.y;
|
|
163
|
-
}, m = (
|
|
164
|
-
if (
|
|
165
|
-
const g =
|
|
166
|
-
o === "page" ? (d.value = g.pageX, n.value = g.pageY) : o === "client" && (d.value = g.clientX, n.value = g.clientY),
|
|
163
|
+
}, m = (f) => {
|
|
164
|
+
if (f.touches.length > 0) {
|
|
165
|
+
const g = f.touches[0];
|
|
166
|
+
o === "page" ? (d.value = g.pageX, n.value = g.pageY) : o === "client" && (d.value = g.clientX, n.value = g.clientY), p.value = "touch";
|
|
167
167
|
}
|
|
168
|
-
}, b = (
|
|
168
|
+
}, b = (f) => u === void 0 ? a(f) : u(() => a(f), {}), w = (f) => u === void 0 ? m(f) : u(() => m(f), {});
|
|
169
169
|
return c && (x(c, "mousemove", b, { passive: !0 }), x(c, "dragover", b, { passive: !0 }), r && o !== "movement" && (x(c, "touchstart", w, { passive: !0 }), x(c, "touchmove", w, { passive: !0 }), t && x(c, "touchend", i, { passive: !0 }))), {
|
|
170
170
|
x: d,
|
|
171
171
|
y: n,
|
|
172
|
-
sourceType:
|
|
172
|
+
sourceType: p
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Le(e, o = {}) {
|
|
176
176
|
const {
|
|
177
177
|
handleOutside: r = !0,
|
|
178
|
-
window: t =
|
|
179
|
-
} = o, { x: s, y: c, sourceType: u } =
|
|
180
|
-
let
|
|
178
|
+
window: t = W
|
|
179
|
+
} = o, { x: s, y: c, sourceType: u } = $e(o), d = v(e ?? (t == null ? void 0 : t.document.body)), n = v(0), p = v(0), a = v(0), i = v(0), m = v(0), b = v(0), w = v(!0);
|
|
180
|
+
let f = () => {
|
|
181
181
|
};
|
|
182
|
-
return t && (
|
|
183
|
-
const g =
|
|
182
|
+
return t && (f = S([d, s, c], () => {
|
|
183
|
+
const g = I(d);
|
|
184
184
|
if (!g)
|
|
185
185
|
return;
|
|
186
186
|
const {
|
|
187
187
|
left: $,
|
|
188
188
|
top: L,
|
|
189
|
-
width:
|
|
190
|
-
height:
|
|
189
|
+
width: B,
|
|
190
|
+
height: T
|
|
191
191
|
} = g.getBoundingClientRect();
|
|
192
|
-
a.value = $ + t.pageXOffset, i.value = L + t.pageYOffset, m.value =
|
|
192
|
+
a.value = $ + t.pageXOffset, i.value = L + t.pageYOffset, m.value = T, b.value = B;
|
|
193
193
|
const l = s.value - a.value, y = c.value - i.value;
|
|
194
|
-
w.value =
|
|
194
|
+
w.value = B === 0 || T === 0 || l < 0 || y < 0 || l > B || y > T, (r || !w.value) && (n.value = l, p.value = y);
|
|
195
195
|
}, { immediate: !0 }), x(document, "mouseleave", () => {
|
|
196
196
|
w.value = !0;
|
|
197
197
|
})), {
|
|
@@ -199,28 +199,28 @@ function ke(e, o = {}) {
|
|
|
199
199
|
y: c,
|
|
200
200
|
sourceType: u,
|
|
201
201
|
elementX: n,
|
|
202
|
-
elementY:
|
|
202
|
+
elementY: p,
|
|
203
203
|
elementPositionX: a,
|
|
204
204
|
elementPositionY: i,
|
|
205
205
|
elementHeight: m,
|
|
206
206
|
elementWidth: b,
|
|
207
207
|
isOutside: w,
|
|
208
|
-
stop:
|
|
208
|
+
stop: f
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
-
var
|
|
211
|
+
var j;
|
|
212
212
|
(function(e) {
|
|
213
213
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
214
|
-
})(
|
|
215
|
-
var
|
|
214
|
+
})(j || (j = {}));
|
|
215
|
+
var Ve = Object.defineProperty, H = Object.getOwnPropertySymbols, Re = Object.prototype.hasOwnProperty, Ae = Object.prototype.propertyIsEnumerable, Z = (e, o, r) => o in e ? Ve(e, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[o] = r, Me = (e, o) => {
|
|
216
216
|
for (var r in o || (o = {}))
|
|
217
|
-
|
|
218
|
-
if (
|
|
219
|
-
for (var r of
|
|
220
|
-
|
|
217
|
+
Re.call(o, r) && Z(e, r, o[r]);
|
|
218
|
+
if (H)
|
|
219
|
+
for (var r of H(o))
|
|
220
|
+
Ae.call(o, r) && Z(e, r, o[r]);
|
|
221
221
|
return e;
|
|
222
222
|
};
|
|
223
|
-
const
|
|
223
|
+
const De = {
|
|
224
224
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
225
225
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
226
226
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -246,16 +246,16 @@ const Ae = {
|
|
|
246
246
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
247
247
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
248
248
|
};
|
|
249
|
-
|
|
250
|
-
linear:
|
|
251
|
-
},
|
|
252
|
-
function
|
|
249
|
+
Me({
|
|
250
|
+
linear: Ie
|
|
251
|
+
}, De);
|
|
252
|
+
function Ne({
|
|
253
253
|
elInputRef: e,
|
|
254
254
|
inputValue: o,
|
|
255
255
|
placeholder: r
|
|
256
256
|
}) {
|
|
257
|
-
var
|
|
258
|
-
const t = (
|
|
257
|
+
var p;
|
|
258
|
+
const t = (p = G()) == null ? void 0 : p.props, { focused: s } = ke(h(() => {
|
|
259
259
|
var a;
|
|
260
260
|
return (a = e.value) == null ? void 0 : a.ref;
|
|
261
261
|
})), c = v(!1), u = h(() => c.value && !s.value && t.isTitle), d = h(() => o.value ? o.value : r.value), n = async () => {
|
|
@@ -263,9 +263,9 @@ function Me({
|
|
|
263
263
|
const a = (i = e.value) == null ? void 0 : i.ref;
|
|
264
264
|
a && (o.value || (a.value = r.value, await R()), c.value = a.scrollWidth > a.clientWidth, a.value = o.value);
|
|
265
265
|
};
|
|
266
|
-
return
|
|
266
|
+
return S(e, () => {
|
|
267
267
|
e.value && n();
|
|
268
|
-
}),
|
|
268
|
+
}), S(
|
|
269
269
|
() => [o.value, r.value],
|
|
270
270
|
() => {
|
|
271
271
|
R(n);
|
|
@@ -275,13 +275,13 @@ function Me({
|
|
|
275
275
|
tooltipContent: d
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
|
-
const
|
|
278
|
+
const Fe = {
|
|
279
279
|
key: 0,
|
|
280
280
|
class: "das-input-message"
|
|
281
|
-
},
|
|
281
|
+
}, Qe = ["title"], Xe = {
|
|
282
282
|
inheritAttrs: !1
|
|
283
|
-
},
|
|
284
|
-
...
|
|
283
|
+
}, Ye = /* @__PURE__ */ ae({
|
|
284
|
+
...Xe,
|
|
285
285
|
__name: "index",
|
|
286
286
|
props: {
|
|
287
287
|
modelValue: { default: "" },
|
|
@@ -308,14 +308,14 @@ const De = {
|
|
|
308
308
|
},
|
|
309
309
|
emits: ["update:modelValue", "change"],
|
|
310
310
|
setup(e, { expose: o, emit: r }) {
|
|
311
|
-
const t = e, s = h(() => t.placeholder ||
|
|
312
|
-
var l, y;
|
|
311
|
+
const t = e, s = h(() => t.placeholder || me("请输入")), c = h(() => t.disabled ? "disabled" : t.isView ? "view" : t.error ? "error" : "default"), u = h(() => {
|
|
312
|
+
var l, y, _, A, M;
|
|
313
313
|
return {
|
|
314
|
-
"--das-input-width":
|
|
315
|
-
"--das-input-height": V[t.size].height,
|
|
316
|
-
"--das-input-font-size": V[t.size].fontSize,
|
|
317
|
-
"--das-input-border-color": (
|
|
318
|
-
"--das-input-message-color": (
|
|
314
|
+
"--das-input-width": xe(t.width ?? ((l = V[t.size]) == null ? void 0 : l.defaultWidth)),
|
|
315
|
+
"--das-input-height": (y = V[t.size]) == null ? void 0 : y.height,
|
|
316
|
+
"--das-input-font-size": (_ = V[t.size]) == null ? void 0 : _.fontSize,
|
|
317
|
+
"--das-input-border-color": (A = F[c.value]) == null ? void 0 : A.color,
|
|
318
|
+
"--das-input-message-color": (M = F[c.value]) == null ? void 0 : M.color
|
|
319
319
|
};
|
|
320
320
|
}), d = h(() => [
|
|
321
321
|
"das-ui-input",
|
|
@@ -325,45 +325,45 @@ const De = {
|
|
|
325
325
|
"das-ui-input--disabled": t.disabled,
|
|
326
326
|
"das-ui-textarea": t.type === "textarea"
|
|
327
327
|
}
|
|
328
|
-
]), n = r,
|
|
328
|
+
]), n = r, p = h({
|
|
329
329
|
get: () => t.modelValue,
|
|
330
330
|
set: (l) => n("update:modelValue", l)
|
|
331
|
-
}), a = v(null), i = v(), { isOutside: m } =
|
|
331
|
+
}), a = v(null), i = v(), { isOutside: m } = Le(h(() => {
|
|
332
332
|
var l;
|
|
333
333
|
return (l = i.value) == null ? void 0 : l.$el;
|
|
334
|
-
})), b = h(() => !m.value && t.errorMode === "overlay"), w = h(() => t.type === "textarea" ? t.showWordLimit : t.showTextWordLimit),
|
|
334
|
+
})), b = h(() => !m.value && t.errorMode === "overlay"), w = h(() => t.type === "textarea" ? t.showWordLimit : t.showTextWordLimit), f = h(() => t.isView || t.disabled), g = h(() => f.value ? t.noSetDefaultVal ? "" : "-" : s.value ?? ""), { showToolTip: $, tooltipContent: L } = Ne({
|
|
335
335
|
elInputRef: i,
|
|
336
|
-
inputValue:
|
|
336
|
+
inputValue: p,
|
|
337
337
|
placeholder: s
|
|
338
|
-
}), { width:
|
|
338
|
+
}), { width: B } = Pe(a), T = (l) => {
|
|
339
339
|
let y = l + "";
|
|
340
|
-
t.type !== "textarea" && t.filterSpace && (y = y.trim()),
|
|
340
|
+
t.type !== "textarea" && t.filterSpace && (y = y.trim()), p.value = y, n("change", y);
|
|
341
341
|
};
|
|
342
342
|
return o({
|
|
343
343
|
elInputRef: i
|
|
344
|
-
}), (l, y) => (
|
|
344
|
+
}), (l, y) => (C(), P(
|
|
345
345
|
"div",
|
|
346
346
|
{
|
|
347
347
|
ref_key: "containerRef",
|
|
348
348
|
ref: a,
|
|
349
|
-
style:
|
|
350
|
-
class:
|
|
349
|
+
style: le(u.value),
|
|
350
|
+
class: D(d.value)
|
|
351
351
|
},
|
|
352
352
|
[
|
|
353
|
-
|
|
354
|
-
|
|
353
|
+
E(" 这里tooltip不能使用v-model:visible 有响应问题 "),
|
|
354
|
+
N(O(ye), {
|
|
355
355
|
effect: "light",
|
|
356
356
|
placement: "top",
|
|
357
357
|
disabled: !O($),
|
|
358
358
|
content: O(L)
|
|
359
359
|
}, {
|
|
360
|
-
default:
|
|
361
|
-
|
|
360
|
+
default: z(() => [
|
|
361
|
+
N(O(ve), se({
|
|
362
362
|
ref_key: "elInputRef",
|
|
363
363
|
ref: i
|
|
364
364
|
}, l.$attrs, {
|
|
365
|
-
modelValue:
|
|
366
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
365
|
+
modelValue: p.value,
|
|
366
|
+
"onUpdate:modelValue": y[0] || (y[0] = (_) => p.value = _),
|
|
367
367
|
placeholder: g.value,
|
|
368
368
|
disabled: l.disabled,
|
|
369
369
|
readonly: l.isView,
|
|
@@ -371,37 +371,37 @@ const De = {
|
|
|
371
371
|
autosize: t.autosize,
|
|
372
372
|
showWordLimit: w.value,
|
|
373
373
|
maxlength: t.maxlength,
|
|
374
|
-
onChange:
|
|
375
|
-
}),
|
|
374
|
+
onChange: T
|
|
375
|
+
}), ie({
|
|
376
376
|
_: 2
|
|
377
377
|
/* DYNAMIC */
|
|
378
378
|
}, [
|
|
379
379
|
l.$slots.prepend ? {
|
|
380
380
|
name: "prepend",
|
|
381
|
-
fn:
|
|
382
|
-
|
|
381
|
+
fn: z(() => [
|
|
382
|
+
E(" 输入框前置内容 "),
|
|
383
383
|
k(l.$slots, "prepend", {}, void 0, !0)
|
|
384
384
|
]),
|
|
385
385
|
key: "0"
|
|
386
386
|
} : void 0,
|
|
387
387
|
l.$slots.append ? {
|
|
388
388
|
name: "append",
|
|
389
|
-
fn:
|
|
390
|
-
|
|
389
|
+
fn: z(() => [
|
|
390
|
+
E(" 输入框后置内容 "),
|
|
391
391
|
k(l.$slots, "append", {}, void 0, !0)
|
|
392
392
|
]),
|
|
393
393
|
key: "1"
|
|
394
394
|
} : void 0,
|
|
395
395
|
l.$slots.suffix ? {
|
|
396
396
|
name: "suffix",
|
|
397
|
-
fn:
|
|
397
|
+
fn: z(() => [
|
|
398
398
|
k(l.$slots, "suffix", {}, void 0, !0)
|
|
399
399
|
]),
|
|
400
400
|
key: "2"
|
|
401
401
|
} : void 0,
|
|
402
402
|
l.$slots.prefix ? {
|
|
403
403
|
name: "prefix",
|
|
404
|
-
fn:
|
|
404
|
+
fn: z(() => [
|
|
405
405
|
k(l.$slots, "prefix", {}, void 0, !0)
|
|
406
406
|
]),
|
|
407
407
|
key: "3"
|
|
@@ -411,50 +411,50 @@ const De = {
|
|
|
411
411
|
_: 3
|
|
412
412
|
/* FORWARDED */
|
|
413
413
|
}, 8, ["disabled", "content"]),
|
|
414
|
-
l.error && l.errorLabel ? (
|
|
415
|
-
|
|
414
|
+
l.error && l.errorLabel ? (C(), P(
|
|
415
|
+
ue,
|
|
416
416
|
{ key: 0 },
|
|
417
417
|
[
|
|
418
|
-
l.errorMode === "default" ? (
|
|
419
|
-
l.error ?
|
|
418
|
+
l.errorMode === "default" ? (C(), P("div", Fe, [
|
|
419
|
+
l.error ? ce((C(), P("span", {
|
|
420
420
|
key: 0,
|
|
421
|
-
class:
|
|
421
|
+
class: D(["das-input-message_content", { "is-ellipsis": l.isErrorTitle }]),
|
|
422
422
|
title: l.isErrorTitle ? l.errorLabel : ""
|
|
423
423
|
}, [
|
|
424
|
-
|
|
425
|
-
|
|
424
|
+
pe(
|
|
425
|
+
fe(l.errorLabel),
|
|
426
426
|
1
|
|
427
427
|
/* TEXT */
|
|
428
428
|
)
|
|
429
|
-
], 10,
|
|
430
|
-
[O(
|
|
431
|
-
]) :
|
|
432
|
-
])) :
|
|
433
|
-
b.value ? (
|
|
429
|
+
], 10, Qe)), [
|
|
430
|
+
[O(we)]
|
|
431
|
+
]) : E("v-if", !0)
|
|
432
|
+
])) : E("v-if", !0),
|
|
433
|
+
b.value ? (C(), de(O(be), {
|
|
434
434
|
key: 1,
|
|
435
435
|
errorLabel: l.errorLabel,
|
|
436
|
-
errorWidth: `${O(
|
|
436
|
+
errorWidth: `${O(B)}`,
|
|
437
437
|
getEl: () => {
|
|
438
|
-
var
|
|
439
|
-
return (
|
|
438
|
+
var _;
|
|
439
|
+
return (_ = i.value) == null ? void 0 : _.$el;
|
|
440
440
|
},
|
|
441
441
|
errorModelZIndex: l.errorModelZIndex
|
|
442
|
-
}, null, 8, ["errorLabel", "errorWidth", "getEl", "errorModelZIndex"])) :
|
|
442
|
+
}, null, 8, ["errorLabel", "errorWidth", "getEl", "errorModelZIndex"])) : E("v-if", !0)
|
|
443
443
|
],
|
|
444
444
|
64
|
|
445
445
|
/* STABLE_FRAGMENT */
|
|
446
|
-
)) :
|
|
446
|
+
)) : E("v-if", !0)
|
|
447
447
|
],
|
|
448
448
|
6
|
|
449
449
|
/* CLASS, STYLE */
|
|
450
450
|
));
|
|
451
451
|
}
|
|
452
|
-
}),
|
|
452
|
+
}), Ue = (e, o) => {
|
|
453
453
|
const r = e.__vccOpts || e;
|
|
454
454
|
for (const [t, s] of o)
|
|
455
455
|
r[t] = s;
|
|
456
456
|
return r;
|
|
457
|
-
},
|
|
457
|
+
}, je = /* @__PURE__ */ Ue(Ye, [["__scopeId", "data-v-62991ba4"]]), He = {
|
|
458
458
|
"--das-ui-input-default-text-color": "#212121",
|
|
459
459
|
"--das-ui-input-default-placeholder-text-color": "#B2B2B2",
|
|
460
460
|
"--das-ui-input-full-border-color": "#D9D9D9",
|
|
@@ -471,15 +471,15 @@ const De = {
|
|
|
471
471
|
"--das-ui-input-only-bottom-view-border-color": "#E5E5E5",
|
|
472
472
|
"--das-ui-input-success-color": "#1BA854",
|
|
473
473
|
"--das-ui-input-error-color": "#FB2323"
|
|
474
|
-
},
|
|
474
|
+
}, Ze = {
|
|
475
475
|
共: { "zh-CN": "共", en: "Total", _appCode: "framework" },
|
|
476
476
|
项: { "zh-CN": "项", en: "Item", _appCode: "framework" },
|
|
477
477
|
请输入: { "zh-CN": "请输入", en: "Please enter", _appCode: "framework" }
|
|
478
478
|
};
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
const
|
|
479
|
+
he(Ze);
|
|
480
|
+
te(He);
|
|
481
|
+
const at = ee(je);
|
|
482
482
|
export {
|
|
483
|
-
|
|
484
|
-
|
|
483
|
+
at as DasInput,
|
|
484
|
+
at as default
|
|
485
485
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-ui-input[data-v-
|
|
1
|
+
.das-ui-input[data-v-62991ba4]{--das-input-base-border-color: #d9d9d9;--das-input-active-border-color: #2068ed;--das-input-font-color: #212121;--das-input-sub-font-color: #b2b2b2;--das-input-disabled-bg-color: #f5f5f5;--das-input-count-color: #9e9e9e;--das-input-message-font-size: 12px;position:relative;display:inline-block;width:var(--das-input-width)}.das-ui-input[data-v-62991ba4] .el-input{height:var(--das-input-height);line-height:var(--das-input-height);font-size:var(--das-input-font-size)}.das-ui-input[data-v-62991ba4] .el-input .el-input__inner{position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--das-input-font-color);-webkit-text-fill-color:var(--das-input-font-color)}.das-ui-input[data-v-62991ba4] .el-input .el-input__inner::placeholder{color:var(--das-input-sub-font-color);-webkit-text-fill-color:var(--das-input-sub-font-color)}.das-ui-input[data-v-62991ba4] .el-input .el-input__inner::-webkit-input-placeholder{color:var(--das-input-sub-font-color);-webkit-text-fill-color:var(--das-input-sub-font-color)}.das-ui-input[data-v-62991ba4] .el-input .el-input__count{color:var(--das-input-count-color)}.das-ui-input.das-ui-textarea[data-v-62991ba4] .el-textarea .el-textarea__inner{color:var(--das-input-font-color);font-size:var(--das-input-font-size);padding:8px;line-height:22px;min-height:80px!important}.das-ui-input.das-ui-textarea[data-v-62991ba4] .el-textarea .el-input__count{color:var(--das-input-count-color);font-size:var(--das-input-font-size);bottom:12px;padding-left:5px}.das-ui-input.das-ui-textarea[data-v-62991ba4] .el-textarea.das-input-error .el-textarea__inner,.das-ui-input.das-ui-textarea[data-v-62991ba4] .el-textarea.das-input-error .el-textarea__inner:hover{box-shadow:0 0 0 1px var(--das-ui-input-error-color) inset}.das-ui-input.das-ui-textarea[data-v-62991ba4] .el-textarea.das-input-success .el-textarea__inner,.das-ui-input.das-ui-textarea[data-v-62991ba4] .el-textarea.das-input-success .el-textarea__inner:hover{box-shadow:0 0 0 1px var(--das-ui-input-success-color) inset}.das-ui-input.das-ui-textarea[data-v-62991ba4] .el-textarea textarea::-webkit-scrollbar{width:8px;height:8px;background-color:transparent}.das-ui-input.das-ui-textarea[data-v-62991ba4] .el-textarea textarea::-webkit-scrollbar-corner{background-color:#0000}.das-ui-input.das-ui-textarea[data-v-62991ba4] .el-textarea textarea::-webkit-scrollbar-thumb{border-radius:16px;border:4px solid #b2b2b2;background-clip:content-box;background-color:#9999994d}.das-ui-input--border-type-bordered[data-v-62991ba4] .el-input .el-input__wrapper{border-radius:2px;padding:0 8px;box-shadow:0 0 0 1px var(--das-input-border-color, var(--das-input-base-border-color)) inset}.das-ui-input--border-type-bordered[data-v-62991ba4] .el-input .el-input__wrapper.is-focus,.das-ui-input--border-type-bordered[data-v-62991ba4] .el-input .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--das-input-border-color, var(--das-input-active-border-color)) inset}.das-ui-input--border-type-bordered[data-v-62991ba4] .el-textarea .el-textarea__inner{border-radius:4px;box-shadow:0 0 0 1px var(--das-input-border-color, var(--das-input-base-border-color)) inset}.das-ui-input--border-type-bordered[data-v-62991ba4] .el-textarea .el-textarea__inner:focus{box-shadow:0 0 0 1px var(--das-input-border-color, var(--das-input-active-border-color)) inset}.das-ui-input--border-type-bordered[data-v-62991ba4] .el-textarea .el-textarea__inner:hover{box-shadow:0 0 0 1px var(--das-input-border-color, var(--das-input-active-border-color)) inset}.das-ui-input--border-type-bottom[data-v-62991ba4] .el-input .el-input__wrapper{padding:0;border-radius:0;box-shadow:0 -1px 0 0 var(--das-input-border-color, var(--das-input-base-border-color)) inset}.das-ui-input--border-type-bottom[data-v-62991ba4] .el-input .el-input__wrapper.is-focus,.das-ui-input--border-type-bottom[data-v-62991ba4] .el-input .el-input__wrapper:hover{box-shadow:0 -1px 0 0 var(--das-input-border-color, var(--das-input-active-border-color)) inset}.das-ui-input--border-type-bottom[data-v-62991ba4] .el-textarea .el-textarea__inner{border-radius:0;box-shadow:0 -1px 0 0 var(--das-input-border-color, var(--das-input-base-border-color)) inset}.das-ui-input--border-type-bottom[data-v-62991ba4] .el-textarea .el-textarea__inner:focus{box-shadow:0 -1px 0 0 var(--das-input-border-color, var(--das-input-active-border-color)) inset}.das-ui-input--border-type-bottom[data-v-62991ba4] .el-textarea .el-textarea__inner:hover{box-shadow:0 -1px 0 0 var(--das-input-border-color, var(--das-input-active-border-color)) inset}.das-ui-input--view[data-v-62991ba4] .el-input .el-input__inner{cursor:default}.das-ui-input--disabled[data-v-62991ba4] .el-input .el-input__wrapper{background-color:var(--das-input-disabled-bg-color)}.das-ui-input--disabled[data-v-62991ba4] .el-input .el-input__inner{color:var(--das-input-sub-font-color);-webkit-text-fill-color:var(--das-input-sub-font-color)}.das-ui-input--disabled.das-ui-textarea[data-v-62991ba4] .el-textarea .el-textarea__inner{color:var(--das-input-sub-font-color);background-color:var(--das-input-disabled-bg-color)}.das-ui-input .das-input-message[data-v-62991ba4]{color:var(--das-input-message-color);font-size:var(--das-input-message-font-size);padding-top:4px}.das-ui-input .das-input-message_content[data-v-62991ba4]{line-height:18px;display:block;white-space:break-spaces}.das-ui-input .das-input-message_content.is-ellipsis[data-v-62991ba4]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.das-ui-input[data-v-62991ba4] .el-input__prefix .el-input__prefix-inner{color:var(--das-input-sub-font-color)}.das-ui-input[data-v-62991ba4] .el-input__prefix .el-input__prefix-inner>:last-child{margin-right:4px}.das-ui-input[data-v-62991ba4] .el-input__suffix .el-input__suffix-inner{color:var(--das-input-sub-font-color)}.das-ui-input[data-v-62991ba4] .el-input__suffix .el-input__suffix-inner>:first-child{margin-left:4px}.das-ui-input[data-v-62991ba4] .el-input-group--prepend .el-input-group__prepend{padding:0 8px;border-radius:2px 0 0 2px;box-shadow:1px 0 0 0 var(--das-input-base-border-color) inset,0 1px 0 0 var(--das-input-base-border-color) inset,0 -1px 0 0 var(--das-input-base-border-color) inset;background-color:transparent}.das-ui-input[data-v-62991ba4] .el-input-group--prepend>.el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.das-ui-input[data-v-62991ba4] .el-input-group--append .el-input-group__append{padding:0 8px;border-radius:0 2px 2px 0;box-shadow:0 1px 0 0 var(--das-input-base-border-color) inset,0 -1px 0 0 var(--das-input-base-border-color) inset,-1px 0 0 0 var(--das-input-base-border-color) inset;background-color:transparent}.das-ui-input[data-v-62991ba4] .el-input-group--append>.el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.das-ui-input[data-v-62991ba4] .el-input .el-input__clear{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685934237687'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2634'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20128c212.064%200%20384%20171.936%20384%20384s-171.936%20384-384%20384S128%20724.064%20128%20512%20299.936%20128%20512%20128z%20m-140.384%20198.72a32%2032%200%200%200-42.24%202.656l-2.656%203.008a32%2032%200%200%200%202.656%2042.24L466.72%20512l-137.344%20137.376a32%2032%200%200%200%2045.248%2045.248L512%20557.28l137.376%20137.344%203.008%202.656a32%2032%200%200%200%2042.24-2.656l2.656-3.008a32%2032%200%200%200-2.656-42.24L557.28%20512l137.344-137.376a32%2032%200%200%200-45.248-45.248L512%20466.72l-137.376-137.344z'%20fill='%23d9d9d9'%20fill-opacity='1'%20p-id='2635'%3e%3c/path%3e%3c/svg%3e");background-size:cover;width:16px;height:16px}.das-ui-input[data-v-62991ba4] .el-input .el-input__clear:hover{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685934237687'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2634'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20128c212.064%200%20384%20171.936%20384%20384s-171.936%20384-384%20384S128%20724.064%20128%20512%20299.936%20128%20512%20128z%20m-140.384%20198.72a32%2032%200%200%200-42.24%202.656l-2.656%203.008a32%2032%200%200%200%202.656%2042.24L466.72%20512l-137.344%20137.376a32%2032%200%200%200%2045.248%2045.248L512%20557.28l137.376%20137.344%203.008%202.656a32%2032%200%200%200%2042.24-2.656l2.656-3.008a32%2032%200%200%200-2.656-42.24L557.28%20512l137.344-137.376a32%2032%200%200%200-45.248-45.248L512%20466.72l-137.376-137.344z'%20fill='%23999999'%20fill-opacity='1'%20p-id='2635'%3e%3c/path%3e%3c/svg%3e")}.das-ui-input[data-v-62991ba4] .el-input .el-input__clear svg{display:none}
|
|
Binary file
|