bkui-vue 2.0.1-beta.107 → 2.0.1-beta.108
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 +71 -71
- package/dist/index.esm.js +18590 -18752
- package/dist/index.umd.js +70 -70
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +130 -0
- package/lib/affix/affix.variable.css +261 -1
- package/lib/affix/index.d.ts +111 -57
- package/lib/affix/index.js +17 -17
- package/lib/alert/alert.css +133 -3
- package/lib/alert/alert.variable.css +261 -1
- package/lib/alert/index.d.ts +126 -73
- package/lib/alert/index.js +20 -20
- package/lib/animate-number/index.d.ts +96 -33
- package/lib/animate-number/index.js +7 -8
- package/lib/backtop/backtop.css +133 -3
- package/lib/backtop/backtop.variable.css +394 -4
- package/lib/backtop/index.d.ts +117 -69
- package/lib/backtop/index.js +10 -11
- package/lib/badge/badge.css +156 -26
- package/lib/badge/badge.variable.css +261 -1
- package/lib/badge/index.d.ts +152 -119
- package/lib/badge/index.js +19 -19
- package/lib/breadcrumb/breadcrumb.css +135 -5
- package/lib/breadcrumb/breadcrumb.variable.css +396 -6
- package/lib/breadcrumb/index.d.ts +119 -67
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.css +273 -143
- package/lib/button/button.d.ts +2 -2
- package/lib/button/button.variable.css +261 -1
- package/lib/button/index.d.ts +155 -119
- package/lib/button/index.js +20 -19
- package/lib/card/card.css +134 -4
- package/lib/card/card.variable.css +395 -5
- package/lib/card/index.d.ts +157 -128
- package/lib/card/index.js +22 -20
- package/lib/cascader/cascader.css +153 -23
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/cascader.variable.css +414 -24
- package/lib/cascader/index.d.ts +354 -393
- package/lib/cascader/index.js +268 -270
- package/lib/checkbox/checkbox.css +140 -10
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/checkbox.variable.css +261 -1
- package/lib/checkbox/index.d.ts +175 -143
- package/lib/checkbox/index.js +45 -45
- package/lib/code-diff/code-diff.css +130 -0
- package/lib/code-diff/code-diff.variable.css +261 -1
- package/lib/code-diff/index.d.ts +82 -65
- package/lib/code-diff/index.js +438 -381
- package/lib/collapse/collapse.css +131 -1
- package/lib/collapse/collapse.variable.css +261 -1
- package/lib/collapse/index.d.ts +175 -156
- package/lib/collapse/index.js +27 -28
- package/lib/collapse-transition/collapse-transition.css +130 -0
- package/lib/collapse-transition/collapse-transition.variable.css +261 -1
- package/lib/collapse-transition/index.d.ts +94 -19
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/color-picker.css +130 -0
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/color-picker.variable.css +261 -1
- package/lib/color-picker/index.d.ts +165 -144
- package/lib/color-picker/index.js +41 -43
- package/lib/config-provider/config-provider.css +130 -0
- package/lib/config-provider/config-provider.variable.css +261 -1
- package/lib/config-provider/index.d.ts +227 -160
- package/lib/config-provider/index.js +17 -17
- package/lib/container/container.css +130 -0
- package/lib/container/container.d.ts +1 -1
- package/lib/container/container.variable.css +391 -1
- package/lib/container/index.d.ts +85 -74
- package/lib/container/index.js +26 -28
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.css +147 -17
- package/lib/date-picker/date-picker.d.ts +4 -4
- package/lib/date-picker/date-picker.variable.css +261 -1
- package/lib/date-picker/index.d.ts +351 -380
- package/lib/date-picker/index.js +79 -80
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +2 -2
- package/lib/date-picker/time-picker.d.ts +4 -4
- package/lib/dialog/dialog.css +138 -8
- package/lib/dialog/dialog.variable.css +399 -9
- package/lib/dialog/index.d.ts +269 -299
- package/lib/dialog/index.js +228 -227
- package/lib/directives/index.js +29 -29
- package/lib/divider/divider.css +133 -3
- package/lib/divider/divider.variable.css +261 -1
- package/lib/divider/index.d.ts +111 -57
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/dropdown.css +130 -0
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/dropdown.variable.css +391 -1
- package/lib/dropdown/index.d.ts +136 -94
- package/lib/dropdown/index.js +22 -24
- package/lib/exception/exception.css +130 -0
- package/lib/exception/exception.variable.css +261 -1
- package/lib/exception/index.d.ts +102 -41
- package/lib/exception/index.js +21 -21
- package/lib/fixed-navbar/fixed-navbar.css +134 -4
- package/lib/fixed-navbar/fixed-navbar.variable.css +261 -1
- package/lib/fixed-navbar/index.d.ts +113 -59
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/form.css +130 -0
- package/lib/form/form.d.ts +1 -1
- package/lib/form/form.variable.css +261 -1
- package/lib/form/index.d.ts +132 -80
- package/lib/form/index.js +22 -21
- package/lib/icon/angle-double-down-line.js +17 -17
- package/lib/icon/angle-double-left-line.js +17 -17
- package/lib/icon/angle-double-left.js +17 -17
- package/lib/icon/angle-double-right-line.js +17 -17
- package/lib/icon/angle-double-right.js +17 -17
- package/lib/icon/angle-double-up-line.js +17 -17
- package/lib/icon/angle-down-fill.js +17 -17
- package/lib/icon/angle-down-line.js +17 -17
- package/lib/icon/angle-down.js +17 -17
- package/lib/icon/angle-left.js +17 -17
- package/lib/icon/angle-right.js +17 -17
- package/lib/icon/angle-up-fill.js +17 -17
- package/lib/icon/angle-up.js +17 -17
- package/lib/icon/archive-fill.js +17 -17
- package/lib/icon/arrows-left.js +17 -17
- package/lib/icon/arrows-right.js +17 -17
- package/lib/icon/assistant.js +17 -17
- package/lib/icon/audio-fill.js +17 -17
- package/lib/icon/bk.js +17 -17
- package/lib/icon/circle.js +17 -17
- package/lib/icon/close-line.js +17 -17
- package/lib/icon/close.js +17 -17
- package/lib/icon/code.js +17 -17
- package/lib/icon/cog-shape.js +17 -17
- package/lib/icon/collapse-left.js +17 -17
- package/lib/icon/copy-shape.js +17 -17
- package/lib/icon/copy.js +17 -17
- package/lib/icon/data-shape.js +17 -17
- package/lib/icon/del.js +17 -17
- package/lib/icon/doc-fill.js +17 -17
- package/lib/icon/done.js +17 -17
- package/lib/icon/down-shape.js +17 -17
- package/lib/icon/down-small.js +17 -17
- package/lib/icon/edit-line.js +17 -17
- package/lib/icon/ellipsis.js +17 -17
- package/lib/icon/enlarge-line.js +17 -17
- package/lib/icon/error.js +17 -17
- package/lib/icon/excel-fill.js +17 -17
- package/lib/icon/exclamation-circle-shape.js +17 -17
- package/lib/icon/eye.js +17 -17
- package/lib/icon/filliscreen-line.js +17 -17
- package/lib/icon/fix-line.js +17 -17
- package/lib/icon/fix-shape.js +17 -17
- package/lib/icon/folder-open.js +17 -17
- package/lib/icon/folder-shape-open.js +17 -17
- package/lib/icon/folder-shape.js +17 -17
- package/lib/icon/folder.js +17 -17
- package/lib/icon/funnel.js +17 -17
- package/lib/icon/grag-fill.js +17 -17
- package/lib/icon/help-document-fill.js +17 -17
- package/lib/icon/help-fill.js +17 -17
- package/lib/icon/help.js +17 -17
- package/lib/icon/image-fill.js +17 -17
- package/lib/icon/img-error.js +17 -17
- package/lib/icon/img-placehoulder.js +17 -17
- package/lib/icon/info-line.js +17 -17
- package/lib/icon/info.js +17 -17
- package/lib/icon/left-shape.js +17 -17
- package/lib/icon/left-turn-line.js +17 -17
- package/lib/icon/loading.js +17 -17
- package/lib/icon/narrow-line.js +17 -17
- package/lib/icon/original.js +17 -17
- package/lib/icon/pdf-fill.js +17 -17
- package/lib/icon/play-shape.js +17 -17
- package/lib/icon/plus.js +17 -17
- package/lib/icon/ppt-fill.js +17 -17
- package/lib/icon/qq.js +17 -17
- package/lib/icon/right-shape.js +17 -17
- package/lib/icon/right-turn-line.js +17 -17
- package/lib/icon/search.js +17 -17
- package/lib/icon/share.js +17 -17
- package/lib/icon/spinner.js +17 -17
- package/lib/icon/success.js +17 -17
- package/lib/icon/switcher-loading.js +17 -17
- package/lib/icon/text-all.js +17 -17
- package/lib/icon/text-file.js +17 -17
- package/lib/icon/text-fill.js +17 -17
- package/lib/icon/transfer.js +17 -17
- package/lib/icon/tree-application-shape.js +17 -17
- package/lib/icon/unfull-screen.js +17 -17
- package/lib/icon/unvisible.js +17 -17
- package/lib/icon/up-shape.js +17 -17
- package/lib/icon/upload.js +17 -17
- package/lib/icon/video-fill.js +17 -17
- package/lib/icon/warn.js +17 -17
- package/lib/icon/weixin-pro.js +17 -17
- package/lib/icon/weixin.js +17 -17
- package/lib/image/image-viewer.css +130 -0
- package/lib/image/image-viewer.variable.css +261 -1
- package/lib/image/image.css +130 -0
- package/lib/image/image.variable.css +391 -1
- package/lib/image/index.d.ts +149 -113
- package/lib/image/index.js +26 -27
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +233 -232
- package/lib/info-box/info-box.css +134 -4
- package/lib/info-box/info-box.variable.css +261 -1
- package/lib/input/index.d.ts +293 -326
- package/lib/input/index.js +48 -46
- package/lib/input/input.css +205 -75
- package/lib/input/input.variable.css +466 -76
- package/lib/link/index.d.ts +122 -73
- package/lib/link/index.js +2 -2
- package/lib/link/link.css +146 -16
- package/lib/link/link.variable.css +261 -1
- package/lib/loading/index.d.ts +156 -130
- package/lib/loading/index.js +33 -32
- package/lib/loading/loading.css +146 -16
- package/lib/loading/loading.d.ts +1 -1
- package/lib/loading/loading.variable.css +407 -17
- package/lib/menu/index.d.ts +116 -55
- package/lib/menu/index.js +25 -26
- package/lib/menu/menu.css +150 -20
- package/lib/menu/menu.variable.css +411 -21
- package/lib/menu/submenu.css +130 -0
- package/lib/menu/submenu.variable.css +261 -1
- package/lib/message/index.js +25 -24
- package/lib/message/message.css +151 -21
- package/lib/message/message.variable.css +261 -1
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +185 -171
- package/lib/modal/index.js +19 -19
- package/lib/modal/modal.css +134 -4
- package/lib/modal/modal.variable.css +395 -5
- package/lib/navigation/index.d.ts +188 -152
- package/lib/navigation/index.js +7 -9
- package/lib/navigation/navigation.css +132 -2
- package/lib/navigation/navigation.variable.css +261 -1
- package/lib/notify/index.js +21 -20
- package/lib/notify/notify.css +137 -7
- package/lib/notify/notify.variable.css +261 -1
- package/lib/overflow-title/index.d.ts +256 -343
- package/lib/overflow-title/index.js +10 -11
- package/lib/pagination/index.d.ts +198 -184
- package/lib/pagination/index.js +56 -49
- package/lib/pagination/pagination.css +131 -1
- package/lib/pagination/pagination.variable.css +261 -1
- package/lib/plugin-popover/index.js +135 -233
- package/lib/pop-confirm/index.d.ts +153 -115
- package/lib/pop-confirm/index.js +4 -5
- package/lib/pop-confirm/pop-confirm.css +130 -0
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/pop-confirm/pop-confirm.variable.css +261 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +361 -423
- package/lib/popover/index.js +135 -233
- package/lib/popover/popover.css +130 -0
- package/lib/popover/popover.d.ts +1 -1
- package/lib/popover/popover.variable.css +261 -1
- package/lib/popover/use-popover-init.d.ts +1 -2
- package/lib/popover2/index.d.ts +83 -8
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.d.ts +137 -93
- package/lib/process/index.js +226 -226
- package/lib/process/process.css +143 -13
- package/lib/process/process.variable.css +261 -1
- package/lib/progress/index.d.ts +187 -178
- package/lib/progress/index.js +21 -22
- package/lib/progress/progress.css +134 -4
- package/lib/progress/progress.d.ts +2 -2
- package/lib/progress/progress.variable.css +395 -5
- package/lib/radio/index.d.ts +140 -91
- package/lib/radio/index.js +48 -46
- package/lib/radio/radio.css +172 -42
- package/lib/radio/radio.variable.css +261 -1
- package/lib/rate/index.d.ts +112 -55
- package/lib/rate/index.js +20 -19
- package/lib/rate/rate.css +130 -0
- package/lib/rate/rate.variable.css +261 -1
- package/lib/resize-layout/index.d.ts +192 -168
- package/lib/resize-layout/index.js +21 -20
- package/lib/resize-layout/resize-layout.css +130 -0
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/resize-layout/resize-layout.variable.css +261 -1
- package/lib/scrollbar/css/scrollbar.css +130 -0
- package/lib/scrollbar/css/scrollbar.variable.css +261 -1
- package/lib/scrollbar/index.js +38 -38
- package/lib/search-select/index.d.ts +901 -684
- package/lib/search-select/index.js +274 -274
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.css +163 -33
- package/lib/search-select/search-select.d.ts +188 -133
- package/lib/search-select/search-select.variable.css +424 -34
- package/lib/search-select/selected.d.ts +188 -133
- package/lib/select/index.d.ts +1333 -1491
- package/lib/select/index.js +280 -279
- package/lib/select/select.css +169 -39
- package/lib/select/select.d.ts +169 -132
- package/lib/select/select.variable.css +430 -40
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +56 -54
- package/lib/sideslider/index.d.ts +201 -197
- package/lib/sideslider/index.js +228 -227
- package/lib/sideslider/sideslider.css +131 -1
- package/lib/sideslider/sideslider.variable.css +261 -1
- package/lib/slider/index.d.ts +210 -214
- package/lib/slider/index.js +225 -226
- package/lib/slider/slider.css +135 -5
- package/lib/slider/slider.variable.css +261 -1
- package/lib/steps/index.d.ts +149 -110
- package/lib/steps/index.js +231 -230
- package/lib/steps/steps.css +168 -38
- package/lib/steps/steps.variable.css +261 -1
- package/lib/styles/mixins/animate.css +130 -0
- package/lib/styles/mixins/animate.variable.css +261 -1
- package/lib/styles/mixins/mixins.css +130 -0
- package/lib/styles/mixins/mixins.variable.css +130 -0
- package/lib/styles/mixins/popper.css +130 -0
- package/lib/styles/mixins/popper.variable.css +261 -1
- package/lib/styles/mixins/scroll.css +130 -0
- package/lib/styles/mixins/scroll.variable.css +261 -1
- package/lib/styles/reset.css +130 -0
- package/lib/styles/reset.variable.css +261 -1
- package/lib/styles/themes/themes.css +130 -0
- package/lib/styles/themes/themes.less +299 -130
- package/lib/styles/themes/themes.variable.css +130 -0
- package/lib/swiper/index.d.ts +127 -81
- package/lib/swiper/index.js +18 -18
- package/lib/swiper/swiper.css +130 -0
- package/lib/swiper/swiper.variable.css +261 -1
- package/lib/switcher/index.d.ts +174 -152
- package/lib/switcher/index.js +22 -20
- package/lib/switcher/switcher.css +147 -17
- package/lib/switcher/switcher.variable.css +408 -18
- package/lib/tab/index.d.ts +183 -151
- package/lib/tab/index.js +19 -20
- package/lib/tab/tab.css +156 -26
- package/lib/tab/tab.variable.css +261 -1
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/hooks/use-columns.d.ts +1 -1
- package/lib/table/hooks/use-layout.d.ts +2 -2
- package/lib/table/hooks/use-rows.d.ts +1 -1
- package/lib/table/index.d.ts +362 -457
- package/lib/table/index.js +350 -338
- package/lib/table/plugins/head-filter.css +130 -0
- package/lib/table/plugins/head-filter.variable.css +261 -1
- package/lib/table/plugins/head-sort.css +130 -0
- package/lib/table/plugins/head-sort.variable.css +261 -1
- package/lib/table/plugins/settings.css +130 -0
- package/lib/table/plugins/settings.variable.css +261 -1
- package/lib/table/table.css +319 -189
- package/lib/table/table.d.ts +1 -1
- package/lib/table/table.variable.css +580 -190
- package/lib/table-column/index.d.ts +150 -104
- package/lib/table-column/index.js +19 -18
- package/lib/tag/index.d.ts +142 -95
- package/lib/tag/index.js +19 -19
- package/lib/tag/tag.css +135 -5
- package/lib/tag/tag.variable.css +261 -1
- package/lib/tag-input/index.d.ts +540 -755
- package/lib/tag-input/index.js +58 -52
- package/lib/tag-input/tag-input.css +148 -18
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/tag-input/tag-input.variable.css +261 -1
- package/lib/time-picker/index.d.ts +386 -439
- package/lib/time-picker/time-picker.css +130 -0
- package/lib/time-picker/time-picker.variable.css +261 -1
- package/lib/timeline/index.d.ts +131 -64
- package/lib/timeline/index.js +6 -6
- package/lib/timeline/timeline.css +149 -19
- package/lib/timeline/timeline.variable.css +261 -1
- package/lib/transfer/index.d.ts +206 -191
- package/lib/transfer/transfer.css +149 -19
- package/lib/transfer/transfer.variable.css +261 -1
- package/lib/tree/index.d.ts +308 -350
- package/lib/tree/index.js +74 -71
- package/lib/tree/tree.css +140 -10
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/tree.variable.css +401 -11
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +273 -311
- package/lib/upload/index.js +264 -261
- package/lib/upload/upload.css +157 -27
- package/lib/upload/upload.d.ts +2 -2
- package/lib/upload/upload.variable.css +418 -28
- package/lib/virtual-render/index.d.ts +241 -333
- package/lib/virtual-render/index.js +29 -29
- package/lib/virtual-render/virtual-render.css +130 -0
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/lib/virtual-render/virtual-render.variable.css +391 -1
- package/package.json +1 -1
package/lib/input/index.js
CHANGED
@@ -43,31 +43,31 @@ function _arrayWithHoles(arr) {
|
|
43
43
|
if (Array.isArray(arr)) return arr;
|
44
44
|
}
|
45
45
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
46
|
-
function _iterableToArrayLimit(
|
47
|
-
var
|
48
|
-
if (null !=
|
49
|
-
var
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
46
|
+
function _iterableToArrayLimit(arr, i) {
|
47
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
48
|
+
if (null != _i) {
|
49
|
+
var _s,
|
50
|
+
_e,
|
51
|
+
_x,
|
52
|
+
_r,
|
53
|
+
_arr = [],
|
54
|
+
_n = !0,
|
55
|
+
_d = !1;
|
56
56
|
try {
|
57
|
-
if (
|
58
|
-
if (Object(
|
59
|
-
|
60
|
-
} else for (; !(
|
61
|
-
} catch (
|
62
|
-
|
57
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
58
|
+
if (Object(_i) !== _i) return;
|
59
|
+
_n = !1;
|
60
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
61
|
+
} catch (err) {
|
62
|
+
_d = !0, _e = err;
|
63
63
|
} finally {
|
64
64
|
try {
|
65
|
-
if (!
|
65
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
66
66
|
} finally {
|
67
|
-
if (
|
67
|
+
if (_d) throw _e;
|
68
68
|
}
|
69
69
|
}
|
70
|
-
return
|
70
|
+
return _arr;
|
71
71
|
}
|
72
72
|
}
|
73
73
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
@@ -129,38 +129,38 @@ function _objectWithoutProperties(source, excluded) {
|
|
129
129
|
return target;
|
130
130
|
}
|
131
131
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
132
|
-
function _typeof(
|
132
|
+
function _typeof(obj) {
|
133
133
|
"@babel/helpers - typeof";
|
134
134
|
|
135
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
136
|
-
return typeof
|
137
|
-
} : function (
|
138
|
-
return
|
139
|
-
}, _typeof(
|
135
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
136
|
+
return typeof obj;
|
137
|
+
} : function (obj) {
|
138
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
139
|
+
}, _typeof(obj);
|
140
140
|
}
|
141
141
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
142
142
|
|
143
|
-
function
|
144
|
-
if ("object"
|
145
|
-
var
|
146
|
-
if (
|
147
|
-
var
|
148
|
-
if ("object"
|
143
|
+
function _toPrimitive(input, hint) {
|
144
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
145
|
+
var prim = input[Symbol.toPrimitive];
|
146
|
+
if (prim !== undefined) {
|
147
|
+
var res = prim.call(input, hint || "default");
|
148
|
+
if (_typeof(res) !== "object") return res;
|
149
149
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
150
150
|
}
|
151
|
-
return ("string"
|
151
|
+
return (hint === "string" ? String : Number)(input);
|
152
152
|
}
|
153
153
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
154
154
|
|
155
155
|
|
156
|
-
function
|
157
|
-
var
|
158
|
-
return "symbol"
|
156
|
+
function _toPropertyKey(arg) {
|
157
|
+
var key = _toPrimitive(arg, "string");
|
158
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
159
159
|
}
|
160
160
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
161
161
|
|
162
162
|
function _defineProperty(obj, key, value) {
|
163
|
-
key =
|
163
|
+
key = _toPropertyKey(key);
|
164
164
|
if (key in obj) {
|
165
165
|
Object.defineProperty(obj, key, {
|
166
166
|
value: value,
|
@@ -274,7 +274,7 @@ function calcTextareaHeight(targetElement) {
|
|
274
274
|
height = Math.min(maxHeight, height);
|
275
275
|
}
|
276
276
|
result.height = "".concat(height, "px");
|
277
|
-
(_hiddenTextarea$paren = hiddenTextarea.parentNode) === null || _hiddenTextarea$paren === void 0
|
277
|
+
(_hiddenTextarea$paren = hiddenTextarea.parentNode) === null || _hiddenTextarea$paren === void 0 ? void 0 : _hiddenTextarea$paren.removeChild(hiddenTextarea);
|
278
278
|
hiddenTextarea = undefined;
|
279
279
|
return result;
|
280
280
|
}
|
@@ -379,13 +379,13 @@ function PastEventFunction(_value, _e) {
|
|
379
379
|
function CompositionEventFunction(evt) {
|
380
380
|
return evt;
|
381
381
|
}
|
382
|
-
var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(
|
382
|
+
var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmitEventsType, EVENTS.UPDATE, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.FOCUS, function (evt) {
|
383
383
|
return evt;
|
384
|
-
}), EVENTS.BLUR, function (evt) {
|
384
|
+
}), _defineProperty(_inputEmitEventsType, EVENTS.BLUR, function (evt) {
|
385
385
|
return evt;
|
386
|
-
}), EVENTS.CHANGE, EventFunction), EVENTS.CLEAR, function () {
|
386
|
+
}), _defineProperty(_inputEmitEventsType, EVENTS.CHANGE, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.CLEAR, function () {
|
387
387
|
return true;
|
388
|
-
}), EVENTS.INPUT, EventFunction), EVENTS.KEYPRESS, EventFunction), EVENTS.KEYDOWN, EventFunction), EVENTS.KEYUP, EventFunction), EVENTS.ENTER, EventFunction), _defineProperty(
|
388
|
+
}), _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, PastEventFunction), _defineProperty(_inputEmitEventsType, EVENTS.COMPOSITIONSTART, CompositionEventFunction), _defineProperty(_inputEmitEventsType, EVENTS.COMPOSITIONUPDATE, CompositionEventFunction), _defineProperty(_inputEmitEventsType, EVENTS.COMPOSITIONEND, CompositionEventFunction), _inputEmitEventsType);
|
389
389
|
/* harmony default export */ const input = ((0,external_vue_namespaceObject.defineComponent)({
|
390
390
|
name: 'Input',
|
391
391
|
directives: {
|
@@ -416,7 +416,8 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
416
416
|
value: props.modelValue
|
417
417
|
});
|
418
418
|
var inputCls = (0,external_vue_namespaceObject.computed)(function () {
|
419
|
-
|
419
|
+
var _classes;
|
420
|
+
return (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(inputClsPrefix.value, "--").concat(props.size), !!props.size), _defineProperty(_classes, "resizable", props.resize), _defineProperty(_classes, 'is-focused', isFocused.value), _defineProperty(_classes, 'is-readonly', props.readonly && !props.selectReadonly), _defineProperty(_classes, 'is-disabled', props.disabled), _defineProperty(_classes, 'is-simplicity', props.behavior === 'simplicity'), _defineProperty(_classes, "".concat(ctx.attrs["class"]), !!ctx.attrs["class"]), _classes), inputClsPrefix.value);
|
420
421
|
});
|
421
422
|
var isOverflow = (0,external_vue_namespaceObject.ref)(false);
|
422
423
|
var textareaCalcStyle = (0,external_vue_namespaceObject.ref)();
|
@@ -458,7 +459,8 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
458
459
|
}, "".concat(inputClsPrefix.value, "--clear-icon"), true), suffixCls);
|
459
460
|
});
|
460
461
|
var maxLengthCls = (0,external_vue_namespaceObject.computed)(function () {
|
461
|
-
|
462
|
+
var _classes3;
|
463
|
+
return (0,shared_namespaceObject.classes)((_classes3 = {}, _defineProperty(_classes3, getCls('max-length'), true), _defineProperty(_classes3, 'is-over-limit', ceilMaxLength.value - modelValueLength.value < 0), _classes3));
|
462
464
|
});
|
463
465
|
var getValueLimits = function getValueLimits(val) {
|
464
466
|
if (typeof props.maxcharacter === 'number') {
|
@@ -520,7 +522,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
520
522
|
}, function (val) {
|
521
523
|
if (props.withValidate) {
|
522
524
|
var _formItem$validate;
|
523
|
-
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0
|
525
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
|
524
526
|
}
|
525
527
|
innerInputValue.value = {
|
526
528
|
value: val
|
@@ -532,7 +534,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
532
534
|
// Hack: 修复autofocus属性失效问题 原生autofocus属性只在页面加载时生效
|
533
535
|
if (Object.prototype.hasOwnProperty.call(ctx.attrs, 'autofocus')) {
|
534
536
|
var _inputRef$value, _inputRef$value$focus;
|
535
|
-
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || (_inputRef$value$focus = _inputRef$value.focus) === null || _inputRef$value$focus === void 0
|
537
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || (_inputRef$value$focus = _inputRef$value.focus) === null || _inputRef$value$focus === void 0 ? void 0 : _inputRef$value$focus.call(_inputRef$value);
|
536
538
|
}
|
537
539
|
});
|
538
540
|
ctx.expose({
|
@@ -595,7 +597,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
595
597
|
ctx.emit(EVENTS.BLUR, e);
|
596
598
|
if (props.withValidate) {
|
597
599
|
var _formItem$validate2;
|
598
|
-
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0
|
600
|
+
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 ? void 0 : _formItem$validate2.call(formItem, 'blur');
|
599
601
|
}
|
600
602
|
}
|
601
603
|
// 事件句柄生成器
|
package/lib/input/input.css
CHANGED
@@ -1,3 +1,133 @@
|
|
1
|
+
:root {
|
2
|
+
--bk-prefix: bk;
|
3
|
+
--popover-max-height: 216px;
|
4
|
+
--primary-color: #3a84ff;
|
5
|
+
--success-color: #2dcb56;
|
6
|
+
--warning-color: #ff9c01;
|
7
|
+
--danger-color: #ea3636;
|
8
|
+
--default-color: #63656e;
|
9
|
+
--gray-color: #979ba5;
|
10
|
+
--light-gray: #c4c6cc;
|
11
|
+
--white-color: white;
|
12
|
+
--whitesmoke-color: #fafbfd;
|
13
|
+
--disable-color: #dcdee5;
|
14
|
+
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
16
|
+
--font-size-base: 12px;
|
17
|
+
--font-size-medium: 14px;
|
18
|
+
--font-size-large: 16px;
|
19
|
+
--line-height-base: 16px;
|
20
|
+
--line-height-medium: 16px;
|
21
|
+
--line-height-large: 18px;
|
22
|
+
--component-size-small: 26px;
|
23
|
+
--component-size-base: 32px;
|
24
|
+
--component-size-large: 40px;
|
25
|
+
--component-size-small-padding: 0 12px;
|
26
|
+
--component-size-base-padding: 0 14px;
|
27
|
+
--component-size-large-padding: 0 16px;
|
28
|
+
--border-width-base: 1px;
|
29
|
+
--border-style-base: solid;
|
30
|
+
--border-radius-base: 2px;
|
31
|
+
--border-style-color: var(--light-gray);
|
32
|
+
--input-disabled-bg: #fafbfd;
|
33
|
+
--input-disabled-border: var(--disable-color);
|
34
|
+
--input-height-base: var(--component-size-base);
|
35
|
+
--input-color: var(--default-color);
|
36
|
+
--input-bg: white;
|
37
|
+
--input-border-color: var(--light-gray);
|
38
|
+
--input-broder-radius: 3px;
|
39
|
+
--input-shadow-color: #a3c5fd;
|
40
|
+
--input-horizontal-padding: 8px;
|
41
|
+
--input-block-color: #f5f7fa;
|
42
|
+
--input-block-hover-color: #eaebf0;
|
43
|
+
--input-icon-size: var(--font-size-medium);
|
44
|
+
--input-maxlength-color: #979ba5;
|
45
|
+
--button-primary-hover-color: #5594fa;
|
46
|
+
--button-danger-hover-color: #ff5656;
|
47
|
+
--button-success-hover-color: #45e35f;
|
48
|
+
--button-warning-hover-color: #ffb848;
|
49
|
+
--button-default-hover-border-color: #979ba5;
|
50
|
+
--button-primary-active-color: #2c77f4;
|
51
|
+
--button-danger-active-color: #db2626;
|
52
|
+
--button-success-active-color: #1ab943;
|
53
|
+
--button-warning-active-color: #eb9000;
|
54
|
+
--button-selected-bg-color: #e1ecff;
|
55
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
56
|
+
--radio-font-color: #63656e;
|
57
|
+
--radio-active-color: #3a84ff;
|
58
|
+
--radio-hover-border-color: #979ba5;
|
59
|
+
--radio-disabled-border: #dcdee5;
|
60
|
+
--radio-disabled-font-color: #c4c6cc;
|
61
|
+
--radio-disabled-checked-bg: #a3c5fd;
|
62
|
+
--radio-button-checked-bg: #e1ecff;
|
63
|
+
--radio-button-disabled-checked-bg: #fafbfd;
|
64
|
+
--checkbox-disabled-checked-bg: #a3c5fd;
|
65
|
+
--fixed-navbar-background: #fff;
|
66
|
+
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
67
|
+
--switch-default-color: #fff;
|
68
|
+
--switch-grey-color: #c4c6cc;
|
69
|
+
--breadcrumb-black-color: #979ba5;
|
70
|
+
--breadcrumb-primary-hover-color: #0082ff;
|
71
|
+
--breadcrumb-fn-main-color: #63656e;
|
72
|
+
--link-default-hover-color: #979ba5;
|
73
|
+
--link-primary-hover-color: #699df4;
|
74
|
+
--link-success-hover-color: #45e35f;
|
75
|
+
--link-warning-hover-color: #ffb848;
|
76
|
+
--link-danger-hover-color: #ff5656;
|
77
|
+
--link-default-disabled-color: #dcdee5;
|
78
|
+
--link-primary-disabled-color: #a3c5fd;
|
79
|
+
--link-success-disabled-color: #94f5a4;
|
80
|
+
--link-warning-disabled-color: #ffd695;
|
81
|
+
--link-danger-disabled-color: #fd9c9c;
|
82
|
+
--message-color: var(--default-color);
|
83
|
+
--message-primary-bg-color: #f0f8ff;
|
84
|
+
--message-primary-border-color: #e1ecff;
|
85
|
+
--message-primary-shadow-color: #e1e8f4;
|
86
|
+
--message-warning-bg-color: #fff4e2;
|
87
|
+
--message-warning-border-color: #ffe8c3;
|
88
|
+
--message-warning-shadow-color: #ede6db;
|
89
|
+
--message-success-bg-color: #f2fff4;
|
90
|
+
--message-success-border-color: #dcffe2;
|
91
|
+
--message-success-shadow-color: #cef0d7;
|
92
|
+
--message-danger-bg-color: #ffeded;
|
93
|
+
--message-danger-border-color: #ffdddd;
|
94
|
+
--message-danger-shadow-color: #f6dada;
|
95
|
+
--slider-default-bg: #dcdee5;
|
96
|
+
--slider-disable-bar-bg: #979ba5;
|
97
|
+
--menu-bg-color: #182132;
|
98
|
+
--submenu-bg-color: #151d2c;
|
99
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
100
|
+
--menu-color: #96a2b9;
|
101
|
+
--menu-group-color: var(--default-color);
|
102
|
+
--menu-width: 260px;
|
103
|
+
--menu-collapse-width: 60px;
|
104
|
+
--menu-active-color: white;
|
105
|
+
--nav-header-bg-color: #182132;
|
106
|
+
--nav-bg-color: #182132;
|
107
|
+
--date-picker-disabled-bg: #fafbfd;
|
108
|
+
--date-picker-dropdown-mb: 4px;
|
109
|
+
--date-picker-dropdown-bg: #fff;
|
110
|
+
--table-bg-color: var(--white-color);
|
111
|
+
--table-border-color: #dcdee5;
|
112
|
+
--table-strip-color: #fafbfd;
|
113
|
+
--table-head-bg-color: #fafbfd;
|
114
|
+
--table-head-font-color: #313238;
|
115
|
+
--table-body-font-color: #63656e;
|
116
|
+
--table-row-hover-bg-color: #f5f7fa;
|
117
|
+
--table-row-active-bg-color: #f0f1f5;
|
118
|
+
--cascader-panel-border-color: #dcdee5;
|
119
|
+
--cascader-panel-hover: #f5f7fa;
|
120
|
+
--cascader-panel-active: #e1ecff;
|
121
|
+
--cascader-panel-disabled-bg: #fff;
|
122
|
+
--search-select-focus-border-color: var(--primary-color);
|
123
|
+
--search-select-focus-color: #3c96ff;
|
124
|
+
--search-select-font-color: var(--default-color);
|
125
|
+
--search-select-placeholder-color: var(--light-gray);
|
126
|
+
--search-select-message-color: var(--danger-color);
|
127
|
+
--search-select-menu-border-color: var(--disable-color);
|
128
|
+
--select-active-color: #e1ecff;
|
129
|
+
--select-hover-color: #f5f7fa;
|
130
|
+
}
|
1
131
|
@keyframes loading-scale-animate {
|
2
132
|
0% {
|
3
133
|
transform: scale(1);
|
@@ -75,19 +205,19 @@
|
|
75
205
|
display: inline-flex;
|
76
206
|
width: 100%;
|
77
207
|
overflow: hidden;
|
78
|
-
font-size:
|
208
|
+
font-size: var(--font-size-base);
|
79
209
|
line-height: var(--textarea-line-height);
|
80
|
-
color:
|
210
|
+
color: var(--input-color);
|
81
211
|
background-color: white;
|
82
|
-
border:
|
83
|
-
border-radius:
|
212
|
+
border: var(--border-width-base) var(--border-style-base) var(--input-border-color);
|
213
|
+
border-radius: var(--border-radius-base);
|
84
214
|
box-sizing: border-box;
|
85
215
|
transition: all 0.3s;
|
86
216
|
flex-direction: column;
|
87
217
|
}
|
88
218
|
.bk-textarea ::placeholder {
|
89
|
-
font-size:
|
90
|
-
color:
|
219
|
+
font-size: var(--font-size-base);
|
220
|
+
color: var(--light-gray);
|
91
221
|
}
|
92
222
|
.bk-textarea.resizable {
|
93
223
|
resize: vertical;
|
@@ -105,8 +235,8 @@
|
|
105
235
|
}
|
106
236
|
.bk-textarea.is-disabled,
|
107
237
|
.bk-textarea.is-readonly {
|
108
|
-
background-color:
|
109
|
-
border-color:
|
238
|
+
background-color: var(--input-disabled-bg);
|
239
|
+
border-color: var(--disable-color);
|
110
240
|
}
|
111
241
|
.bk-textarea.is-disabled .bk-input--prefix-area,
|
112
242
|
.bk-textarea.is-readonly .bk-input--prefix-area,
|
@@ -115,14 +245,14 @@
|
|
115
245
|
.bk-textarea.is-disabled .bk-input--suffix-icon,
|
116
246
|
.bk-textarea.is-readonly .bk-input--suffix-icon {
|
117
247
|
cursor: not-allowed;
|
118
|
-
background-color:
|
248
|
+
background-color: var(--input-disabled-bg);
|
119
249
|
}
|
120
250
|
.bk-textarea.is-disabled input,
|
121
251
|
.bk-textarea.is-readonly input,
|
122
252
|
.bk-textarea.is-disabled textarea,
|
123
253
|
.bk-textarea.is-readonly textarea {
|
124
254
|
cursor: not-allowed;
|
125
|
-
background-color:
|
255
|
+
background-color: var(--input-disabled-bg);
|
126
256
|
opacity: 1;
|
127
257
|
}
|
128
258
|
.bk-textarea.is-readonly input,
|
@@ -135,34 +265,34 @@
|
|
135
265
|
line-height: 1.5;
|
136
266
|
text-align: left;
|
137
267
|
border: 0;
|
138
|
-
border-radius:
|
268
|
+
border-radius: var(--border-radius-base);
|
139
269
|
outline: none;
|
140
270
|
resize: none;
|
141
271
|
}
|
142
272
|
.bk-textarea--max-length {
|
143
|
-
padding-right:
|
273
|
+
padding-right: var(--input-horizontal-padding);
|
144
274
|
margin: 0;
|
145
275
|
margin-left: auto;
|
146
|
-
font-size:
|
276
|
+
font-size: var(--font-size-base);
|
147
277
|
text-align: right;
|
148
278
|
transform: scale(0.8);
|
149
279
|
justify-content: flex-end;
|
150
280
|
}
|
151
281
|
.bk-textarea--max-length.is-over-limit {
|
152
|
-
color:
|
282
|
+
color: var(--danger-color);
|
153
283
|
}
|
154
284
|
.bk-textarea--max-length span {
|
155
|
-
color:
|
285
|
+
color: var(--input-maxlength-color);
|
156
286
|
}
|
157
287
|
.bk-textarea.is-focused:not(.is-readonly) {
|
158
|
-
border-color:
|
288
|
+
border-color: var(--primary-color);
|
159
289
|
outline: 0;
|
160
|
-
box-shadow: 0px 0px 3px 0px
|
290
|
+
box-shadow: 0px 0px 3px 0px var(--input-shadow-color);
|
161
291
|
}
|
162
292
|
.bk-textarea--suffix-icon {
|
163
|
-
color:
|
164
|
-
padding-right:
|
165
|
-
font-size:
|
293
|
+
color: var(--gray-color);
|
294
|
+
padding-right: var(--input-horizontal-padding);
|
295
|
+
font-size: var(--font-size-medium);
|
166
296
|
margin: 0;
|
167
297
|
margin-left: auto;
|
168
298
|
text-align: right;
|
@@ -182,20 +312,20 @@
|
|
182
312
|
display: inline-flex;
|
183
313
|
align-items: stretch;
|
184
314
|
width: 100%;
|
185
|
-
height:
|
186
|
-
font-size:
|
187
|
-
border:
|
188
|
-
border-radius:
|
315
|
+
height: var(--input-height-base);
|
316
|
+
font-size: var(--font-size-base);
|
317
|
+
border: var(--border-width-base) var(--border-style-base) var(--input-border-color);
|
318
|
+
border-radius: var(--border-radius-base);
|
189
319
|
transition: all 0.3s;
|
190
320
|
}
|
191
321
|
.bk-input ::placeholder {
|
192
|
-
font-size:
|
193
|
-
color:
|
322
|
+
font-size: var(--font-size-base);
|
323
|
+
color: var(--light-gray);
|
194
324
|
}
|
195
325
|
.bk-input.is-disabled,
|
196
326
|
.bk-input.is-readonly {
|
197
|
-
background-color:
|
198
|
-
border-color:
|
327
|
+
background-color: var(--input-disabled-bg);
|
328
|
+
border-color: var(--disable-color);
|
199
329
|
}
|
200
330
|
.bk-input.is-disabled .bk-input--prefix-area,
|
201
331
|
.bk-input.is-readonly .bk-input--prefix-area,
|
@@ -204,14 +334,14 @@
|
|
204
334
|
.bk-input.is-disabled .bk-input--suffix-icon,
|
205
335
|
.bk-input.is-readonly .bk-input--suffix-icon {
|
206
336
|
cursor: not-allowed;
|
207
|
-
background-color:
|
337
|
+
background-color: var(--input-disabled-bg);
|
208
338
|
}
|
209
339
|
.bk-input.is-disabled input,
|
210
340
|
.bk-input.is-readonly input,
|
211
341
|
.bk-input.is-disabled textarea,
|
212
342
|
.bk-input.is-readonly textarea {
|
213
343
|
cursor: not-allowed;
|
214
|
-
background-color:
|
344
|
+
background-color: var(--input-disabled-bg);
|
215
345
|
opacity: 1;
|
216
346
|
}
|
217
347
|
.bk-input.is-readonly input,
|
@@ -219,7 +349,7 @@
|
|
219
349
|
cursor: auto;
|
220
350
|
}
|
221
351
|
.bk-input:hover:not(.is-disabled) {
|
222
|
-
border-color:
|
352
|
+
border-color: var(--gray-color);
|
223
353
|
}
|
224
354
|
.bk-input:hover:not(.is-disabled) .show-clear-only-hover {
|
225
355
|
display: flex;
|
@@ -227,25 +357,25 @@
|
|
227
357
|
.bk-input.is-simplicity {
|
228
358
|
background-color: transparent;
|
229
359
|
border-color: transparent;
|
230
|
-
border-bottom-color:
|
360
|
+
border-bottom-color: var(--input-border-color);
|
231
361
|
}
|
232
362
|
.bk-input.is-simplicity:hover:not(.is-disabled) {
|
233
|
-
background-color:
|
363
|
+
background-color: var(--input-block-color);
|
234
364
|
border-color: transparent;
|
235
|
-
border-bottom-color:
|
365
|
+
border-bottom-color: var(--light-gray);
|
236
366
|
box-shadow: none;
|
237
367
|
}
|
238
368
|
.bk-input.is-simplicity:hover:not(.is-disabled) .bk-input--text,
|
239
369
|
.bk-input.is-simplicity:hover:not(.is-disabled) .bk-input--suffix-icon {
|
240
|
-
background-color:
|
370
|
+
background-color: var(--input-block-color);
|
241
371
|
}
|
242
372
|
.bk-input--suffix-icon {
|
243
373
|
display: flex;
|
244
374
|
height: 100%;
|
245
|
-
padding-right:
|
246
|
-
font-size:
|
247
|
-
color:
|
248
|
-
background-color:
|
375
|
+
padding-right: var(--input-horizontal-padding);
|
376
|
+
font-size: var(--input-icon-size);
|
377
|
+
color: var(--light-gray);
|
378
|
+
background-color: var(--input-bg);
|
249
379
|
align-items: center;
|
250
380
|
align-self: center;
|
251
381
|
flex-shrink: 0;
|
@@ -262,86 +392,86 @@
|
|
262
392
|
flex-shrink: 0;
|
263
393
|
}
|
264
394
|
.bk-input--clear-icon:hover {
|
265
|
-
color:
|
395
|
+
color: var(--gray-color);
|
266
396
|
}
|
267
397
|
.bk-input--large {
|
268
|
-
height:
|
269
|
-
font-size:
|
398
|
+
height: var(--component-size-large);
|
399
|
+
font-size: var(--font-size-medium);
|
270
400
|
}
|
271
401
|
.bk-input--large ::placeholder {
|
272
|
-
font-size:
|
273
|
-
color:
|
402
|
+
font-size: var(--font-size-medium);
|
403
|
+
color: var(--light-gray);
|
274
404
|
}
|
275
405
|
.bk-input--large .bk-input--max-length {
|
276
|
-
font-size:
|
406
|
+
font-size: var(--font-size-large);
|
277
407
|
}
|
278
408
|
.bk-input--large .bk-input--number-control span:first-child {
|
279
409
|
margin-bottom: 4px;
|
280
410
|
}
|
281
411
|
.bk-input--small {
|
282
|
-
height:
|
283
|
-
font-size:
|
412
|
+
height: var(--component-size-small);
|
413
|
+
font-size: var(--font-size-base);
|
284
414
|
}
|
285
415
|
.bk-input--small .bk-input--max-length {
|
286
|
-
font-size:
|
416
|
+
font-size: var(--font-size-base);
|
287
417
|
}
|
288
418
|
.bk-input--default {
|
289
|
-
font-size:
|
419
|
+
font-size: var(--font-size-base);
|
290
420
|
}
|
291
421
|
.bk-input--default .bk-input--max-length {
|
292
|
-
font-size:
|
422
|
+
font-size: var(--font-size-base);
|
293
423
|
}
|
294
424
|
.bk-input.is-focused:not(.is-readonly) {
|
295
|
-
border-color:
|
425
|
+
border-color: var(--primary-color);
|
296
426
|
outline: 0;
|
297
|
-
box-shadow: 0px 0px 3px 0px
|
427
|
+
box-shadow: 0px 0px 3px 0px var(--input-shadow-color);
|
298
428
|
}
|
299
429
|
.bk-input.is-focused:not(.is-readonly).is-simplicity {
|
300
430
|
border-color: transparent;
|
301
|
-
border-bottom-color:
|
431
|
+
border-bottom-color: var(--primary-color);
|
302
432
|
box-shadow: none;
|
303
433
|
}
|
304
434
|
.bk-input.is-focused:not(.is-readonly).is-simplicity .bk-input--text,
|
305
435
|
.bk-input.is-focused:not(.is-readonly).is-simplicity .bk-input--suffix-icon {
|
306
|
-
background-color:
|
436
|
+
background-color: var(--input-block-color);
|
307
437
|
}
|
308
438
|
.bk-input--prefix-area,
|
309
439
|
.bk-input--suffix-area {
|
310
440
|
display: flex;
|
311
|
-
padding: 0
|
312
|
-
color:
|
313
|
-
background-color:
|
314
|
-
border-right: 1px solid
|
441
|
+
padding: 0 var(--input-horizontal-padding);
|
442
|
+
color: var(--default-color);
|
443
|
+
background-color: var(--input-block-color);
|
444
|
+
border-right: 1px solid var(--input-border-color);
|
315
445
|
align-items: center;
|
316
446
|
}
|
317
447
|
.bk-input--suffix-area {
|
318
448
|
border: 0;
|
319
|
-
border-left: 1px solid
|
449
|
+
border-left: 1px solid var(--input-border-color);
|
320
450
|
}
|
321
451
|
.bk-input--max-length {
|
322
452
|
align-self: center;
|
323
|
-
padding-right:
|
453
|
+
padding-right: var(--input-horizontal-padding);
|
324
454
|
font-size: 12px;
|
325
455
|
transform: scale(0.8);
|
326
456
|
}
|
327
457
|
.bk-input--max-length.is-over-limit {
|
328
|
-
color:
|
458
|
+
color: var(--danger-color);
|
329
459
|
}
|
330
460
|
.bk-input--max-length span {
|
331
|
-
color:
|
461
|
+
color: var(--input-maxlength-color);
|
332
462
|
}
|
333
463
|
.bk-input--text {
|
334
464
|
width: 100%;
|
335
|
-
padding: 0
|
465
|
+
padding: 0 var(--input-horizontal-padding);
|
336
466
|
overflow: hidden;
|
337
467
|
line-height: 1;
|
338
|
-
color:
|
468
|
+
color: var(--input-color);
|
339
469
|
text-overflow: ellipsis;
|
340
470
|
white-space: nowrap;
|
341
|
-
background-color:
|
471
|
+
background-color: var(--input-bg);
|
342
472
|
background-image: none;
|
343
473
|
border: none;
|
344
|
-
border-radius:
|
474
|
+
border-radius: var(--border-radius-base);
|
345
475
|
outline: none;
|
346
476
|
box-sizing: border-box;
|
347
477
|
transition: all 0.3s;
|
@@ -382,39 +512,39 @@
|
|
382
512
|
display: flex;
|
383
513
|
overflow: hidden;
|
384
514
|
line-height: 1;
|
385
|
-
color:
|
515
|
+
color: var(--gray-color);
|
386
516
|
text-align: center;
|
387
517
|
cursor: pointer;
|
388
|
-
background-color:
|
518
|
+
background-color: var(--input-block-color);
|
389
519
|
flex: 1;
|
390
520
|
align-items: center;
|
391
521
|
}
|
392
522
|
.bk-input--number-control span.is-disabled {
|
393
|
-
color:
|
523
|
+
color: var(--light-gray);
|
394
524
|
cursor: not-allowed;
|
395
525
|
}
|
396
526
|
.bk-input--number-control svg {
|
397
|
-
font-size:
|
527
|
+
font-size: var(--input-icon-size);
|
398
528
|
}
|
399
529
|
.bk-input--number-control span:first-child {
|
400
530
|
transform: rotate(180deg);
|
401
531
|
}
|
402
532
|
.bk-input--number-control span:not(.is-disabled):hover {
|
403
|
-
background-color:
|
533
|
+
background-color: var(--input-block-hover-color);
|
404
534
|
}
|
405
535
|
/* 针对 Chrome、Safari 和新版 Edge 的样式 */
|
406
536
|
input:-webkit-autofill,
|
407
537
|
input:-webkit-autofill:hover,
|
408
538
|
input:-webkit-autofill:focus,
|
409
539
|
input:-webkit-autofill:active {
|
410
|
-
-webkit-box-shadow: 0 0 0 100px
|
411
|
-
box-shadow: 0 0 0 100px
|
540
|
+
-webkit-box-shadow: 0 0 0 100px var(--input-bg) inset !important;
|
541
|
+
box-shadow: 0 0 0 100px var(--input-bg) inset !important;
|
412
542
|
}
|
413
543
|
/* 针对 Firefox 的样式 */
|
414
544
|
input:-moz-autofill,
|
415
545
|
input:-moz-autofill:hover,
|
416
546
|
input:-moz-autofill:focus,
|
417
547
|
input:-moz-autofill:active {
|
418
|
-
-moz-box-shadow: 0 0 0 100px
|
419
|
-
box-shadow: 0 0 0 100px
|
548
|
+
-moz-box-shadow: 0 0 0 100px var(--input-bg) inset !important;
|
549
|
+
box-shadow: 0 0 0 100px var(--input-bg) inset !important;
|
420
550
|
}
|