bkui-vue 2.0.1-beta.72.fix.1 → 2.0.1-beta.73
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/dist/index.cjs.js +45 -45
- package/dist/index.esm.js +13514 -13416
- package/dist/index.umd.js +59 -59
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/index.js +8 -6
- package/lib/color-picker/color-picker.d.ts +16 -0
- package/lib/color-picker/index.d.ts +23 -0
- package/lib/color-picker/index.js +8 -1
- package/lib/dialog/dialog.d.ts +6 -6
- package/lib/dialog/index.d.ts +12 -12
- package/lib/dialog/index.js +3 -1
- package/lib/dialog/props.d.ts +3 -3
- package/lib/index.js +1 -1
- package/lib/input/index.js +42 -521
- package/lib/input/input.css +23 -1
- package/lib/input/input.less +30 -1
- package/lib/input/input.variable.css +23 -1
- package/lib/modal/index.d.ts +13 -13
- package/lib/modal/index.js +7 -7
- package/lib/modal/modal.d.ts +5 -5
- package/lib/modal/props.mixin.d.ts +2 -2
- package/lib/plugin-popover/index.js +2 -1
- package/lib/popover/index.js +2 -1
- package/lib/resize-layout/index.js +4 -0
- package/lib/search-select/index.d.ts +60 -6
- package/lib/search-select/index.js +201 -89
- package/lib/search-select/input.d.ts +12 -2
- package/lib/search-select/menu.d.ts +12 -0
- package/lib/search-select/search-select.css +0 -1
- package/lib/search-select/search-select.d.ts +18 -4
- package/lib/search-select/search-select.less +1 -1
- package/lib/search-select/search-select.variable.css +0 -1
- package/lib/search-select/selected.d.ts +23 -0
- package/lib/select/common.d.ts +1 -1
- package/lib/select/index.d.ts +6 -0
- package/lib/select/index.js +35 -12
- package/lib/select/select.d.ts +2 -0
- package/lib/select/selectTagInput.d.ts +1 -0
- package/lib/select/type.d.ts +2 -2
- package/lib/sideslider/index.d.ts +11 -11
- package/lib/sideslider/sideslider.d.ts +5 -5
- package/lib/tab/index.d.ts +22 -0
- package/lib/tab/index.js +32 -10
- package/lib/tab/props.d.ts +10 -0
- package/lib/tab/tab-nav.d.ts +12 -2
- package/lib/tab/tab-panel.d.ts +22 -0
- package/lib/tab/tab.css +64 -0
- package/lib/tab/tab.less +91 -4
- package/lib/tab/tab.variable.css +64 -0
- package/lib/table/hooks/use-settings.d.ts +2 -0
- package/lib/table/index.js +66 -7
- package/lib/table/props.d.ts +5 -4
- package/lib/table/table.css +6 -0
- package/lib/table/table.less +14 -0
- package/lib/table/table.variable.css +6 -0
- package/lib/table/utils.d.ts +1 -0
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +3 -0
- package/lib/tag-input/index.js +12 -3
- package/lib/tag-input/tag-input.css +9 -9
- package/lib/tag-input/tag-input.d.ts +3 -14
- package/lib/tag-input/tag-input.less +9 -9
- package/lib/tag-input/tag-input.variable.css +9 -9
- package/lib/upload/index.js +31 -9
- package/package.json +1 -1
package/lib/input/index.js
CHANGED
@@ -5,395 +5,10 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
8
|
-
/******/
|
9
|
-
|
10
|
-
/***/ 7609:
|
11
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
12
|
-
|
13
|
-
var _typeof = (__webpack_require__(7425)["default"]);
|
14
|
-
function _regeneratorRuntime() {
|
15
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
16
|
-
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
17
|
-
return e;
|
18
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
19
|
-
var t,
|
20
|
-
e = {},
|
21
|
-
r = Object.prototype,
|
22
|
-
n = r.hasOwnProperty,
|
23
|
-
o = Object.defineProperty || function (t, e, r) {
|
24
|
-
t[e] = r.value;
|
25
|
-
},
|
26
|
-
i = "function" == typeof Symbol ? Symbol : {},
|
27
|
-
a = i.iterator || "@@iterator",
|
28
|
-
c = i.asyncIterator || "@@asyncIterator",
|
29
|
-
u = i.toStringTag || "@@toStringTag";
|
30
|
-
function define(t, e, r) {
|
31
|
-
return Object.defineProperty(t, e, {
|
32
|
-
value: r,
|
33
|
-
enumerable: !0,
|
34
|
-
configurable: !0,
|
35
|
-
writable: !0
|
36
|
-
}), t[e];
|
37
|
-
}
|
38
|
-
try {
|
39
|
-
define({}, "");
|
40
|
-
} catch (t) {
|
41
|
-
define = function define(t, e, r) {
|
42
|
-
return t[e] = r;
|
43
|
-
};
|
44
|
-
}
|
45
|
-
function wrap(t, e, r, n) {
|
46
|
-
var i = e && e.prototype instanceof Generator ? e : Generator,
|
47
|
-
a = Object.create(i.prototype),
|
48
|
-
c = new Context(n || []);
|
49
|
-
return o(a, "_invoke", {
|
50
|
-
value: makeInvokeMethod(t, r, c)
|
51
|
-
}), a;
|
52
|
-
}
|
53
|
-
function tryCatch(t, e, r) {
|
54
|
-
try {
|
55
|
-
return {
|
56
|
-
type: "normal",
|
57
|
-
arg: t.call(e, r)
|
58
|
-
};
|
59
|
-
} catch (t) {
|
60
|
-
return {
|
61
|
-
type: "throw",
|
62
|
-
arg: t
|
63
|
-
};
|
64
|
-
}
|
65
|
-
}
|
66
|
-
e.wrap = wrap;
|
67
|
-
var h = "suspendedStart",
|
68
|
-
l = "suspendedYield",
|
69
|
-
f = "executing",
|
70
|
-
s = "completed",
|
71
|
-
y = {};
|
72
|
-
function Generator() {}
|
73
|
-
function GeneratorFunction() {}
|
74
|
-
function GeneratorFunctionPrototype() {}
|
75
|
-
var p = {};
|
76
|
-
define(p, a, function () {
|
77
|
-
return this;
|
78
|
-
});
|
79
|
-
var d = Object.getPrototypeOf,
|
80
|
-
v = d && d(d(values([])));
|
81
|
-
v && v !== r && n.call(v, a) && (p = v);
|
82
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
83
|
-
function defineIteratorMethods(t) {
|
84
|
-
["next", "throw", "return"].forEach(function (e) {
|
85
|
-
define(t, e, function (t) {
|
86
|
-
return this._invoke(e, t);
|
87
|
-
});
|
88
|
-
});
|
89
|
-
}
|
90
|
-
function AsyncIterator(t, e) {
|
91
|
-
function invoke(r, o, i, a) {
|
92
|
-
var c = tryCatch(t[r], t, o);
|
93
|
-
if ("throw" !== c.type) {
|
94
|
-
var u = c.arg,
|
95
|
-
h = u.value;
|
96
|
-
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
97
|
-
invoke("next", t, i, a);
|
98
|
-
}, function (t) {
|
99
|
-
invoke("throw", t, i, a);
|
100
|
-
}) : e.resolve(h).then(function (t) {
|
101
|
-
u.value = t, i(u);
|
102
|
-
}, function (t) {
|
103
|
-
return invoke("throw", t, i, a);
|
104
|
-
});
|
105
|
-
}
|
106
|
-
a(c.arg);
|
107
|
-
}
|
108
|
-
var r;
|
109
|
-
o(this, "_invoke", {
|
110
|
-
value: function value(t, n) {
|
111
|
-
function callInvokeWithMethodAndArg() {
|
112
|
-
return new e(function (e, r) {
|
113
|
-
invoke(t, n, e, r);
|
114
|
-
});
|
115
|
-
}
|
116
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
117
|
-
}
|
118
|
-
});
|
119
|
-
}
|
120
|
-
function makeInvokeMethod(e, r, n) {
|
121
|
-
var o = h;
|
122
|
-
return function (i, a) {
|
123
|
-
if (o === f) throw new Error("Generator is already running");
|
124
|
-
if (o === s) {
|
125
|
-
if ("throw" === i) throw a;
|
126
|
-
return {
|
127
|
-
value: t,
|
128
|
-
done: !0
|
129
|
-
};
|
130
|
-
}
|
131
|
-
for (n.method = i, n.arg = a;;) {
|
132
|
-
var c = n.delegate;
|
133
|
-
if (c) {
|
134
|
-
var u = maybeInvokeDelegate(c, n);
|
135
|
-
if (u) {
|
136
|
-
if (u === y) continue;
|
137
|
-
return u;
|
138
|
-
}
|
139
|
-
}
|
140
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
141
|
-
if (o === h) throw o = s, n.arg;
|
142
|
-
n.dispatchException(n.arg);
|
143
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
144
|
-
o = f;
|
145
|
-
var p = tryCatch(e, r, n);
|
146
|
-
if ("normal" === p.type) {
|
147
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
148
|
-
return {
|
149
|
-
value: p.arg,
|
150
|
-
done: n.done
|
151
|
-
};
|
152
|
-
}
|
153
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
154
|
-
}
|
155
|
-
};
|
156
|
-
}
|
157
|
-
function maybeInvokeDelegate(e, r) {
|
158
|
-
var n = r.method,
|
159
|
-
o = e.iterator[n];
|
160
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
161
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
162
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
163
|
-
var a = i.arg;
|
164
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
165
|
-
}
|
166
|
-
function pushTryEntry(t) {
|
167
|
-
var e = {
|
168
|
-
tryLoc: t[0]
|
169
|
-
};
|
170
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
171
|
-
}
|
172
|
-
function resetTryEntry(t) {
|
173
|
-
var e = t.completion || {};
|
174
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
175
|
-
}
|
176
|
-
function Context(t) {
|
177
|
-
this.tryEntries = [{
|
178
|
-
tryLoc: "root"
|
179
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
180
|
-
}
|
181
|
-
function values(e) {
|
182
|
-
if (e || "" === e) {
|
183
|
-
var r = e[a];
|
184
|
-
if (r) return r.call(e);
|
185
|
-
if ("function" == typeof e.next) return e;
|
186
|
-
if (!isNaN(e.length)) {
|
187
|
-
var o = -1,
|
188
|
-
i = function next() {
|
189
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
190
|
-
return next.value = t, next.done = !0, next;
|
191
|
-
};
|
192
|
-
return i.next = i;
|
193
|
-
}
|
194
|
-
}
|
195
|
-
throw new TypeError(_typeof(e) + " is not iterable");
|
196
|
-
}
|
197
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
198
|
-
value: GeneratorFunctionPrototype,
|
199
|
-
configurable: !0
|
200
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
201
|
-
value: GeneratorFunction,
|
202
|
-
configurable: !0
|
203
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
204
|
-
var e = "function" == typeof t && t.constructor;
|
205
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
206
|
-
}, e.mark = function (t) {
|
207
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
208
|
-
}, e.awrap = function (t) {
|
209
|
-
return {
|
210
|
-
__await: t
|
211
|
-
};
|
212
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
213
|
-
return this;
|
214
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
215
|
-
void 0 === i && (i = Promise);
|
216
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
217
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
218
|
-
return t.done ? t.value : a.next();
|
219
|
-
});
|
220
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
221
|
-
return this;
|
222
|
-
}), define(g, "toString", function () {
|
223
|
-
return "[object Generator]";
|
224
|
-
}), e.keys = function (t) {
|
225
|
-
var e = Object(t),
|
226
|
-
r = [];
|
227
|
-
for (var n in e) r.push(n);
|
228
|
-
return r.reverse(), function next() {
|
229
|
-
for (; r.length;) {
|
230
|
-
var t = r.pop();
|
231
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
232
|
-
}
|
233
|
-
return next.done = !0, next;
|
234
|
-
};
|
235
|
-
}, e.values = values, Context.prototype = {
|
236
|
-
constructor: Context,
|
237
|
-
reset: function reset(e) {
|
238
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
239
|
-
},
|
240
|
-
stop: function stop() {
|
241
|
-
this.done = !0;
|
242
|
-
var t = this.tryEntries[0].completion;
|
243
|
-
if ("throw" === t.type) throw t.arg;
|
244
|
-
return this.rval;
|
245
|
-
},
|
246
|
-
dispatchException: function dispatchException(e) {
|
247
|
-
if (this.done) throw e;
|
248
|
-
var r = this;
|
249
|
-
function handle(n, o) {
|
250
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
251
|
-
}
|
252
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
253
|
-
var i = this.tryEntries[o],
|
254
|
-
a = i.completion;
|
255
|
-
if ("root" === i.tryLoc) return handle("end");
|
256
|
-
if (i.tryLoc <= this.prev) {
|
257
|
-
var c = n.call(i, "catchLoc"),
|
258
|
-
u = n.call(i, "finallyLoc");
|
259
|
-
if (c && u) {
|
260
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
261
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
262
|
-
} else if (c) {
|
263
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
264
|
-
} else {
|
265
|
-
if (!u) throw new Error("try statement without catch or finally");
|
266
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
267
|
-
}
|
268
|
-
}
|
269
|
-
}
|
270
|
-
},
|
271
|
-
abrupt: function abrupt(t, e) {
|
272
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
273
|
-
var o = this.tryEntries[r];
|
274
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
275
|
-
var i = o;
|
276
|
-
break;
|
277
|
-
}
|
278
|
-
}
|
279
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
280
|
-
var a = i ? i.completion : {};
|
281
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
282
|
-
},
|
283
|
-
complete: function complete(t, e) {
|
284
|
-
if ("throw" === t.type) throw t.arg;
|
285
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
286
|
-
},
|
287
|
-
finish: function finish(t) {
|
288
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
289
|
-
var r = this.tryEntries[e];
|
290
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
291
|
-
}
|
292
|
-
},
|
293
|
-
"catch": function _catch(t) {
|
294
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
295
|
-
var r = this.tryEntries[e];
|
296
|
-
if (r.tryLoc === t) {
|
297
|
-
var n = r.completion;
|
298
|
-
if ("throw" === n.type) {
|
299
|
-
var o = n.arg;
|
300
|
-
resetTryEntry(r);
|
301
|
-
}
|
302
|
-
return o;
|
303
|
-
}
|
304
|
-
}
|
305
|
-
throw new Error("illegal catch attempt");
|
306
|
-
},
|
307
|
-
delegateYield: function delegateYield(e, r, n) {
|
308
|
-
return this.delegate = {
|
309
|
-
iterator: values(e),
|
310
|
-
resultName: r,
|
311
|
-
nextLoc: n
|
312
|
-
}, "next" === this.method && (this.arg = t), y;
|
313
|
-
}
|
314
|
-
}, e;
|
315
|
-
}
|
316
|
-
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
317
|
-
|
318
|
-
/***/ }),
|
319
|
-
|
320
|
-
/***/ 7425:
|
321
|
-
/***/ ((module) => {
|
322
|
-
|
323
|
-
function _typeof(o) {
|
324
|
-
"@babel/helpers - typeof";
|
325
|
-
|
326
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
327
|
-
return typeof o;
|
328
|
-
} : function (o) {
|
329
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
330
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
331
|
-
}
|
332
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
333
|
-
|
334
|
-
/***/ }),
|
335
|
-
|
336
|
-
/***/ 2841:
|
337
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
338
|
-
|
339
|
-
// TODO(Babel 8): Remove this file.
|
340
|
-
|
341
|
-
var runtime = __webpack_require__(7609)();
|
342
|
-
module.exports = runtime;
|
343
|
-
|
344
|
-
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
345
|
-
try {
|
346
|
-
regeneratorRuntime = runtime;
|
347
|
-
} catch (accidentalStrictMode) {
|
348
|
-
if (typeof globalThis === "object") {
|
349
|
-
globalThis.regeneratorRuntime = runtime;
|
350
|
-
} else {
|
351
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
352
|
-
}
|
353
|
-
}
|
354
|
-
|
355
|
-
|
356
|
-
/***/ })
|
357
|
-
|
358
|
-
/******/ });
|
359
|
-
/************************************************************************/
|
360
|
-
/******/ // The module cache
|
361
|
-
/******/ var __webpack_module_cache__ = {};
|
362
|
-
/******/
|
363
|
-
/******/ // The require function
|
364
|
-
/******/ function __webpack_require__(moduleId) {
|
365
|
-
/******/ // Check if module is in cache
|
366
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
367
|
-
/******/ if (cachedModule !== undefined) {
|
368
|
-
/******/ return cachedModule.exports;
|
369
|
-
/******/ }
|
370
|
-
/******/ // Create a new module (and put it into the cache)
|
371
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
372
|
-
/******/ // no module.id needed
|
373
|
-
/******/ // no module.loaded needed
|
374
|
-
/******/ exports: {}
|
375
|
-
/******/ };
|
376
|
-
/******/
|
377
|
-
/******/ // Execute the module function
|
378
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
379
|
-
/******/
|
380
|
-
/******/ // Return the exports of the module
|
381
|
-
/******/ return module.exports;
|
382
|
-
/******/ }
|
8
|
+
/******/ // The require scope
|
9
|
+
/******/ var __webpack_require__ = {};
|
383
10
|
/******/
|
384
11
|
/************************************************************************/
|
385
|
-
/******/ /* webpack/runtime/compat get default export */
|
386
|
-
/******/ (() => {
|
387
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
388
|
-
/******/ __webpack_require__.n = (module) => {
|
389
|
-
/******/ var getter = module && module.__esModule ?
|
390
|
-
/******/ () => (module['default']) :
|
391
|
-
/******/ () => (module);
|
392
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
393
|
-
/******/ return getter;
|
394
|
-
/******/ };
|
395
|
-
/******/ })();
|
396
|
-
/******/
|
397
12
|
/******/ /* webpack/runtime/define property getters */
|
398
13
|
/******/ (() => {
|
399
14
|
/******/ // define getter functions for harmony exports
|
@@ -413,8 +28,6 @@ try {
|
|
413
28
|
/******/
|
414
29
|
/************************************************************************/
|
415
30
|
var __webpack_exports__ = {};
|
416
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
417
|
-
(() => {
|
418
31
|
|
419
32
|
// EXPORTS
|
420
33
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -485,37 +98,6 @@ function _nonIterableRest() {
|
|
485
98
|
function _slicedToArray(arr, i) {
|
486
99
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
487
100
|
}
|
488
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
489
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
490
|
-
try {
|
491
|
-
var info = gen[key](arg);
|
492
|
-
var value = info.value;
|
493
|
-
} catch (error) {
|
494
|
-
reject(error);
|
495
|
-
return;
|
496
|
-
}
|
497
|
-
if (info.done) {
|
498
|
-
resolve(value);
|
499
|
-
} else {
|
500
|
-
Promise.resolve(value).then(_next, _throw);
|
501
|
-
}
|
502
|
-
}
|
503
|
-
function _asyncToGenerator(fn) {
|
504
|
-
return function () {
|
505
|
-
var self = this,
|
506
|
-
args = arguments;
|
507
|
-
return new Promise(function (resolve, reject) {
|
508
|
-
var gen = fn.apply(self, args);
|
509
|
-
function _next(value) {
|
510
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
511
|
-
}
|
512
|
-
function _throw(err) {
|
513
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
514
|
-
}
|
515
|
-
_next(undefined);
|
516
|
-
});
|
517
|
-
};
|
518
|
-
}
|
519
101
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
520
102
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
521
103
|
if (source == null) return {};
|
@@ -594,10 +176,7 @@ function _defineProperty(obj, key, value) {
|
|
594
176
|
;// CONCATENATED MODULE: external "vue"
|
595
177
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
596
178
|
var external_vue_y = x => () => x
|
597
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["
|
598
|
-
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
599
|
-
var regenerator = __webpack_require__(2841);
|
600
|
-
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
179
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
601
180
|
;// CONCATENATED MODULE: external "../config-provider"
|
602
181
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
603
182
|
var config_provider_y = x => () => x
|
@@ -638,7 +217,7 @@ const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE
|
|
638
217
|
*/
|
639
218
|
var hiddenTextarea = undefined;
|
640
219
|
// ${isFirefox() ? '' : 'overflow:hidden !important;'}
|
641
|
-
var HIDDEN_STYLE = "\n height:0 !important;\n visibility:hidden !important;\n
|
220
|
+
var HIDDEN_STYLE = "\n height:0 !important;\n visibility:hidden !important;\n\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n";
|
642
221
|
var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
|
643
222
|
function calculateNodeStyling(targetElement) {
|
644
223
|
var style = window.getComputedStyle(targetElement);
|
@@ -703,11 +282,9 @@ function calcTextareaHeight(targetElement) {
|
|
703
282
|
|
704
283
|
|
705
284
|
|
706
|
-
|
707
285
|
var _excluded = ["class", "style"];
|
708
286
|
var _inputEmitEventsType;
|
709
287
|
|
710
|
-
|
711
288
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
712
289
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
713
290
|
/*
|
@@ -791,9 +368,11 @@ var EVENTS;
|
|
791
368
|
EVENTS["PASTE"] = "paste";
|
792
369
|
EVENTS["UPDATE"] = "update:modelValue";
|
793
370
|
})(EVENTS || (EVENTS = {}));
|
371
|
+
/* eslint-disable-next-line */
|
794
372
|
function EventFunction(_value, _evt) {
|
795
373
|
return true;
|
796
374
|
}
|
375
|
+
/* eslint-disable-next-line */
|
797
376
|
function PastEventFunction(_value, _e) {
|
798
377
|
return true;
|
799
378
|
}
|
@@ -832,7 +411,6 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
832
411
|
cls = _ctx$attrs["class"],
|
833
412
|
style = _ctx$attrs.style,
|
834
413
|
inputAttrs = _objectWithoutProperties(_ctx$attrs, _excluded);
|
835
|
-
var parentRef = (0,external_vue_namespaceObject.ref)();
|
836
414
|
var inputRef = (0,external_vue_namespaceObject.ref)();
|
837
415
|
var innerInputValue = (0,external_vue_namespaceObject.ref)(typeof props.modelValue === 'undefined' || props.modelValue === null ? {} : {
|
838
416
|
value: props.modelValue
|
@@ -841,59 +419,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
841
419
|
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(inputClsPrefix.value, "--").concat(props.size), !!props.size), "resizable", props.resize), 'is-focused', isFocused.value), 'is-readonly', props.readonly && !props.selectReadonly), 'is-disabled', props.disabled), 'is-simplicity', props.behavior === 'simplicity'), "".concat(ctx.attrs["class"]), !!ctx.attrs["class"]), inputClsPrefix.value);
|
842
420
|
});
|
843
421
|
var isOverflow = (0,external_vue_namespaceObject.ref)(false);
|
844
|
-
var textareaCalcStyle = (0,external_vue_namespaceObject.ref)(
|
845
|
-
var resizeTextarea = function resizeTextarea() {
|
846
|
-
if (!isTextArea.value) return;
|
847
|
-
if (props.autosize) {
|
848
|
-
var _props$autosize, _props$autosize2;
|
849
|
-
var minRows = (_props$autosize = props.autosize) === null || _props$autosize === void 0 ? void 0 : _props$autosize.minRows;
|
850
|
-
var maxRows = (_props$autosize2 = props.autosize) === null || _props$autosize2 === void 0 ? void 0 : _props$autosize2.maxRows;
|
851
|
-
var textareaStyle = calcTextareaHeight(inputRef.value, minRows, maxRows);
|
852
|
-
textareaCalcStyle.value = _objectSpread({
|
853
|
-
overflowY: 'hidden'
|
854
|
-
}, textareaStyle);
|
855
|
-
(0,external_vue_namespaceObject.nextTick)(function () {
|
856
|
-
textareaCalcStyle.value = textareaStyle;
|
857
|
-
});
|
858
|
-
} else {
|
859
|
-
textareaCalcStyle.value = {
|
860
|
-
minHeight: calcTextareaHeight(inputRef.value).minHeight
|
861
|
-
};
|
862
|
-
}
|
863
|
-
};
|
864
|
-
var createOnceInitResize = function createOnceInitResize(resizeTextarea) {
|
865
|
-
var isInit = false;
|
866
|
-
return function () {
|
867
|
-
var _inputRef$value;
|
868
|
-
if (isInit || !props.autosize) return;
|
869
|
-
var isElHidden = ((_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.offsetParent) === null;
|
870
|
-
if (!isElHidden) {
|
871
|
-
resizeTextarea();
|
872
|
-
isInit = true;
|
873
|
-
}
|
874
|
-
};
|
875
|
-
};
|
876
|
-
var dragTextareaResize = function dragTextareaResize() {
|
877
|
-
return function () {
|
878
|
-
var _parentRef$value;
|
879
|
-
// 必须是autosize才能实现拖拽,且设置了maxRows还是会覆盖原有默认高度出现滚动条
|
880
|
-
if (!isTextArea.value || !props.autosize) return;
|
881
|
-
var isElHidden = ((_parentRef$value = parentRef.value) === null || _parentRef$value === void 0 ? void 0 : _parentRef$value.offsetParent) === null;
|
882
|
-
if (!isElHidden) {
|
883
|
-
var _inputRef$value2, _parentRef$value2, _parentRef$value3, _parentRef$value4, _parentRef$value5;
|
884
|
-
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || (_inputRef$value2 = _inputRef$value2.style) === null || _inputRef$value2 === void 0 || _inputRef$value2.setProperty('height', "".concat((_parentRef$value2 = parentRef.value) === null || _parentRef$value2 === void 0 ? void 0 : _parentRef$value2.offsetHeight, "px"));
|
885
|
-
textareaCalcStyle.value = Object.assign(textareaCalcStyle.value, {
|
886
|
-
height: "".concat((_parentRef$value3 = parentRef.value) === null || _parentRef$value3 === void 0 ? void 0 : _parentRef$value3.offsetHeight, "px")
|
887
|
-
});
|
888
|
-
if (((_parentRef$value4 = parentRef.value) === null || _parentRef$value4 === void 0 ? void 0 : _parentRef$value4.offsetWidth) > ((_parentRef$value5 = parentRef.value) === null || _parentRef$value5 === void 0 || (_parentRef$value5 = _parentRef$value5.parentNode) === null || _parentRef$value5 === void 0 ? void 0 : _parentRef$value5.offsetWidth)) {
|
889
|
-
var _parentRef$value6, _parentRef$value7;
|
890
|
-
(_parentRef$value6 = parentRef.value) === null || _parentRef$value6 === void 0 || (_parentRef$value6 = _parentRef$value6.style) === null || _parentRef$value6 === void 0 || _parentRef$value6.setProperty('width', "".concat((_parentRef$value7 = parentRef.value) === null || _parentRef$value7 === void 0 || (_parentRef$value7 = _parentRef$value7.parentNode) === null || _parentRef$value7 === void 0 ? void 0 : _parentRef$value7.offsetWidth, "px"));
|
891
|
-
}
|
892
|
-
}
|
893
|
-
};
|
894
|
-
};
|
895
|
-
var onceInitSizeTextarea = createOnceInitResize(resizeTextarea);
|
896
|
-
var onDragSizeTextarea = dragTextareaResize();
|
422
|
+
var textareaCalcStyle = (0,external_vue_namespaceObject.ref)();
|
897
423
|
var suffixCls = getCls('suffix-icon');
|
898
424
|
var suffixIconMap = {
|
899
425
|
search: function search() {
|
@@ -984,27 +510,11 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
984
510
|
var showMaxLimit = (0,external_vue_namespaceObject.computed)(function () {
|
985
511
|
return typeof props.maxlength === 'number' || typeof props.maxcharacter === 'number';
|
986
512
|
});
|
987
|
-
var resizeObserver = new ResizeObserver(function () {
|
988
|
-
onceInitSizeTextarea();
|
989
|
-
onDragSizeTextarea();
|
990
|
-
setOverflow();
|
991
|
-
});
|
992
513
|
(0,external_vue_namespaceObject.watch)(function () {
|
993
514
|
return props.type;
|
994
|
-
},
|
995
|
-
|
996
|
-
|
997
|
-
case 0:
|
998
|
-
_context.next = 2;
|
999
|
-
return (0,external_vue_namespaceObject.nextTick)();
|
1000
|
-
case 2:
|
1001
|
-
resizeTextarea();
|
1002
|
-
case 3:
|
1003
|
-
case "end":
|
1004
|
-
return _context.stop();
|
1005
|
-
}
|
1006
|
-
}, _callee);
|
1007
|
-
})));
|
515
|
+
}, function () {
|
516
|
+
(0,external_vue_namespaceObject.nextTick)(onResize);
|
517
|
+
});
|
1008
518
|
(0,external_vue_namespaceObject.watch)(function () {
|
1009
519
|
return props.modelValue;
|
1010
520
|
}, function (val) {
|
@@ -1015,27 +525,16 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1015
525
|
innerInputValue.value = {
|
1016
526
|
value: val
|
1017
527
|
};
|
1018
|
-
(0,external_vue_namespaceObject.nextTick)(
|
1019
|
-
resizeTextarea();
|
1020
|
-
onDragSizeTextarea();
|
1021
|
-
});
|
1022
|
-
setOverflow();
|
528
|
+
(0,external_vue_namespaceObject.nextTick)(onResize);
|
1023
529
|
});
|
1024
530
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
1025
|
-
|
1026
|
-
resizeObserver.observe(inputRef.value);
|
1027
|
-
(0,external_vue_namespaceObject.nextTick)(function () {
|
1028
|
-
return resizeTextarea();
|
1029
|
-
});
|
531
|
+
(0,external_vue_namespaceObject.nextTick)(onResize);
|
1030
532
|
// Hack: 修复autofocus属性失效问题 原生autofocus属性只在页面加载时生效
|
1031
533
|
if (Object.prototype.hasOwnProperty.call(ctx.attrs, 'autofocus')) {
|
1032
|
-
var _inputRef$
|
1033
|
-
(_inputRef$
|
534
|
+
var _inputRef$value, _inputRef$value$focus;
|
535
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || (_inputRef$value$focus = _inputRef$value.focus) === null || _inputRef$value$focus === void 0 || _inputRef$value$focus.call(_inputRef$value);
|
1034
536
|
}
|
1035
537
|
});
|
1036
|
-
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
1037
|
-
resizeObserver.disconnect();
|
1038
|
-
});
|
1039
538
|
ctx.expose({
|
1040
539
|
focus: function focus() {
|
1041
540
|
inputRef.value.focus();
|
@@ -1046,9 +545,34 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1046
545
|
},
|
1047
546
|
clear: clear
|
1048
547
|
});
|
548
|
+
function onResize() {
|
549
|
+
autoResizeTextarea();
|
550
|
+
setOverflow();
|
551
|
+
}
|
552
|
+
function autoResizeTextarea() {
|
553
|
+
var _inputRef$value2;
|
554
|
+
var isElHidden = ((_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.offsetParent) === null;
|
555
|
+
if (!isTextArea.value || isElHidden || props.resize) return;
|
556
|
+
if (props.autosize) {
|
557
|
+
var _props$autosize, _props$autosize2;
|
558
|
+
var minRows = (_props$autosize = props.autosize) === null || _props$autosize === void 0 ? void 0 : _props$autosize.minRows;
|
559
|
+
var maxRows = (_props$autosize2 = props.autosize) === null || _props$autosize2 === void 0 ? void 0 : _props$autosize2.maxRows;
|
560
|
+
var textareaStyle = calcTextareaHeight(inputRef.value, minRows, maxRows);
|
561
|
+
textareaCalcStyle.value = _objectSpread({
|
562
|
+
overflowY: 'hidden'
|
563
|
+
}, textareaStyle);
|
564
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
565
|
+
textareaCalcStyle.value = textareaStyle;
|
566
|
+
});
|
567
|
+
} else {
|
568
|
+
textareaCalcStyle.value = {
|
569
|
+
minHeight: calcTextareaHeight(inputRef.value).minHeight
|
570
|
+
};
|
571
|
+
}
|
572
|
+
}
|
1049
573
|
function detectOverflow() {
|
1050
|
-
var _inputRef$
|
1051
|
-
return ((_inputRef$
|
574
|
+
var _inputRef$value3, _inputRef$value4;
|
575
|
+
return ((_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 ? void 0 : _inputRef$value3.scrollWidth) > ((_inputRef$value4 = inputRef.value) === null || _inputRef$value4 === void 0 ? void 0 : _inputRef$value4.clientWidth) + 2;
|
1052
576
|
}
|
1053
577
|
function setOverflow() {
|
1054
578
|
setTimeout(function () {
|
@@ -1186,7 +710,6 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1186
710
|
return function () {
|
1187
711
|
var _ctx$slots$prefix, _ctx$slots, _ctx$slots$prefix2, _ctx$slots$suffix, _ctx$slots2, _ctx$slots2$suffix;
|
1188
712
|
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
1189
|
-
"ref": parentRef,
|
1190
713
|
"style": style,
|
1191
714
|
"class": inputCls.value
|
1192
715
|
}, [(_ctx$slots$prefix = (_ctx$slots = ctx.slots) === null || _ctx$slots === void 0 || (_ctx$slots$prefix2 = _ctx$slots.prefix) === null || _ctx$slots$prefix2 === void 0 ? void 0 : _ctx$slots$prefix2.call(_ctx$slots)) !== null && _ctx$slots$prefix !== void 0 ? _ctx$slots$prefix : props.prefix && (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -1208,7 +731,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1208
731
|
"min": props.min,
|
1209
732
|
"step": props.step,
|
1210
733
|
"type": pwdVisible.value && props.type === 'password' ? 'text' : props.type
|
1211
|
-
}, eventListener, bindProps.value, innerInputValue.value), null),
|
734
|
+
}, eventListener, bindProps.value, innerInputValue.value), null), props.clearable && !!props.modelValue && (0,external_vue_namespaceObject.createVNode)("span", {
|
1212
735
|
"class": clearCls.value,
|
1213
736
|
"onClick": clear
|
1214
737
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, null, null)]), suffixIcon.value, showMaxLimit.value && (props.showWordLimit || isTextArea.value) && (0,external_vue_namespaceObject.createVNode)("p", {
|
@@ -1259,7 +782,5 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1259
782
|
|
1260
783
|
var BkInput = (0,shared_namespaceObject.withInstall)(input);
|
1261
784
|
/* harmony default export */ const src = (BkInput);
|
1262
|
-
})();
|
1263
|
-
|
1264
785
|
var __webpack_exports__default = __webpack_exports__["default"];
|
1265
786
|
export { __webpack_exports__default as default };
|