bkui-vue 1.0.3-beta.26 → 1.0.3-beta.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +46 -46
- package/dist/index.esm.js +6162 -6148
- package/dist/index.umd.js +46 -46
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +1 -1
- package/lib/affix/affix.less +2 -2
- package/lib/affix/affix.variable.css +3 -3
- package/lib/affix/index.js +13 -15
- package/lib/alert/alert.css +21 -21
- package/lib/alert/alert.less +16 -17
- package/lib/alert/alert.variable.css +23 -23
- package/lib/alert/index.js +22 -24
- package/lib/animate-number/index.js +5 -6
- package/lib/backtop/backtop.css +11 -11
- package/lib/backtop/backtop.less +3 -3
- package/lib/backtop/backtop.variable.css +13 -13
- package/lib/backtop/index.js +20 -22
- package/lib/badge/badge.css +32 -32
- package/lib/badge/badge.less +5 -5
- package/lib/badge/badge.variable.css +34 -34
- package/lib/badge/index.js +19 -21
- package/lib/breadcrumb/breadcrumb.css +31 -31
- package/lib/breadcrumb/breadcrumb.less +8 -8
- package/lib/breadcrumb/breadcrumb.variable.css +33 -33
- package/lib/breadcrumb/index.js +24 -26
- package/lib/button/button.css +69 -69
- package/lib/button/button.less +5 -3
- package/lib/button/button.variable.css +71 -71
- package/lib/button/index.js +28 -37
- package/lib/card/card.css +31 -31
- package/lib/card/card.less +4 -4
- package/lib/card/card.variable.css +33 -33
- package/lib/card/index.js +35 -43
- package/lib/cascader/cascader.css +63 -63
- package/lib/cascader/cascader.less +11 -12
- package/lib/cascader/cascader.variable.css +65 -65
- package/lib/cascader/index.js +80 -100
- package/lib/checkbox/checkbox.css +21 -21
- package/lib/checkbox/checkbox.less +8 -8
- package/lib/checkbox/checkbox.variable.css +23 -23
- package/lib/checkbox/index.js +32 -34
- package/lib/code-diff/code-diff.css +97 -97
- package/lib/code-diff/code-diff.less +4 -3
- package/lib/code-diff/code-diff.variable.css +99 -99
- package/lib/code-diff/index.js +12 -14
- package/lib/collapse/collapse.css +30 -30
- package/lib/collapse/collapse.less +24 -25
- package/lib/collapse/collapse.variable.css +32 -32
- package/lib/collapse/index.js +39 -41
- package/lib/collapse-transition/collapse-transition.css +32 -32
- package/lib/collapse-transition/collapse-transition.less +48 -59
- package/lib/collapse-transition/collapse-transition.variable.css +34 -34
- package/lib/collapse-transition/index.js +8 -9
- package/lib/color-picker/color-picker.css +57 -57
- package/lib/color-picker/color-picker.less +30 -36
- package/lib/color-picker/color-picker.variable.css +59 -59
- package/lib/color-picker/index.js +48 -50
- package/lib/components.js +505 -60
- package/lib/config-provider/config-provider.variable.css +2 -2
- package/lib/config-provider/index.js +8 -9
- package/lib/container/container.css +19 -19
- package/lib/container/container.less +3 -3
- package/lib/container/container.variable.css +21 -21
- package/lib/container/index.js +19 -21
- package/lib/date-picker/date-picker.css +92 -92
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.less +54 -55
- package/lib/date-picker/date-picker.variable.css +94 -94
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +69 -77
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/dialog/dialog.css +51 -51
- package/lib/dialog/dialog.less +1 -1
- package/lib/dialog/dialog.variable.css +53 -53
- package/lib/dialog/index.js +49 -63
- package/lib/directives/index.js +12 -13
- package/lib/dist.index.js +62 -5
- package/lib/divider/divider.css +8 -8
- package/lib/divider/divider.less +8 -5
- package/lib/divider/divider.variable.css +10 -10
- package/lib/divider/index.js +13 -15
- package/lib/dropdown/dropdown.css +15 -15
- package/lib/dropdown/dropdown.less +6 -6
- package/lib/dropdown/dropdown.variable.css +17 -17
- package/lib/dropdown/index.js +24 -32
- package/lib/exception/exception.css +13 -13
- package/lib/exception/exception.less +6 -6
- package/lib/exception/exception.variable.css +15 -15
- package/lib/exception/index.js +11 -13
- package/lib/fixed-navbar/fixed-navbar.css +9 -9
- package/lib/fixed-navbar/fixed-navbar.less +2 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +11 -11
- package/lib/fixed-navbar/index.js +13 -15
- package/lib/form/form.css +63 -63
- package/lib/form/form.less +16 -14
- package/lib/form/form.variable.css +65 -65
- package/lib/form/index.js +48 -50
- package/lib/hooks.js +48 -1
- package/lib/icon/index.js +0 -1
- package/lib/image/image-viewer.css +23 -23
- package/lib/image/image-viewer.less +25 -24
- package/lib/image/image-viewer.variable.css +25 -25
- package/lib/image/image.css +29 -29
- package/lib/image/image.less +8 -6
- package/lib/image/image.variable.css +31 -31
- package/lib/image/index.js +38 -39
- package/lib/index.js +72 -7
- package/lib/info-box/index.js +13 -21
- package/lib/info-box/info-box.css +10 -10
- package/lib/info-box/info-box.less +2 -1
- package/lib/info-box/info-box.variable.css +12 -12
- package/lib/input/index.js +59 -61
- package/lib/input/input.css +104 -102
- package/lib/input/input.less +33 -27
- package/lib/input/input.variable.css +106 -104
- package/lib/link/index.js +13 -15
- package/lib/link/link.css +18 -18
- package/lib/link/link.less +3 -1
- package/lib/link/link.variable.css +20 -20
- package/lib/loading/index.js +17 -19
- package/lib/loading/loading.css +94 -94
- package/lib/loading/loading.less +4 -4
- package/lib/loading/loading.variable.css +96 -96
- package/lib/locale/index.js +0 -1
- package/lib/menu/index.js +13 -15
- package/lib/menu/menu.css +38 -38
- package/lib/menu/menu.less +10 -10
- package/lib/menu/menu.variable.css +40 -40
- package/lib/menu/submenu.css +1 -1
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +3 -3
- package/lib/message/index.js +38 -40
- package/lib/message/message.css +59 -59
- package/lib/message/message.less +24 -25
- package/lib/message/message.variable.css +61 -61
- package/lib/modal/index.js +41 -43
- package/lib/modal/modal.css +26 -26
- package/lib/modal/modal.less +12 -8
- package/lib/modal/modal.variable.css +28 -28
- package/lib/navigation/index.js +14 -16
- package/lib/navigation/navigation.css +25 -25
- package/lib/navigation/navigation.less +9 -9
- package/lib/navigation/navigation.variable.css +27 -27
- package/lib/notify/index.js +31 -33
- package/lib/notify/notify.css +17 -17
- package/lib/notify/notify.less +6 -8
- package/lib/notify/notify.variable.css +19 -19
- package/lib/overflow-title/index.js +14 -22
- package/lib/pagination/index.js +50 -65
- package/lib/pagination/pagination.css +60 -60
- package/lib/pagination/pagination.less +25 -24
- package/lib/pagination/pagination.variable.css +62 -62
- package/lib/plugin-popover/index.js +53 -54
- package/lib/plugins/index.js +0 -1
- package/lib/pop-confirm/index.js +28 -42
- package/lib/pop-confirm/pop-confirm.css +10 -10
- package/lib/pop-confirm/pop-confirm.less +11 -14
- package/lib/pop-confirm/pop-confirm.variable.css +12 -12
- package/lib/popover/index.js +52 -54
- package/lib/popover/popover.css +5 -5
- package/lib/popover/popover.less +6 -5
- package/lib/popover/popover.variable.css +7 -7
- package/lib/popover2/index.js +3 -4
- package/lib/preset.js +64 -18
- package/lib/process/index.js +26 -27
- package/lib/process/process.css +33 -36
- package/lib/process/process.less +7 -8
- package/lib/process/process.variable.css +35 -38
- package/lib/progress/index.js +26 -28
- package/lib/progress/progress.css +33 -33
- package/lib/progress/progress.less +5 -6
- package/lib/progress/progress.variable.css +35 -35
- package/lib/radio/index.js +32 -34
- package/lib/radio/radio.css +51 -51
- package/lib/radio/radio.less +20 -13
- package/lib/radio/radio.variable.css +53 -53
- package/lib/rate/index.js +22 -24
- package/lib/rate/rate.css +2 -2
- package/lib/rate/rate.less +1 -1
- package/lib/rate/rate.variable.css +4 -4
- package/lib/rate/star.css +7 -7
- package/lib/rate/star.less +1 -1
- package/lib/rate/star.variable.css +9 -9
- package/lib/resize-layout/index.js +25 -27
- package/lib/resize-layout/resize-layout.css +42 -42
- package/lib/resize-layout/resize-layout.less +10 -17
- package/lib/resize-layout/resize-layout.variable.css +44 -44
- package/lib/search-select/index.js +49 -68
- package/lib/search-select/search-select.css +15 -15
- package/lib/search-select/search-select.variable.css +17 -17
- package/lib/select/index.js +129 -168
- package/lib/select/select.css +87 -87
- package/lib/select/select.less +22 -27
- package/lib/select/select.variable.css +89 -89
- package/lib/shared/index.js +4 -7
- package/lib/sideslider/index.js +14 -22
- package/lib/sideslider/sideslider.css +14 -14
- package/lib/sideslider/sideslider.less +13 -9
- package/lib/sideslider/sideslider.variable.css +16 -16
- package/lib/slider/index.js +22 -36
- package/lib/slider/slider.css +31 -31
- package/lib/slider/slider.less +8 -8
- package/lib/slider/slider.variable.css +33 -33
- package/lib/steps/index.js +28 -30
- package/lib/steps/steps.css +134 -134
- package/lib/steps/steps.less +48 -44
- package/lib/steps/steps.variable.css +136 -136
- package/lib/styles/mixins/animate.css +4 -4
- package/lib/styles/mixins/animate.less +3 -3
- package/lib/styles/mixins/animate.variable.css +6 -6
- package/lib/styles/mixins/mixins.css +15 -15
- package/lib/styles/mixins/mixins.variable.css +15 -15
- package/lib/styles/mixins/popper.css +11 -11
- package/lib/styles/mixins/popper.less +6 -6
- package/lib/styles/mixins/popper.variable.css +13 -13
- package/lib/styles/mixins/scroll.css +5 -5
- package/lib/styles/mixins/scroll.less +4 -4
- package/lib/styles/mixins/scroll.variable.css +7 -7
- package/lib/styles/reset.css +6 -6
- package/lib/styles/reset.less +5 -4
- package/lib/styles/reset.variable.css +8 -8
- package/lib/styles/themes/themes.less +10 -3
- package/lib/swiper/index.js +14 -16
- package/lib/swiper/swiper.css +15 -15
- package/lib/swiper/swiper.less +8 -8
- package/lib/swiper/swiper.variable.css +17 -17
- package/lib/switcher/index.js +29 -31
- package/lib/switcher/switcher.css +57 -57
- package/lib/switcher/switcher.less +22 -14
- package/lib/switcher/switcher.variable.css +59 -59
- package/lib/tab/index.js +44 -46
- package/lib/tab/tab.css +78 -78
- package/lib/tab/tab.less +39 -40
- package/lib/tab/tab.variable.css +80 -80
- package/lib/table/components/table-column.d.ts +1 -0
- package/lib/table/index.d.ts +1 -0
- package/lib/table/index.js +168 -207
- package/lib/table/plugins/head-filter.css +13 -13
- package/lib/table/plugins/head-filter.less +3 -3
- package/lib/table/plugins/head-filter.variable.css +15 -15
- package/lib/table/plugins/head-sort.css +5 -5
- package/lib/table/plugins/head-sort.less +2 -2
- package/lib/table/plugins/head-sort.variable.css +7 -7
- package/lib/table/plugins/settings.css +26 -26
- package/lib/table/plugins/settings.less +3 -1
- package/lib/table/plugins/settings.variable.css +28 -28
- package/lib/table/table.css +380 -380
- package/lib/table/table.less +14 -10
- package/lib/table/table.variable.css +382 -382
- package/lib/table-column/index.d.ts +3 -0
- package/lib/table-column/index.js +57 -43
- package/lib/tag/index.js +19 -21
- package/lib/tag/tag.css +51 -51
- package/lib/tag/tag.less +34 -34
- package/lib/tag/tag.variable.css +53 -53
- package/lib/tag-input/index.js +65 -80
- package/lib/tag-input/tag-input.css +38 -38
- package/lib/tag-input/tag-input.less +3 -3
- package/lib/tag-input/tag-input.variable.css +40 -40
- package/lib/time-picker/index.d.ts +3 -0
- package/lib/time-picker/index.js +7 -9
- package/lib/time-picker/time-picker.css +40 -40
- package/lib/time-picker/time-picker.less +44 -76
- package/lib/time-picker/time-picker.variable.css +42 -42
- package/lib/timeline/index.js +12 -13
- package/lib/timeline/timeline.css +69 -69
- package/lib/timeline/timeline.less +12 -6
- package/lib/timeline/timeline.variable.css +71 -71
- package/lib/transfer/index.js +36 -51
- package/lib/transfer/transfer.css +89 -89
- package/lib/transfer/transfer.less +1 -1
- package/lib/transfer/transfer.variable.css +91 -91
- package/lib/tree/index.js +72 -92
- package/lib/tree/tree.css +49 -49
- package/lib/tree/tree.less +7 -6
- package/lib/tree/tree.variable.css +51 -51
- package/lib/upload/index.js +48 -63
- package/lib/upload/upload.css +98 -98
- package/lib/upload/upload.less +69 -68
- package/lib/upload/upload.variable.css +100 -100
- package/lib/virtual-render/index.js +33 -35
- package/lib/virtual-render/virtual-render.css +9 -9
- package/lib/virtual-render/virtual-render.less +1 -1
- package/lib/virtual-render/virtual-render.variable.css +11 -11
- package/package.json +2 -2
- package/lib/styles/themes/themes copy.less +0 -167
@@ -12,13 +12,13 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
18
19
|
--line-height-base: 16px;
|
19
20
|
--line-height-medium: 16px;
|
20
21
|
--line-height-large: 18px;
|
21
|
-
--border-color: #dcdee5;
|
22
22
|
--component-size-small: 26px;
|
23
23
|
--component-size-base: 32px;
|
24
24
|
--component-size-large: 40px;
|
@@ -111,7 +111,7 @@
|
|
111
111
|
--table-border-color: #dcdee5;
|
112
112
|
--table-head-bg-color: #fafbfd;
|
113
113
|
--table-head-font-color: #313238;
|
114
|
-
--table-body-font-color: #
|
114
|
+
--table-body-font-color: #63656E;
|
115
115
|
--table-row-hover-bg-color: #f5f7fa;
|
116
116
|
--table-row-active-bg-color: #f0f1f5;
|
117
117
|
--cascader-panel-border-color: #dcdee5;
|
@@ -127,42 +127,42 @@
|
|
127
127
|
--select-active-color: #e1ecff;
|
128
128
|
--select-hover-color: #f5f7fa;
|
129
129
|
}
|
130
|
-
|
130
|
+
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper {
|
131
131
|
width: 440px;
|
132
132
|
}
|
133
|
-
|
133
|
+
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.normal {
|
134
134
|
width: 440px;
|
135
135
|
}
|
136
|
-
|
136
|
+
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.small {
|
137
137
|
width: 400px;
|
138
138
|
}
|
139
|
-
|
139
|
+
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-body {
|
140
140
|
border-radius: 2px;
|
141
141
|
}
|
142
|
-
|
142
|
+
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header {
|
143
143
|
padding: 24px 24px 0;
|
144
144
|
}
|
145
|
-
|
145
|
+
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
|
146
146
|
height: 27px;
|
147
147
|
margin: 15px 0 10px;
|
148
148
|
}
|
149
|
-
|
149
|
+
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content {
|
150
150
|
height: 100%;
|
151
151
|
max-height: 100%;
|
152
152
|
min-height: 100%;
|
153
153
|
padding: 0 50px 10px;
|
154
154
|
word-break: break-all;
|
155
155
|
}
|
156
|
-
|
156
|
+
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content .bk-info-sub-title {
|
157
157
|
margin-bottom: 10px;
|
158
158
|
text-align: center;
|
159
159
|
word-break: break-all;
|
160
160
|
}
|
161
|
-
|
161
|
+
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer {
|
162
162
|
padding: 0 65px 33px;
|
163
163
|
background-color: #fff;
|
164
164
|
border-top: none;
|
165
165
|
}
|
166
|
-
|
166
|
+
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer .bk-dialog-footer button {
|
167
167
|
min-width: 88px;
|
168
168
|
}
|
package/lib/input/index.js
CHANGED
@@ -1,10 +1,8 @@
|
|
1
|
-
import "../
|
2
|
-
import "./input.less";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
4
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
|
-
import * as
|
6
|
-
import * as
|
7
|
-
import * as
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__ from "../directives";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
8
6
|
/******/ var __webpack_modules__ = ({
|
9
7
|
|
10
8
|
/***/ 7609:
|
@@ -424,7 +422,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
424
422
|
;// CONCATENATED MODULE: external "../shared"
|
425
423
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
426
424
|
var y = x => () => x
|
427
|
-
const
|
425
|
+
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, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
428
426
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
429
427
|
function _arrayWithHoles(arr) {
|
430
428
|
if (Array.isArray(arr)) return arr;
|
@@ -599,17 +597,17 @@ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBP
|
|
599
597
|
var regenerator = __webpack_require__(2841);
|
600
598
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
601
599
|
;// CONCATENATED MODULE: external "../config-provider"
|
602
|
-
var
|
603
|
-
var
|
604
|
-
const
|
600
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
601
|
+
var external_config_provider_y = x => () => x
|
602
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
605
603
|
;// CONCATENATED MODULE: external "../directives"
|
606
|
-
var
|
607
|
-
var
|
608
|
-
const
|
604
|
+
var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
605
|
+
var external_directives_y = x => () => x
|
606
|
+
const external_directives_namespaceObject = external_directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.bkTooltips });
|
609
607
|
;// CONCATENATED MODULE: external "../icon"
|
610
|
-
var
|
611
|
-
var
|
612
|
-
const
|
608
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
609
|
+
var external_icon_y = x => () => x
|
610
|
+
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 });
|
613
611
|
;// CONCATENATED MODULE: ../../packages/input/src/util.ts
|
614
612
|
/*
|
615
613
|
* Tencent is pleased to support the open source community by making
|
@@ -742,37 +740,37 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
742
740
|
|
743
741
|
|
744
742
|
var inputType = {
|
745
|
-
type:
|
746
|
-
clearable:
|
747
|
-
disabled:
|
748
|
-
readonly:
|
749
|
-
placeholder:
|
750
|
-
prefixIcon:
|
751
|
-
suffixIcon:
|
752
|
-
suffix:
|
753
|
-
prefix:
|
754
|
-
step:
|
755
|
-
max:
|
756
|
-
min:
|
757
|
-
maxlength:
|
758
|
-
maxcharacter:
|
759
|
-
behavior: (0,
|
760
|
-
showWordLimit:
|
761
|
-
showControl:
|
762
|
-
showClearOnlyHover:
|
763
|
-
precision:
|
743
|
+
type: external_shared_namespaceObject.PropTypes.string.def('text'),
|
744
|
+
clearable: external_shared_namespaceObject.PropTypes.bool,
|
745
|
+
disabled: external_shared_namespaceObject.PropTypes.bool,
|
746
|
+
readonly: external_shared_namespaceObject.PropTypes.bool,
|
747
|
+
placeholder: external_shared_namespaceObject.PropTypes.string.def(''),
|
748
|
+
prefixIcon: external_shared_namespaceObject.PropTypes.string,
|
749
|
+
suffixIcon: external_shared_namespaceObject.PropTypes.string,
|
750
|
+
suffix: external_shared_namespaceObject.PropTypes.string,
|
751
|
+
prefix: external_shared_namespaceObject.PropTypes.string,
|
752
|
+
step: external_shared_namespaceObject.PropTypes.integer,
|
753
|
+
max: external_shared_namespaceObject.PropTypes.integer,
|
754
|
+
min: external_shared_namespaceObject.PropTypes.integer,
|
755
|
+
maxlength: external_shared_namespaceObject.PropTypes.integer,
|
756
|
+
maxcharacter: external_shared_namespaceObject.PropTypes.integer,
|
757
|
+
behavior: (0,external_shared_namespaceObject.InputBehaviorType)(),
|
758
|
+
showWordLimit: external_shared_namespaceObject.PropTypes.bool,
|
759
|
+
showControl: external_shared_namespaceObject.PropTypes.bool.def(true),
|
760
|
+
showClearOnlyHover: external_shared_namespaceObject.PropTypes.bool.def(true),
|
761
|
+
precision: external_shared_namespaceObject.PropTypes.number.def(0).validate(function (val) {
|
764
762
|
return val >= 0 && val < 20;
|
765
763
|
}),
|
766
|
-
modelValue:
|
767
|
-
size:
|
768
|
-
rows:
|
769
|
-
selectReadonly:
|
770
|
-
withValidate:
|
771
|
-
overMaxLengthLimit:
|
772
|
-
showOverflowTooltips:
|
773
|
-
resize:
|
774
|
-
autosize:
|
775
|
-
stopPropagation:
|
764
|
+
modelValue: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]),
|
765
|
+
size: external_shared_namespaceObject.PropTypes.size(),
|
766
|
+
rows: external_shared_namespaceObject.PropTypes.number,
|
767
|
+
selectReadonly: external_shared_namespaceObject.PropTypes.bool.def(false),
|
768
|
+
withValidate: external_shared_namespaceObject.PropTypes.bool.def(true),
|
769
|
+
overMaxLengthLimit: external_shared_namespaceObject.PropTypes.bool.def(false),
|
770
|
+
showOverflowTooltips: external_shared_namespaceObject.PropTypes.bool.def(true),
|
771
|
+
resize: external_shared_namespaceObject.PropTypes.bool.def(true),
|
772
|
+
autosize: external_shared_namespaceObject.PropTypes.oneOfType([Boolean, Object]).def(false),
|
773
|
+
stopPropagation: external_shared_namespaceObject.PropTypes.bool.def(true)
|
776
774
|
};
|
777
775
|
var EVENTS;
|
778
776
|
(function (EVENTS) {
|
@@ -811,16 +809,16 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
811
809
|
// eslint-disable-next-line vue/no-reserved-component-names
|
812
810
|
name: 'Input',
|
813
811
|
directives: {
|
814
|
-
bkTooltips:
|
812
|
+
bkTooltips: external_directives_namespaceObject.bkTooltips
|
815
813
|
},
|
816
814
|
inheritAttrs: false,
|
817
815
|
props: inputType,
|
818
816
|
emits: inputEmitEventsType,
|
819
817
|
setup: function setup(props, ctx) {
|
820
|
-
var _usePrefix = (0,
|
818
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
821
819
|
resolveClassName = _usePrefix.resolveClassName;
|
822
|
-
var formItem = (0,
|
823
|
-
var t = (0,
|
820
|
+
var formItem = (0,external_shared_namespaceObject.useFormItem)();
|
821
|
+
var t = (0,external_config_provider_namespaceObject.useLocale)('input');
|
824
822
|
var isFocused = (0,external_vue_namespaceObject.ref)(false);
|
825
823
|
var isCNInput = (0,external_vue_namespaceObject.ref)(false);
|
826
824
|
var isTextArea = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -838,7 +836,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
838
836
|
value: props.modelValue
|
839
837
|
});
|
840
838
|
var inputCls = (0,external_vue_namespaceObject.computed)(function () {
|
841
|
-
return (0,
|
839
|
+
return (0,external_shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(inputClsPrefix.value, "--").concat(props.size), !!props.size), "resizable", props.resize), 'is-focused', isFocused.value), 'is-readonly', props.readonly && !props.selectReadonly), 'is-disabled', props.disabled), 'is-simplicity', props.behavior === 'simplicity'), "".concat(ctx.attrs["class"]), !!ctx.attrs["class"]), inputClsPrefix.value);
|
842
840
|
});
|
843
841
|
var isOverflow = (0,external_vue_namespaceObject.ref)(false);
|
844
842
|
var textareaCalcStyle = (0,external_vue_namespaceObject.ref)({});
|
@@ -877,10 +875,10 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
877
875
|
var suffixCls = getCls('suffix-icon');
|
878
876
|
var suffixIconMap = {
|
879
877
|
search: function search() {
|
880
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
878
|
+
return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Search, null, null);
|
881
879
|
},
|
882
880
|
password: function password() {
|
883
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
881
|
+
return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Unvisible, {
|
884
882
|
"onClick": handleVisibleChange,
|
885
883
|
"class": suffixCls
|
886
884
|
}, null);
|
@@ -889,7 +887,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
889
887
|
var suffixIcon = (0,external_vue_namespaceObject.computed)(function () {
|
890
888
|
var icon = suffixIconMap[props.type];
|
891
889
|
if (pwdVisible.value) {
|
892
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
890
|
+
return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Eye, {
|
893
891
|
"class": suffixCls,
|
894
892
|
"onClick": handleVisibleChange
|
895
893
|
}, null);
|
@@ -907,12 +905,12 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
907
905
|
});
|
908
906
|
var pwdVisible = (0,external_vue_namespaceObject.ref)(false);
|
909
907
|
var clearCls = (0,external_vue_namespaceObject.computed)(function () {
|
910
|
-
return (0,
|
908
|
+
return (0,external_shared_namespaceObject.classes)(_defineProperty({
|
911
909
|
'show-clear-only-hover': props.showClearOnlyHover
|
912
910
|
}, "".concat(inputClsPrefix.value, "--clear-icon"), true), suffixCls);
|
913
911
|
});
|
914
912
|
var maxLengthCls = (0,external_vue_namespaceObject.computed)(function () {
|
915
|
-
return (0,
|
913
|
+
return (0,external_shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, getCls('max-length'), true), 'is-over-limit', ceilMaxLength.value - modelValueLength.value < 0));
|
916
914
|
});
|
917
915
|
var getValueLimits = function getValueLimits(val) {
|
918
916
|
if (typeof props.maxcharacter === 'number') {
|
@@ -938,12 +936,12 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
938
936
|
return getValueLimits(modelValue).len;
|
939
937
|
});
|
940
938
|
var incControlCls = (0,external_vue_namespaceObject.computed)(function () {
|
941
|
-
return (0,
|
939
|
+
return (0,external_shared_namespaceObject.classes)({
|
942
940
|
'is-disabled': props.disabled || props.modelValue >= props.max
|
943
941
|
});
|
944
942
|
});
|
945
943
|
var decControlCls = (0,external_vue_namespaceObject.computed)(function () {
|
946
|
-
return (0,
|
944
|
+
return (0,external_shared_namespaceObject.classes)({
|
947
945
|
'is-disabled': props.disabled || props.modelValue <= props.min
|
948
946
|
});
|
949
947
|
});
|
@@ -1184,14 +1182,14 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1184
1182
|
}, eventListener, bindProps.value, innerInputValue.value), null), !isTextArea.value && props.clearable && !!props.modelValue && (0,external_vue_namespaceObject.createVNode)("span", {
|
1185
1183
|
"class": clearCls.value,
|
1186
1184
|
"onClick": clear
|
1187
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
1185
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, null, null)]), suffixIcon.value, showMaxLimit.value && (props.showWordLimit || isTextArea.value) && (0,external_vue_namespaceObject.createVNode)("p", {
|
1188
1186
|
"class": maxLengthCls.value
|
1189
1187
|
}, [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", {
|
1190
1188
|
"class": getCls('number-control')
|
1191
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
1189
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.DownSmall, {
|
1192
1190
|
"class": incControlCls.value,
|
1193
1191
|
"onClick": handleInc
|
1194
|
-
}, null), (0,external_vue_namespaceObject.createVNode)(
|
1192
|
+
}, null), (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.DownSmall, {
|
1195
1193
|
"class": decControlCls.value,
|
1196
1194
|
"onClick": handleDec
|
1197
1195
|
}, 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", {
|
@@ -1230,7 +1228,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1230
1228
|
*/
|
1231
1229
|
|
1232
1230
|
|
1233
|
-
var BkInput = (0,
|
1231
|
+
var BkInput = (0,external_shared_namespaceObject.withInstall)(input);
|
1234
1232
|
/* harmony default export */ const src = (BkInput);
|
1235
1233
|
})();
|
1236
1234
|
|