bkui-vue 0.0.3-beta.6 → 1.0.1
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/README.md +1 -0
- package/dist/index.cjs.js +47 -47
- package/dist/index.esm.js +10444 -10431
- package/dist/index.umd.js +47 -47
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +35 -34
- package/lib/alert/alert.d.ts +1 -1
- package/lib/alert/index.d.ts +82 -132
- package/lib/alert/index.js +43 -42
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +7 -7
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +23 -22
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +120 -153
- package/lib/badge/index.js +40 -39
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +48 -47
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +60 -53
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +129 -158
- package/lib/card/index.js +62 -57
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +338 -320
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +119 -161
- package/lib/checkbox/index.js +77 -78
- package/lib/code-diff/code-diff.css +0 -1
- package/lib/code-diff/code-diff.d.ts +1 -0
- package/lib/code-diff/code-diff.less +1 -1
- package/lib/code-diff/code-diff.variable.css +0 -1
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +532 -452
- package/lib/collapse/index.d.ts +144 -168
- package/lib/collapse/index.js +67 -66
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +10 -10
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +128 -154
- package/lib/color-picker/index.js +74 -76
- package/lib/components.js +63 -504
- package/lib/config-provider/index.d.ts +159 -226
- package/lib/config-provider/index.js +49 -45
- package/lib/config-provider/use-global-config.d.ts +2 -2
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +47 -46
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +3 -3
- package/lib/date-picker/index.d.ts +384 -351
- package/lib/date-picker/index.js +164 -170
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +3 -3
- package/lib/dialog/index.d.ts +355 -309
- package/lib/dialog/index.js +291 -279
- package/lib/directives/index.js +51 -51
- package/lib/dist.index.js +5 -61
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +16 -15
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +56 -49
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +37 -37
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +16 -15
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +83 -83
- package/lib/hooks.js +8 -48
- package/lib/icon/angle-double-down-line.js +23 -23
- package/lib/icon/angle-double-left-line.js +23 -23
- package/lib/icon/angle-double-left.js +23 -23
- package/lib/icon/angle-double-right-line.js +23 -23
- package/lib/icon/angle-double-right.js +23 -23
- package/lib/icon/angle-double-up-line.js +23 -23
- package/lib/icon/angle-down-fill.js +23 -23
- package/lib/icon/angle-down-line.js +23 -23
- package/lib/icon/angle-down.js +23 -23
- package/lib/icon/angle-left.js +23 -23
- package/lib/icon/angle-right.js +23 -23
- package/lib/icon/angle-up-fill.js +23 -23
- package/lib/icon/angle-up.js +23 -23
- package/lib/icon/archive-fill.js +23 -23
- package/lib/icon/arrows-left.js +23 -23
- package/lib/icon/arrows-right.js +23 -23
- package/lib/icon/assistant.js +23 -23
- package/lib/icon/audio-fill.js +23 -23
- package/lib/icon/bk.js +23 -23
- package/lib/icon/circle.js +23 -23
- package/lib/icon/close-line.js +23 -23
- package/lib/icon/close.js +23 -23
- package/lib/icon/code.js +23 -23
- package/lib/icon/cog-shape.js +23 -23
- package/lib/icon/collapse-left.js +23 -23
- package/lib/icon/copy-shape.js +23 -23
- package/lib/icon/copy.js +23 -23
- package/lib/icon/data-shape.js +23 -23
- package/lib/icon/del.js +23 -23
- package/lib/icon/doc-fill.js +23 -23
- package/lib/icon/done.js +23 -23
- package/lib/icon/down-shape.js +23 -23
- package/lib/icon/down-small.js +23 -23
- package/lib/icon/edit-line.js +23 -23
- package/lib/icon/ellipsis.js +23 -23
- package/lib/icon/enlarge-line.js +23 -23
- package/lib/icon/error.js +23 -23
- package/lib/icon/excel-fill.js +23 -23
- package/lib/icon/exclamation-circle-shape.js +23 -23
- package/lib/icon/eye.js +23 -23
- package/lib/icon/filliscreen-line.js +23 -23
- package/lib/icon/fix-line.js +23 -23
- package/lib/icon/fix-shape.js +23 -23
- package/lib/icon/folder-open.js +23 -23
- package/lib/icon/folder-shape-open.js +23 -23
- package/lib/icon/folder-shape.js +23 -23
- package/lib/icon/folder.js +23 -23
- package/lib/icon/funnel.js +23 -23
- package/lib/icon/grag-fill.js +23 -23
- package/lib/icon/help-document-fill.js +23 -23
- package/lib/icon/help-fill.js +23 -23
- package/lib/icon/help.js +23 -23
- package/lib/icon/image-fill.js +29 -29
- package/lib/icon/img-error.js +29 -29
- package/lib/icon/img-placehoulder.js +29 -29
- package/lib/icon/index.js +485 -485
- package/lib/icon/info-line.js +29 -29
- package/lib/icon/info.js +29 -29
- package/lib/icon/left-shape.js +29 -29
- package/lib/icon/left-turn-line.js +29 -29
- package/lib/icon/loading.js +29 -29
- package/lib/icon/narrow-line.js +29 -29
- package/lib/icon/original.js +29 -29
- package/lib/icon/pdf-fill.js +29 -29
- package/lib/icon/play-shape.js +29 -29
- package/lib/icon/plus.js +29 -29
- package/lib/icon/ppt-fill.js +29 -29
- package/lib/icon/qq.js +29 -29
- package/lib/icon/right-shape.js +29 -29
- package/lib/icon/right-turn-line.js +29 -29
- package/lib/icon/search.js +29 -29
- package/lib/icon/share.js +29 -29
- package/lib/icon/spinner.js +29 -29
- package/lib/icon/success.js +29 -29
- package/lib/icon/switcher-loading.js +29 -29
- package/lib/icon/text-file.js +29 -29
- package/lib/icon/text-fill.js +29 -29
- package/lib/icon/transfer.js +29 -29
- package/lib/icon/tree-application-shape.js +29 -29
- package/lib/icon/unfull-screen.js +29 -29
- package/lib/icon/unvisible.js +29 -29
- package/lib/icon/up-shape.js +29 -29
- package/lib/icon/upload.js +29 -29
- package/lib/icon/video-fill.js +29 -29
- package/lib/icon/warn.js +29 -29
- package/lib/icon/weixin-pro.js +29 -29
- package/lib/icon/weixin.js +29 -29
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +62 -62
- package/lib/index.js +8 -72
- package/lib/info-box/index.js +296 -284
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +316 -317
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +16 -15
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +49 -50
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +2 -4
- package/lib/menu/index.d.ts +51 -112
- package/lib/menu/index.js +49 -48
- package/lib/message/index.js +69 -70
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +261 -249
- package/lib/modal/index.js +535 -75
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +17 -16
- package/lib/notify/index.js +56 -57
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.d.ts +314 -242
- package/lib/overflow-title/index.js +32 -25
- package/lib/pagination/index.d.ts +194 -205
- package/lib/pagination/index.js +116 -109
- package/lib/plugin-popover/index.js +247 -153
- package/lib/plugins/index.js +2 -2
- package/lib/pop-confirm/index.d.ts +126 -159
- package/lib/pop-confirm/index.js +43 -31
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +374 -330
- package/lib/popover/index.js +251 -156
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +5 -5
- package/lib/preset.d.ts +2 -287
- package/lib/preset.js +16 -58
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +253 -254
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +48 -47
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +83 -135
- package/lib/radio/index.js +80 -81
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +43 -43
- package/lib/resize-layout/index.d.ts +156 -185
- package/lib/resize-layout/index.js +48 -48
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/search-select/index.d.ts +292 -327
- package/lib/search-select/index.js +310 -293
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +3 -3
- package/lib/search-select/selected.d.ts +2 -2
- package/lib/select/index.d.ts +1234 -1135
- package/lib/select/index.js +427 -392
- package/lib/select/select.d.ts +121 -161
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/helper.d.ts +4 -0
- package/lib/shared/index.js +235 -217
- package/lib/sideslider/index.d.ts +247 -233
- package/lib/sideslider/index.js +264 -263
- package/lib/slider/index.d.ts +204 -204
- package/lib/slider/index.js +245 -233
- package/lib/steps/index.d.ts +114 -150
- package/lib/steps/index.js +257 -257
- package/lib/styles/index.d.ts +0 -1
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +35 -34
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +52 -53
- package/lib/tab/index.d.ts +199 -211
- package/lib/tab/index.js +78 -79
- package/lib/table/components/table-column.d.ts +2 -2
- package/lib/table/index.d.ts +605 -593
- package/lib/table/index.js +275 -237
- package/lib/table/plugins/use-pagination.d.ts +1 -1
- package/lib/table/table.d.ts +1 -1
- package/lib/table/use-common.d.ts +67 -34
- package/lib/table-column/index.d.ts +207 -243
- package/lib/table-column/index.js +61 -62
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +41 -40
- package/lib/tag-input/index.d.ts +690 -498
- package/lib/tag-input/index.js +135 -129
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +442 -385
- package/lib/time-picker/index.js +10 -9
- package/lib/timeline/index.d.ts +50 -109
- package/lib/timeline/index.js +20 -20
- package/lib/transfer/index.d.ts +191 -206
- package/lib/transfer/index.js +52 -38
- package/lib/tree/index.d.ts +322 -288
- package/lib/tree/index.js +129 -113
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +281 -254
- package/lib/upload/index.js +313 -302
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +337 -242
- package/lib/virtual-render/index.js +66 -65
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +10 -14
- package/lib/version-log/index.d.ts +0 -298
- package/lib/version-log/index.js +0 -9045
- package/lib/version-log/version-log.css +0 -224
- package/lib/version-log/version-log.d.ts +0 -203
- package/lib/version-log/version-log.less +0 -239
- package/lib/version-log/version-log.variable.css +0 -350
package/lib/input/index.js
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import "./input.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
-
import * as
|
5
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
6
7
|
/******/ var __webpack_modules__ = ({
|
7
8
|
|
8
9
|
/***/ 7609:
|
@@ -12,304 +13,304 @@ var _typeof = (__webpack_require__(7425)["default"]);
|
|
12
13
|
function _regeneratorRuntime() {
|
13
14
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
14
15
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
15
|
-
return
|
16
|
+
return e;
|
16
17
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
17
|
-
var
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
var t,
|
19
|
+
e = {},
|
20
|
+
r = Object.prototype,
|
21
|
+
n = r.hasOwnProperty,
|
22
|
+
o = Object.defineProperty || function (t, e, r) {
|
23
|
+
t[e] = r.value;
|
22
24
|
},
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
function define(
|
28
|
-
return Object.defineProperty(
|
29
|
-
value:
|
25
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
26
|
+
a = i.iterator || "@@iterator",
|
27
|
+
c = i.asyncIterator || "@@asyncIterator",
|
28
|
+
u = i.toStringTag || "@@toStringTag";
|
29
|
+
function define(t, e, r) {
|
30
|
+
return Object.defineProperty(t, e, {
|
31
|
+
value: r,
|
30
32
|
enumerable: !0,
|
31
33
|
configurable: !0,
|
32
34
|
writable: !0
|
33
|
-
}),
|
35
|
+
}), t[e];
|
34
36
|
}
|
35
37
|
try {
|
36
38
|
define({}, "");
|
37
|
-
} catch (
|
38
|
-
define = function define(
|
39
|
-
return
|
39
|
+
} catch (t) {
|
40
|
+
define = function define(t, e, r) {
|
41
|
+
return t[e] = r;
|
40
42
|
};
|
41
43
|
}
|
42
|
-
function wrap(
|
43
|
-
var
|
44
|
-
|
45
|
-
|
46
|
-
return
|
47
|
-
value: makeInvokeMethod(
|
48
|
-
}),
|
44
|
+
function wrap(t, e, r, n) {
|
45
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
46
|
+
a = Object.create(i.prototype),
|
47
|
+
c = new Context(n || []);
|
48
|
+
return o(a, "_invoke", {
|
49
|
+
value: makeInvokeMethod(t, r, c)
|
50
|
+
}), a;
|
49
51
|
}
|
50
|
-
function tryCatch(
|
52
|
+
function tryCatch(t, e, r) {
|
51
53
|
try {
|
52
54
|
return {
|
53
55
|
type: "normal",
|
54
|
-
arg:
|
56
|
+
arg: t.call(e, r)
|
55
57
|
};
|
56
|
-
} catch (
|
58
|
+
} catch (t) {
|
57
59
|
return {
|
58
60
|
type: "throw",
|
59
|
-
arg:
|
61
|
+
arg: t
|
60
62
|
};
|
61
63
|
}
|
62
64
|
}
|
63
|
-
|
64
|
-
var
|
65
|
+
e.wrap = wrap;
|
66
|
+
var h = "suspendedStart",
|
67
|
+
l = "suspendedYield",
|
68
|
+
f = "executing",
|
69
|
+
s = "completed",
|
70
|
+
y = {};
|
65
71
|
function Generator() {}
|
66
72
|
function GeneratorFunction() {}
|
67
73
|
function GeneratorFunctionPrototype() {}
|
68
|
-
var
|
69
|
-
define(
|
74
|
+
var p = {};
|
75
|
+
define(p, a, function () {
|
70
76
|
return this;
|
71
77
|
});
|
72
|
-
var
|
73
|
-
|
74
|
-
|
75
|
-
var
|
76
|
-
function defineIteratorMethods(
|
77
|
-
["next", "throw", "return"].forEach(function (
|
78
|
-
define(
|
79
|
-
return this._invoke(
|
78
|
+
var d = Object.getPrototypeOf,
|
79
|
+
v = d && d(d(values([])));
|
80
|
+
v && v !== r && n.call(v, a) && (p = v);
|
81
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
82
|
+
function defineIteratorMethods(t) {
|
83
|
+
["next", "throw", "return"].forEach(function (e) {
|
84
|
+
define(t, e, function (t) {
|
85
|
+
return this._invoke(e, t);
|
80
86
|
});
|
81
87
|
});
|
82
88
|
}
|
83
|
-
function AsyncIterator(
|
84
|
-
function invoke(
|
85
|
-
var
|
86
|
-
if ("throw" !==
|
87
|
-
var
|
88
|
-
|
89
|
-
return
|
90
|
-
invoke("next",
|
91
|
-
}, function (
|
92
|
-
invoke("throw",
|
93
|
-
}) :
|
94
|
-
|
95
|
-
}, function (
|
96
|
-
return invoke("throw",
|
89
|
+
function AsyncIterator(t, e) {
|
90
|
+
function invoke(r, o, i, a) {
|
91
|
+
var c = tryCatch(t[r], t, o);
|
92
|
+
if ("throw" !== c.type) {
|
93
|
+
var u = c.arg,
|
94
|
+
h = u.value;
|
95
|
+
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
96
|
+
invoke("next", t, i, a);
|
97
|
+
}, function (t) {
|
98
|
+
invoke("throw", t, i, a);
|
99
|
+
}) : e.resolve(h).then(function (t) {
|
100
|
+
u.value = t, i(u);
|
101
|
+
}, function (t) {
|
102
|
+
return invoke("throw", t, i, a);
|
97
103
|
});
|
98
104
|
}
|
99
|
-
|
105
|
+
a(c.arg);
|
100
106
|
}
|
101
|
-
var
|
102
|
-
|
103
|
-
value: function value(
|
107
|
+
var r;
|
108
|
+
o(this, "_invoke", {
|
109
|
+
value: function value(t, n) {
|
104
110
|
function callInvokeWithMethodAndArg() {
|
105
|
-
return new
|
106
|
-
invoke(
|
111
|
+
return new e(function (e, r) {
|
112
|
+
invoke(t, n, e, r);
|
107
113
|
});
|
108
114
|
}
|
109
|
-
return
|
115
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
110
116
|
}
|
111
117
|
});
|
112
118
|
}
|
113
|
-
function makeInvokeMethod(
|
114
|
-
var
|
115
|
-
return function (
|
116
|
-
if (
|
117
|
-
if (
|
118
|
-
if ("throw" ===
|
119
|
-
return
|
119
|
+
function makeInvokeMethod(e, r, n) {
|
120
|
+
var o = h;
|
121
|
+
return function (i, a) {
|
122
|
+
if (o === f) throw new Error("Generator is already running");
|
123
|
+
if (o === s) {
|
124
|
+
if ("throw" === i) throw a;
|
125
|
+
return {
|
126
|
+
value: t,
|
127
|
+
done: !0
|
128
|
+
};
|
120
129
|
}
|
121
|
-
for (
|
122
|
-
var
|
123
|
-
if (
|
124
|
-
var
|
125
|
-
if (
|
126
|
-
if (
|
127
|
-
return
|
130
|
+
for (n.method = i, n.arg = a;;) {
|
131
|
+
var c = n.delegate;
|
132
|
+
if (c) {
|
133
|
+
var u = maybeInvokeDelegate(c, n);
|
134
|
+
if (u) {
|
135
|
+
if (u === y) continue;
|
136
|
+
return u;
|
128
137
|
}
|
129
138
|
}
|
130
|
-
if ("next" ===
|
131
|
-
if (
|
132
|
-
|
133
|
-
} else "return" ===
|
134
|
-
|
135
|
-
var
|
136
|
-
if ("normal" ===
|
137
|
-
if (
|
139
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
140
|
+
if (o === h) throw o = s, n.arg;
|
141
|
+
n.dispatchException(n.arg);
|
142
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
143
|
+
o = f;
|
144
|
+
var p = tryCatch(e, r, n);
|
145
|
+
if ("normal" === p.type) {
|
146
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
138
147
|
return {
|
139
|
-
value:
|
140
|
-
done:
|
148
|
+
value: p.arg,
|
149
|
+
done: n.done
|
141
150
|
};
|
142
151
|
}
|
143
|
-
"throw" ===
|
152
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
144
153
|
}
|
145
154
|
};
|
146
155
|
}
|
147
|
-
function maybeInvokeDelegate(
|
148
|
-
var
|
149
|
-
|
150
|
-
if (
|
151
|
-
var
|
152
|
-
if ("throw" ===
|
153
|
-
var
|
154
|
-
return
|
156
|
+
function maybeInvokeDelegate(e, r) {
|
157
|
+
var n = r.method,
|
158
|
+
o = e.iterator[n];
|
159
|
+
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;
|
160
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
161
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
162
|
+
var a = i.arg;
|
163
|
+
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);
|
155
164
|
}
|
156
|
-
function pushTryEntry(
|
157
|
-
var
|
158
|
-
tryLoc:
|
165
|
+
function pushTryEntry(t) {
|
166
|
+
var e = {
|
167
|
+
tryLoc: t[0]
|
159
168
|
};
|
160
|
-
1 in
|
169
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
161
170
|
}
|
162
|
-
function resetTryEntry(
|
163
|
-
var
|
164
|
-
|
171
|
+
function resetTryEntry(t) {
|
172
|
+
var e = t.completion || {};
|
173
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
165
174
|
}
|
166
|
-
function Context(
|
175
|
+
function Context(t) {
|
167
176
|
this.tryEntries = [{
|
168
177
|
tryLoc: "root"
|
169
|
-
}],
|
178
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
170
179
|
}
|
171
|
-
function values(
|
172
|
-
if (
|
173
|
-
var
|
174
|
-
if (
|
175
|
-
if ("function" == typeof
|
176
|
-
if (!isNaN(
|
177
|
-
var
|
178
|
-
|
179
|
-
for (; ++
|
180
|
-
return next.value =
|
180
|
+
function values(e) {
|
181
|
+
if (e || "" === e) {
|
182
|
+
var r = e[a];
|
183
|
+
if (r) return r.call(e);
|
184
|
+
if ("function" == typeof e.next) return e;
|
185
|
+
if (!isNaN(e.length)) {
|
186
|
+
var o = -1,
|
187
|
+
i = function next() {
|
188
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
189
|
+
return next.value = t, next.done = !0, next;
|
181
190
|
};
|
182
|
-
return
|
191
|
+
return i.next = i;
|
183
192
|
}
|
184
193
|
}
|
185
|
-
|
186
|
-
next: doneResult
|
187
|
-
};
|
188
|
-
}
|
189
|
-
function doneResult() {
|
190
|
-
return {
|
191
|
-
value: undefined,
|
192
|
-
done: !0
|
193
|
-
};
|
194
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
194
195
|
}
|
195
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
196
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
196
197
|
value: GeneratorFunctionPrototype,
|
197
198
|
configurable: !0
|
198
|
-
}),
|
199
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
199
200
|
value: GeneratorFunction,
|
200
201
|
configurable: !0
|
201
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
202
|
-
var
|
203
|
-
return !!
|
204
|
-
},
|
205
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
206
|
-
},
|
202
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
203
|
+
var e = "function" == typeof t && t.constructor;
|
204
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
205
|
+
}, e.mark = function (t) {
|
206
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
207
|
+
}, e.awrap = function (t) {
|
207
208
|
return {
|
208
|
-
__await:
|
209
|
+
__await: t
|
209
210
|
};
|
210
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
211
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
211
212
|
return this;
|
212
|
-
}),
|
213
|
-
void 0 ===
|
214
|
-
var
|
215
|
-
return
|
216
|
-
return
|
213
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
214
|
+
void 0 === i && (i = Promise);
|
215
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
216
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
217
|
+
return t.done ? t.value : a.next();
|
217
218
|
});
|
218
|
-
}, defineIteratorMethods(
|
219
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
219
220
|
return this;
|
220
|
-
}), define(
|
221
|
+
}), define(g, "toString", function () {
|
221
222
|
return "[object Generator]";
|
222
|
-
}),
|
223
|
-
var
|
224
|
-
|
225
|
-
for (var
|
226
|
-
return
|
227
|
-
for (;
|
228
|
-
var
|
229
|
-
if (
|
223
|
+
}), e.keys = function (t) {
|
224
|
+
var e = Object(t),
|
225
|
+
r = [];
|
226
|
+
for (var n in e) r.push(n);
|
227
|
+
return r.reverse(), function next() {
|
228
|
+
for (; r.length;) {
|
229
|
+
var t = r.pop();
|
230
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
230
231
|
}
|
231
232
|
return next.done = !0, next;
|
232
233
|
};
|
233
|
-
},
|
234
|
+
}, e.values = values, Context.prototype = {
|
234
235
|
constructor: Context,
|
235
|
-
reset: function reset(
|
236
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
236
|
+
reset: function reset(e) {
|
237
|
+
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);
|
237
238
|
},
|
238
239
|
stop: function stop() {
|
239
240
|
this.done = !0;
|
240
|
-
var
|
241
|
-
if ("throw" ===
|
241
|
+
var t = this.tryEntries[0].completion;
|
242
|
+
if ("throw" === t.type) throw t.arg;
|
242
243
|
return this.rval;
|
243
244
|
},
|
244
|
-
dispatchException: function dispatchException(
|
245
|
-
if (this.done) throw
|
246
|
-
var
|
247
|
-
function handle(
|
248
|
-
return
|
245
|
+
dispatchException: function dispatchException(e) {
|
246
|
+
if (this.done) throw e;
|
247
|
+
var r = this;
|
248
|
+
function handle(n, o) {
|
249
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
249
250
|
}
|
250
|
-
for (var
|
251
|
-
var
|
252
|
-
|
253
|
-
if ("root" ===
|
254
|
-
if (
|
255
|
-
var
|
256
|
-
|
257
|
-
if (
|
258
|
-
if (this.prev <
|
259
|
-
if (this.prev <
|
260
|
-
} else if (
|
261
|
-
if (this.prev <
|
251
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
252
|
+
var i = this.tryEntries[o],
|
253
|
+
a = i.completion;
|
254
|
+
if ("root" === i.tryLoc) return handle("end");
|
255
|
+
if (i.tryLoc <= this.prev) {
|
256
|
+
var c = n.call(i, "catchLoc"),
|
257
|
+
u = n.call(i, "finallyLoc");
|
258
|
+
if (c && u) {
|
259
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
260
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
261
|
+
} else if (c) {
|
262
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
262
263
|
} else {
|
263
|
-
if (!
|
264
|
-
if (this.prev <
|
264
|
+
if (!u) throw new Error("try statement without catch or finally");
|
265
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
265
266
|
}
|
266
267
|
}
|
267
268
|
}
|
268
269
|
},
|
269
|
-
abrupt: function abrupt(
|
270
|
-
for (var
|
271
|
-
var
|
272
|
-
if (
|
273
|
-
var
|
270
|
+
abrupt: function abrupt(t, e) {
|
271
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
272
|
+
var o = this.tryEntries[r];
|
273
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
274
|
+
var i = o;
|
274
275
|
break;
|
275
276
|
}
|
276
277
|
}
|
277
|
-
|
278
|
-
var
|
279
|
-
return
|
278
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
279
|
+
var a = i ? i.completion : {};
|
280
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
280
281
|
},
|
281
|
-
complete: function complete(
|
282
|
-
if ("throw" ===
|
283
|
-
return "break" ===
|
282
|
+
complete: function complete(t, e) {
|
283
|
+
if ("throw" === t.type) throw t.arg;
|
284
|
+
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;
|
284
285
|
},
|
285
|
-
finish: function finish(
|
286
|
-
for (var
|
287
|
-
var
|
288
|
-
if (
|
286
|
+
finish: function finish(t) {
|
287
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
288
|
+
var r = this.tryEntries[e];
|
289
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
289
290
|
}
|
290
291
|
},
|
291
|
-
"catch": function _catch(
|
292
|
-
for (var
|
293
|
-
var
|
294
|
-
if (
|
295
|
-
var
|
296
|
-
if ("throw" ===
|
297
|
-
var
|
298
|
-
resetTryEntry(
|
292
|
+
"catch": function _catch(t) {
|
293
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
294
|
+
var r = this.tryEntries[e];
|
295
|
+
if (r.tryLoc === t) {
|
296
|
+
var n = r.completion;
|
297
|
+
if ("throw" === n.type) {
|
298
|
+
var o = n.arg;
|
299
|
+
resetTryEntry(r);
|
299
300
|
}
|
300
|
-
return
|
301
|
+
return o;
|
301
302
|
}
|
302
303
|
}
|
303
304
|
throw new Error("illegal catch attempt");
|
304
305
|
},
|
305
|
-
delegateYield: function delegateYield(
|
306
|
+
delegateYield: function delegateYield(e, r, n) {
|
306
307
|
return this.delegate = {
|
307
|
-
iterator: values(
|
308
|
-
resultName:
|
309
|
-
nextLoc:
|
310
|
-
}, "next" === this.method && (this.arg =
|
308
|
+
iterator: values(e),
|
309
|
+
resultName: r,
|
310
|
+
nextLoc: n
|
311
|
+
}, "next" === this.method && (this.arg = t), y;
|
311
312
|
}
|
312
|
-
},
|
313
|
+
}, e;
|
313
314
|
}
|
314
315
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
315
316
|
|
@@ -318,14 +319,14 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
318
319
|
/***/ 7425:
|
319
320
|
/***/ ((module) => {
|
320
321
|
|
321
|
-
function _typeof(
|
322
|
+
function _typeof(o) {
|
322
323
|
"@babel/helpers - typeof";
|
323
324
|
|
324
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
325
|
-
return typeof
|
326
|
-
} : function (
|
327
|
-
return
|
328
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(
|
325
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
326
|
+
return typeof o;
|
327
|
+
} : function (o) {
|
328
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
329
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
329
330
|
}
|
330
331
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
331
332
|
|
@@ -416,43 +417,43 @@ var __webpack_exports__ = {};
|
|
416
417
|
|
417
418
|
// EXPORTS
|
418
419
|
__webpack_require__.d(__webpack_exports__, {
|
419
|
-
|
420
|
+
"default": () => (/* binding */ src)
|
420
421
|
});
|
421
422
|
|
422
423
|
;// CONCATENATED MODULE: external "../shared"
|
423
424
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
424
425
|
var y = x => () => x
|
425
|
-
const
|
426
|
+
const shared_namespaceObject = x({ ["InputBehaviorType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.InputBehaviorType, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
426
427
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
427
428
|
function _arrayWithHoles(arr) {
|
428
429
|
if (Array.isArray(arr)) return arr;
|
429
430
|
}
|
430
431
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
431
|
-
function _iterableToArrayLimit(
|
432
|
-
var
|
433
|
-
if (null !=
|
434
|
-
var
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
432
|
+
function _iterableToArrayLimit(r, l) {
|
433
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
434
|
+
if (null != t) {
|
435
|
+
var e,
|
436
|
+
n,
|
437
|
+
i,
|
438
|
+
u,
|
439
|
+
a = [],
|
440
|
+
f = !0,
|
441
|
+
o = !1;
|
441
442
|
try {
|
442
|
-
if (
|
443
|
-
if (Object(
|
444
|
-
|
445
|
-
} else for (; !(
|
446
|
-
} catch (
|
447
|
-
|
443
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
444
|
+
if (Object(t) !== t) return;
|
445
|
+
f = !1;
|
446
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
447
|
+
} catch (r) {
|
448
|
+
o = !0, n = r;
|
448
449
|
} finally {
|
449
450
|
try {
|
450
|
-
if (!
|
451
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
451
452
|
} finally {
|
452
|
-
if (
|
453
|
+
if (o) throw n;
|
453
454
|
}
|
454
455
|
}
|
455
|
-
return
|
456
|
+
return a;
|
456
457
|
}
|
457
458
|
}
|
458
459
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
@@ -545,38 +546,38 @@ function _objectWithoutProperties(source, excluded) {
|
|
545
546
|
return target;
|
546
547
|
}
|
547
548
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
548
|
-
function _typeof(
|
549
|
+
function _typeof(o) {
|
549
550
|
"@babel/helpers - typeof";
|
550
551
|
|
551
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
552
|
-
return typeof
|
553
|
-
} : function (
|
554
|
-
return
|
555
|
-
}, _typeof(
|
552
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
553
|
+
return typeof o;
|
554
|
+
} : function (o) {
|
555
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
556
|
+
}, _typeof(o);
|
556
557
|
}
|
557
558
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
558
559
|
|
559
|
-
function
|
560
|
-
if (
|
561
|
-
var
|
562
|
-
if (
|
563
|
-
var
|
564
|
-
if (
|
560
|
+
function toPrimitive(t, r) {
|
561
|
+
if ("object" != _typeof(t) || !t) return t;
|
562
|
+
var e = t[Symbol.toPrimitive];
|
563
|
+
if (void 0 !== e) {
|
564
|
+
var i = e.call(t, r || "default");
|
565
|
+
if ("object" != _typeof(i)) return i;
|
565
566
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
566
567
|
}
|
567
|
-
return (
|
568
|
+
return ("string" === r ? String : Number)(t);
|
568
569
|
}
|
569
570
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
570
571
|
|
571
572
|
|
572
|
-
function
|
573
|
-
var
|
574
|
-
return _typeof(
|
573
|
+
function toPropertyKey(t) {
|
574
|
+
var i = toPrimitive(t, "string");
|
575
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
575
576
|
}
|
576
577
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
577
578
|
|
578
579
|
function _defineProperty(obj, key, value) {
|
579
|
-
key =
|
580
|
+
key = toPropertyKey(key);
|
580
581
|
if (key in obj) {
|
581
582
|
Object.defineProperty(obj, key, {
|
582
583
|
value: value,
|
@@ -597,17 +598,17 @@ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBP
|
|
597
598
|
var regenerator = __webpack_require__(2841);
|
598
599
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
599
600
|
;// CONCATENATED MODULE: external "../config-provider"
|
600
|
-
var
|
601
|
-
var
|
602
|
-
const
|
601
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
602
|
+
var config_provider_y = x => () => x
|
603
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
603
604
|
;// CONCATENATED MODULE: external "../directives"
|
604
|
-
var
|
605
|
-
var
|
606
|
-
const
|
605
|
+
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
606
|
+
var directives_y = x => () => x
|
607
|
+
const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
|
607
608
|
;// CONCATENATED MODULE: external "../icon"
|
608
|
-
var
|
609
|
-
var
|
610
|
-
const
|
609
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
610
|
+
var icon_y = x => () => x
|
611
|
+
const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["DownSmall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.DownSmall, ["Eye"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Eye, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search, ["Unvisible"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Unvisible });
|
611
612
|
;// CONCATENATED MODULE: ../../packages/input/src/util.ts
|
612
613
|
/*
|
613
614
|
* Tencent is pleased to support the open source community by making
|
@@ -693,7 +694,7 @@ function calcTextareaHeight(targetElement) {
|
|
693
694
|
height = Math.min(maxHeight, height);
|
694
695
|
}
|
695
696
|
result.height = "".concat(height, "px");
|
696
|
-
(_hiddenTextarea$paren = hiddenTextarea.parentNode) === null || _hiddenTextarea$paren === void 0
|
697
|
+
(_hiddenTextarea$paren = hiddenTextarea.parentNode) === null || _hiddenTextarea$paren === void 0 || _hiddenTextarea$paren.removeChild(hiddenTextarea);
|
697
698
|
hiddenTextarea = undefined;
|
698
699
|
return result;
|
699
700
|
}
|
@@ -706,8 +707,8 @@ var _excluded = ["class", "style"];
|
|
706
707
|
var _inputEmitEventsType;
|
707
708
|
|
708
709
|
|
709
|
-
function ownKeys(
|
710
|
-
function _objectSpread(
|
710
|
+
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; }
|
711
|
+
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; }
|
711
712
|
/*
|
712
713
|
* Tencent is pleased to support the open source community by making
|
713
714
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -740,37 +741,37 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
740
741
|
|
741
742
|
|
742
743
|
var inputType = {
|
743
|
-
type:
|
744
|
-
clearable:
|
745
|
-
disabled:
|
746
|
-
readonly:
|
747
|
-
placeholder:
|
748
|
-
prefixIcon:
|
749
|
-
suffixIcon:
|
750
|
-
suffix:
|
751
|
-
prefix:
|
752
|
-
step:
|
753
|
-
max:
|
754
|
-
min:
|
755
|
-
maxlength:
|
756
|
-
maxcharacter:
|
757
|
-
behavior: (0,
|
758
|
-
showWordLimit:
|
759
|
-
showControl:
|
760
|
-
showClearOnlyHover:
|
761
|
-
precision:
|
744
|
+
type: shared_namespaceObject.PropTypes.string.def('text'),
|
745
|
+
clearable: shared_namespaceObject.PropTypes.bool,
|
746
|
+
disabled: shared_namespaceObject.PropTypes.bool,
|
747
|
+
readonly: shared_namespaceObject.PropTypes.bool,
|
748
|
+
placeholder: shared_namespaceObject.PropTypes.string.def(''),
|
749
|
+
prefixIcon: shared_namespaceObject.PropTypes.string,
|
750
|
+
suffixIcon: shared_namespaceObject.PropTypes.string,
|
751
|
+
suffix: shared_namespaceObject.PropTypes.string,
|
752
|
+
prefix: shared_namespaceObject.PropTypes.string,
|
753
|
+
step: shared_namespaceObject.PropTypes.integer,
|
754
|
+
max: shared_namespaceObject.PropTypes.integer,
|
755
|
+
min: shared_namespaceObject.PropTypes.integer,
|
756
|
+
maxlength: shared_namespaceObject.PropTypes.integer,
|
757
|
+
maxcharacter: shared_namespaceObject.PropTypes.integer,
|
758
|
+
behavior: (0,shared_namespaceObject.InputBehaviorType)(),
|
759
|
+
showWordLimit: shared_namespaceObject.PropTypes.bool,
|
760
|
+
showControl: shared_namespaceObject.PropTypes.bool.def(true),
|
761
|
+
showClearOnlyHover: shared_namespaceObject.PropTypes.bool.def(true),
|
762
|
+
precision: shared_namespaceObject.PropTypes.number.def(0).validate(function (val) {
|
762
763
|
return val >= 0 && val < 20;
|
763
764
|
}),
|
764
|
-
modelValue:
|
765
|
-
size:
|
766
|
-
rows:
|
767
|
-
selectReadonly:
|
768
|
-
withValidate:
|
769
|
-
overMaxLengthLimit:
|
770
|
-
showOverflowTooltips:
|
771
|
-
resize:
|
772
|
-
autosize:
|
773
|
-
stopPropagation:
|
765
|
+
modelValue: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]),
|
766
|
+
size: shared_namespaceObject.PropTypes.size(),
|
767
|
+
rows: shared_namespaceObject.PropTypes.number,
|
768
|
+
selectReadonly: shared_namespaceObject.PropTypes.bool.def(false),
|
769
|
+
withValidate: shared_namespaceObject.PropTypes.bool.def(true),
|
770
|
+
overMaxLengthLimit: shared_namespaceObject.PropTypes.bool.def(false),
|
771
|
+
showOverflowTooltips: shared_namespaceObject.PropTypes.bool.def(true),
|
772
|
+
resize: shared_namespaceObject.PropTypes.bool.def(true),
|
773
|
+
autosize: shared_namespaceObject.PropTypes.oneOfType([Boolean, Object]).def(false),
|
774
|
+
stopPropagation: shared_namespaceObject.PropTypes.bool.def(true)
|
774
775
|
};
|
775
776
|
var EVENTS;
|
776
777
|
(function (EVENTS) {
|
@@ -798,27 +799,27 @@ function PastEventFunction(_value, _e) {
|
|
798
799
|
function CompositionEventFunction(evt) {
|
799
800
|
return evt;
|
800
801
|
}
|
801
|
-
var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmitEventsType, EVENTS.UPDATE, EventFunction),
|
802
|
+
var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_inputEmitEventsType, EVENTS.UPDATE, EventFunction), EVENTS.FOCUS, function (evt) {
|
802
803
|
return evt;
|
803
|
-
}),
|
804
|
+
}), EVENTS.BLUR, function (evt) {
|
804
805
|
return evt;
|
805
|
-
}),
|
806
|
+
}), EVENTS.CHANGE, EventFunction), EVENTS.CLEAR, function () {
|
806
807
|
return true;
|
807
|
-
}),
|
808
|
+
}), EVENTS.INPUT, EventFunction), EVENTS.KEYPRESS, EventFunction), EVENTS.KEYDOWN, EventFunction), EVENTS.KEYUP, EventFunction), EVENTS.ENTER, EventFunction), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_inputEmitEventsType, EVENTS.PASTE, PastEventFunction), EVENTS.COMPOSITIONSTART, CompositionEventFunction), EVENTS.COMPOSITIONUPDATE, CompositionEventFunction), EVENTS.COMPOSITIONEND, CompositionEventFunction));
|
808
809
|
/* harmony default export */ const input = ((0,external_vue_namespaceObject.defineComponent)({
|
809
810
|
// eslint-disable-next-line vue/no-reserved-component-names
|
810
811
|
name: 'Input',
|
811
812
|
directives: {
|
812
|
-
bkTooltips:
|
813
|
+
bkTooltips: directives_namespaceObject.bkTooltips
|
813
814
|
},
|
814
815
|
inheritAttrs: false,
|
815
816
|
props: inputType,
|
816
817
|
emits: inputEmitEventsType,
|
817
818
|
setup: function setup(props, ctx) {
|
818
|
-
var _usePrefix = (0,
|
819
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
819
820
|
resolveClassName = _usePrefix.resolveClassName;
|
820
|
-
var formItem = (0,
|
821
|
-
var t = (0,
|
821
|
+
var formItem = (0,shared_namespaceObject.useFormItem)();
|
822
|
+
var t = (0,config_provider_namespaceObject.useLocale)('input');
|
822
823
|
var isFocused = (0,external_vue_namespaceObject.ref)(false);
|
823
824
|
var isCNInput = (0,external_vue_namespaceObject.ref)(false);
|
824
825
|
var isTextArea = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -836,8 +837,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
836
837
|
value: props.modelValue
|
837
838
|
});
|
838
839
|
var inputCls = (0,external_vue_namespaceObject.computed)(function () {
|
839
|
-
|
840
|
-
return (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(inputClsPrefix.value, "--").concat(props.size), !!props.size), _defineProperty(_classes, "resizable", props.resize), _defineProperty(_classes, 'is-focused', isFocused.value), _defineProperty(_classes, 'is-readonly', props.readonly && !props.selectReadonly), _defineProperty(_classes, 'is-disabled', props.disabled), _defineProperty(_classes, 'is-simplicity', props.behavior === 'simplicity'), _defineProperty(_classes, "".concat(ctx.attrs["class"]), !!ctx.attrs["class"]), _classes), inputClsPrefix.value);
|
840
|
+
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);
|
841
841
|
});
|
842
842
|
var isOverflow = (0,external_vue_namespaceObject.ref)(false);
|
843
843
|
var textareaCalcStyle = (0,external_vue_namespaceObject.ref)({});
|
@@ -876,10 +876,10 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
876
876
|
var suffixCls = getCls('suffix-icon');
|
877
877
|
var suffixIconMap = {
|
878
878
|
search: function search() {
|
879
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
879
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, null, null);
|
880
880
|
},
|
881
881
|
password: function password() {
|
882
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
882
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Unvisible, {
|
883
883
|
"onClick": handleVisibleChange,
|
884
884
|
"class": suffixCls
|
885
885
|
}, null);
|
@@ -888,7 +888,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
888
888
|
var suffixIcon = (0,external_vue_namespaceObject.computed)(function () {
|
889
889
|
var icon = suffixIconMap[props.type];
|
890
890
|
if (pwdVisible.value) {
|
891
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
891
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Eye, {
|
892
892
|
"class": suffixCls,
|
893
893
|
"onClick": handleVisibleChange
|
894
894
|
}, null);
|
@@ -906,13 +906,12 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
906
906
|
});
|
907
907
|
var pwdVisible = (0,external_vue_namespaceObject.ref)(false);
|
908
908
|
var clearCls = (0,external_vue_namespaceObject.computed)(function () {
|
909
|
-
return (0,
|
909
|
+
return (0,shared_namespaceObject.classes)(_defineProperty({
|
910
910
|
'show-clear-only-hover': props.showClearOnlyHover
|
911
911
|
}, "".concat(inputClsPrefix.value, "--clear-icon"), true), suffixCls);
|
912
912
|
});
|
913
913
|
var maxLengthCls = (0,external_vue_namespaceObject.computed)(function () {
|
914
|
-
|
915
|
-
return (0,external_shared_namespaceObject.classes)((_classes3 = {}, _defineProperty(_classes3, getCls('max-length'), true), _defineProperty(_classes3, 'is-over-limit', ceilMaxLength.value - modelValueLength.value < 0), _classes3));
|
914
|
+
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, getCls('max-length'), true), 'is-over-limit', ceilMaxLength.value - modelValueLength.value < 0));
|
916
915
|
});
|
917
916
|
var getValueLimits = function getValueLimits(val) {
|
918
917
|
if (typeof props.maxcharacter === 'number') {
|
@@ -938,12 +937,12 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
938
937
|
return getValueLimits(modelValue).len;
|
939
938
|
});
|
940
939
|
var incControlCls = (0,external_vue_namespaceObject.computed)(function () {
|
941
|
-
return (0,
|
940
|
+
return (0,shared_namespaceObject.classes)({
|
942
941
|
'is-disabled': props.disabled || props.modelValue >= props.max
|
943
942
|
});
|
944
943
|
});
|
945
944
|
var decControlCls = (0,external_vue_namespaceObject.computed)(function () {
|
946
|
-
return (0,
|
945
|
+
return (0,shared_namespaceObject.classes)({
|
947
946
|
'is-disabled': props.disabled || props.modelValue <= props.min
|
948
947
|
});
|
949
948
|
});
|
@@ -983,7 +982,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
983
982
|
}, function (val) {
|
984
983
|
if (props.withValidate) {
|
985
984
|
var _formItem$validate;
|
986
|
-
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0
|
985
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
|
987
986
|
}
|
988
987
|
innerInputValue.value = {
|
989
988
|
value: val
|
@@ -1002,7 +1001,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
1002
1001
|
// Hack: 修复autofocus属性失效问题 原生autofocus属性只在页面加载时生效
|
1003
1002
|
if (Object.prototype.hasOwnProperty.call(ctx.attrs, 'autofocus')) {
|
1004
1003
|
var _inputRef$value2, _inputRef$value2$focu;
|
1005
|
-
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || (_inputRef$value2$focu = _inputRef$value2.focus) === null || _inputRef$value2$focu === void 0
|
1004
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || (_inputRef$value2$focu = _inputRef$value2.focus) === null || _inputRef$value2$focu === void 0 || _inputRef$value2$focu.call(_inputRef$value2);
|
1006
1005
|
}
|
1007
1006
|
});
|
1008
1007
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
@@ -1043,7 +1042,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
1043
1042
|
ctx.emit(EVENTS.BLUR, e);
|
1044
1043
|
if (props.withValidate) {
|
1045
1044
|
var _formItem$validate2;
|
1046
|
-
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0
|
1045
|
+
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 || _formItem$validate2.call(formItem, 'blur');
|
1047
1046
|
}
|
1048
1047
|
}
|
1049
1048
|
// 事件句柄生成器
|
@@ -1179,14 +1178,14 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
1179
1178
|
}, eventListener, bindProps.value, innerInputValue.value), null), !isTextArea.value && props.clearable && !!props.modelValue && (0,external_vue_namespaceObject.createVNode)("span", {
|
1180
1179
|
"class": clearCls.value,
|
1181
1180
|
"onClick": clear
|
1182
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
1181
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, null, null)]), suffixIcon.value, showMaxLimit.value && (props.showWordLimit || isTextArea.value) && (0,external_vue_namespaceObject.createVNode)("p", {
|
1183
1182
|
"class": maxLengthCls.value
|
1184
1183
|
}, [props.overMaxLengthLimit ? ceilMaxLength.value - modelValueLength.value : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [modelValueLength.value, (0,external_vue_namespaceObject.createTextVNode)(" / "), (0,external_vue_namespaceObject.createVNode)("span", null, [ceilMaxLength.value])])]), isNumberInput.value && props.showControl && (0,external_vue_namespaceObject.createVNode)("div", {
|
1185
1184
|
"class": getCls('number-control')
|
1186
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
1185
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.DownSmall, {
|
1187
1186
|
"class": incControlCls.value,
|
1188
1187
|
"onClick": handleInc
|
1189
|
-
}, null), (0,external_vue_namespaceObject.createVNode)(
|
1188
|
+
}, null), (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.DownSmall, {
|
1190
1189
|
"class": decControlCls.value,
|
1191
1190
|
"onClick": handleDec
|
1192
1191
|
}, null)]), (_ctx$slots$suffix = (_ctx$slots2 = ctx.slots) === null || _ctx$slots2 === void 0 || (_ctx$slots2$suffix = _ctx$slots2.suffix) === null || _ctx$slots2$suffix === void 0 ? void 0 : _ctx$slots2$suffix.call(_ctx$slots2)) !== null && _ctx$slots$suffix !== void 0 ? _ctx$slots$suffix : props.suffix && (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -1225,9 +1224,9 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
1225
1224
|
*/
|
1226
1225
|
|
1227
1226
|
|
1228
|
-
var BkInput = (0,
|
1227
|
+
var BkInput = (0,shared_namespaceObject.withInstall)(input);
|
1229
1228
|
/* harmony default export */ const src = (BkInput);
|
1230
1229
|
})();
|
1231
1230
|
|
1232
|
-
var __webpack_exports__default = __webpack_exports__
|
1231
|
+
var __webpack_exports__default = __webpack_exports__["default"];
|
1233
1232
|
export { __webpack_exports__default as default };
|