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
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/affix/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as t from"vue";import*as o from"lodash";var n={d:(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},a={};n.d(a,{Z:()=>d});const l=(u={PropTypes:()=>e.PropTypes,classes:()=>e.classes,withInstall:()=>e.withInstall},r={},n.d(r,u),r);var u,r;const i=(e=>{var t={};return n.d(t,e),t})({computed:()=>t.computed,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,getCurrentInstance:()=>t.getCurrentInstance,nextTick:()=>t.nextTick,onBeforeUnmount:()=>t.onBeforeUnmount,onMounted:()=>t.onMounted,ref:()=>t.ref}),c=(e=>{var t={};return n.d(t,e),t})({throttle:()=>o.throttle});var f=document.addEventListener?function(e,t,o){e&&t&&o&&e.addEventListener(t,o,!0)}:function(e,t,o){e&&t&&o&&e.attachEvent("on".concat(t),o)},v=document.removeEventListener?function(e,t,o){e&&t&&e.removeEventListener(t,o,!0)}:function(e,t,o){e&&t&&e.detachEvent("on".concat(t),o)};const s=(0,i.defineComponent)({name:"Affix",props:{offsetTop:l.PropTypes.number.def(0),offsetBottom:l.PropTypes.number,target:l.PropTypes.string.def(""),zIndex:l.PropTypes.number.def(1e3)},emits:["change"],setup:function(e,t){var o=t.emit,n=t.slots,a=(0,i.ref)(null),u=(0,i.ref)(null),r=(0,i.ref)(),s=(0,i.ref)({}),d=(0,i.getCurrentInstance)().proxy,p=(0,i.ref)(0),m=(0,i.computed)((function(){return Object.assign(Object.assign({},s.value),{"z-index":e.zIndex})}));(0,i.onMounted)((function(){p.value=d.$el.offsetWidth,r.value=e.target?document.querySelector(e.target):window,f(r.value,"scroll",b),f(r.value,"resize",b),(0,i.nextTick)((function(){T()}))}));var g=(0,i.ref)(!1),w=(0,i.computed)((function(){return(0,l.classes)({"bk-affix":g.value})})),h=(0,i.computed)((function(){return e.offsetBottom>=0?"bottom":"top"})),x=function(){"top"===h.value?s.value={top:"".concat(r.value.getBoundingClientRect().top+e.offsetTop,"px")}:s.value={bottom:"".concat(window.innerHeight-r.value.getBoundingClientRect().bottom+e.offsetBottom,"px")}},b=(0,c.throttle)((function(){T()}),100),T=function(){var t=r.value===window?{top:0,left:0,bottom:window.innerHeight}:r.value.getBoundingClientRect(),n=function(e){var t=e.value.getBoundingClientRect(),o=r.value===window?{top:0,left:0}:r.value.getBoundingClientRect(),n=r.value.clientTop||0,a=r.value.clientLeft||0;return{top:t.top-o.top-n,left:t.left-o.left-a}}(u),l=r.value===window?r.value.innerHeight:r.value.clientHeight,i=a.value.offsetHeight;n.top<e.offsetTop&&"top"===h.value&&!g.value?(g.value=!0,s.value={position:"fixed",top:"".concat(t.top+e.offsetTop,"px"),left:"".concat(t.left+n.left,"px"),width:"".concat(p.value,"px")},r.value!==window&&f(window,"scroll",x),o("change",!0)):n.top>e.offsetTop&&"top"===h.value&&g.value&&(g.value=!1,s.value=null,o("change",!1)),n.top+e.offsetBottom+i>l&&"bottom"===h.value&&!g.value?(g.value=!0,s.value={bottom:"".concat(window.innerHeight-t.bottom+e.offsetBottom,"px"),left:"".concat(t.left+n.left,"px"),width:"".concat(p.value,"px")},r.value!==window&&f(window,"scroll",x),o("change",!0)):n.top+e.offsetBottom+i<l&&"bottom"===h.value&&g.value&&(g.value=!1,s.value=null,o("change",!1))};return(0,i.onBeforeUnmount)((function(){v(r.value,"scroll",b),v(r.value,"resize",b),v(window,"scroll",x)})),function(){var e;return(0,i.createVNode)("div",{ref:u},[(0,i.createVNode)("div",{ref:a,class:w.value,style:m.value},[null===(e=n.default)||void 0===e?void 0:e.call(n)])])}}}),d=(0,l.withInstall)(s);var p=a.Z;export{p as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/alert/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as t from"vue";import*as s from"../icon";var o={d:(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},r={};o.d(r,{Z:()=>p});const l=(i={PropTypes:()=>e.PropTypes,classes:()=>e.classes,withInstall:()=>e.withInstall},a={},o.d(a,i),a);var i,a;const n=(e=>{var t={};return o.d(t,e),t})({createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,reactive:()=>t.reactive}),c=(e=>{var t={};return o.d(t,e),t})({CloseLine:()=>s.CloseLine,InfoLine:()=>s.InfoLine}),d=(0,n.defineComponent)({name:"Alert",props:{theme:l.PropTypes.theme(["info","success","warning","error"]).def("info"),size:l.PropTypes.string,title:l.PropTypes.string,closable:l.PropTypes.bool.def(!1),closeText:l.PropTypes.string,showIcon:l.PropTypes.bool.def(!0)},emits:["close"],setup:function(e,t){var s=(0,n.reactive)({visible:!0});return{state:s,handleClose:function(){s.visible=!1,t.emit("close")}}},render:function(){var e,t;if(!this.state.visible)return null;var s,o,r=Boolean(this.closeText),i=(0,l.classes)({"bk-alert-close":!0,"close-text":r,"bk-alert-close-icon":!r}),a=(0,l.classes)((s={"bk-alert":!0},!0,(o="bk-alert-".concat(this.theme))in s?Object.defineProperty(s,o,{value:true,enumerable:!0,configurable:!0,writable:!0}):s[o]=true,s));return(0,n.createVNode)("div",{class:a},[(0,n.createVNode)("div",{class:"bk-alert-wraper"},[this.showIcon&&(0,n.createVNode)(c.InfoLine,{class:"bk-alert-icon-info"},null),(0,n.createVNode)("div",{class:"bk-alert-content"},[(0,n.createVNode)("div",{class:"bk-alert-title"},[this.$slots.title?this.$slots.title():this.title]),(0,n.createVNode)("div",{class:"bk-alert-description"},[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])]),this.closable&&(0,n.createVNode)("span",{class:i,onClick:this.handleClose},[this.closeText?this.closeText:(0,n.createVNode)(c.CloseLine,null,null)])])])}}),p=(0,l.withInstall)(d);var f=r.Z;export{f as default};
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as n from"vue";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n)},o={};t.d(o,{Z:()=>d});const r=(a={PropTypes:()=>e.PropTypes,withInstall:()=>e.withInstall},u={},t.d(u,a),u);var a,u;const i=(e=>{var n={};return t.d(n,e),n})({computed:()=>n.computed,createVNode:()=>n.createVNode,defineComponent:()=>n.defineComponent,onBeforeUnmount:()=>n.onBeforeUnmount,onMounted:()=>n.onMounted,ref:()=>n.ref,watch:()=>n.watch}),c=(0,i.defineComponent)({name:"AnimateNumber",props:{value:r.PropTypes.number.def(0),digits:r.PropTypes.number.def(0)},setup:function(e){var n=-1,t=(0,i.ref)(0),o=(0,i.computed)((function(){return Number(t.value).toFixed(e.digits)})),r=function(o,r){if(Number.isNaN(+r))return 0;var a=Math.abs(r-o),u=r-o>0?1:-1,i=Math.ceil(a/30*Math.pow(10,e.digits))/Math.pow(10,e.digits),c=25/Math.ceil(a/i),d=1;!function e(){if(d<c)return n=requestAnimationFrame(e),void(d+=1);t.value+=i*u,(1===u?t.value<r:t.value>r)?(n=requestAnimationFrame(e),d=1):t.value=r}()};return(0,i.watch)((function(){return e.value}),(function(e,n){r(n,e)})),(0,i.onMounted)((function(){r(0,e.value)})),(0,i.onBeforeUnmount)((function(){cancelAnimationFrame(n)})),function(){return(0,i.createVNode)("span",null,[o.value])}}}),d=(0,r.withInstall)(c);var f=o.Z;export{f as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/backtop/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as t from"vue";import*as o from"lodash";import*as n from"../icon";var r={d:(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},a={};r.d(a,{Z:()=>p});const l=(i={PropTypes:()=>e.PropTypes,bkZIndexManager:()=>e.bkZIndexManager,withInstall:()=>e.withInstall},u={},r.d(u,i),u);var i,u;const d=(e=>{var t={};return r.d(t,e),t})({Transition:()=>t.Transition,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,onBeforeUnmount:()=>t.onBeforeUnmount,onMounted:()=>t.onMounted,ref:()=>t.ref,watch:()=>t.watch}),s=(e=>{var t={};return r.d(t,e),t})({throttle:()=>o.throttle}),c=(e=>{var t={};return r.d(t,e),t})({AngleUp:()=>n.AngleUp}),f=(0,d.defineComponent)({name:"Backtop",props:{visibilityHeight:l.PropTypes.number.def(200),target:l.PropTypes.string.def(""),right:l.PropTypes.number.def(40),bottom:l.PropTypes.number.def(40),extCls:l.PropTypes.string.def("")},setup:function(e,t){var o=t.slots,n=(0,d.ref)(null),r=(0,d.ref)(null),a=(0,d.ref)(!1),i=(0,d.ref)(l.bkZIndexManager.getModalNextIndex()),u="".concat(e.bottom,"px"),f="".concat(e.right,"px"),p=(0,s.throttle)((function(){a.value=r.value.scrollTop>=e.visibilityHeight}),30),v=function(){r.value.scrollTo({top:0,behavior:"smooth"})};return(0,d.watch)((function(){return a}),(function(){i.value=l.bkZIndexManager.getModalNextIndex()})),(0,d.onMounted)((function(){if(n.value=document,r.value=document.documentElement,e.target){if(r.value=document.querySelector(e.target),!r.value)throw new Error("target does not exist");n.value=r.value}n.value.addEventListener("scroll",p)})),(0,d.onBeforeUnmount)((function(){n.value.removeEventListener("scroll",p)})),function(){var t,n;return(0,d.createVNode)(d.Transition,{name:"bk-fade"},{default:function(){return[a.value?(0,d.createVNode)("div",{class:"bk-backtop ".concat(e.extCls),style:{right:f,bottom:u,zIndex:i.value},onClick:v},[null!==(n=null===(t=o.default)||void 0===t?void 0:t.call(o))&&void 0!==n?n:(0,d.createVNode)(c.AngleUp,{style:{fontSize:"14px"}},null)]):""]}})}}}),p=(0,l.withInstall)(f);var v=a.Z;export{v as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/badge/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as t from"vue";var o={d:(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};o.d(s,{Z:()=>l});const r=(n={PropTypes:()=>e.PropTypes,classes:()=>e.classes,withInstall:()=>e.withInstall},i={},o.d(i,n),i);var n,i;function a(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const p=(e=>{var t={};return o.d(t,e),t})({computed:()=>t.computed,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent}),d=(0,p.defineComponent)({name:"Badge",props:{theme:r.PropTypes.string.def("primary"),count:r.PropTypes.oneOfType([String,Number]).def(1),position:r.PropTypes.string.def("top-right"),radius:r.PropTypes.string,valLength:r.PropTypes.number.def(3),overflowCount:r.PropTypes.number.def(99),dot:r.PropTypes.bool.def(!1),visible:r.PropTypes.bool.def(!1),extCls:r.PropTypes.string},emits:["hover","leave"],setup:function(e,t){var o=t.emit;return{numberCount:(0,p.computed)((function(){if("string"==typeof e.count){var t=e.count,o=[],s=0;return(t+="").split("").forEach((function(t){s<Number(e.valLength)&&(s+=/[\u4e00-\u9fa5]/.test(t)?2:1,o.push(t))})),o.join("")}return e.count>e.overflowCount?"".concat(e.overflowCount,"+"):e.count})),handleHover:function(){o("hover")},handleLeave:function(){o("leave")},radiusStyle:(0,p.computed)((function(){return{borderRadius:void 0!==e.radius&&/^\d+(%|px|em|rem|vh|vw)?$/.test(e.radius)&&/^\d+$/.test(e.radius)&&"".concat(e.radius,"px")||e.radius}}))}},render:function(){var e,t,o,s,n,i,d,l=(0,r.classes)({"bk-badge-main":!0},this.$props.extCls),u=(0,r.classes)((a(e={},"bk-badge bk-".concat(this.$props.theme),!!this.$props.theme),a(e,"pinned ",this.$slots.default),a(e,"dot",this.$props.dot),a(e,"".concat(this.$props.position),this.$slots.default),a(e,"bk-badge-icon is-icon",this.$slots.icon),e),""),c=this.$props.dot?"":(0,p.createVNode)("span",null,[this.numberCount]);return(0,p.createVNode)("div",{class:l},[null!==(s=null===(o=(t=this.$slots).default)||void 0===o?void 0:o.call(t))&&void 0!==s?s:"",this.$props.visible?"":(0,p.createVNode)("span",{class:u,style:this.radiusStyle,onMouseenter:this.handleHover,onMouseleave:this.handleLeave},[null!==(d=null===(i=(n=this.$slots).icon)||void 0===i?void 0:i.call(n))&&void 0!==d?d:c])])}}),l=(0,r.withInstall)(d);var u=s.Z;export{u as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/breadcrumb/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as r from"vue";import*as o from"../icon";var t={d:(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r)},a={};t.d(a,{e$:()=>u,G7:()=>d,ZP:()=>b});const n=(s={PropTypes:()=>e.PropTypes,classes:()=>e.classes,withInstallProps:()=>e.withInstallProps},c={},t.d(c,s),c);var s,c;const l=(e=>{var r={};return t.d(r,e),r})({createVNode:()=>r.createVNode,defineComponent:()=>r.defineComponent,getCurrentInstance:()=>r.getCurrentInstance,inject:()=>r.inject,onMounted:()=>r.onMounted,provide:()=>r.provide}),p=(e=>{var r={};return t.d(r,e),r})({ArrowsLeft:()=>o.ArrowsLeft}),i=(0,l.defineComponent)({name:"Breadcrumb",props:{extCls:n.PropTypes.string,separator:n.PropTypes.string.def("/"),separatorClass:n.PropTypes.string,replace:n.PropTypes.bool,backRouter:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object]).def("")},setup:function(e,r){var o=r.slots,t=(0,l.getCurrentInstance)(),a=t.proxy,s=t.appContext;(0,l.provide)("breadcrumb",e),(0,l.onMounted)((function(){var e=a.$el.querySelectorAll(".bk-breadcrumb-item");e.length&&e[e.length-1].setAttribute("aria-current","page")}));var c=(0,n.classes)({"bk-breadcrumb":!0},"".concat(e.extCls||"")),i=function(){var r=e.backRouter,o=e.replace,t=s.config.globalProperties.$router;t&&(o?t.replace(r):t.push(r))};return function(){var r;return(0,l.createVNode)("div",{class:c,"aria-label":"Breadcrumb",role:"navigation"},[!o.prefix&&e.backRouter?(0,l.createVNode)("div",{class:"bk-breadcrumb-goback"},[(0,l.createVNode)(p.ArrowsLeft,{onClick:i},null)]):"",o.prefix?(0,l.createVNode)("div",{class:"bk-breadcrumb-goback"},[o.prefix()]):"",null===(r=o.default)||void 0===r?void 0:r.call(o)])}}}),d=(0,l.defineComponent)({name:"BreadcrumbItem",props:{extCls:n.PropTypes.string,to:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object]).def(""),replace:n.PropTypes.bool},setup:function(e,r){var o=r.slots,t=(0,l.getCurrentInstance)().appContext,a=(0,l.inject)("breadcrumb"),s=t.config.globalProperties.$router,c=function(){var r=e.to,o=e.replace;r&&s&&(o?s.replace(r):s.push(r))},p=(0,n.classes)({"bk-breadcrumb-item":!0},"".concat(e.extCls||""));return function(){var r,t;return(0,l.createVNode)("span",{class:p},[(0,l.createVNode)("span",{ref:"link",class:"bk-breadcrumb-item-inner ".concat(e.to?"is-link":""),role:"link",onClick:c},[null===(r=null==o?void 0:o.default)||void 0===r?void 0:r.call(o)]),(null==o?void 0:o.separator)?null===(t=null==o?void 0:o.separator)||void 0===t?void 0:t.call(o):(null==a?void 0:a.separatorClass)?(0,l.createVNode)("i",{class:"bk-breadcrumb-separator ".concat(a.separatorClass)},null):(0,l.createVNode)("span",{class:"bk-breadcrumb-separator",role:"presentation"},[null==a?void 0:a.separator])])}}});var u=(0,n.withInstallProps)(i,{Item:d});const b=u;var m=a.e$,v=a.G7,f=a.ZP;export{m as BkBreadcrumb,v as BkBreadcrumbItem,f as default};
|
package/lib/button/button.css
CHANGED
@@ -269,6 +269,9 @@
|
|
269
269
|
background-color: white;
|
270
270
|
border-color: #c4c6cc;
|
271
271
|
}
|
272
|
+
.bk-button-group .bk-button.is-disabled {
|
273
|
+
color: #c4c6cc;
|
274
|
+
}
|
272
275
|
.bk-button-group .bk-button:first-child {
|
273
276
|
border-radius: 2px 0 0 2px;
|
274
277
|
}
|
@@ -286,3 +289,9 @@
|
|
286
289
|
background-color: white;
|
287
290
|
border-color: #3a84ff;
|
288
291
|
}
|
292
|
+
.bk-button-group .bk-button.is-selected:not(.is-disabled) {
|
293
|
+
background-color: #e1ecff;
|
294
|
+
}
|
295
|
+
.bk-button-group .bk-button.is-selected.is-disabled {
|
296
|
+
background-color: #f0f1f5;
|
297
|
+
}
|
package/lib/button/button.d.ts
CHANGED
@@ -57,6 +57,9 @@ declare const buttonProps: {
|
|
57
57
|
text: import("vue-types").VueTypeValidableDef<boolean> & {
|
58
58
|
default: boolean;
|
59
59
|
};
|
60
|
+
selected: import("vue-types").VueTypeValidableDef<boolean> & {
|
61
|
+
default: boolean;
|
62
|
+
};
|
60
63
|
nativeType: {
|
61
64
|
type: IButtonNativeType;
|
62
65
|
default: string;
|
@@ -95,6 +98,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
95
98
|
text: import("vue-types").VueTypeValidableDef<boolean> & {
|
96
99
|
default: boolean;
|
97
100
|
};
|
101
|
+
selected: import("vue-types").VueTypeValidableDef<boolean> & {
|
102
|
+
default: boolean;
|
103
|
+
};
|
98
104
|
nativeType: {
|
99
105
|
type: IButtonNativeType;
|
100
106
|
default: string;
|
@@ -131,6 +137,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
131
137
|
text: import("vue-types").VueTypeValidableDef<boolean> & {
|
132
138
|
default: boolean;
|
133
139
|
};
|
140
|
+
selected: import("vue-types").VueTypeValidableDef<boolean> & {
|
141
|
+
default: boolean;
|
142
|
+
};
|
134
143
|
nativeType: {
|
135
144
|
type: IButtonNativeType;
|
136
145
|
default: string;
|
@@ -149,6 +158,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
149
158
|
loading: boolean;
|
150
159
|
hoverTheme: string;
|
151
160
|
iconRight: string;
|
161
|
+
selected: boolean;
|
152
162
|
nativeType: "button" | "reset" | "submit";
|
153
163
|
}>;
|
154
164
|
export default _default;
|
package/lib/button/button.less
CHANGED
@@ -182,10 +182,13 @@
|
|
182
182
|
background-color: @white-color;
|
183
183
|
border-color: @light-gray;
|
184
184
|
}
|
185
|
+
|
186
|
+
&.is-disabled {
|
187
|
+
color: @light-gray;
|
188
|
+
}
|
185
189
|
|
186
190
|
&:first-child {
|
187
191
|
border-radius: @btnBorderRadius 0 0 @btnBorderRadius;
|
188
|
-
|
189
192
|
}
|
190
193
|
|
191
194
|
&:last-child {
|
@@ -205,5 +208,13 @@
|
|
205
208
|
border-color: @primary-color;
|
206
209
|
}
|
207
210
|
|
211
|
+
&.is-selected:not(.is-disabled) {
|
212
|
+
background-color: @button-selected-bg-color;
|
213
|
+
}
|
214
|
+
|
215
|
+
&.is-selected.is-disabled {
|
216
|
+
background-color: @button-disabled-selected-bg-color;
|
217
|
+
}
|
218
|
+
|
208
219
|
}
|
209
220
|
}
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
@@ -368,6 +371,9 @@
|
|
368
371
|
background-color: var(--white-color);
|
369
372
|
border-color: var(--light-gray);
|
370
373
|
}
|
374
|
+
.bk-button-group .bk-button.is-disabled {
|
375
|
+
color: var(--light-gray);
|
376
|
+
}
|
371
377
|
.bk-button-group .bk-button:first-child {
|
372
378
|
border-radius: 2px 0 0 2px;
|
373
379
|
}
|
@@ -385,3 +391,9 @@
|
|
385
391
|
background-color: var(--white-color);
|
386
392
|
border-color: var(--primary-color);
|
387
393
|
}
|
394
|
+
.bk-button-group .bk-button.is-selected:not(.is-disabled) {
|
395
|
+
background-color: var(--button-selected-bg-color);
|
396
|
+
}
|
397
|
+
.bk-button-group .bk-button.is-selected.is-disabled {
|
398
|
+
background-color: var(--button-disabled-selected-bg-color);
|
399
|
+
}
|
package/lib/button/index.d.ts
CHANGED
@@ -14,6 +14,7 @@ declare const BkButton: {
|
|
14
14
|
loading: boolean;
|
15
15
|
hoverTheme: string;
|
16
16
|
iconRight: string;
|
17
|
+
selected: boolean;
|
17
18
|
nativeType: "button" | "reset" | "submit";
|
18
19
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
19
20
|
theme: import("vue-types").VueTypeDef<string> & {
|
@@ -47,6 +48,9 @@ declare const BkButton: {
|
|
47
48
|
text: import("vue-types").VueTypeValidableDef<boolean> & {
|
48
49
|
default: boolean;
|
49
50
|
};
|
51
|
+
selected: import("vue-types").VueTypeValidableDef<boolean> & {
|
52
|
+
default: boolean;
|
53
|
+
};
|
50
54
|
nativeType: {
|
51
55
|
type: ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit")) | ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit"))[];
|
52
56
|
default: string;
|
@@ -54,7 +58,7 @@ declare const BkButton: {
|
|
54
58
|
}>> & {
|
55
59
|
onClick?: (...args: any[]) => any;
|
56
60
|
onMouseover?: (...args: any[]) => any;
|
57
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "text" | "disabled" | "theme" | "size" | "icon" | "outline" | "loading" | "hoverTheme" | "iconRight" | "nativeType">;
|
61
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "text" | "disabled" | "theme" | "size" | "icon" | "outline" | "loading" | "hoverTheme" | "iconRight" | "selected" | "nativeType">;
|
58
62
|
$attrs: {
|
59
63
|
[x: string]: unknown;
|
60
64
|
};
|
@@ -100,6 +104,9 @@ declare const BkButton: {
|
|
100
104
|
text: import("vue-types").VueTypeValidableDef<boolean> & {
|
101
105
|
default: boolean;
|
102
106
|
};
|
107
|
+
selected: import("vue-types").VueTypeValidableDef<boolean> & {
|
108
|
+
default: boolean;
|
109
|
+
};
|
103
110
|
nativeType: {
|
104
111
|
type: ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit")) | ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit"))[];
|
105
112
|
default: string;
|
@@ -118,6 +125,7 @@ declare const BkButton: {
|
|
118
125
|
loading: boolean;
|
119
126
|
hoverTheme: string;
|
120
127
|
iconRight: string;
|
128
|
+
selected: boolean;
|
121
129
|
nativeType: "button" | "reset" | "submit";
|
122
130
|
}> & {
|
123
131
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -171,6 +179,9 @@ declare const BkButton: {
|
|
171
179
|
text: import("vue-types").VueTypeValidableDef<boolean> & {
|
172
180
|
default: boolean;
|
173
181
|
};
|
182
|
+
selected: import("vue-types").VueTypeValidableDef<boolean> & {
|
183
|
+
default: boolean;
|
184
|
+
};
|
174
185
|
nativeType: {
|
175
186
|
type: ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit")) | ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit"))[];
|
176
187
|
default: string;
|
@@ -214,6 +225,9 @@ declare const BkButton: {
|
|
214
225
|
text: import("vue-types").VueTypeValidableDef<boolean> & {
|
215
226
|
default: boolean;
|
216
227
|
};
|
228
|
+
selected: import("vue-types").VueTypeValidableDef<boolean> & {
|
229
|
+
default: boolean;
|
230
|
+
};
|
217
231
|
nativeType: {
|
218
232
|
type: ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit")) | ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit"))[];
|
219
233
|
default: string;
|
@@ -232,6 +246,7 @@ declare const BkButton: {
|
|
232
246
|
loading: boolean;
|
233
247
|
hoverTheme: string;
|
234
248
|
iconRight: string;
|
249
|
+
selected: boolean;
|
235
250
|
nativeType: "button" | "reset" | "submit";
|
236
251
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
|
237
252
|
ButtonGroup: import("vue").DefineComponent<{
|
package/lib/button/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as o from"vue";import*as t from"../loading";var n={d:(e,o)=>{for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},r={};n.d(r,{if:()=>f,um:()=>v,ZP:()=>g});const a=(i={PropTypes:()=>e.PropTypes,classes:()=>e.classes,withInstallProps:()=>e.withInstallProps},s={},n.d(s,i),s);var i,s;function l(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}const u=(e=>{var o={};return n.d(o,e),o})({computed:()=>o.computed,createVNode:()=>o.createVNode,defineComponent:()=>o.defineComponent,mergeProps:()=>o.mergeProps,ref:()=>o.ref}),d=(e=>{var o={};return n.d(o,e),o})({BkLoadingMode:()=>t.BkLoadingMode,BkLoadingSize:()=>t.BkLoadingSize,default:()=>t.default});var c=["","small","large"],p={theme:a.PropTypes.theme().def(""),hoverTheme:a.PropTypes.theme(["primary","warning","success","danger"]).def(""),size:a.PropTypes.size(c).def(""),title:a.PropTypes.string,icon:a.PropTypes.string,iconRight:a.PropTypes.string,disabled:a.PropTypes.bool,loading:a.PropTypes.bool,loadingMode:a.PropTypes.commonType(Object.values(d.BkLoadingMode)),outline:a.PropTypes.bool,text:a.PropTypes.bool,selected:a.PropTypes.bool,nativeType:{type:String,default:"button"}};const m=(0,u.defineComponent)({name:"Button",props:p,emits:["click","mouseover"],setup:function(e,o){var t,n=o.slots,r=o.attrs,i=o.emit,s=(0,u.ref)(!1),p=null!==(t=n.default)&&void 0!==t&&t,m="bk-button",v=(0,u.computed)((function(){return e.text&&!e.hoverTheme})),f=(0,u.computed)((function(){var o,t=e.hoverTheme?"".concat(m,"-hover-").concat(e.hoverTheme):"",n=e.theme?"".concat(m,"-").concat(e.theme):"",r=e.hoverTheme?"":n;return(0,a.classes)((l(o={"is-disabled":e.disabled,"is-outline":e.outline,"is-text":v.value,"is-loading":e.loading,"is-selected":e.selected},"".concat(m,"-").concat(e.size),e.size&&c.includes(e.size)),l(o,"no-slot",!p),o),"".concat(r," ").concat(m," ").concat(t))})),g=(0,u.computed)((function(){return e.text||e.outline||e.hoverTheme?s.value&&!e.text?"white":e.text&&e.disabled?"":e.hoverTheme||e.theme:["","default"].includes(e.theme)?"":"white"})),h=(0,u.computed)((function(){return v.value||e.size===d.BkLoadingSize.Small?d.BkLoadingSize.Mini:d.BkLoadingSize.Small})),b=function(o){e.loading||i("click",o)},P=function(e){s.value=!0,i("mouseover",e)},y=function(){s.value=!1};return function(){var o;return(0,u.createVNode)("button",(0,u.mergeProps)({title:e.title,disabled:e.disabled,class:f.value,type:e.nativeType},r,{onClick:b,onMouseover:P,onMouseleave:y}),[e.loading&&(0,u.createVNode)(d.default,{loading:!0,class:"".concat(m,"-loading"),mode:e.loadingMode,theme:g.value,size:h.value},null),n.default&&(0,u.createVNode)("span",{class:"".concat(m,"-text")},[null===(o=n.default)||void 0===o?void 0:o.call(n)])])}}}),v=(0,u.defineComponent)({name:"ButtonGroup",props:{size:a.PropTypes.size()},setup:function(e,o){var t=(0,u.computed)((function(){return(0,a.classes)(l({},"bk-button-group-".concat(e.size),!!e.size),"bk-button-group")}));return function(){var e,n;return(0,u.createVNode)("div",{class:t.value},[null===(n=(e=o.slots).default)||void 0===n?void 0:n.call(e)])}}});var f=(0,a.withInstallProps)(m,{ButtonGroup:v});const g=f;var h=r.if,b=r.um,P=r.ZP;export{h as BkButton,b as BkButtonGroup,P as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/card/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as t from"vue";import*as o from"../icon";import*as l from"../input";var s={d:(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},i={};s.d(i,{Z:()=>v});const a=(n={PropTypes:()=>e.PropTypes,classes:()=>e.classes,withInstall:()=>e.withInstall},r={},s.d(r,n),r);var n,r;function d(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const c=(e=>{var t={};return s.d(t,e),t})({createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,ref:()=>t.ref,watch:()=>t.watch}),p=(e=>{var t={};return s.d(t,e),t})({AngleDown:()=>o.AngleDown,AngleRight:()=>o.AngleRight,EditLine:()=>o.EditLine}),u=(e=>{var t={};return s.d(t,e),t})({default:()=>l.default}),h=(0,c.defineComponent)({name:"Card",props:{title:a.PropTypes.string,showHeader:a.PropTypes.bool.def(!0),showFooter:a.PropTypes.bool.def(!1),collapseStatus:a.PropTypes.bool.def(!0),border:a.PropTypes.bool.def(!0),disableHeaderStyle:a.PropTypes.bool.def(!1),position:a.PropTypes.string.def("left"),isEdit:a.PropTypes.bool.def(!1),isCollapse:a.PropTypes.bool.def(!1)},emits:["update:collapseStatus","edit"],setup:function(e,t){var o=t.emit,l=(0,c.ref)(!0),s=(0,c.ref)(!1),i=(0,c.ref)("");return(0,c.watch)((function(){return e.collapseStatus}),(function(t){e.isCollapse&&(l.value=t)}),{immediate:!0}),(0,c.watch)((function(){return e.title}),(function(e){i.value=e}),{immediate:!0}),{collapseActive:l,showInput:s,renderTitle:i,handleCollapse:function(){e.isCollapse&&(l.value=!l.value,o("update:collapseStatus",l.value))},saveEdit:function(){s.value=!s.value,o("edit",i)},clickEdit:function(){s.value=!s.value}}},render:function(){var e,t,o,l,s,i,n,r,h,v,f,m,b,w,y=this,T="bk-card",V=(0,a.classes)((d(e={},"".concat(T),!0),d(e,"".concat(T,"-border-none"),!this.$props.border),e),""),g=(0,a.classes)((d(t={},"".concat(T,"-head"),!0),d(t,"".concat(T,"-head-").concat(this.$props.position),this.$props.isCollapse&&this.$props.position),d(t,"no-line-height",this.$props.disableHeaderStyle),d(t,"collapse",!this.collapseActive),t),""),C=(0,c.createVNode)("div",{class:"title",title:this.renderTitle},[this.showInput?(0,c.createVNode)(u.default,{class:"".concat(T,"-input"),modelValue:y.renderTitle,"onUpdate:modelValue":function(e){return y.renderTitle=e},onBlur:this.saveEdit},null):this.renderTitle]),P=(0,c.createVNode)("span",{class:"".concat(T,"-icon"),onClick:this.handleCollapse},[this.collapseActive?(0,c.createVNode)(p.AngleDown,null,null):(0,c.createVNode)(p.AngleRight,null,null)]);return(0,c.createVNode)("div",{class:V},[this.$props.showHeader?(0,c.createVNode)("div",{class:g},[this.$props.isCollapse&&(null!==(s=null===(l=(o=this.$slots).icon)||void 0===l?void 0:l.call(o))&&void 0!==s?s:P),null!==(r=null===(n=(i=this.$slots).header)||void 0===n?void 0:n.call(i))&&void 0!==r?r:C,this.$props.isEdit&&!this.showInput&&(0,c.createVNode)(p.EditLine,{class:"".concat(T,"-edit"),onClick:this.clickEdit},null)]):"",this.collapseActive?(0,c.createVNode)("div",null,[(0,c.createVNode)("div",{class:"".concat(T,"-body")},[null!==(f=null===(v=(h=this.$slots).default)||void 0===v?void 0:v.call(h))&&void 0!==f?f:"Content"]),this.$props.showFooter?(0,c.createVNode)("div",{class:"".concat(T,"-footer")},[null!==(w=null===(b=(m=this.$slots).footer)||void 0===b?void 0:b.call(m))&&void 0!==w?w:"Footer"]):""]):""])}}),v=(0,a.withInstall)(h);var f=i.Z;export{f as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|