bkui-vue 0.0.1-beta.14 → 0.0.1-beta.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -17
- package/README_EN.md +89 -0
- package/dist/bkui-vue.cjs.js +2266 -535
- package/dist/bkui-vue.esm.js +2308 -582
- package/dist/bkui-vue.umd.js +2266 -535
- package/dist/style.css +601 -189
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.variable.css +6 -0
- package/lib/alert/index.d.ts +96 -60
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +48 -28
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.variable.css +6 -0
- package/lib/backtop/index.d.ts +108 -52
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.d.ts +40 -19
- package/lib/badge/badge.variable.css +6 -0
- package/lib/badge/index.d.ts +144 -76
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +10 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +16 -1
- package/lib/breadcrumb/index.d.ts +117 -45
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.d.ts +27 -22
- package/lib/button/button.variable.css +6 -0
- package/lib/button/index.d.ts +111 -93
- package/lib/button/index.js +1 -1
- package/lib/card/card.d.ts +30 -15
- package/lib/card/card.variable.css +6 -0
- package/lib/card/index.d.ts +120 -60
- package/lib/card/index.js +1 -1
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.d.ts +31 -22
- package/lib/checkbox/checkbox.variable.css +6 -0
- package/lib/checkbox/index.d.ts +137 -97
- package/lib/checkbox/index.js +1 -1
- package/lib/collapse/collapse.d.ts +50 -18
- package/lib/collapse/index.d.ts +108 -72
- package/lib/collapse/index.js +1 -1
- package/lib/components.d.ts +4 -0
- package/lib/date-picker/date-picker.d.ts +110 -63
- package/lib/date-picker/date-picker.variable.css +6 -0
- package/lib/date-picker/index.d.ts +437 -249
- package/lib/date-picker/index.js +1 -1
- package/lib/dialog/dialog.d.ts +46 -25
- package/lib/dialog/index.d.ts +179 -95
- package/lib/directives/index.js +1 -1
- package/lib/divider/divider.d.ts +21 -13
- package/lib/divider/divider.variable.css +6 -0
- package/lib/divider/index.d.ts +84 -52
- package/lib/dropdown/dropdown-item.d.ts +6 -5
- package/lib/dropdown/dropdown-menu.d.ts +6 -5
- package/lib/dropdown/dropdown.d.ts +25 -13
- package/lib/dropdown/dropdown.variable.css +6 -0
- package/lib/dropdown/index.d.ts +94 -62
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +6 -0
- package/lib/exception/index.d.ts +44 -36
- package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +6 -0
- package/lib/fixed-navbar/index.d.ts +60 -36
- package/lib/form/form-item.d.ts +46 -27
- package/lib/form/form.d.ts +21 -13
- package/lib/form/index.js +1 -1
- package/lib/icon/angle-double-left.js +15 -0
- package/lib/icon/angle-double-right.js +15 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +15 -0
- package/lib/icon/angle-down-line.js +15 -0
- package/lib/icon/angle-down.js +15 -0
- package/lib/icon/angle-left.js +15 -0
- package/lib/icon/angle-right.js +15 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +15 -0
- package/lib/icon/angle-up.js +15 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +15 -0
- package/lib/icon/circle.js +15 -0
- package/lib/icon/close.js +15 -0
- package/lib/icon/code.js +15 -0
- package/lib/icon/cog-shape.js +15 -0
- package/lib/icon/collapse-left.js +15 -0
- package/lib/icon/copy.js +15 -0
- package/lib/icon/done.js +15 -0
- package/lib/icon/down-shape.js +15 -0
- package/lib/icon/down-small.js +15 -0
- package/lib/icon/error.js +15 -0
- package/lib/icon/eye.js +15 -0
- package/lib/icon/folder-open.js +15 -0
- package/lib/icon/folder-shape-open.js +15 -0
- package/lib/icon/folder-shape.js +15 -0
- package/lib/icon/folder.js +15 -0
- package/lib/icon/help-document-fill.js +15 -0
- package/lib/icon/help-fill.js +15 -0
- package/lib/icon/help.js +15 -0
- package/lib/icon/icon.js +15 -0
- package/lib/icon/index.d.ts +7 -3
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +15 -0
- package/lib/icon/info.js +15 -0
- package/lib/icon/play-shape.js +15 -0
- package/lib/icon/plus.js +15 -0
- package/lib/icon/right-shape.js +15 -0
- package/lib/icon/search.js +15 -0
- package/lib/icon/share.js +15 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +15 -0
- package/lib/icon/success.js +15 -0
- package/lib/icon/switcher-loading.js +15 -0
- package/lib/icon/text-file.js +15 -0
- package/lib/icon/tree-application-shape.js +15 -0
- package/lib/icon/unvisible.js +15 -0
- package/lib/icon/warn.js +15 -0
- package/lib/input/index.d.ts +251 -163
- package/lib/input/index.js +2 -2
- package/lib/input/input.css +1 -0
- package/lib/input/input.d.ts +62 -40
- package/lib/input/input.less +4 -3
- package/lib/input/input.variable.css +7 -0
- package/lib/link/index.d.ts +100 -52
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +6 -0
- package/lib/loading/index.d.ts +64 -64
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.d.ts +16 -16
- package/lib/loading/loading.variable.css +6 -0
- package/lib/menu/index.d.ts +90 -71
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu-group.d.ts +6 -5
- package/lib/menu/menu-item.d.ts +6 -5
- package/lib/menu/menu.d.ts +18 -14
- package/lib/menu/menu.variable.css +6 -0
- package/lib/menu/submenu.css +3 -0
- package/lib/menu/submenu.d.ts +6 -5
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +9 -0
- package/lib/message/index.js +1 -1
- package/lib/message/message.variable.css +6 -0
- package/lib/message/messageConstructor.d.ts +28 -16
- package/lib/modal/index.d.ts +92 -56
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +24 -15
- package/lib/modal/props.mixin.d.ts +1 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation-title.d.ts +10 -7
- package/lib/navigation/navigation.d.ts +40 -23
- package/lib/navigation/navigation.variable.css +6 -0
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.variable.css +6 -0
- package/lib/notify/notifyConstructor.d.ts +37 -21
- package/lib/popover/index.d.ts +219 -134
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +22 -13
- package/lib/popover/popover.d.ts +73 -44
- package/lib/popover/popover.less +55 -45
- package/lib/popover/popover.variable.css +28 -13
- package/lib/popover/props.d.ts +77 -0
- package/lib/process/index.d.ts +120 -60
- package/lib/process/index.js +1 -1
- package/lib/process/process.css +2 -3
- package/lib/process/process.d.ts +30 -15
- package/lib/process/process.less +2 -3
- package/lib/process/process.variable.css +8 -3
- package/lib/progress/index.d.ts +290 -120
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +0 -3
- package/lib/progress/progress.d.ts +84 -31
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +6 -3
- package/lib/radio/index.d.ts +127 -78
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +24 -16
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.d.ts +23 -13
- package/lib/radio/radio.variable.css +6 -0
- package/lib/rate/index.d.ts +52 -40
- package/lib/rate/rate.d.ts +13 -10
- package/lib/rate/star.d.ts +32 -15
- package/lib/select/common.d.ts +10 -1
- package/lib/select/index.d.ts +515 -503
- package/lib/select/index.js +2 -2
- package/lib/select/option.d.ts +10 -17
- package/lib/select/optionGroup.d.ts +67 -52
- package/lib/select/select.css +71 -14
- package/lib/select/select.d.ts +136 -137
- package/lib/select/select.less +73 -14
- package/lib/select/select.variable.css +77 -14
- package/lib/shared/bk-helper-core.d.ts +6 -0
- package/lib/shared/bk-popover.d.ts +45 -4
- package/lib/shared/index.d.ts +10 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/utils.d.ts +6 -0
- package/lib/sideslider/index.d.ts +111 -63
- package/lib/sideslider/sideslider.d.ts +29 -17
- package/lib/sideslider/sideslider.variable.css +6 -0
- package/lib/slider/slider-button.d.ts +10 -7
- package/lib/slider/slider.d.ts +70 -40
- package/lib/slider/slider.variable.css +6 -0
- package/lib/steps/index.d.ts +156 -104
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.css +3 -0
- package/lib/steps/steps.d.ts +39 -26
- package/lib/steps/steps.less +4 -0
- package/lib/steps/steps.variable.css +9 -0
- package/lib/styles/index.d.ts +2 -0
- package/lib/styles/index.js +1 -1
- package/lib/styles/themes/themes.less +10 -0
- package/lib/switcher/index.d.ts +192 -128
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +149 -135
- package/lib/switcher/switcher.d.ts +48 -32
- package/lib/switcher/switcher.less +210 -154
- package/lib/switcher/switcher.variable.css +155 -135
- package/lib/tab/index.d.ts +344 -208
- package/lib/tab/index.js +1 -1
- package/lib/tab/tab-nav.d.ts +74 -38
- package/lib/tab/tab-panel.d.ts +22 -20
- package/lib/tab/tab.d.ts +64 -32
- package/lib/tab/tab.variable.css +6 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +169 -70
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +56 -0
- package/lib/table/render.d.ts +19 -3
- package/lib/table/table.css +52 -13
- package/lib/table/table.d.ts +71 -12
- package/lib/table/table.less +62 -18
- package/lib/table/table.variable.css +60 -15
- package/lib/table/utils.d.ts +34 -1
- package/lib/tag/index.d.ts +10 -286
- package/lib/tag/tag.d.ts +2 -48
- package/lib/tag/tag.variable.css +6 -0
- package/lib/timeline/index.d.ts +129 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.less +239 -0
- package/lib/timeline/timeline.variable.css +327 -0
- package/lib/tree/index.d.ts +148 -69
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +70 -0
- package/lib/tree/tree.css +16 -7
- package/lib/tree/tree.d.ts +51 -23
- package/lib/tree/tree.less +24 -24
- package/lib/tree/tree.variable.css +16 -7
- package/lib/tree/util.d.ts +3 -44
- package/lib/virtual-render/index.d.ts +556 -0
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/props.d.ts +157 -0
- package/lib/virtual-render/v-virtual-render.d.ts +7 -0
- package/lib/virtual-render/virtual-render.css +40 -0
- package/lib/virtual-render/virtual-render.d.ts +244 -0
- package/lib/virtual-render/virtual-render.less +51 -0
- package/lib/virtual-render/virtual-render.variable.css +40 -0
- package/package.json +9 -7
@@ -0,0 +1,15 @@
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue)}(this,(function(e,t){"use strict";
|
2
|
+
/*! *****************************************************************************
|
3
|
+
Copyright (c) Microsoft Corporation.
|
4
|
+
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
6
|
+
purpose with or without fee is hereby granted.
|
7
|
+
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
15
|
+
***************************************************************************** */function n(e,a,i){return t.h(e.name,Object.assign(Object.assign({key:a},e.attributes),{style:"".concat(e.attributes.style," ").concat(i)}),(e.elements||[]).map((function(t,i){return n(t,"".concat(a,"-").concat(e.name,"-").concat(i))})))}var a=function(e,a){var i=Object.assign(Object.assign({},a.attrs),e),r=i.data,o=i.name,c=i.width,l=i.height,s=i.fill,p=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n}(i,["data","name","width","height","fill"]),u="width: ".concat(c,"; height: ").concat(l,"; fill: ").concat(s);return t.createVNode("span",p,[n(r,o,u)])};a.inheritAttrs=!1,a.displayName="bkIcon";var i=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M432.64 576h156.79999999999998l-79.36-260.48-77.44 260.48z"}},{"type":"element","name":"path","attributes":{"d":"M512 0c-282.75199999999995 0-512 229.248-512 512s229.248 512 512 512c282.75199999999995 0 512-229.248 512-512s-229.248-512-512-512zM681.5999999999999 768h-9.6c-0.042666666666666665 0-0.128 0-0.21333333333333332 0-14.250666666666667 0-26.325333333333333-9.301333333333332-30.464-22.186666666666667l-32.04266666666666-105.81333333333333h-192l-33.28 105.6c-4.1386666666666665 13.994666666666667-16.896 24.02133333333333-32 24.02133333333333-18.389333333333333 0-33.32266666666666-14.933333333333332-33.32266666666666-33.32266666666666 0-3.328 0.46933333333333327-6.485333333333333 1.3653333333333333-9.514666666666667l133.07733333333334-429.82399999999996c9.813333333333333-23.552 32.64-39.808 59.263999999999996-39.808 24.917333333333332 0 46.464 14.208 57.04533333333333 34.986666666666665l134.57066666666665 434.304c1.152 3.157333333333333 1.792 6.784 1.792 10.581333333333333 0 14.890666666666664-10.197333333333333 27.434666666666665-23.97866666666667 30.976z"}}]}'),r=function(e,n){var r=Object.assign(Object.assign({},e),n.attrs);return t.createVNode(a,t.mergeProps(r,{data:i,name:"treeApplicationShape"}),null)};r.displayName="treeApplicationShape",r.inheritAttrs=!1,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
|
@@ -0,0 +1,15 @@
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue)}(this,(function(e,t){"use strict";
|
2
|
+
/*! *****************************************************************************
|
3
|
+
Copyright (c) Microsoft Corporation.
|
4
|
+
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
6
|
+
purpose with or without fee is hereby granted.
|
7
|
+
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
15
|
+
***************************************************************************** */function n(e,a,i){return t.h(e.name,Object.assign(Object.assign({key:a},e.attributes),{style:"".concat(e.attributes.style," ").concat(i)}),(e.elements||[]).map((function(t,i){return n(t,"".concat(a,"-").concat(e.name,"-").concat(i))})))}var a=function(e,a){var i=Object.assign(Object.assign({},a.attrs),e),r=i.data,l=i.name,o=i.width,s=i.height,c=i.fill,u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n}(i,["data","name","width","height","fill"]),p="width: ".concat(o,"; height: ").concat(s,"; fill: ").concat(c);return t.createVNode("span",u,[n(r,l,p)])};a.inheritAttrs=!1,a.displayName="bkIcon";var i=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M500.16 304a355.04 355.04 0 0 1 128 24.8l48-48.96a426.08 426.08 0 0 0-176-39.84v64Z"}},{"type":"element","name":"path","attributes":{"d":"M763.2 328.8l-46.08 46.08a822.24 822.24 0 0 1 160 138.88 807.52 807.52 0 0 1-86.88 85.12C723.84 654.24 620.48 720 502.56 720a331.52 331.52 0 0 1-111.04-19.52l-49.44 49.28a402.4 402.4 0 0 0 160 34.24C768 784 960 512 960 512A962.56 962.56 0 0 0 763.2 328.8Z"}},{"type":"element","name":"path","attributes":{"d":"M254.88 701.12l46.08-46.08a706.56 706.56 0 0 1-156.64-144C197.44 442.88 328.16 304 500.16 304V240h0C234.72 240 64 512 64 512A838.72 838.72 0 0 0 254.88 701.12Z"}},{"type":"element","name":"path","attributes":{"d":"M512 640a128 128 0 0 0 110.24-192.96L888 181.28A32 32 0 1 0 842.72 136L576.96 401.76a128 128 0 0 0-176 176L136 842.72a32 32 0 1 0 45.28 45.28L447.04 622.24A128 128 0 0 0 512 640Zm64-128a64 64 0 0 1-64 64 60.96 60.96 0 0 1-16-2.4L573.6 496A60.96 60.96 0 0 1 576 512Zm-64-64a60.96 60.96 0 0 1 16 2.4L450.4 528A60.96 60.96 0 0 1 448 512 64 64 0 0 1 512 448Z"}}]}'),r=function(e,n){var r=Object.assign(Object.assign({},e),n.attrs);return t.createVNode(a,t.mergeProps(r,{data:i,name:"unvisible"}),null)};r.displayName="unvisible",r.inheritAttrs=!1,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/icon/warn.js
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue)}(this,(function(e,t){"use strict";
|
2
|
+
/*! *****************************************************************************
|
3
|
+
Copyright (c) Microsoft Corporation.
|
4
|
+
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
6
|
+
purpose with or without fee is hereby granted.
|
7
|
+
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
15
|
+
***************************************************************************** */function n(e,a,r){return t.h(e.name,Object.assign(Object.assign({key:a},e.attributes),{style:"".concat(e.attributes.style," ").concat(r)}),(e.elements||[]).map((function(t,r){return n(t,"".concat(a,"-").concat(e.name,"-").concat(r))})))}var a=function(e,a){var r=Object.assign(Object.assign({},a.attrs),e),i=r.data,o=r.name,s=r.width,c=r.height,l=r.fill,u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(r,["data","name","width","height","fill"]),f="width: ".concat(s,"; height: ").concat(c,"; fill: ").concat(l);return t.createVNode("span",u,[n(i,o,f)])};a.inheritAttrs=!1,a.displayName="bkIcon";var r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM544 704h-64v-64h64V704zM544 576h-64V320h64V576z"}}]}'),i=function(e,n){var i=Object.assign(Object.assign({},e),n.attrs);return t.createVNode(a,t.mergeProps(i,{data:r,name:"warn"}),null)};i.displayName="warn",i.inheritAttrs=!1,e.default=i,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/input/index.d.ts
CHANGED
@@ -19,51 +19,73 @@ declare const BkInput: {
|
|
19
19
|
showWordLimit: boolean;
|
20
20
|
showControl: boolean;
|
21
21
|
precision: number;
|
22
|
-
}> & Omit<Readonly<{
|
23
|
-
type
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
22
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
23
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
24
|
+
default: string;
|
25
|
+
} & {
|
26
|
+
default: string;
|
27
|
+
};
|
28
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
29
|
+
default: boolean;
|
30
|
+
};
|
31
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
32
|
+
default: boolean;
|
33
|
+
};
|
34
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
35
|
+
default: boolean;
|
36
|
+
};
|
37
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
38
|
+
default: string;
|
39
|
+
};
|
40
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
41
|
+
default: string;
|
42
|
+
};
|
43
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
44
|
+
default: string;
|
45
|
+
};
|
46
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
47
|
+
default: string;
|
48
|
+
};
|
49
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
50
|
+
default: string;
|
51
|
+
};
|
52
|
+
step: import("vue-types").VueTypeDef<number> & {
|
53
|
+
default: number;
|
54
|
+
};
|
55
|
+
max: import("vue-types").VueTypeDef<number> & {
|
56
|
+
default: number;
|
57
|
+
};
|
58
|
+
min: import("vue-types").VueTypeDef<number> & {
|
59
|
+
default: number;
|
60
|
+
};
|
61
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
62
|
+
default: number;
|
63
|
+
};
|
64
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
65
|
+
default: boolean;
|
66
|
+
};
|
67
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
68
|
+
default: boolean;
|
69
|
+
} & {
|
70
|
+
default: boolean;
|
71
|
+
};
|
72
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
73
|
+
default: number;
|
74
|
+
} & {
|
75
|
+
default: number;
|
76
|
+
} & {
|
77
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
78
|
+
};
|
79
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
80
|
+
size: import("vue-types").VueTypeDef<string>;
|
81
|
+
}>> & {
|
62
82
|
onFocus?: (...args: any[]) => any;
|
63
83
|
onBlur?: (...args: any[]) => any;
|
64
84
|
onChange?: (...args: any[]) => any;
|
65
85
|
onInput?: (...args: any[]) => any;
|
86
|
+
onKeydown?: (...args: any[]) => any;
|
66
87
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
88
|
+
onClear?: (...args: any[]) => any;
|
67
89
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "prefix" | "placeholder" | "step" | "disabled" | "type" | "readonly" | "clearable" | "max" | "min" | "maxlength" | "prefixIcon" | "suffixIcon" | "suffix" | "showWordLimit" | "showControl" | "precision">;
|
68
90
|
$attrs: {
|
69
91
|
[x: string]: unknown;
|
@@ -76,54 +98,76 @@ declare const BkInput: {
|
|
76
98
|
}>;
|
77
99
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
78
100
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
79
|
-
$emit: (event: "input" | "focus" | "blur" | "change" | "update:modelValue", ...args: any[]) => void;
|
101
|
+
$emit: (event: "input" | "focus" | "blur" | "change" | "keydown" | "clear" | "update:modelValue", ...args: any[]) => void;
|
80
102
|
$el: any;
|
81
|
-
$options: import("vue").ComponentOptionsBase<Readonly<{
|
82
|
-
type
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
103
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
104
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
105
|
+
default: string;
|
106
|
+
} & {
|
107
|
+
default: string;
|
108
|
+
};
|
109
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
110
|
+
default: boolean;
|
111
|
+
};
|
112
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
113
|
+
default: boolean;
|
114
|
+
};
|
115
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
116
|
+
default: boolean;
|
117
|
+
};
|
118
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
119
|
+
default: string;
|
120
|
+
};
|
121
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
122
|
+
default: string;
|
123
|
+
};
|
124
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
125
|
+
default: string;
|
126
|
+
};
|
127
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
128
|
+
default: string;
|
129
|
+
};
|
130
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
131
|
+
default: string;
|
132
|
+
};
|
133
|
+
step: import("vue-types").VueTypeDef<number> & {
|
134
|
+
default: number;
|
135
|
+
};
|
136
|
+
max: import("vue-types").VueTypeDef<number> & {
|
137
|
+
default: number;
|
138
|
+
};
|
139
|
+
min: import("vue-types").VueTypeDef<number> & {
|
140
|
+
default: number;
|
141
|
+
};
|
142
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
143
|
+
default: number;
|
144
|
+
};
|
145
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
146
|
+
default: boolean;
|
147
|
+
};
|
148
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
149
|
+
default: boolean;
|
150
|
+
} & {
|
151
|
+
default: boolean;
|
152
|
+
};
|
153
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
154
|
+
default: number;
|
155
|
+
} & {
|
156
|
+
default: number;
|
157
|
+
} & {
|
158
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
159
|
+
};
|
160
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
161
|
+
size: import("vue-types").VueTypeDef<string>;
|
162
|
+
}>> & {
|
121
163
|
onFocus?: (...args: any[]) => any;
|
122
164
|
onBlur?: (...args: any[]) => any;
|
123
165
|
onChange?: (...args: any[]) => any;
|
124
166
|
onInput?: (...args: any[]) => any;
|
167
|
+
onKeydown?: (...args: any[]) => any;
|
125
168
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
126
|
-
|
169
|
+
onClear?: (...args: any[]) => any;
|
170
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "change" | "keydown" | "clear" | "update:modelValue")[], string, {
|
127
171
|
prefix: string;
|
128
172
|
placeholder: string;
|
129
173
|
step: number;
|
@@ -160,101 +204,145 @@ declare const BkInput: {
|
|
160
204
|
$forceUpdate: () => void;
|
161
205
|
$nextTick: typeof import("vue").nextTick;
|
162
206
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
163
|
-
} & Readonly<{
|
164
|
-
type
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
207
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
208
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
209
|
+
default: string;
|
210
|
+
} & {
|
211
|
+
default: string;
|
212
|
+
};
|
213
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
214
|
+
default: boolean;
|
215
|
+
};
|
216
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
217
|
+
default: boolean;
|
218
|
+
};
|
219
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
220
|
+
default: boolean;
|
221
|
+
};
|
222
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
223
|
+
default: string;
|
224
|
+
};
|
225
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
226
|
+
default: string;
|
227
|
+
};
|
228
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
229
|
+
default: string;
|
230
|
+
};
|
231
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
232
|
+
default: string;
|
233
|
+
};
|
234
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
235
|
+
default: string;
|
236
|
+
};
|
237
|
+
step: import("vue-types").VueTypeDef<number> & {
|
238
|
+
default: number;
|
239
|
+
};
|
240
|
+
max: import("vue-types").VueTypeDef<number> & {
|
241
|
+
default: number;
|
242
|
+
};
|
243
|
+
min: import("vue-types").VueTypeDef<number> & {
|
244
|
+
default: number;
|
245
|
+
};
|
246
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
247
|
+
default: number;
|
248
|
+
};
|
249
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
250
|
+
default: boolean;
|
251
|
+
};
|
252
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
253
|
+
default: boolean;
|
254
|
+
} & {
|
255
|
+
default: boolean;
|
256
|
+
};
|
257
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
258
|
+
default: number;
|
259
|
+
} & {
|
260
|
+
default: number;
|
261
|
+
} & {
|
262
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
263
|
+
};
|
264
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
265
|
+
size: import("vue-types").VueTypeDef<string>;
|
266
|
+
}>> & {
|
203
267
|
onFocus?: (...args: any[]) => any;
|
204
268
|
onBlur?: (...args: any[]) => any;
|
205
269
|
onChange?: (...args: any[]) => any;
|
206
270
|
onInput?: (...args: any[]) => any;
|
271
|
+
onKeydown?: (...args: any[]) => any;
|
207
272
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
273
|
+
onClear?: (...args: any[]) => any;
|
208
274
|
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
209
275
|
__isFragment?: never;
|
210
276
|
__isTeleport?: never;
|
211
277
|
__isSuspense?: never;
|
212
|
-
} & import("vue").ComponentOptionsBase<Readonly<{
|
213
|
-
type
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
278
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
279
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
280
|
+
default: string;
|
281
|
+
} & {
|
282
|
+
default: string;
|
283
|
+
};
|
284
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
285
|
+
default: boolean;
|
286
|
+
};
|
287
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
288
|
+
default: boolean;
|
289
|
+
};
|
290
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
291
|
+
default: boolean;
|
292
|
+
};
|
293
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
294
|
+
default: string;
|
295
|
+
};
|
296
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
297
|
+
default: string;
|
298
|
+
};
|
299
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
300
|
+
default: string;
|
301
|
+
};
|
302
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
303
|
+
default: string;
|
304
|
+
};
|
305
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
306
|
+
default: string;
|
307
|
+
};
|
308
|
+
step: import("vue-types").VueTypeDef<number> & {
|
309
|
+
default: number;
|
310
|
+
};
|
311
|
+
max: import("vue-types").VueTypeDef<number> & {
|
312
|
+
default: number;
|
313
|
+
};
|
314
|
+
min: import("vue-types").VueTypeDef<number> & {
|
315
|
+
default: number;
|
316
|
+
};
|
317
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
318
|
+
default: number;
|
319
|
+
};
|
320
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
321
|
+
default: boolean;
|
322
|
+
};
|
323
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
324
|
+
default: boolean;
|
325
|
+
} & {
|
326
|
+
default: boolean;
|
327
|
+
};
|
328
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
329
|
+
default: number;
|
330
|
+
} & {
|
331
|
+
default: number;
|
332
|
+
} & {
|
333
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
334
|
+
};
|
335
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
336
|
+
size: import("vue-types").VueTypeDef<string>;
|
337
|
+
}>> & {
|
252
338
|
onFocus?: (...args: any[]) => any;
|
253
339
|
onBlur?: (...args: any[]) => any;
|
254
340
|
onChange?: (...args: any[]) => any;
|
255
341
|
onInput?: (...args: any[]) => any;
|
342
|
+
onKeydown?: (...args: any[]) => any;
|
256
343
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
257
|
-
|
344
|
+
onClear?: (...args: any[]) => any;
|
345
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "change" | "keydown" | "clear" | "update:modelValue")[], "input" | "focus" | "blur" | "change" | "keydown" | "clear" | "update:modelValue", {
|
258
346
|
prefix: string;
|
259
347
|
placeholder: string;
|
260
348
|
step: number;
|
package/lib/input/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e["@bkui-vue/icon/icons"])}(this,(function(e,t,o,n){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l={exports:{}};!function(e){e.exports=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var a=r(l.exports);
|
2
2
|
/*! *****************************************************************************
|
3
3
|
Copyright (c) Microsoft Corporation.
|
4
4
|
|
@@ -12,4 +12,4 @@
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
15
|
-
***************************************************************************** */var i={type:o.PropTypes.string.def("text"),clearable:o.PropTypes.bool,disabled:o.PropTypes.bool,readonly:o.PropTypes.bool,placeholder:o.PropTypes.string,prefixIcon:o.PropTypes.string,suffixIcon:o.PropTypes.string,suffix:o.PropTypes.string,prefix:o.PropTypes.string,step:o.PropTypes.integer,max:o.PropTypes.integer,min:o.PropTypes.integer,maxlength:o.PropTypes.integer,showWordLimit:o.PropTypes.bool,showControl:o.PropTypes.bool.def(!0),precision:o.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]),size:o.PropTypes.size()},u=t.defineComponent({name:"Input",inheritAttrs:!1,emits:["update:modelValue","focus","blur","change","input"],
|
15
|
+
***************************************************************************** */var i={type:o.PropTypes.string.def("text"),clearable:o.PropTypes.bool,disabled:o.PropTypes.bool,readonly:o.PropTypes.bool,placeholder:o.PropTypes.string,prefixIcon:o.PropTypes.string,suffixIcon:o.PropTypes.string,suffix:o.PropTypes.string,prefix:o.PropTypes.string,step:o.PropTypes.integer,max:o.PropTypes.integer,min:o.PropTypes.integer,maxlength:o.PropTypes.integer,showWordLimit:o.PropTypes.bool,showControl:o.PropTypes.bool.def(!0),precision:o.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]),size:o.PropTypes.size()},u=t.defineComponent({name:"Input",inheritAttrs:!1,props:i,emits:["update:modelValue","focus","blur","change","clear","input","keydown"],setup:function(e,r){var l=t.ref(!1),i="bk-input",u=r.attrs,s=u.class,p=u.style,c=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o}(u,["class","style"]),d=t.computed((function(){var t;return o.classes((a(t={},"".concat(i,"--").concat(e.size),!!e.size),a(t,"is-focused",l.value),a(t,"is-readonly",e.readonly),a(t,"is-disabled",e.disabled),a(t,"".concat(s),!!s),t),i)})),f={search:function(){return t.createVNode(n.Search,null,null)},password:function(){return t.createVNode(n.Eye,{onClick:C},null)}},m=k("suffix-icon"),y=t.computed((function(){var o=f[e.type];return b.value?t.createVNode(n.Unvisible,{onClick:C,class:m},null):o?t.createVNode(o,{class:m},null):null})),v=t.computed((function(){return"number"===e.type})),x=t.computed((function(){return Math.floor(e.maxlength)})),b=t.ref(!1);function g(){r.emit("update:modelValue",""),r.emit("change",""),r.emit("clear")}function h(e){l.value=!0,r.emit("focus",e)}function V(e){l.value=!1,r.emit("blur",e)}function P(e){r.emit("update:modelValue",v.value?+e.target.value:e.target.value),r.emit("input",e.target.value)}function T(e){r.emit("keydown",e.target.value,e)}function N(e){r.emit("change",e.target.value,e)}function w(t){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Number.isInteger(e.precision)?e.precision:0,r=parseFloat(e.modelValue.toString()),l=Number.isInteger(t)?t:1,a=r+(o?l:-1*l);return Number.isInteger(e.max)&&(a=Math.min(a,e.max)),Number.isInteger(e.min)&&(a=Math.max(a,e.min)),+a.toFixed(n)}function O(){var t=w(parseInt(String(e.step),10));r.emit("update:modelValue",t)}function I(){var t=w(parseInt(String(e.step),10),!1);r.emit("update:modelValue",t)}function k(e){return"".concat(i,"--").concat(e)}function C(){b.value=!b.value}return function(){var o,l,a,u,s,f;return t.createVNode("div",{class:d.value,style:p},[null!==(a=null===(l=null===(o=r.slots)||void 0===o?void 0:o.prefix)||void 0===l?void 0:l.call(o))&&void 0!==a?a:e.prefix&&t.createVNode("div",{class:k("prefix-area")},[t.createVNode("span",{class:k("prefix-area--text")},[e.prefix])]),t.createVNode("input",t.mergeProps(c,{class:"".concat(i,"--text"),value:e.modelValue,type:b.value&&"password"===e.type?"text":e.type,maxlength:e.maxlength,step:e.step,max:e.max,min:e.min,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled,onInput:P,onFocus:h,onBlur:V,onChange:N,onKeydown:T}),null),e.clearable&&!!e.modelValue&&t.createVNode(n.Close,{onClick:g,class:m},null),y.value,"number"==typeof e.maxlength&&e.showWordLimit&&t.createVNode("p",{class:k("max-length")},[e.modelValue.toString().length,t.createTextVNode("/"),t.createVNode("span",null,[x.value])]),v.value&&e.showControl&&t.createVNode("div",{class:k("number-control")},[t.createVNode(n.DownSmall,{onClick:O},null),t.createVNode(n.DownSmall,{onClick:I},null)]),null!==(f=null===(s=null===(u=r.slots)||void 0===u?void 0:u.suffix)||void 0===s?void 0:s.call(u))&&void 0!==f?f:e.suffix&&t.createVNode("div",{class:k("suffix-area")},[t.createVNode("span",{class:k("suffix-area--text")},[e.suffix])])])}}}),s=o.withInstall(u);e.default=s,Object.defineProperty(e,"__esModule",{value:!0})}));
|