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