bkui-vue 0.0.1-beta.119 → 0.0.1-beta.121
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 +8 -8
- package/dist/index.esm.js +14 -0
- package/dist/index.umd.js +8 -8
- package/dist/style.css +1 -1
- package/lib/affix/affix.variable.css +4 -1
- package/lib/affix/index.js +1 -1
- package/lib/alert/alert.variable.css +4 -1
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.variable.css +4 -1
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.variable.css +4 -1
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +4 -1
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button.css +9 -0
- package/lib/button/button.d.ts +10 -0
- package/lib/button/button.less +12 -1
- package/lib/button/button.variable.css +13 -1
- package/lib/button/index.d.ts +16 -1
- package/lib/button/index.js +1 -1
- package/lib/card/card.variable.css +4 -1
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader.variable.css +4 -1
- package/lib/cascader/index.js +1 -1
- package/lib/checkbox/checkbox.variable.css +4 -1
- package/lib/checkbox/index.js +1 -1
- package/lib/code-diff/code-diff.variable.css +4 -1
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/collapse.variable.css +4 -1
- package/lib/collapse/index.js +1 -1
- package/lib/components.js +1 -1
- package/lib/container/container.variable.css +4 -1
- package/lib/container/index.js +1 -1
- package/lib/date-picker/date-picker.variable.css +4 -1
- package/lib/date-picker/index.js +1 -1
- package/lib/dialog/dialog.css +5 -1
- package/lib/dialog/dialog.less +6 -1
- package/lib/dialog/dialog.variable.css +5 -1
- package/lib/dialog/index.js +1 -1
- package/lib/directives/index.js +1 -1
- package/lib/dist.index.js +1 -1
- package/lib/divider/divider.variable.css +4 -1
- package/lib/divider/index.js +1 -1
- package/lib/dropdown/dropdown.variable.css +4 -1
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.variable.css +4 -1
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +4 -1
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/form.variable.css +4 -1
- package/lib/form/index.js +1 -1
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.js +1 -1
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/index.js +1 -1
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +99 -15
- package/lib/input/input.less +83 -18
- package/lib/input/input.variable.css +102 -15
- package/lib/link/index.js +1 -1
- package/lib/link/link.variable.css +4 -1
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.variable.css +4 -1
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.variable.css +4 -1
- package/lib/menu/submenu.variable.css +4 -1
- package/lib/message/index.js +1 -1
- package/lib/message/message.variable.css +4 -1
- package/lib/modal/index.js +1 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.variable.css +4 -1
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.variable.css +4 -1
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.variable.css +4 -1
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.variable.css +4 -1
- package/lib/popover2/index.js +1 -1
- package/lib/popover2/popover2.variable.css +4 -1
- package/lib/preset.js +1 -1
- package/lib/process/index.js +1 -1
- package/lib/process/process.variable.css +4 -1
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.variable.css +4 -1
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio.variable.css +4 -1
- package/lib/rate/index.js +1 -1
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.variable.css +4 -1
- package/lib/select/index.js +1 -1
- package/lib/select/select.variable.css +4 -1
- package/lib/shared/index.js +1 -1
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.variable.css +4 -1
- package/lib/slider/index.js +1 -1
- package/lib/slider/slider.variable.css +4 -1
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.variable.css +4 -1
- package/lib/styles/themes/themes.less +6 -1
- package/lib/swiper/index.js +1 -1
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.variable.css +4 -1
- package/lib/tab/index.js +1 -1
- package/lib/tab/tab.variable.css +4 -1
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.variable.css +4 -1
- package/lib/table/plugins/head-sort.variable.css +4 -1
- package/lib/table/plugins/settings.variable.css +4 -1
- package/lib/table/table.variable.css +4 -1
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.variable.css +4 -1
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.variable.css +4 -1
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.variable.css +4 -1
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/transfer.variable.css +4 -1
- package/lib/tree/index.d.ts +4 -4
- package/lib/tree/index.js +1 -1
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/tree.variable.css +4 -1
- package/lib/upload/index.js +1 -1
- package/lib/upload/upload.variable.css +4 -1
- package/lib/virtual-render/index.js +1 -1
- package/package.json +1 -1
package/lib/icon/upload.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";var t={9430:(e,t,r)=>{r.d(t,{Z:()=>o});var a=r(6609);function n(e,t,r){return(0,a.h)(e.name,Object.assign(Object.assign({key:t},e.attributes),{style:"".concat(e.attributes.style," ").concat(r||"")}),(e.elements||[]).map((function(r,a){return n(r,"".concat(t,"-").concat(e.name,"-").concat(a))})))}Object.create,Object.create;var c=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),c=r.data,o=r.name,i=r.width,s=r.height,l=r.fill,p=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]])}return r}(r,["data","name","width","height","fill"]),v="width: ".concat(i,"; height: ").concat(s,"; fill: ").concat(l);return(0,a.createVNode)("span",p,[n(c,o,v)])};c.inheritAttrs=!1,c.displayName="bkIcon";const o=c},6609:(t,r,a)=>{var n,c;t.exports=(n={createVNode:()=>e.createVNode,h:()=>e.h,mergeProps:()=>e.mergeProps},c={},a.d(c,n),c)}},r={};function a(e){var n=r[e];if(void 0!==n)return n.exports;var c=r[e]={exports:{}};return t[e](c,c.exports,a),c.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};(()=>{a.d(n,{Z:()=>o});var e=a(6609),t=a(9430),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":"M897.6 422.4c-27.2-27.2-62.4-48-100.8-57.6C768 209.6 619.2 104 462.4 131.2c-120 20.8-212.8 115.2-233.6 233.6C131.2 388.8 64 475.2 64 574.4v9.6C64 704 160 800 278.4 800H320v-64h-41.6C195.2 736 128 668.8 128 585.6v-9.6c0-83.2 67.2-150.4 150.4-150.4H288c0-3.2 0-4.8 0-8l0 0c0-1.6 0-3.2 0-4.8v-1.6c0-1.6 0-3.2 0-4.8 0 0 0 0 0-1.6 0-1.6 0-3.2 0-4.8v-1.6c0-1.6 0-3.2 0-3.2 0-1.6 0-1.6 0-3.2 0 0 0-1.6 0-1.6 1.6-9.6 3.2-20.8 6.4-30.4l0 0c30.4-120 153.6-192 272-161.6 78.4 20.8 140.8 81.6 161.6 161.6l0 0c3.2 9.6 4.8 20.8 4.8 30.4 0 0 0 1.6 0 1.6 0 0 0 1.6 0 3.2 0 1.6 0 3.2 0 3.2V400c0 1.6 0 3.2 0 3.2v1.6c0 1.6 0 3.2 0 4.8v1.6c0 1.6 0 3.2 0 4.8l0 0c0 3.2 0 4.8 0 8h9.6c83.2-1.6 152 65.6 153.6 148.8 0 1.6 0 1.6 0 3.2v9.6c0 83.2-67.2 150.4-150.4 150.4l0 0H704v64h41.6C864 800 960 704 960 585.6v-9.6C960 518.4 937.6 464 897.6 422.4z"}},{"type":"element","name":"path","attributes":{"d":"M376 603.2L420.8 648 480 588.8 480 896 544 896 544 588.8 603.2 648 648 603.2 512 467.2z"}}]}'),c=function(a,n){var c=Object.assign(Object.assign({},a),n.attrs);return(0,e.createVNode)(t.Z,(0,e.mergeProps)(c,{data:r,name:"upload"}),null)};c.displayName="upload",c.inheritAttrs=!1;const o=c})();var c=n.Z;export{c as default};
|
package/lib/icon/video-fill.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";var t={9430:(e,t,r)=>{r.d(t,{Z:()=>i});var a=r(6609);function n(e,t,r){return(0,a.h)(e.name,Object.assign(Object.assign({key:t},e.attributes),{style:"".concat(e.attributes.style," ").concat(r||"")}),(e.elements||[]).map((function(r,a){return n(r,"".concat(t,"-").concat(e.name,"-").concat(a))})))}Object.create,Object.create;var o=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),o=r.data,i=r.name,c=r.width,s=r.height,l=r.fill,p=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]])}return r}(r,["data","name","width","height","fill"]),d="width: ".concat(c,"; height: ").concat(s,"; fill: ").concat(l);return(0,a.createVNode)("span",p,[n(o,i,d)])};o.inheritAttrs=!1,o.displayName="bkIcon";const i=o},6609:(t,r,a)=>{var n,o;t.exports=(n={createVNode:()=>e.createVNode,h:()=>e.h,mergeProps:()=>e.mergeProps},o={},a.d(o,n),o)}},r={};function a(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,a),o.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};(()=>{a.d(n,{Z:()=>i});var e=a(6609),t=a(9430),r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1303.273","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M664.4363636363636 0C676.8 0 688.5818181818182 4.945454545454554 697.3090909090909 13.67272727272728L697.3090909090909 13.67272727272728 1010.3272727272728 326.69090909090914C1019.0545454545455 335.41818181818184 1024 347.3454545454546 1024 359.70909090909095L1024 359.70909090909095 1024 1256.7272727272727C1024 1282.4727272727273 1003.2 1303.2727272727273 977.4545454545455 1303.2727272727273L977.4545454545455 1303.2727272727273 46.54545454545455 1303.2727272727273C20.80000000000002 1303.2727272727273 0 1282.4727272727273 0 1256.7272727272727L0 1256.7272727272727 0 46.54545454545455C0 20.799999999999997 20.80000000000002 0 46.54545454545455 0L46.54545454545455 0ZM397.1878772363637 614.0514816000001L397.1878772363637 848.3380922181818C397.1878772363637 912.7669108363636 440.14042298181823 936.1955746909091 494.8073006545455 901.0525835636363L650.9983744 797.5759965090909C703.7128610909091 758.5282280727272 703.7128610909091 699.9565730909092 650.9983744 664.8135819636365L494.8073006545455 561.3369949090909C442.0928139636364 526.1940037818182 397.1878772363637 549.6226676363636 397.1878772363637 614.0514816000001ZM642.9090909090909 107.34545454545456L642.9090909090909 381.0909090909091 916.6545454545455 381.0909090909091 642.9090909090909 107.34545454545456Z"}}]}'),o=function(a,n){var o=Object.assign(Object.assign({},a),n.attrs);return(0,e.createVNode)(t.Z,(0,e.mergeProps)(o,{data:r,name:"videoFill"}),null)};o.displayName="videoFill",o.inheritAttrs=!1;const i=o})();var o=n.Z;export{o as default};
|
package/lib/icon/warn.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";var t={9430:(e,t,r)=>{r.d(t,{Z:()=>c});var a=r(6609);function n(e,t,r){return(0,a.h)(e.name,Object.assign(Object.assign({key:t},e.attributes),{style:"".concat(e.attributes.style," ").concat(r||"")}),(e.elements||[]).map((function(r,a){return n(r,"".concat(t,"-").concat(e.name,"-").concat(a))})))}Object.create,Object.create;var o=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),o=r.data,c=r.name,s=r.width,i=r.height,l=r.fill,p=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]])}return r}(r,["data","name","width","height","fill"]),d="width: ".concat(s,"; height: ").concat(i,"; fill: ").concat(l);return(0,a.createVNode)("span",p,[n(o,c,d)])};o.inheritAttrs=!1,o.displayName="bkIcon";const c=o},6609:(t,r,a)=>{var n,o;t.exports=(n={createVNode:()=>e.createVNode,h:()=>e.h,mergeProps:()=>e.mergeProps},o={},a.d(o,n),o)}},r={};function a(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,a),o.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};(()=>{a.d(n,{Z:()=>c});var e=a(6609),t=a(9430),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"}}]}'),o=function(a,n){var o=Object.assign(Object.assign({},a),n.attrs);return(0,e.createVNode)(t.Z,(0,e.mergeProps)(o,{data:r,name:"warn"}),null)};o.displayName="warn",o.inheritAttrs=!1;const c=o})();var o=n.Z;export{o as default};
|
package/lib/icon/weixin.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";var t={9430:(e,t,r)=>{r.d(t,{Z:()=>o});var a=r(6609);function n(e,t,r){return(0,a.h)(e.name,Object.assign(Object.assign({key:t},e.attributes),{style:"".concat(e.attributes.style," ").concat(r||"")}),(e.elements||[]).map((function(r,a){return n(r,"".concat(t,"-").concat(e.name,"-").concat(a))})))}Object.create,Object.create;var c=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),c=r.data,o=r.name,s=r.width,i=r.height,l=r.fill,p=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]])}return r}(r,["data","name","width","height","fill"]),m="width: ".concat(s,"; height: ").concat(i,"; fill: ").concat(l);return(0,a.createVNode)("span",p,[n(c,o,m)])};c.inheritAttrs=!1,c.displayName="bkIcon";const o=c},6609:(t,r,a)=>{var n,c;t.exports=(n={createVNode:()=>e.createVNode,h:()=>e.h,mergeProps:()=>e.mergeProps},c={},a.d(c,n),c)}},r={};function a(e){var n=r[e];if(void 0!==n)return n.exports;var c=r[e]={exports:{}};return t[e](c,c.exports,a),c.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};(()=>{a.d(n,{Z:()=>o});var e=a(6609),t=a(9430),r=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":"M603.52 348.8c0 26.496-22.357333333333333 48-49.919999999999995 48s-49.919999999999995-21.503999999999998-49.919999999999995-48c0-26.496 22.357333333333333-48 49.919999999999995-48s49.919999999999995 21.503999999999998 49.919999999999995 48z"}},{"type":"element","name":"path","attributes":{"d":"M357.11999999999995 348.8c0 26.496-22.357333333333333 48-49.919999999999995 48s-49.919999999999995-21.503999999999998-49.919999999999995-48c0-26.496 22.357333333333333-48 49.919999999999995-48s49.919999999999995 21.503999999999998 49.919999999999995 48z"}},{"type":"element","name":"path","attributes":{"d":"M693.12 604.16c0 15.914666666666665-13.184 28.8-29.439999999999998 28.8s-29.439999999999998-12.885333333333332-29.439999999999998-28.8c0-15.914666666666665 13.184-28.8 29.439999999999998-28.8s29.439999999999998 12.885333333333332 29.439999999999998 28.8z"}},{"type":"element","name":"path","attributes":{"d":"M951.68 832c43.775999999999996-42.410666666666664 71.29599999999999-101.41866666666665 72.32-166.86933333333332-4.608-109.696-77.35466666666666-201.0453333333333-176.72533333333334-233.30133333333333 5.674666666666667-12.117333333333331 10.154666666666666-26.282666666666664 10.154666666666666-41.471999999999994 0-4.522666666666666-0.38399999999999995-8.959999999999999-1.152-13.226666666666667-33.834666666666664-181.29066666666665-212.39466666666664-313.1306666666667-425.5146666666667-313.1306666666667-238.71999999999997 0-430.72 167.04-430.72 372.48 1.2799999999999998 107.56266666666666 50.56 203.30666666666664 127.40266666666668 267.05066666666664l-16.682666666666666 55.50933333333333c-2.1759999999999997 6.784-3.456 14.634666666666668-3.456 22.741333333333333 0 42.410666666666664 34.38933333333333 76.8 76.8 76.8 12.458666666666666 0 24.191999999999997-2.944 34.602666666666664-8.234666666666666l101.33333333333333-52.906666666666666c32.81066666666666 7.722666666666666 70.52799999999999 12.159999999999998 109.22666666666666 12.159999999999998 0.08533333333333333 0 0.17066666666666666 0 0.21333333333333332 0h28.16c13.098666666666666-0.7679999999999999 25.130666666666663-4.693333333333333 35.54133333333333-11.050666666666666 54.22933333333333 73.55733333333333 140.672 120.53333333333333 238.07999999999998 120.53333333333333 1.664 0 3.3706666666666667 0 5.034666666666666-0.042666666666666665 21.077333333333332-0.08533333333333333 41.855999999999995-2.1759999999999997 61.99466666666667-6.101333333333333l49.10933333333333 26.581333333333333c9.941333333333333 5.034666666666666 21.717333333333332 8.021333333333333 34.176 8.021333333333333 42.410666666666664 0 76.8-34.38933333333333 76.8-76.8 0-8.106666666666666-1.2799999999999998-15.957333333333333-3.584-23.296zM430.72 752.64c-0.17066666666666666 0-0.38399999999999995 0-0.5973333333333333 0-40.831999999999994 0-80.29866666666666-5.8453333333333335-117.58933333333331-16.72533333333333l-3.456 0.7253333333333334-131.2 67.19999999999999 35.199999999999996-113.27999999999999h-3.1999999999999997c-86.10133333333332-52.05333333333333-143.40266666666668-144.17066666666665-145.92-249.89866666666666 0-172.50133333333332 165.76-312.66133333333335 366.72-312.66133333333335 5.717333333333333-0.3413333333333333 12.415999999999999-0.512 19.157333333333334-0.512 163.32799999999997 0 300.58666666666664 111.40266666666668 340.0106666666667 262.4l-14.805333333333332 2.432c-183.04 0-327.03999999999996 112-327.03999999999996 285.44 0.512 26.709333333333333 5.1626666666666665 52.181333333333335 13.312 75.98933333333332zM872.96 812.8v0l21.759999999999998 67.84-81.28-40.959999999999994h-3.84c-21.119999999999997 6.101333333333333-45.397333333333336 9.6-70.48533333333333 9.6-0.17066666666666666 0-0.38399999999999995 0-0.5546666666666666 0-5.888 0.5973333333333333-12.757333333333332 0.9386666666666665-19.712 0.9386666666666665-107.09333333333332 0-195.2853333333333-80.93866666666666-206.71999999999997-184.95999999999998 10.367999999999999-106.96533333333333 99.072-189.1413333333333 206.976-189.1413333333333 5.973333333333334 0 11.861333333333334 0.256 17.706666666666663 0.7253333333333334 4.309333333333333-0.512 10.197333333333333-0.7253333333333334 16.170666666666666-0.7253333333333334 107.904 0 196.60799999999998 82.17599999999999 206.976 187.34933333333333-1.7066666666666666 63.82933333333333-35.79733333333333 118.44266666666665-86.18666666666667 148.90666666666667z"}},{"type":"element","name":"path","attributes":{"d":"M839.68 604.16c0 15.914666666666665-13.184 28.8-29.439999999999998 28.8s-29.439999999999998-12.885333333333332-29.439999999999998-28.8c0-15.914666666666665 13.184-28.8 29.439999999999998-28.8s29.439999999999998 12.885333333333332 29.439999999999998 28.8z"}}]}'),c=function(a,n){var c=Object.assign(Object.assign({},a),n.attrs);return(0,e.createVNode)(t.Z,(0,e.mergeProps)(c,{data:r,name:"weixin"}),null)};c.displayName="weixin",c.inheritAttrs=!1;const o=c})();var c=n.Z;export{c as default};
|
package/lib/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"./preset";import*as t from"./components";import*as r from"./directives";var o={d:(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},a={};o.d(a,{default:()=>d.default});const d=(f={default:()=>e.default},p={},o.d(p,f),p);var f,p;o.d({},{}),o.d({},{});var l=a.default;export{l as default};
|
package/lib/input/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as t from"vue";import*as r from"../icon";var n={d:(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},o={};n.d(o,{Z:()=>T});const a=(l={PropTypes:()=>e.PropTypes,classes:()=>e.classes,useFormItem:()=>e.useFormItem,withInstall:()=>e.withInstall},i={},n.d(i,l),i);var l,i;function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=(e=>{var t={};return n.d(t,e),t})({computed:()=>t.computed,createTextVNode:()=>t.createTextVNode,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,mergeProps:()=>t.mergeProps,ref:()=>t.ref});Object.create,Object.create;const p=(e=>{var t={};return n.d(t,e),t})({Close:()=>r.Close,DownSmall:()=>r.DownSmall,Eye:()=>r.Eye,Search:()=>r.Search,Unvisible:()=>r.Unvisible});var d,m,f={type:a.PropTypes.string.def("text"),clearable:a.PropTypes.bool,disabled:a.PropTypes.bool,readonly:a.PropTypes.bool,placeholder:a.PropTypes.string.def("Enter"),prefixIcon:a.PropTypes.string,suffixIcon:a.PropTypes.string,suffix:a.PropTypes.string,prefix:a.PropTypes.string,step:a.PropTypes.integer,max:a.PropTypes.integer,min:a.PropTypes.integer,maxlength:a.PropTypes.integer,behavior:a.PropTypes.commonType(["simplicity","normal"]).def("normal"),showWordLimit:a.PropTypes.bool,showControl:a.PropTypes.bool.def(!0),showClearOnlyHover:a.PropTypes.bool.def(!1),precision:a.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.number]).def(""),size:a.PropTypes.size(),rows:a.PropTypes.number};function v(e,t){return{value:e,evt:t}}function y(e){return e}!function(e){e.UPDATE="update:modelValue",e.FOCUS="focus",e.BLUR="blur",e.CHANGE="change",e.CLEAR="clear",e.INPUT="input",e.KEYPRESS="keypress",e.KEYDOWN="keydown",e.KEYUP="keyup",e.ENTER="enter",e.PASTE="paste",e.COMPOSITIONSTART="compositionstart",e.COMPOSITIONUPDATE="compositionupdate",e.COMPOSITIONEND="compositionend"}(m||(m={}));var P=(s(d={},m.UPDATE,v),s(d,m.FOCUS,(function(e){return e})),s(d,m.BLUR,(function(e){return e})),s(d,m.CHANGE,v),s(d,m.CLEAR,(function(){return!0})),s(d,m.INPUT,v),s(d,m.KEYPRESS,v),s(d,m.KEYDOWN,v),s(d,m.KEYUP,v),s(d,m.ENTER,v),s(d,m.PASTE,v),s(d,m.COMPOSITIONSTART,y),s(d,m.COMPOSITIONUPDATE,y),s(d,m.COMPOSITIONEND,y),d);const b=(0,c.defineComponent)({name:"Input",inheritAttrs:!1,props:f,emits:P,setup:function(e,t){var r=(0,a.useFormItem)(),n=(0,c.ref)(!1),o=(0,c.ref)(!1),l=(0,c.computed)((function(){return"textarea"===e.type})),i=(0,c.computed)((function(){return l.value?"bk-textarea":"bk-input"})),d=t.attrs,f=d.class,v=d.style,y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(d,["class","style"]),P=(0,c.ref)(),b=(0,c.computed)((function(){var t;return(0,a.classes)((s(t={},"".concat(i.value,"--").concat(e.size),!!e.size),s(t,"is-focused",n.value),s(t,"is-readonly",e.readonly),s(t,"is-disabled",e.disabled),s(t,"is-simplicity","simplicity"===e.behavior),s(t,"".concat(f),!!f),t),i.value)})),T={search:function(){return(0,c.createVNode)(p.Search,null,null)},password:function(){return(0,c.createVNode)(p.Eye,{onClick:Z},null)}},N=B("suffix-icon"),g=(0,c.computed)((function(){var t=T[e.type];return x.value?(0,c.createVNode)(p.Unvisible,{onClick:Z,class:N},null):t?(0,c.createVNode)(t,{class:N},null):null})),h=(0,c.computed)((function(){return"number"===e.type})),E=(0,c.computed)((function(){return Math.floor(e.maxlength)})),x=(0,c.ref)(!1),O=(0,c.computed)((function(){return(0,a.classes)({"show-clear-only-hover":e.showClearOnlyHover},N)})),C=(0,c.computed)((function(){return(0,a.classes)({"is-disabled":e.disabled||e.modelValue>=e.max})})),I=(0,c.computed)((function(){return(0,a.classes)({"is-disabled":e.disabled||e.modelValue<=e.min})}));function S(){var n,o=h.value?e.min:"";t.emit(m.UPDATE,o),t.emit(m.CHANGE,o),t.emit(m.CLEAR),null===(n=null==r?void 0:r.validate)||void 0===n||n.call(r,"change")}function w(e){n.value=!0,t.emit(m.FOCUS,e)}function A(o){var a;if(n.value=!1,t.emit(m.BLUR,o),h.value&&(o.target.value>e.max||o.target.value<e.min)){var l=o.target.value>e.max?e.max:e.min;t.emit(m.UPDATE,l),t.emit(m.CHANGE,l)}null===(a=null==r?void 0:r.validate)||void 0===a||a.call(r,"blur")}t.expose({focus:function(){P.value.focus()},clear:S});var V,U,D=[m.KEYUP,m.KEYDOWN,m.KEYPRESS,m.PASTE,m.CHANGE,m.INPUT].map((function(e){return function(n){var a;e!==m.KEYDOWN||"Enter"!==n.code&&"Enter"!==n.key&&13!==n.keyCode||t.emit(m.ENTER,n.target.value,n),o.value&&[m.INPUT,m.CHANGE].some((function(t){return e===t}))||(e===m.INPUT&&t.emit(m.UPDATE,h.value?+n.target.value:n.target.value),t.emit(e,n.target.value,n),e===m.INPUT&&(null===(a=null==r?void 0:r.validate)||void 0===a||a.call(r,"change")))}})),k=(U=6,function(e){if(Array.isArray(e))return e}(V=D)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],l=!0,i=!1;try{for(r=r.call(e);!(l=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,o=e}finally{try{l||null==r.return||r.return()}finally{if(i)throw o}}return a}}(V,U)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(V,U)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),R=k[0],K=k[1],j=k[2],M=k[3],Y=k[4],F=k[5];function H(){o.value=!0}function L(e){o.value=!1,F(e)}function G(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=parseInt(String(t),10),o=Number.isInteger(e.precision)?e.precision:0,a=parseFloat(e.modelValue.toString()),l=Number.isInteger(n)?n:1,i=a+(r?l:-1*l);return Number.isInteger(e.max)&&(i=Math.min(i,e.max)),Number.isInteger(e.min)&&(i=Math.max(i,e.min)),+i.toFixed(o)}function W(){if(!e.disabled){var r=G(e.step);t.emit(m.UPDATE,r)}}function z(){if(!e.disabled){var r=G(e.step,!1);t.emit(m.UPDATE,r)}}function B(e){return"".concat(i.value,"--").concat(e)}function Z(){x.value=!x.value}var $=(0,c.computed)((function(){return{value:e.modelValue,maxlength:e.maxlength,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled,onInput:F,onFocus:w,onBlur:A,onPaste:M,onChange:Y,onKeypress:j,onKeydown:K,onKeyup:R,onCompositionstart:H,onCompositionend:L}}));return function(){var r,n,o,a,u,s;return(0,c.createVNode)("div",{class:b.value,style:v},[null!==(o=null===(n=null===(r=t.slots)||void 0===r?void 0:r.prefix)||void 0===n?void 0:n.call(r))&&void 0!==o?o:e.prefix&&(0,c.createVNode)("div",{class:B("prefix-area")},[(0,c.createVNode)("span",{class:B("prefix-area--text")},[e.prefix])]),l.value?(0,c.createVNode)("textarea",(0,c.mergeProps)({ref:P,spellcheck:!1},y,$.value,{rows:e.rows}),null):(0,c.createVNode)("input",(0,c.mergeProps)({spellcheck:!1},y,{ref:P,class:"".concat(i.value,"--text"),type:x.value&&"password"===e.type?"text":e.type,step:e.step,max:e.max,min:e.min},$.value),null),!l.value&&e.clearable&&!!e.modelValue&&(0,c.createVNode)(p.Close,{onClick:S,class:O.value},null),g.value,"number"==typeof e.maxlength&&(e.showWordLimit||l.value)&&(0,c.createVNode)("p",{class:B("max-length")},[e.modelValue.toString().length,(0,c.createTextVNode)("/"),(0,c.createVNode)("span",null,[E.value])]),h.value&&e.showControl&&(0,c.createVNode)("div",{class:B("number-control")},[(0,c.createVNode)(p.DownSmall,{class:C.value,onClick:W},null),(0,c.createVNode)(p.DownSmall,{class:I.value,onClick:z},null)]),null!==(s=null===(u=null===(a=t.slots)||void 0===a?void 0:a.suffix)||void 0===u?void 0:u.call(a))&&void 0!==s?s:e.suffix&&(0,c.createVNode)("div",{class:B("suffix-area")},[(0,c.createVNode)("span",{class:B("suffix-area--text")},[e.suffix])])])}}}),T=(0,a.withInstall)(b);var N=o.Z;export{N as default};
|
package/lib/input/input.css
CHANGED
@@ -41,6 +41,34 @@
|
|
41
41
|
transition: all 0.3s;
|
42
42
|
flex-direction: column;
|
43
43
|
}
|
44
|
+
.bk-textarea ::placeholder {
|
45
|
+
color: #c4c6cc;
|
46
|
+
}
|
47
|
+
.bk-textarea.is-disabled,
|
48
|
+
.bk-textarea.is-readonly {
|
49
|
+
background-color: #fafbfd;
|
50
|
+
border-color: #dcdee5;
|
51
|
+
}
|
52
|
+
.bk-textarea.is-disabled .bk-input--prefix-area,
|
53
|
+
.bk-textarea.is-readonly .bk-input--prefix-area,
|
54
|
+
.bk-textarea.is-disabled .bk-input--suffix-area,
|
55
|
+
.bk-textarea.is-readonly .bk-input--suffix-area,
|
56
|
+
.bk-textarea.is-disabled .bk-input--suffix-icon,
|
57
|
+
.bk-textarea.is-readonly .bk-input--suffix-icon {
|
58
|
+
background-color: #fafbfd;
|
59
|
+
}
|
60
|
+
.bk-textarea.is-disabled input,
|
61
|
+
.bk-textarea.is-readonly input,
|
62
|
+
.bk-textarea.is-disabled textarea,
|
63
|
+
.bk-textarea.is-readonly textarea {
|
64
|
+
cursor: not-allowed;
|
65
|
+
background-color: #fafbfd;
|
66
|
+
opacity: 1;
|
67
|
+
}
|
68
|
+
.bk-textarea.is-readonly input,
|
69
|
+
.bk-textarea.is-readonly textarea {
|
70
|
+
cursor: auto;
|
71
|
+
}
|
44
72
|
.bk-textarea > textarea {
|
45
73
|
width: 100%;
|
46
74
|
flex: 1;
|
@@ -55,11 +83,20 @@
|
|
55
83
|
.bk-textarea--max-length {
|
56
84
|
padding-right: 10px;
|
57
85
|
margin: 0;
|
86
|
+
margin-left: auto;
|
87
|
+
font-size: 12px;
|
58
88
|
text-align: right;
|
89
|
+
transform: scale(0.8);
|
90
|
+
justify-content: flex-end;
|
59
91
|
}
|
60
92
|
.bk-textarea--max-length span {
|
61
93
|
color: #979ba5;
|
62
94
|
}
|
95
|
+
.bk-textarea.is-focused:not(.is-readonly) {
|
96
|
+
border-color: #3a84ff;
|
97
|
+
outline: 0;
|
98
|
+
box-shadow: 0px 0px 3px 0px #a3c5fd;
|
99
|
+
}
|
63
100
|
.bk-input {
|
64
101
|
display: inline-flex;
|
65
102
|
align-items: stretch;
|
@@ -70,7 +107,38 @@
|
|
70
107
|
border-radius: 2px;
|
71
108
|
transition: all 0.3s;
|
72
109
|
}
|
73
|
-
.bk-input
|
110
|
+
.bk-input ::placeholder {
|
111
|
+
color: #c4c6cc;
|
112
|
+
}
|
113
|
+
.bk-input.is-disabled,
|
114
|
+
.bk-input.is-readonly {
|
115
|
+
background-color: #fafbfd;
|
116
|
+
border-color: #dcdee5;
|
117
|
+
}
|
118
|
+
.bk-input.is-disabled .bk-input--prefix-area,
|
119
|
+
.bk-input.is-readonly .bk-input--prefix-area,
|
120
|
+
.bk-input.is-disabled .bk-input--suffix-area,
|
121
|
+
.bk-input.is-readonly .bk-input--suffix-area,
|
122
|
+
.bk-input.is-disabled .bk-input--suffix-icon,
|
123
|
+
.bk-input.is-readonly .bk-input--suffix-icon {
|
124
|
+
background-color: #fafbfd;
|
125
|
+
}
|
126
|
+
.bk-input.is-disabled input,
|
127
|
+
.bk-input.is-readonly input,
|
128
|
+
.bk-input.is-disabled textarea,
|
129
|
+
.bk-input.is-readonly textarea {
|
130
|
+
cursor: not-allowed;
|
131
|
+
background-color: #fafbfd;
|
132
|
+
opacity: 1;
|
133
|
+
}
|
134
|
+
.bk-input.is-readonly input,
|
135
|
+
.bk-input.is-readonly textarea {
|
136
|
+
cursor: auto;
|
137
|
+
}
|
138
|
+
.bk-input:hover:not(.is-disabled) {
|
139
|
+
border-color: #979ba5;
|
140
|
+
}
|
141
|
+
.bk-input:hover:not(.is-disabled) .show-clear-only-hover {
|
74
142
|
display: block;
|
75
143
|
}
|
76
144
|
.bk-input.is-simplicity {
|
@@ -78,6 +146,14 @@
|
|
78
146
|
border-color: transparent;
|
79
147
|
border-bottom-color: #c4c6cc;
|
80
148
|
}
|
149
|
+
.bk-input.is-simplicity:hover:not(.is-disabled) {
|
150
|
+
border-color: transparent;
|
151
|
+
border-bottom-color: #c4c6cc;
|
152
|
+
box-shadow: none;
|
153
|
+
}
|
154
|
+
.bk-input.is-simplicity:hover:not(.is-disabled) .bk-input--text {
|
155
|
+
background-color: #f5f7fa;
|
156
|
+
}
|
81
157
|
.bk-input--suffix-icon {
|
82
158
|
display: flex;
|
83
159
|
height: 100%;
|
@@ -98,6 +174,9 @@
|
|
98
174
|
.bk-input--large .bk-input--max-length {
|
99
175
|
font-size: 16px;
|
100
176
|
}
|
177
|
+
.bk-input--large .bk-input--number-control span:first-child {
|
178
|
+
margin-bottom: 4px;
|
179
|
+
}
|
101
180
|
.bk-input--small {
|
102
181
|
height: 26px;
|
103
182
|
font-size: 12px;
|
@@ -121,21 +200,15 @@
|
|
121
200
|
border-bottom-color: #3a84ff;
|
122
201
|
box-shadow: none;
|
123
202
|
}
|
124
|
-
.bk-input.is-
|
125
|
-
|
126
|
-
cursor: not-allowed;
|
127
|
-
background-color: #fafbfd;
|
128
|
-
opacity: 1;
|
129
|
-
}
|
130
|
-
.bk-input.is-readonly input {
|
131
|
-
cursor: auto;
|
203
|
+
.bk-input.is-focused:not(.is-readonly).is-simplicity .bk-input--text {
|
204
|
+
background-color: #f5f7fa;
|
132
205
|
}
|
133
206
|
.bk-input--prefix-area,
|
134
207
|
.bk-input--suffix-area {
|
135
208
|
display: flex;
|
136
209
|
padding: 0 10px;
|
137
210
|
color: #63656e;
|
138
|
-
background-color: #
|
211
|
+
background-color: #f5f7fa;
|
139
212
|
border-right: 1px solid #c4c6cc;
|
140
213
|
align-items: center;
|
141
214
|
}
|
@@ -146,6 +219,8 @@
|
|
146
219
|
.bk-input--max-length {
|
147
220
|
align-self: center;
|
148
221
|
padding-right: 10px;
|
222
|
+
font-size: 12px;
|
223
|
+
transform: scale(0.8);
|
149
224
|
}
|
150
225
|
.bk-input--max-length span {
|
151
226
|
color: #979ba5;
|
@@ -188,19 +263,28 @@
|
|
188
263
|
color: #c4c6cc;
|
189
264
|
}
|
190
265
|
.bk-input--number-control {
|
266
|
+
display: flex;
|
191
267
|
width: 26px;
|
192
268
|
height: 100%;
|
269
|
+
padding: 4px 0;
|
193
270
|
font-size: 0;
|
194
|
-
flex-direction: column;
|
195
271
|
user-select: none;
|
272
|
+
flex-direction: column;
|
273
|
+
align-items: center;
|
196
274
|
}
|
197
275
|
.bk-input--number-control span {
|
198
|
-
display:
|
199
|
-
height: 50%;
|
276
|
+
display: flex;
|
200
277
|
overflow: hidden;
|
201
278
|
line-height: 1;
|
202
|
-
color: #
|
279
|
+
color: #979ba5;
|
203
280
|
text-align: center;
|
281
|
+
cursor: pointer;
|
282
|
+
background-color: #f5f7fa;
|
283
|
+
flex: 1;
|
284
|
+
align-items: center;
|
285
|
+
}
|
286
|
+
.bk-input--number-control span.is-disabled {
|
287
|
+
cursor: not-allowed;
|
204
288
|
}
|
205
289
|
.bk-input--number-control svg {
|
206
290
|
font-size: 16px;
|
@@ -209,5 +293,5 @@
|
|
209
293
|
transform: rotate(180deg);
|
210
294
|
}
|
211
295
|
.bk-input--number-control span:hover {
|
212
|
-
background-color: #
|
296
|
+
background-color: #eaebf0;
|
213
297
|
}
|
package/lib/input/input.less
CHANGED
@@ -8,12 +8,41 @@
|
|
8
8
|
}
|
9
9
|
|
10
10
|
.disabled() {
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
&.is-disabled,
|
12
|
+
&.is-readonly {
|
13
|
+
background-color: @input-disabled-bg;
|
14
|
+
border-color: @disable-color;
|
15
|
+
.@{bk-prefix}-input--prefix-area,
|
16
|
+
.@{bk-prefix}-input--suffix-area,
|
17
|
+
.@{bk-prefix}-input--suffix-icon {
|
18
|
+
background-color: @input-disabled-bg;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
&.is-disabled input,
|
23
|
+
&.is-readonly input,
|
24
|
+
&.is-disabled textarea,
|
25
|
+
&.is-readonly textarea {
|
26
|
+
cursor: not-allowed;
|
27
|
+
background-color: @input-disabled-bg;
|
28
|
+
opacity: 1;
|
29
|
+
}
|
30
|
+
|
31
|
+
&.is-readonly input,
|
32
|
+
&.is-readonly textarea {
|
33
|
+
cursor: auto;
|
34
|
+
}
|
35
|
+
|
36
|
+
}
|
37
|
+
|
38
|
+
.placeholder() {
|
39
|
+
::placeholder {
|
40
|
+
color: @light-gray;
|
41
|
+
}
|
14
42
|
}
|
15
43
|
|
16
44
|
.@{bk-prefix}-textarea {
|
45
|
+
.placeholder();
|
17
46
|
display: inline-flex;
|
18
47
|
width: 100%;
|
19
48
|
min-height: 70px;
|
@@ -27,6 +56,7 @@
|
|
27
56
|
box-sizing: border-box;
|
28
57
|
transition: all .3s;
|
29
58
|
flex-direction: column;
|
59
|
+
.disabled();
|
30
60
|
|
31
61
|
> textarea {
|
32
62
|
width: 100%;
|
@@ -43,12 +73,21 @@
|
|
43
73
|
&--max-length {
|
44
74
|
padding-right: @input-horizontal-padding;
|
45
75
|
margin: 0;
|
76
|
+
margin-left: auto;
|
77
|
+
font-size: 12px;
|
46
78
|
text-align: right;
|
79
|
+
transform: scale(.8);
|
80
|
+
justify-content: flex-end;
|
47
81
|
|
48
82
|
span {
|
49
83
|
color: @input-maxlength-color;
|
84
|
+
|
50
85
|
}
|
51
86
|
}
|
87
|
+
|
88
|
+
&.is-focused:not(.is-readonly) {
|
89
|
+
.active();
|
90
|
+
}
|
52
91
|
}
|
53
92
|
|
54
93
|
.@{bk-prefix}-input {
|
@@ -60,8 +99,12 @@
|
|
60
99
|
border: @border-width-base @border-style-base @input-border-color;
|
61
100
|
border-radius: @border-radius-base;
|
62
101
|
transition: all .3s;
|
102
|
+
.placeholder();
|
103
|
+
.disabled();
|
104
|
+
|
105
|
+
&:hover:not(.is-disabled) {
|
106
|
+
border-color: @gray-color;
|
63
107
|
|
64
|
-
&:hover {
|
65
108
|
.show-clear-only-hover {
|
66
109
|
display: block;
|
67
110
|
}
|
@@ -71,6 +114,15 @@
|
|
71
114
|
background-color: transparent;
|
72
115
|
border-color: transparent;
|
73
116
|
border-bottom-color: @input-border-color;
|
117
|
+
|
118
|
+
&:hover:not(.is-disabled) {
|
119
|
+
border-color: transparent;
|
120
|
+
border-bottom-color: @light-gray;
|
121
|
+
box-shadow: none;
|
122
|
+
.@{bk-prefix}-input--text {
|
123
|
+
background-color: @input-block-color;
|
124
|
+
}
|
125
|
+
}
|
74
126
|
}
|
75
127
|
|
76
128
|
&--suffix-icon {
|
@@ -94,6 +146,11 @@
|
|
94
146
|
.@{bk-prefix}-input--max-length {
|
95
147
|
font-size: @font-size-large;
|
96
148
|
}
|
149
|
+
.@{bk-prefix}-input--number-control {
|
150
|
+
span:first-child {
|
151
|
+
margin-bottom: 4px;
|
152
|
+
}
|
153
|
+
}
|
97
154
|
}
|
98
155
|
|
99
156
|
&--small {
|
@@ -114,22 +171,18 @@
|
|
114
171
|
|
115
172
|
&.is-focused:not(.is-readonly) {
|
116
173
|
.active();
|
117
|
-
|
174
|
+
|
118
175
|
&.is-simplicity {
|
119
176
|
border-color: transparent;
|
120
177
|
border-bottom-color: @primary-color;
|
121
178
|
box-shadow: none;
|
179
|
+
.@{bk-prefix}-input--text {
|
180
|
+
background-color: @input-block-color;
|
181
|
+
}
|
122
182
|
}
|
123
183
|
}
|
124
184
|
|
125
|
-
|
126
|
-
&.is-readonly input {
|
127
|
-
.disabled();
|
128
|
-
}
|
129
|
-
|
130
|
-
&.is-readonly input {
|
131
|
-
cursor: auto;
|
132
|
-
}
|
185
|
+
|
133
186
|
|
134
187
|
&--prefix-area,
|
135
188
|
&--suffix-area {
|
@@ -149,6 +202,8 @@
|
|
149
202
|
&--max-length {
|
150
203
|
align-self: center;
|
151
204
|
padding-right: @input-horizontal-padding;
|
205
|
+
font-size: 12px;
|
206
|
+
transform: scale(.8);
|
152
207
|
|
153
208
|
span {
|
154
209
|
color: @input-maxlength-color;
|
@@ -200,19 +255,29 @@
|
|
200
255
|
}
|
201
256
|
|
202
257
|
&--number-control {
|
258
|
+
display: flex;
|
203
259
|
width: 26px;
|
204
260
|
height: 100%;
|
261
|
+
padding: 4px 0;
|
205
262
|
font-size: 0;
|
206
|
-
flex-direction: column;
|
207
263
|
user-select: none;
|
264
|
+
flex-direction: column;
|
265
|
+
align-items: center;
|
208
266
|
|
209
267
|
span {
|
210
|
-
display:
|
211
|
-
height: 50%;
|
268
|
+
display: flex;
|
212
269
|
overflow: hidden;
|
213
270
|
line-height: 1;
|
214
|
-
color: @
|
271
|
+
color: @gray-color;
|
215
272
|
text-align: center;
|
273
|
+
cursor: pointer;
|
274
|
+
background-color: @input-block-color;
|
275
|
+
flex: 1;
|
276
|
+
align-items: center;
|
277
|
+
|
278
|
+
&.is-disabled {
|
279
|
+
cursor: not-allowed;
|
280
|
+
}
|
216
281
|
}
|
217
282
|
|
218
283
|
svg {
|
@@ -224,7 +289,7 @@
|
|
224
289
|
}
|
225
290
|
|
226
291
|
span:hover {
|
227
|
-
background-color:
|
292
|
+
background-color: @input-block-hover-color;
|
228
293
|
}
|
229
294
|
}
|
230
295
|
}
|