bkui-vue 0.0.1-beta.389 → 0.0.1-beta.390
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/lib/affix/index.js +60 -128
- package/lib/alert/index.js +56 -124
- package/lib/animate-number/index.js +42 -106
- package/lib/backtop/index.js +61 -133
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +4 -4
- package/lib/badge/index.js +50 -114
- package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/index.d.ts +5 -5
- package/lib/breadcrumb/index.js +67 -133
- package/lib/button/index.js +68 -147
- package/lib/card/index.js +69 -154
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +10 -10
- package/lib/cascader/index.js +168 -242
- package/lib/checkbox/index.js +77 -139
- package/lib/code-diff/index.js +79 -121
- package/lib/collapse/index.js +84 -150
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +4 -4
- package/lib/color-picker/index.js +193 -245
- package/lib/components.js +434 -671
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +4 -4
- package/lib/container/index.js +64 -125
- package/lib/date-picker/date-picker.d.ts +2 -2
- package/lib/date-picker/index.d.ts +7 -7
- package/lib/date-picker/index.js +462 -563
- package/lib/date-picker/panel/time-range.d.ts +3 -3
- package/lib/date-picker/panel/time.d.ts +3 -3
- package/lib/date-picker/time-picker.d.ts +3 -3
- package/lib/dialog/dialog.d.ts +2 -2
- package/lib/dialog/index.d.ts +7 -7
- package/lib/dialog/index.js +108 -198
- package/lib/directives/index.d.ts +0 -2
- package/lib/directives/index.js +86 -140
- package/lib/dist.index.js +48 -133
- package/lib/divider/index.js +50 -118
- package/lib/dropdown/dropdown.d.ts +2 -2
- package/lib/dropdown/index.d.ts +7 -7
- package/lib/dropdown/index.js +73 -155
- package/lib/exception/index.js +97 -145
- package/lib/fixed-navbar/fixed-navbar.d.ts +1 -1
- package/lib/fixed-navbar/index.d.ts +4 -4
- package/lib/fixed-navbar/index.js +43 -107
- package/lib/form/form-item.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.js +107 -193
- package/lib/icon/angle-double-down-line.js +30 -90
- package/lib/icon/angle-double-left-line.js +30 -90
- package/lib/icon/angle-double-left.js +30 -90
- package/lib/icon/angle-double-right-line.js +30 -90
- package/lib/icon/angle-double-right.js +30 -90
- package/lib/icon/angle-double-up-line.js +30 -90
- package/lib/icon/angle-down-fill.js +30 -90
- package/lib/icon/angle-down-line.js +30 -90
- package/lib/icon/angle-down.js +30 -90
- package/lib/icon/angle-left.js +30 -90
- package/lib/icon/angle-right.js +30 -90
- package/lib/icon/angle-up-fill.js +30 -90
- package/lib/icon/angle-up.js +30 -90
- package/lib/icon/archive-fill.js +30 -90
- package/lib/icon/arrows-left.js +30 -90
- package/lib/icon/arrows-right.js +30 -90
- package/lib/icon/audio-fill.js +30 -90
- package/lib/icon/bk.js +30 -90
- package/lib/icon/circle.js +30 -90
- package/lib/icon/close-line.js +30 -90
- package/lib/icon/close.js +30 -90
- package/lib/icon/code.js +30 -90
- package/lib/icon/cog-shape.js +30 -90
- package/lib/icon/collapse-left.js +30 -90
- package/lib/icon/copy.js +30 -90
- package/lib/icon/data-shape.js +30 -90
- package/lib/icon/del.js +30 -90
- package/lib/icon/doc-fill.js +30 -90
- package/lib/icon/done.js +30 -90
- package/lib/icon/down-shape.js +30 -90
- package/lib/icon/down-small.js +30 -90
- package/lib/icon/edit-line.js +30 -90
- package/lib/icon/ellipsis.js +30 -90
- package/lib/icon/enlarge-line.js +30 -90
- package/lib/icon/error.js +30 -90
- package/lib/icon/excel-fill.js +30 -90
- package/lib/icon/exclamation-circle-shape.js +30 -90
- package/lib/icon/eye.js +30 -90
- package/lib/icon/filliscreen-line.js +30 -90
- package/lib/icon/folder-open.js +30 -90
- package/lib/icon/folder-shape-open.js +30 -90
- package/lib/icon/folder-shape.js +30 -90
- package/lib/icon/folder.js +30 -90
- package/lib/icon/funnel.js +30 -90
- package/lib/icon/help-document-fill.js +30 -90
- package/lib/icon/help-fill.js +30 -90
- package/lib/icon/help.js +30 -90
- package/lib/icon/image-fill.js +30 -90
- package/lib/icon/img-placehoulder.js +52 -88
- package/lib/icon/index.js +267 -255
- package/lib/icon/info-line.js +52 -88
- package/lib/icon/info.js +52 -88
- package/lib/icon/left-shape.js +52 -88
- package/lib/icon/left-turn-line.js +52 -88
- package/lib/icon/narrow-line.js +52 -88
- package/lib/icon/original.js +52 -88
- package/lib/icon/pdf-fill.js +52 -88
- package/lib/icon/play-shape.js +52 -88
- package/lib/icon/plus.js +52 -88
- package/lib/icon/ppt-fill.js +52 -88
- package/lib/icon/qq.js +52 -88
- package/lib/icon/right-shape.js +52 -88
- package/lib/icon/right-turn-line.js +52 -88
- package/lib/icon/search.js +52 -88
- package/lib/icon/share.js +52 -88
- package/lib/icon/spinner.js +52 -88
- package/lib/icon/success.js +52 -88
- package/lib/icon/switcher-loading.js +52 -88
- package/lib/icon/text-file.js +52 -88
- package/lib/icon/text-fill.js +52 -88
- package/lib/icon/transfer.js +52 -88
- package/lib/icon/tree-application-shape.js +52 -88
- package/lib/icon/unfull-screen.js +52 -88
- package/lib/icon/unvisible.js +52 -88
- package/lib/icon/up-shape.js +52 -88
- package/lib/icon/upload.js +52 -88
- package/lib/icon/video-fill.js +52 -88
- package/lib/icon/warn.js +52 -88
- package/lib/icon/weixin.js +52 -88
- package/lib/image/index.js +164 -213
- package/lib/index.js +50 -134
- package/lib/info-box/index.js +152 -206
- package/lib/input/index.d.ts +4 -4
- package/lib/input/index.js +99 -167
- package/lib/input/input.d.ts +1 -1
- package/lib/link/index.d.ts +4 -4
- package/lib/link/index.js +47 -115
- package/lib/link/link.d.ts +1 -1
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +67 -127
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.js +92 -156
- package/lib/message/index.js +76 -148
- package/lib/modal/index.d.ts +4 -4
- package/lib/modal/index.js +85 -151
- package/lib/modal/modal.d.ts +1 -1
- package/lib/navigation/index.js +66 -134
- package/lib/notify/index.js +81 -153
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.js +92 -128
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/index.js +131 -220
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/plugin-popover/index.js +143 -191
- package/lib/plugins/index.js +33 -100
- package/lib/popover/index.d.ts +10 -10
- package/lib/popover/index.js +148 -194
- package/lib/popover/popover.d.ts +3 -3
- package/lib/popover2/index.js +35 -99
- package/lib/preset.js +37 -104
- package/lib/process/index.d.ts +4 -4
- package/lib/process/index.js +92 -134
- package/lib/process/process.d.ts +1 -1
- package/lib/progress/index.d.ts +7 -7
- package/lib/progress/index.js +63 -127
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.js +81 -142
- package/lib/rate/index.js +63 -127
- package/lib/resize-layout/index.js +79 -147
- package/lib/search-select/index.js +168 -220
- package/lib/select/index.d.ts +10 -10
- package/lib/select/index.js +315 -394
- package/lib/select/select.d.ts +3 -3
- package/lib/shared/index.js +228 -203
- package/lib/sideslider/index.d.ts +4 -4
- package/lib/sideslider/index.js +88 -137
- package/lib/sideslider/sideslider.d.ts +1 -1
- package/lib/slider/index.d.ts +7 -7
- package/lib/slider/index.js +147 -196
- package/lib/slider/slider.d.ts +2 -2
- package/lib/steps/index.js +105 -152
- package/lib/swiper/index.js +62 -126
- package/lib/switcher/index.d.ts +4 -4
- package/lib/switcher/index.js +65 -133
- package/lib/switcher/switcher.d.ts +1 -1
- package/lib/tab/index.d.ts +4 -4
- package/lib/tab/index.js +118 -188
- package/lib/tab/tab.d.ts +1 -1
- package/lib/table/index.js +457 -572
- package/lib/table-column/index.js +129 -197
- package/lib/tag/index.js +58 -130
- package/lib/tag-input/index.d.ts +7 -7
- package/lib/tag-input/index.js +175 -277
- package/lib/tag-input/tag-input.d.ts +2 -2
- package/lib/time-picker/index.d.ts +10 -10
- package/lib/time-picker/index.js +40 -111
- package/lib/timeline/index.d.ts +4 -4
- package/lib/timeline/index.js +50 -114
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/transfer/index.js +89 -174
- package/lib/tree/index.js +158 -235
- package/lib/upload/index.d.ts +7 -7
- package/lib/upload/index.js +173 -227
- package/lib/upload/upload-list.d.ts +1 -1
- package/lib/upload/upload-trigger.d.ts +1 -1
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.js +86 -154
- package/package.json +1 -1
package/lib/input/index.js
CHANGED
@@ -1,107 +1,39 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("../icon")) : factory(root["../shared"], root["vue"], root["../icon"]);
|
8
|
-
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
9
|
-
}
|
10
|
-
})(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__6870__) => {
|
11
|
-
return /******/ (() => { // webpackBootstrap
|
12
|
-
/******/ "use strict";
|
13
|
-
/******/ var __webpack_modules__ = ({
|
14
|
-
|
15
|
-
/***/ 6870:
|
16
|
-
/***/ ((module) => {
|
17
|
-
|
18
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__6870__;
|
19
|
-
|
20
|
-
/***/ }),
|
21
|
-
|
22
|
-
/***/ 4212:
|
23
|
-
/***/ ((module) => {
|
24
|
-
|
25
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
|
26
|
-
|
27
|
-
/***/ }),
|
28
|
-
|
29
|
-
/***/ 748:
|
30
|
-
/***/ ((module) => {
|
31
|
-
|
32
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
|
33
|
-
|
34
|
-
/***/ })
|
35
|
-
|
36
|
-
/******/ });
|
37
|
-
/************************************************************************/
|
38
|
-
/******/ // The module cache
|
39
|
-
/******/ var __webpack_module_cache__ = {};
|
40
|
-
/******/
|
41
|
-
/******/ // The require function
|
42
|
-
/******/ function __webpack_require__(moduleId) {
|
43
|
-
/******/ // Check if module is in cache
|
44
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
45
|
-
/******/ if (cachedModule !== undefined) {
|
46
|
-
/******/ return cachedModule.exports;
|
47
|
-
/******/ }
|
48
|
-
/******/ // Create a new module (and put it into the cache)
|
49
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
50
|
-
/******/ // no module.id needed
|
51
|
-
/******/ // no module.loaded needed
|
52
|
-
/******/ exports: {}
|
53
|
-
/******/ };
|
54
|
-
/******/
|
55
|
-
/******/ // Execute the module function
|
56
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
57
|
-
/******/
|
58
|
-
/******/ // Return the exports of the module
|
59
|
-
/******/ return module.exports;
|
60
|
-
/******/ }
|
61
|
-
/******/
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
4
|
+
/******/ // The require scope
|
5
|
+
/******/ var __webpack_require__ = {};
|
6
|
+
/******/
|
62
7
|
/************************************************************************/
|
63
|
-
/******/
|
64
|
-
/******/
|
65
|
-
/******/
|
66
|
-
/******/
|
67
|
-
/******/
|
68
|
-
/******/
|
69
|
-
/******/
|
70
|
-
/******/ }
|
8
|
+
/******/ /* webpack/runtime/define property getters */
|
9
|
+
/******/ (() => {
|
10
|
+
/******/ // define getter functions for harmony exports
|
11
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
12
|
+
/******/ for(var key in definition) {
|
13
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
14
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
71
15
|
/******/ }
|
72
|
-
/******/ }
|
73
|
-
/******/ }
|
74
|
-
/******/
|
75
|
-
/******/
|
76
|
-
/******/
|
77
|
-
/******/
|
78
|
-
/******/
|
79
|
-
/******/
|
80
|
-
/******/
|
81
|
-
/******/ (() => {
|
82
|
-
/******/ // define __esModule on exports
|
83
|
-
/******/ __webpack_require__.r = (exports) => {
|
84
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
85
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
86
|
-
/******/ }
|
87
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
88
|
-
/******/ };
|
89
|
-
/******/ })();
|
90
|
-
/******/
|
16
|
+
/******/ }
|
17
|
+
/******/ };
|
18
|
+
/******/ })();
|
19
|
+
/******/
|
20
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
21
|
+
/******/ (() => {
|
22
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
23
|
+
/******/ })();
|
24
|
+
/******/
|
91
25
|
/************************************************************************/
|
92
26
|
var __webpack_exports__ = {};
|
93
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
94
|
-
(() => {
|
95
|
-
// ESM COMPAT FLAG
|
96
|
-
__webpack_require__.r(__webpack_exports__);
|
97
27
|
|
98
28
|
// EXPORTS
|
99
29
|
__webpack_require__.d(__webpack_exports__, {
|
100
|
-
"
|
30
|
+
"Z": () => (/* binding */ src)
|
101
31
|
});
|
102
32
|
|
103
|
-
|
104
|
-
var
|
33
|
+
;// CONCATENATED MODULE: external "../shared"
|
34
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
35
|
+
var y = x => () => x
|
36
|
+
const external_shared_namespaceObject = x({ ["InputBehaviorType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.InputBehaviorType, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.resolveClassName, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
105
37
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
106
38
|
function _arrayWithHoles(arr) {
|
107
39
|
if (Array.isArray(arr)) return arr;
|
@@ -183,8 +115,10 @@ function _defineProperty(obj, key, value) {
|
|
183
115
|
|
184
116
|
return obj;
|
185
117
|
}
|
186
|
-
|
187
|
-
var
|
118
|
+
;// CONCATENATED MODULE: external "vue"
|
119
|
+
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
120
|
+
var external_vue_y = x => () => x
|
121
|
+
const external_vue_namespaceObject = external_vue_x({ ["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, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
188
122
|
;// CONCATENATED MODULE: ../../node_modules/tslib/tslib.es6.js
|
189
123
|
/******************************************************************************
|
190
124
|
Copyright (c) Microsoft Corporation.
|
@@ -435,8 +369,10 @@ function __classPrivateFieldIn(state, receiver) {
|
|
435
369
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
436
370
|
}
|
437
371
|
|
438
|
-
|
439
|
-
var
|
372
|
+
;// CONCATENATED MODULE: external "../icon"
|
373
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
374
|
+
var external_icon_y = x => () => x
|
375
|
+
const external_icon_namespaceObject = external_icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Close, ["DownSmall"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.DownSmall, ["Eye"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Eye, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Search, ["Unvisible"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Unvisible });
|
440
376
|
;// CONCATENATED MODULE: ../../packages/input/src/input.tsx
|
441
377
|
|
442
378
|
|
@@ -475,31 +411,31 @@ var _inputEmitEventsType;
|
|
475
411
|
|
476
412
|
|
477
413
|
var inputType = {
|
478
|
-
type:
|
479
|
-
clearable:
|
480
|
-
disabled:
|
481
|
-
readonly:
|
482
|
-
placeholder:
|
483
|
-
prefixIcon:
|
484
|
-
suffixIcon:
|
485
|
-
suffix:
|
486
|
-
prefix:
|
487
|
-
step:
|
488
|
-
max:
|
489
|
-
min:
|
490
|
-
maxlength:
|
491
|
-
behavior: (0,
|
492
|
-
showWordLimit:
|
493
|
-
showControl:
|
494
|
-
showClearOnlyHover:
|
495
|
-
precision:
|
414
|
+
type: external_shared_namespaceObject.PropTypes.string.def('text'),
|
415
|
+
clearable: external_shared_namespaceObject.PropTypes.bool,
|
416
|
+
disabled: external_shared_namespaceObject.PropTypes.bool,
|
417
|
+
readonly: external_shared_namespaceObject.PropTypes.bool,
|
418
|
+
placeholder: external_shared_namespaceObject.PropTypes.string.def('Enter'),
|
419
|
+
prefixIcon: external_shared_namespaceObject.PropTypes.string,
|
420
|
+
suffixIcon: external_shared_namespaceObject.PropTypes.string,
|
421
|
+
suffix: external_shared_namespaceObject.PropTypes.string,
|
422
|
+
prefix: external_shared_namespaceObject.PropTypes.string,
|
423
|
+
step: external_shared_namespaceObject.PropTypes.integer,
|
424
|
+
max: external_shared_namespaceObject.PropTypes.integer,
|
425
|
+
min: external_shared_namespaceObject.PropTypes.integer,
|
426
|
+
maxlength: external_shared_namespaceObject.PropTypes.integer,
|
427
|
+
behavior: (0,external_shared_namespaceObject.InputBehaviorType)(),
|
428
|
+
showWordLimit: external_shared_namespaceObject.PropTypes.bool,
|
429
|
+
showControl: external_shared_namespaceObject.PropTypes.bool.def(true),
|
430
|
+
showClearOnlyHover: external_shared_namespaceObject.PropTypes.bool.def(true),
|
431
|
+
precision: external_shared_namespaceObject.PropTypes.number.def(0).validate(function (val) {
|
496
432
|
return val >= 0 && val < 20;
|
497
433
|
}),
|
498
|
-
modelValue:
|
499
|
-
size:
|
500
|
-
rows:
|
501
|
-
selectReadonly:
|
502
|
-
withValidate:
|
434
|
+
modelValue: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]),
|
435
|
+
size: external_shared_namespaceObject.PropTypes.size(),
|
436
|
+
rows: external_shared_namespaceObject.PropTypes.number,
|
437
|
+
selectReadonly: external_shared_namespaceObject.PropTypes.bool.def(false),
|
438
|
+
withValidate: external_shared_namespaceObject.PropTypes.bool.def(true)
|
503
439
|
};
|
504
440
|
var EVENTS;
|
505
441
|
|
@@ -535,20 +471,20 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
535
471
|
}), _defineProperty(_inputEmitEventsType, EVENTS.CHANGE, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.CLEAR, function () {
|
536
472
|
return true;
|
537
473
|
}), _defineProperty(_inputEmitEventsType, EVENTS.INPUT, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.KEYPRESS, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.KEYDOWN, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.KEYUP, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.ENTER, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.PASTE, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.COMPOSITIONSTART, CompositionEventFunction), _defineProperty(_inputEmitEventsType, EVENTS.COMPOSITIONUPDATE, CompositionEventFunction), _defineProperty(_inputEmitEventsType, EVENTS.COMPOSITIONEND, CompositionEventFunction), _inputEmitEventsType);
|
538
|
-
/* harmony default export */ const input = ((0,
|
474
|
+
/* harmony default export */ const input = ((0,external_vue_namespaceObject.defineComponent)({
|
539
475
|
name: 'Input',
|
540
476
|
inheritAttrs: false,
|
541
477
|
props: inputType,
|
542
478
|
emits: inputEmitEventsType,
|
543
479
|
setup: function setup(props, ctx) {
|
544
|
-
var formItem = (0,
|
545
|
-
var isFocused = (0,
|
546
|
-
var isCNInput = (0,
|
547
|
-
var isTextArea = (0,
|
480
|
+
var formItem = (0,external_shared_namespaceObject.useFormItem)();
|
481
|
+
var isFocused = (0,external_vue_namespaceObject.ref)(false);
|
482
|
+
var isCNInput = (0,external_vue_namespaceObject.ref)(false);
|
483
|
+
var isTextArea = (0,external_vue_namespaceObject.computed)(function () {
|
548
484
|
return props.type === 'textarea';
|
549
485
|
});
|
550
|
-
var inputClsPrefix = (0,
|
551
|
-
return isTextArea.value ? (0,
|
486
|
+
var inputClsPrefix = (0,external_vue_namespaceObject.computed)(function () {
|
487
|
+
return isTextArea.value ? (0,external_shared_namespaceObject.resolveClassName)('textarea') : (0,external_shared_namespaceObject.resolveClassName)('input');
|
552
488
|
});
|
553
489
|
|
554
490
|
var _a = ctx.attrs,
|
@@ -556,60 +492,60 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
556
492
|
style = _a.style,
|
557
493
|
inputAttrs = __rest(_a, ["class", "style"]);
|
558
494
|
|
559
|
-
var inputRef = (0,
|
560
|
-
var inputCls = (0,
|
495
|
+
var inputRef = (0,external_vue_namespaceObject.ref)();
|
496
|
+
var inputCls = (0,external_vue_namespaceObject.computed)(function () {
|
561
497
|
var _classes;
|
562
498
|
|
563
|
-
return (0,
|
499
|
+
return (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(inputClsPrefix.value, "--").concat(props.size), !!props.size), _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(cls), !!cls), _classes), inputClsPrefix.value);
|
564
500
|
});
|
565
501
|
var suffixIconMap = {
|
566
502
|
search: function search() {
|
567
|
-
return (0,
|
503
|
+
return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Search, null, null);
|
568
504
|
},
|
569
505
|
password: function password() {
|
570
|
-
return (0,
|
506
|
+
return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Eye, {
|
571
507
|
"onClick": handleVisibleChange
|
572
508
|
}, null);
|
573
509
|
}
|
574
510
|
};
|
575
511
|
var suffixCls = getCls('suffix-icon');
|
576
|
-
var suffixIcon = (0,
|
512
|
+
var suffixIcon = (0,external_vue_namespaceObject.computed)(function () {
|
577
513
|
var icon = suffixIconMap[props.type];
|
578
514
|
|
579
515
|
if (pwdVisible.value) {
|
580
|
-
return (0,
|
516
|
+
return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Unvisible, {
|
581
517
|
"onClick": handleVisibleChange,
|
582
518
|
"class": suffixCls
|
583
519
|
}, null);
|
584
520
|
}
|
585
521
|
|
586
|
-
return icon ? (0,
|
522
|
+
return icon ? (0,external_vue_namespaceObject.createVNode)(icon, {
|
587
523
|
"class": suffixCls
|
588
524
|
}, null) : null;
|
589
525
|
});
|
590
|
-
var isNumberInput = (0,
|
526
|
+
var isNumberInput = (0,external_vue_namespaceObject.computed)(function () {
|
591
527
|
return props.type === 'number';
|
592
528
|
});
|
593
|
-
var ceilMaxLength = (0,
|
529
|
+
var ceilMaxLength = (0,external_vue_namespaceObject.computed)(function () {
|
594
530
|
return Math.floor(props.maxlength);
|
595
531
|
});
|
596
|
-
var pwdVisible = (0,
|
597
|
-
var clearCls = (0,
|
598
|
-
return (0,
|
532
|
+
var pwdVisible = (0,external_vue_namespaceObject.ref)(false);
|
533
|
+
var clearCls = (0,external_vue_namespaceObject.computed)(function () {
|
534
|
+
return (0,external_shared_namespaceObject.classes)(_defineProperty({
|
599
535
|
'show-clear-only-hover': props.showClearOnlyHover
|
600
536
|
}, "".concat(inputClsPrefix.value, "--clear-icon"), true), suffixCls);
|
601
537
|
});
|
602
|
-
var incControlCls = (0,
|
603
|
-
return (0,
|
538
|
+
var incControlCls = (0,external_vue_namespaceObject.computed)(function () {
|
539
|
+
return (0,external_shared_namespaceObject.classes)({
|
604
540
|
'is-disabled': props.disabled || props.modelValue >= props.max
|
605
541
|
});
|
606
542
|
});
|
607
|
-
var decControlCls = (0,
|
608
|
-
return (0,
|
543
|
+
var decControlCls = (0,external_vue_namespaceObject.computed)(function () {
|
544
|
+
return (0,external_shared_namespaceObject.classes)({
|
609
545
|
'is-disabled': props.disabled || props.modelValue <= props.min
|
610
546
|
});
|
611
547
|
});
|
612
|
-
(0,
|
548
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
613
549
|
return props.modelValue;
|
614
550
|
}, function () {
|
615
551
|
var _a;
|
@@ -740,7 +676,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
740
676
|
pwdVisible.value = !pwdVisible.value;
|
741
677
|
}
|
742
678
|
|
743
|
-
var bindProps = (0,
|
679
|
+
var bindProps = (0,external_vue_namespaceObject.computed)(function () {
|
744
680
|
var val = typeof props.modelValue === 'undefined' || props.modelValue === null ? {} : {
|
745
681
|
value: props.modelValue
|
746
682
|
};
|
@@ -766,19 +702,19 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
766
702
|
return function () {
|
767
703
|
var _a, _b, _c, _d, _e, _f, _g;
|
768
704
|
|
769
|
-
return (0,
|
705
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
770
706
|
"class": inputCls.value,
|
771
707
|
"style": style
|
772
|
-
}, [(_c = (_b = (_a = ctx.slots) === null || _a === void 0 ? void 0 : _a.prefix) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : props.prefix && (0,
|
708
|
+
}, [(_c = (_b = (_a = ctx.slots) === null || _a === void 0 ? void 0 : _a.prefix) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : props.prefix && (0,external_vue_namespaceObject.createVNode)("div", {
|
773
709
|
"class": getCls('prefix-area')
|
774
|
-
}, [(0,
|
710
|
+
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
775
711
|
"class": getCls('prefix-area--text')
|
776
|
-
}, [props.prefix])]), isTextArea.value ? (0,
|
712
|
+
}, [props.prefix])]), isTextArea.value ? (0,external_vue_namespaceObject.createVNode)("textarea", (0,external_vue_namespaceObject.mergeProps)({
|
777
713
|
"ref": inputRef,
|
778
714
|
"spellcheck": false
|
779
715
|
}, inputAttrs, eventListener, bindProps.value, {
|
780
716
|
"rows": props.rows
|
781
|
-
}), null) : (0,
|
717
|
+
}), null) : (0,external_vue_namespaceObject.createVNode)("input", (0,external_vue_namespaceObject.mergeProps)({
|
782
718
|
"spellcheck": false
|
783
719
|
}, inputAttrs, {
|
784
720
|
"ref": inputRef,
|
@@ -787,22 +723,22 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
787
723
|
"step": props.step,
|
788
724
|
"max": props.max,
|
789
725
|
"min": props.min
|
790
|
-
}, eventListener, bindProps.value), null), !isTextArea.value && props.clearable && !!props.modelValue && (0,
|
726
|
+
}, eventListener, bindProps.value), null), !isTextArea.value && props.clearable && !!props.modelValue && (0,external_vue_namespaceObject.createVNode)("span", {
|
791
727
|
"class": clearCls.value,
|
792
728
|
"onClick": clear
|
793
|
-
}, [(0,
|
729
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, null, null)]), suffixIcon.value, typeof props.maxlength === 'number' && (props.showWordLimit || isTextArea.value) && (0,external_vue_namespaceObject.createVNode)("p", {
|
794
730
|
"class": getCls('max-length')
|
795
|
-
}, [((_d = props.modelValue) !== null && _d !== void 0 ? _d : '').toString().length, (0,
|
731
|
+
}, [((_d = props.modelValue) !== null && _d !== void 0 ? _d : '').toString().length, (0,external_vue_namespaceObject.createTextVNode)("/"), (0,external_vue_namespaceObject.createVNode)("span", null, [ceilMaxLength.value])]), isNumberInput.value && props.showControl && (0,external_vue_namespaceObject.createVNode)("div", {
|
796
732
|
"class": getCls('number-control')
|
797
|
-
}, [(0,
|
733
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.DownSmall, {
|
798
734
|
"class": incControlCls.value,
|
799
735
|
"onClick": handleInc
|
800
|
-
}, null), (0,
|
736
|
+
}, null), (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.DownSmall, {
|
801
737
|
"class": decControlCls.value,
|
802
738
|
"onClick": handleDec
|
803
|
-
}, null)]), (_g = (_f = (_e = ctx.slots) === null || _e === void 0 ? void 0 : _e.suffix) === null || _f === void 0 ? void 0 : _f.call(_e)) !== null && _g !== void 0 ? _g : props.suffix && (0,
|
739
|
+
}, null)]), (_g = (_f = (_e = ctx.slots) === null || _e === void 0 ? void 0 : _e.suffix) === null || _f === void 0 ? void 0 : _f.call(_e)) !== null && _g !== void 0 ? _g : props.suffix && (0,external_vue_namespaceObject.createVNode)("div", {
|
804
740
|
"class": getCls('suffix-area')
|
805
|
-
}, [(0,
|
741
|
+
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
806
742
|
"class": getCls('suffix-area--text')
|
807
743
|
}, [props.suffix])])]);
|
808
744
|
};
|
@@ -836,11 +772,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
|
|
836
772
|
*/
|
837
773
|
|
838
774
|
|
839
|
-
var BkInput = (0,
|
775
|
+
var BkInput = (0,external_shared_namespaceObject.withInstall)(input);
|
840
776
|
/* harmony default export */ const src = (BkInput);
|
841
|
-
|
842
|
-
|
843
|
-
/******/ return __webpack_exports__;
|
844
|
-
/******/ })()
|
845
|
-
;
|
846
|
-
});
|
777
|
+
var __webpack_exports__default = __webpack_exports__.Z;
|
778
|
+
export { __webpack_exports__default as default };
|
package/lib/input/input.d.ts
CHANGED
@@ -315,9 +315,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
315
315
|
behavior: "simplicity" | "normal";
|
316
316
|
type: string;
|
317
317
|
disabled: boolean;
|
318
|
-
step: number;
|
319
318
|
placeholder: string;
|
320
319
|
prefix: string;
|
320
|
+
step: number;
|
321
321
|
max: number;
|
322
322
|
min: number;
|
323
323
|
maxlength: number;
|
package/lib/link/index.d.ts
CHANGED
@@ -4,8 +4,8 @@ declare const BkLink: {
|
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
6
|
target: string;
|
7
|
-
disabled: boolean;
|
8
7
|
theme: "success" | "warning" | "danger" | "default" | "primary";
|
8
|
+
disabled: boolean;
|
9
9
|
underline: boolean;
|
10
10
|
href: string;
|
11
11
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
@@ -34,7 +34,7 @@ declare const BkLink: {
|
|
34
34
|
};
|
35
35
|
}>> & {
|
36
36
|
onClick?: (...args: any[]) => any;
|
37
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "target" | "
|
37
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "target" | "theme" | "disabled" | "underline" | "href">;
|
38
38
|
$attrs: {
|
39
39
|
[x: string]: unknown;
|
40
40
|
};
|
@@ -78,8 +78,8 @@ declare const BkLink: {
|
|
78
78
|
handleClick: (event: Event) => boolean;
|
79
79
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], string, {
|
80
80
|
target: string;
|
81
|
-
disabled: boolean;
|
82
81
|
theme: "success" | "warning" | "danger" | "default" | "primary";
|
82
|
+
disabled: boolean;
|
83
83
|
underline: boolean;
|
84
84
|
href: string;
|
85
85
|
}> & {
|
@@ -164,8 +164,8 @@ declare const BkLink: {
|
|
164
164
|
handleClick: (event: Event) => boolean;
|
165
165
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", {
|
166
166
|
target: string;
|
167
|
-
disabled: boolean;
|
168
167
|
theme: "success" | "warning" | "danger" | "default" | "primary";
|
168
|
+
disabled: boolean;
|
169
169
|
underline: boolean;
|
170
170
|
href: string;
|
171
171
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|