bkui-vue 0.0.1-beta.187 → 0.0.1-beta.188
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 +48 -48
- package/dist/index.esm.js +231 -61
- package/dist/index.umd.js +47 -47
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/dialog/dialog.css +3 -3
- package/lib/dialog/dialog.less +1 -3
- package/lib/dialog/dialog.variable.css +3 -3
- package/lib/info-box/index.css +2 -0
- package/lib/info-box/index.d.ts +1 -1
- package/lib/info-box/index.js +1 -1
- package/lib/info-box/index.less +2 -0
- package/lib/info-box/index.variable.css +2 -0
- package/lib/modal/modal.css +2 -0
- package/lib/modal/modal.variable.css +2 -0
- package/lib/table/const.d.ts +12 -3
- package/lib/table/index.d.ts +106 -4
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +38 -0
- package/lib/table/render.d.ts +3 -0
- package/lib/table/table.d.ts +47 -1
- package/lib/table/use-column.d.ts +5 -0
- package/lib/table/use-common.d.ts +16 -0
- package/lib/table-column/index.js +1 -1
- package/package.json +1 -1
package/lib/dialog/dialog.css
CHANGED
@@ -14,6 +14,8 @@
|
|
14
14
|
padding: 24px 24px 0;
|
15
15
|
}
|
16
16
|
.bk-modal-wrapper.bk-info-wrapper .bk-dialog-header .bk-dialog-title {
|
17
|
+
height: 24px;
|
18
|
+
margin-top: 20px;
|
17
19
|
margin-bottom: 20px;
|
18
20
|
}
|
19
21
|
.bk-modal-wrapper.bk-info-wrapper .bk-modal-content {
|
@@ -119,8 +121,6 @@
|
|
119
121
|
.bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-header .bk-dialog-title {
|
120
122
|
display: inline-block;
|
121
123
|
width: 100%;
|
122
|
-
height: 24px;
|
123
|
-
margin-top: 20px;
|
124
124
|
overflow: hidden;
|
125
125
|
color: #313238;
|
126
126
|
text-overflow: ellipsis;
|
@@ -164,7 +164,7 @@
|
|
164
164
|
height: 26px;
|
165
165
|
font-size: 22px;
|
166
166
|
font-weight: 700;
|
167
|
-
line-height:
|
167
|
+
line-height: 23px;
|
168
168
|
color: #979ba5;
|
169
169
|
text-align: center;
|
170
170
|
cursor: pointer;
|
package/lib/dialog/dialog.less
CHANGED
@@ -66,8 +66,6 @@
|
|
66
66
|
.bk-dialog-title {
|
67
67
|
display: inline-block;
|
68
68
|
width: 100%;
|
69
|
-
height: 24px;
|
70
|
-
margin-top: 20px;
|
71
69
|
overflow: hidden;
|
72
70
|
color: #313238;
|
73
71
|
text-overflow: ellipsis;
|
@@ -118,7 +116,7 @@
|
|
118
116
|
height: 26px;
|
119
117
|
font-size: 22px;
|
120
118
|
font-weight: 700;
|
121
|
-
line-height:
|
119
|
+
line-height: 23px;
|
122
120
|
color: #979ba5;
|
123
121
|
text-align: center;
|
124
122
|
cursor: pointer;
|
@@ -14,6 +14,8 @@
|
|
14
14
|
padding: 24px 24px 0;
|
15
15
|
}
|
16
16
|
.bk-modal-wrapper.bk-info-wrapper .bk-dialog-header .bk-dialog-title {
|
17
|
+
height: 24px;
|
18
|
+
margin-top: 20px;
|
17
19
|
margin-bottom: 20px;
|
18
20
|
}
|
19
21
|
.bk-modal-wrapper.bk-info-wrapper .bk-modal-content {
|
@@ -119,8 +121,6 @@
|
|
119
121
|
.bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-header .bk-dialog-title {
|
120
122
|
display: inline-block;
|
121
123
|
width: 100%;
|
122
|
-
height: 24px;
|
123
|
-
margin-top: 20px;
|
124
124
|
overflow: hidden;
|
125
125
|
color: #313238;
|
126
126
|
text-overflow: ellipsis;
|
@@ -164,7 +164,7 @@
|
|
164
164
|
height: 26px;
|
165
165
|
font-size: 22px;
|
166
166
|
font-weight: 700;
|
167
|
-
line-height:
|
167
|
+
line-height: 23px;
|
168
168
|
color: #979ba5;
|
169
169
|
text-align: center;
|
170
170
|
cursor: pointer;
|
package/lib/info-box/index.css
CHANGED
package/lib/info-box/index.d.ts
CHANGED
@@ -6,7 +6,7 @@ export interface ModalFuncProps {
|
|
6
6
|
title?: string | (() => VNode | string) | VNode;
|
7
7
|
subTitle?: string | (() => VNode) | VNode;
|
8
8
|
confirmText?: string | (() => VNode) | VNode;
|
9
|
-
cancelText?:
|
9
|
+
cancelText?: string | (() => VNode) | VNode;
|
10
10
|
onConfirm?: (...args: any[]) => any;
|
11
11
|
onClosed?: (...args: any[]) => any;
|
12
12
|
boundary?: HTMLElement;
|
package/lib/info-box/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"),require("../button"),require("../icon"),require("../modal"),require("../shared"));else if("function"==typeof define&&define.amd)define(["vue","../button","../icon","../modal","../shared"],t);else{var n="object"==typeof exports?t(require("vue"),require("../button"),require("../icon"),require("../modal"),require("../shared")):t(e.vue,e["../button"],e["../icon"],e["../modal"],e["../shared"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n,o,r)=>(()=>{var i={7162:(e,t,n)=>{e.exports=n(5047)},5047:e=>{var t=function(e){"use strict";var t,n=Object.prototype,o=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var r=t&&t.prototype instanceof y?t:y,i=Object.create(r.prototype),a=new j(o||[]);return i._invoke=function(e,t,n){var o=f;return function(r,i){if(o===p)throw new Error("Generator is already running");if(o===h){if("throw"===r)throw i;return O()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var c=S(a,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=s(e,t,n);if("normal"===l.type){if(o=n.done?h:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=h,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function y(){}function g(){}function m(){}var b={};l(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==n&&o.call(x,i)&&(b=x);var T=m.prototype=y.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function n(r,i,a,c){var l=s(e[r],e,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,c)}))}c(l.arg)}var r;this._invoke=function(e,o){function i(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(i,i):i()}}function S(e,n){var o=e.iterator[n.method];if(o===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var r=s(o,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,v;var i=r.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function P(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(o.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:O}}function O(){return{value:t,done:!0}}return g.prototype=m,l(T,"constructor",m),l(m,"constructor",g),g.displayName=l(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,c,"GeneratorFunction")),e.prototype=Object.create(T),e},e.awrap=function(e){return{__await:e}},k(N.prototype),l(N.prototype,a,(function(){return this})),e.AsyncIterator=N,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new N(u(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(T),l(T,c,"Generator"),l(T,i,(function(){return this})),l(T,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},e.values=P,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(o,r){return c.type="throw",c.arg=e,n.next=o,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={iterator:P(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},4976:e=>{"use strict";e.exports=t},6870:e=>{"use strict";e.exports=n},8014:e=>{"use strict";e.exports=o},4212:e=>{"use strict";e.exports=r},748:t=>{"use strict";t.exports=e}},a={};function c(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e](n,n.exports,c),n.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}c.r(l),c.d(l,{default:()=>v});var t=c(7162),n=c.n(t);function o(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function c(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}l((o=o.apply(e,t||[])).next())}))}Object.create,Object.create;var r=c(748),i=c(4976),a=c.n(i),u=c(6870),s=c(8014),f=c.n(s),d=c(4212);const p=Object.assign(Object.assign({},s.propsMixin),{width:d.PropTypes.oneOfType([String,Number]).def(""),height:d.PropTypes.oneOfType([String,Number]).def(""),confirmText:d.PropTypes.string.def("确定"),cancelText:d.PropTypes.string.def("取消"),prevText:d.PropTypes.string.def("上一步"),nextText:d.PropTypes.string.def("下一步"),current:d.PropTypes.number.def(1),totalStep:d.PropTypes.number,title:d.PropTypes.string.def("title"),headerAlign:d.PropTypes.commonType(["left","center","right"],"headerAlign").def("left"),footerAlign:d.PropTypes.commonType(["left","center","right"],"footerAlign").def("right"),theme:d.PropTypes.commonType(["primary","warning","success","danger"],"theme").def("primary"),dialogType:d.PropTypes.commonType(["show","operation","confirm","process"],"dialogType").def("operation"),isLoading:d.PropTypes.bool.def(!1)}),h=(0,r.defineComponent)({name:"Dialog",components:{BkModal:f(),BkButton:a()},props:p,emits:["closed","update:isShow","confirm","prev","next","value-change"],setup:function(e,t){var n=t.emit,o=(0,r.reactive)({positionX:0,positionY:0,moveStyle:{top:"",left:""}});(0,r.onMounted)((function(){e.escClose&&addEventListener("keydown",a)})),(0,r.onBeforeUnmount)((function(){e.escClose&&removeEventListener("keydown",a)})),(0,r.watch)((function(){return e.isShow}),(function(e){e||setTimeout((function(){o.moveStyle={top:"50%",left:"50%"},o.positionX=0,o.positionY=0}),250),n("value-change",e)}));var i=function(){n("update:isShow",!1),n("closed")},a=function(t){e.isShow&&e.closeIcon&&27===t.keyCode&&i()};return{data:o,handleClose:i,handleConfirm:function(){n("update:isShow",!1),n("confirm")},escCloseHandler:a,moveHandler:function(t){if(e.fullscreen)return!1;if(!e.draggable)return!1;var n,r,i=t.target,a=t.currentTarget.parentNode.parentNode.offsetHeight,c=t.currentTarget.parentNode.parentNode.offsetWidth;0!==o.positionX&&0!==o.positionY?(n=t.clientX-o.positionX,r=t.clientY-o.positionY):(n=t.clientX-i.offsetLeft,r=t.clientY-i.offsetTop),document.onmousemove=function(e){var t=window.innerWidth-c,i=window.innerHeight-a,l=e.clientX-n,u=e.clientY-r;t/2-l<=0?l=t/2:t/2+l<=0&&(l=-t/2),i/2-u<=0?u=i/2:i/2+u<=0&&(u=-i/2),o.positionX=l,o.positionY=u,o.moveStyle.left="calc(50% + ".concat(l,"px)"),o.moveStyle.top="calc(50% + ".concat(u,"px)")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}},handlePrevStep:function(){n("prev")},handleNextStep:function(){n("next")},handleQuickClose:function(t){var n;e.quickClose&&(t.onclick=function(e){return n=e.target},t.parentNode.onclick=function(e){n!==e.target&&i()})}}},render:function(){var e,t=this,n={header:function(){var e,n,o,i,a,c;return[(0,r.createVNode)("div",{class:["bk-dialog-tool",t.fullscreen||!t.draggable?"":"move",t.draggable?"content-dragging":""],onMousedown:t.moveHandler},[null!==(o=null===(n=(e=t.$slots).tools)||void 0===n?void 0:n.call(e))&&void 0!==o?o:""]),(0,r.createVNode)("div",{class:"bk-dialog-header"},[(0,r.createVNode)("div",{class:"bk-header-icon"},[t.infoType?{loading:(0,r.createVNode)(u.Spinner,{class:"bk-info-icon primary"},null),warning:(0,r.createVNode)(u.Warn,{class:"bk-info-icon warning"},null),success:(0,r.createVNode)(u.Success,{class:"bk-info-icon success"},null),danger:(0,r.createVNode)(u.Close,{class:"bk-info-icon danger"},null)}[t.infoType]:(0,r.createVNode)("slot",{name:"info-icon"},null)]),(0,r.createVNode)("span",{class:"bk-dialog-title",style:"text-align: ".concat(t.headerAlign)},[null!==(c=null===(a=(i=t.$slots).header)||void 0===a?void 0:a.call(i))&&void 0!==c?c:t.title])])]},default:function(){var e,n,o;return null!==(o=null===(n=(e=t.$slots).default)||void 0===n?void 0:n.call(e))&&void 0!==o?o:"default"},footer:function(){var e,n,o,i,c,l,u,s,f;return(0,r.createVNode)("div",{class:"bk-dialog-footer",style:"text-align: ".concat(t.footerAlign)},["process"===t.dialogType?null!==(o=null===(n=(e=t.$slots).footer)||void 0===n?void 0:n.call(e))&&void 0!==o?o:(0,r.createVNode)(r.Fragment,null,[1===t.current?"":(0,r.createVNode)(a(),{class:"bk-dialog-perv",onClick:t.handlePrevStep},{default:function(){return[t.prevText]}}),t.current===t.totalStep?"":(0,r.createVNode)(a(),{class:"bk-dialog-next",onClick:t.handleNextStep},{default:function(){return[t.nextText]}}),t.current===t.totalStep?(0,r.createVNode)(a(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.confirmText]}}):"",(0,r.createVNode)(a(),{class:"bk-dialog-cancel",onClick:t.handleClose,disabled:t.isLoading},{default:function(){return[t.cancelText]}})]):"","operation"===t.dialogType?null!==(l=null===(c=(i=t.$slots).footer)||void 0===c?void 0:c.call(i))&&void 0!==l?l:(0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)(a(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.confirmText]}}),(0,r.createVNode)(a(),{class:"bk-dialog-cancel",onClick:t.handleClose,disabled:t.isLoading},{default:function(){return[t.cancelText]}})]):"","confirm"===t.dialogType?null!==(f=null===(s=(u=t.$slots).footer)||void 0===s?void 0:s.call(u))&&void 0!==f?f:(0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)(a(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.confirmText]}})]):""])},close:function(){return(0,r.createVNode)("span",{class:"bk-dialog-close",onClick:t.handleClose},[(0,r.createTextVNode)("+")])}},o="bk-dialog-wrapper ".concat(this.scrollable?"scroll-able":""," ").concat(this.multiInstance?"multi-instance":"");return(0,r.createVNode)(f(),(0,r.mergeProps)(this.$props,{class:o,style:this.data.moveStyle,onQuickClose:this.handleQuickClose}),"function"==typeof(e=n)||"[object Object]"===Object.prototype.toString.call(e)&&!(0,r.isVNode)(e)?n:{default:function(){return[n]}})}}),v=function(t){var i=document.createElement("div"),a=(0,r.ref)(!1),c=(0,r.shallowRef)(t),l=(0,r.defineComponent)({name:"DialogConfirm",setup:function(t,i){var l=this,u=i.expose;(0,r.onMounted)((function(){(document.activeElement||document.body).blur(),!1!==c.value.isShow&&(a.value=!0)}));var s=function(){return o(l,void 0,void 0,n().mark((function e(){var t,o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=c.value)||void 0===t?void 0:t.onClosed)){e.next=3;break}return e.next=3,null===(o=c.value)||void 0===o?void 0:o.onClosed();case 3:a.value=!1;case 4:case"end":return e.stop()}}),e)})))},f=function(){return o(l,void 0,void 0,n().mark((function e(){var t,o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=c.value)||void 0===t?void 0:t.onConfirm)){e.next=3;break}return e.next=3,null===(o=c.value)||void 0===o?void 0:o.onConfirm();case 3:a.value=!1;case 4:case"end":return e.stop()}}),e)})))};return u({update:function(e){c.value=e}}),function(){return(0,r.createVNode)(h,Object.assign(Object.assign({headerAlign:"center",footerAlign:"center"},c.value),{isShow:a.value,onClosed:s,onConfirm:f}),[(0,r.h)("div",{class:"bk-info-sub-title",style:"text-Align:".concat(c.value.contentAlign||"center")},c.value.subTitle?"function"===e(c.value.subTitle)?c.value.subTitle():c.value.subTitle:"")])}}}),u=(0,r.createApp)(l).mount(i),s={show:function(){a.value=!0},hide:function(){a.value=!1},update:function(e){u.update(e)}};return s}})(),l})()));
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"),require("../button"),require("../icon"),require("../modal"),require("../shared"));else if("function"==typeof define&&define.amd)define(["vue","../button","../icon","../modal","../shared"],t);else{var n="object"==typeof exports?t(require("vue"),require("../button"),require("../icon"),require("../modal"),require("../shared")):t(e.vue,e["../button"],e["../icon"],e["../modal"],e["../shared"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n,o,r)=>(()=>{var i={7162:(e,t,n)=>{e.exports=n(5047)},5047:e=>{var t=function(e){"use strict";var t,n=Object.prototype,o=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var r=t&&t.prototype instanceof y?t:y,i=Object.create(r.prototype),a=new j(o||[]);return i._invoke=function(e,t,n){var o=f;return function(r,i){if(o===p)throw new Error("Generator is already running");if(o===h){if("throw"===r)throw i;return O()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var c=S(a,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=s(e,t,n);if("normal"===l.type){if(o=n.done?h:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=h,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function y(){}function g(){}function m(){}var b={};l(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==n&&o.call(x,i)&&(b=x);var T=m.prototype=y.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function n(r,i,a,c){var l=s(e[r],e,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,c)}))}c(l.arg)}var r;this._invoke=function(e,o){function i(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(i,i):i()}}function S(e,n){var o=e.iterator[n.method];if(o===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var r=s(o,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,v;var i=r.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function P(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(o.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:O}}function O(){return{value:t,done:!0}}return g.prototype=m,l(T,"constructor",m),l(m,"constructor",g),g.displayName=l(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,c,"GeneratorFunction")),e.prototype=Object.create(T),e},e.awrap=function(e){return{__await:e}},k(N.prototype),l(N.prototype,a,(function(){return this})),e.AsyncIterator=N,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new N(u(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(T),l(T,c,"Generator"),l(T,i,(function(){return this})),l(T,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},e.values=P,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(o,r){return c.type="throw",c.arg=e,n.next=o,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={iterator:P(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},4976:e=>{"use strict";e.exports=t},6870:e=>{"use strict";e.exports=n},8014:e=>{"use strict";e.exports=o},4212:e=>{"use strict";e.exports=r},748:t=>{"use strict";t.exports=e}},a={};function c(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e](n,n.exports,c),n.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}c.r(l),c.d(l,{default:()=>v});var t=c(7162),n=c.n(t);function o(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function c(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}l((o=o.apply(e,t||[])).next())}))}Object.create,Object.create;var r=c(748),i=c(4976),a=c.n(i),u=c(6870),s=c(8014),f=c.n(s),d=c(4212);const p=Object.assign(Object.assign({},s.propsMixin),{width:d.PropTypes.oneOfType([String,Number]).def(""),height:d.PropTypes.oneOfType([String,Number]).def(""),confirmText:d.PropTypes.string.def("确定"),cancelText:d.PropTypes.string.def("取消"),prevText:d.PropTypes.string.def("上一步"),nextText:d.PropTypes.string.def("下一步"),current:d.PropTypes.number.def(1),totalStep:d.PropTypes.number,title:d.PropTypes.string.def("title"),headerAlign:d.PropTypes.commonType(["left","center","right"],"headerAlign").def("left"),footerAlign:d.PropTypes.commonType(["left","center","right"],"footerAlign").def("right"),theme:d.PropTypes.commonType(["primary","warning","success","danger"],"theme").def("primary"),dialogType:d.PropTypes.commonType(["show","operation","confirm","process"],"dialogType").def("operation"),isLoading:d.PropTypes.bool.def(!1)}),h=(0,r.defineComponent)({name:"Dialog",components:{BkModal:f(),BkButton:a()},props:p,emits:["closed","update:isShow","confirm","prev","next","value-change"],setup:function(e,t){var n=t.emit,o=(0,r.reactive)({positionX:0,positionY:0,moveStyle:{top:"",left:""}});(0,r.onMounted)((function(){e.escClose&&addEventListener("keydown",a)})),(0,r.onBeforeUnmount)((function(){e.escClose&&removeEventListener("keydown",a)})),(0,r.watch)((function(){return e.isShow}),(function(e){e||setTimeout((function(){o.moveStyle={top:"50%",left:"50%"},o.positionX=0,o.positionY=0}),250),n("value-change",e)}));var i=function(){n("update:isShow",!1),n("closed")},a=function(t){e.isShow&&e.closeIcon&&27===t.keyCode&&i()};return{data:o,handleClose:i,handleConfirm:function(){n("update:isShow",!1),n("confirm")},escCloseHandler:a,moveHandler:function(t){if(e.fullscreen)return!1;if(!e.draggable)return!1;var n,r,i=t.target,a=t.currentTarget.parentNode.parentNode.offsetHeight,c=t.currentTarget.parentNode.parentNode.offsetWidth;0!==o.positionX&&0!==o.positionY?(n=t.clientX-o.positionX,r=t.clientY-o.positionY):(n=t.clientX-i.offsetLeft,r=t.clientY-i.offsetTop),document.onmousemove=function(e){var t=window.innerWidth-c,i=window.innerHeight-a,l=e.clientX-n,u=e.clientY-r;t/2-l<=0?l=t/2:t/2+l<=0&&(l=-t/2),i/2-u<=0?u=i/2:i/2+u<=0&&(u=-i/2),o.positionX=l,o.positionY=u,o.moveStyle.left="calc(50% + ".concat(l,"px)"),o.moveStyle.top="calc(50% + ".concat(u,"px)")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}},handlePrevStep:function(){n("prev")},handleNextStep:function(){n("next")},handleQuickClose:function(t){var n;e.quickClose&&(t.onclick=function(e){return n=e.target},t.parentNode.onclick=function(e){n!==e.target&&i()})}}},render:function(){var e,t=this,n={header:function(){var e,n,o,i,a,c;return[(0,r.createVNode)("div",{class:["bk-dialog-tool",t.fullscreen||!t.draggable?"":"move",t.draggable?"content-dragging":""],onMousedown:t.moveHandler},[null!==(o=null===(n=(e=t.$slots).tools)||void 0===n?void 0:n.call(e))&&void 0!==o?o:""]),(0,r.createVNode)("div",{class:"bk-dialog-header"},[(0,r.createVNode)("div",{class:"bk-header-icon"},[t.infoType?{loading:(0,r.createVNode)(u.Spinner,{class:"bk-info-icon primary"},null),warning:(0,r.createVNode)(u.Warn,{class:"bk-info-icon warning"},null),success:(0,r.createVNode)(u.Success,{class:"bk-info-icon success"},null),danger:(0,r.createVNode)(u.Close,{class:"bk-info-icon danger"},null)}[t.infoType]:(0,r.createVNode)("slot",{name:"info-icon"},null)]),(0,r.createVNode)("span",{class:"bk-dialog-title",style:"text-align: ".concat(t.headerAlign)},[null!==(c=null===(a=(i=t.$slots).header)||void 0===a?void 0:a.call(i))&&void 0!==c?c:t.title])])]},default:function(){var e,n,o;return null!==(o=null===(n=(e=t.$slots).default)||void 0===n?void 0:n.call(e))&&void 0!==o?o:"default"},footer:function(){var e,n,o,i,c,l,u,s,f;return(0,r.createVNode)("div",{class:"bk-dialog-footer",style:"text-align: ".concat(t.footerAlign)},["process"===t.dialogType?null!==(o=null===(n=(e=t.$slots).footer)||void 0===n?void 0:n.call(e))&&void 0!==o?o:(0,r.createVNode)(r.Fragment,null,[1===t.current?"":(0,r.createVNode)(a(),{class:"bk-dialog-perv",onClick:t.handlePrevStep},{default:function(){return[t.prevText]}}),t.current===t.totalStep?"":(0,r.createVNode)(a(),{class:"bk-dialog-next",onClick:t.handleNextStep},{default:function(){return[t.nextText]}}),t.current===t.totalStep?(0,r.createVNode)(a(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.confirmText]}}):"",(0,r.createVNode)(a(),{class:"bk-dialog-cancel",onClick:t.handleClose,disabled:t.isLoading},{default:function(){return[t.cancelText]}})]):"","operation"===t.dialogType?null!==(l=null===(c=(i=t.$slots).footer)||void 0===c?void 0:c.call(i))&&void 0!==l?l:(0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)(a(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.confirmText]}}),(0,r.createVNode)(a(),{class:"bk-dialog-cancel",onClick:t.handleClose,disabled:t.isLoading},{default:function(){return[t.cancelText]}})]):"","confirm"===t.dialogType?null!==(f=null===(s=(u=t.$slots).footer)||void 0===s?void 0:s.call(u))&&void 0!==f?f:(0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)(a(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.confirmText]}})]):""])},close:function(){return(0,r.createVNode)("span",{class:"bk-dialog-close",onClick:t.handleClose},[(0,r.createTextVNode)("+")])}},o="bk-dialog-wrapper ".concat(this.scrollable?"scroll-able":""," ").concat(this.multiInstance?"multi-instance":"");return(0,r.createVNode)(f(),(0,r.mergeProps)(this.$props,{class:o,style:this.data.moveStyle,onQuickClose:this.handleQuickClose}),"function"==typeof(e=n)||"[object Object]"===Object.prototype.toString.call(e)&&!(0,r.isVNode)(e)?n:{default:function(){return[n]}})}}),v=function(t){var i=document.createElement("div"),a=(0,r.ref)(!1),c=(0,r.shallowRef)(t),l=(0,r.defineComponent)({name:"DialogConfirm",setup:function(t,i){var l=this,u=i.expose;(0,r.onMounted)((function(){(document.activeElement||document.body).blur(),!1!==c.value.isShow&&(a.value=!0)}));var s=function(){return o(l,void 0,void 0,n().mark((function e(){var t,o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=c.value)||void 0===t?void 0:t.onClosed)){e.next=3;break}return e.next=3,null===(o=c.value)||void 0===o?void 0:o.onClosed();case 3:a.value=!1;case 4:case"end":return e.stop()}}),e)})))},f=function(){return o(l,void 0,void 0,n().mark((function e(){var t,o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=c.value)||void 0===t?void 0:t.onConfirm)){e.next=3;break}return e.next=3,null===(o=c.value)||void 0===o?void 0:o.onConfirm();case 3:a.value=!1;case 4:case"end":return e.stop()}}),e)})))};return u({update:function(e){c.value=e}}),function(){return(0,r.createVNode)(h,Object.assign(Object.assign({class:"bk-info-wrapper",headerAlign:"center",footerAlign:"center"},c.value),{isShow:a.value,onClosed:s,onConfirm:f}),function(){var t=[],n=[];if(c.value.subTitle)switch(e(c.value.subTitle)){case"string":default:t.push(c.value.subTitle);break;case"function":t.push(c.value.subTitle())}return t.length&&n.push((0,r.h)("div",{class:"bk-info-sub-title",style:"text-Align:".concat(c.value.contentAlign||"center")},t)),n}())}}}),u=(0,r.createApp)(l).mount(i),s={show:function(){a.value=!0},hide:function(){a.value=!1},update:function(e){u.update(e)}};return s}})(),l})()));
|
package/lib/info-box/index.less
CHANGED
package/lib/modal/modal.css
CHANGED
package/lib/table/const.d.ts
CHANGED
@@ -13,7 +13,8 @@ export declare const enum EVENTS {
|
|
13
13
|
ON_SORT_BY_CLICK = "onSortByClick",
|
14
14
|
ON_FILTER_CLICK = "onFilterClick",
|
15
15
|
ON_SETTING_CHANGE = "onSettingChange",
|
16
|
-
ON_ROW_EXPAND_CLICK = "onRowExpandClick"
|
16
|
+
ON_ROW_EXPAND_CLICK = "onRowExpandClick",
|
17
|
+
ON_ROW_CHECK = "onRowCheck"
|
17
18
|
}
|
18
19
|
export declare const enum EMITEVENTS {
|
19
20
|
COLUMN_PICK = "columnPick",
|
@@ -26,20 +27,26 @@ export declare const enum EMITEVENTS {
|
|
26
27
|
PAGE_LIMIT_CHANGE = "pageLimitChange",
|
27
28
|
PAGE_VALUE_CHANGE = "pageValueChange",
|
28
29
|
SETTING_CHANGE = "settingChange",
|
29
|
-
SCROLL_BOTTOM = "scrollBottom"
|
30
|
+
SCROLL_BOTTOM = "scrollBottom",
|
31
|
+
ROW_SELECT = "select",
|
32
|
+
ROW_SELECT_ALL = "selectAll",
|
33
|
+
ROW_SELECT_CHANGE = "selectionChange"
|
30
34
|
}
|
31
35
|
export declare const EMIT_EVENT_TYPES: {
|
32
36
|
columnPick: (..._args: any[]) => boolean;
|
33
37
|
columnFilter: (..._args: any[]) => boolean;
|
34
38
|
columnSort: (..._args: any[]) => boolean;
|
39
|
+
colFilterSave: (..._args: any[]) => boolean;
|
35
40
|
rowClick: (..._args: any[]) => boolean;
|
36
41
|
rowDblclick: (..._args: any[]) => boolean;
|
37
42
|
rowExpand: (..._args: any[]) => boolean;
|
43
|
+
select: (..._args: any[]) => boolean;
|
44
|
+
selectAll: (..._args: any[]) => boolean;
|
45
|
+
selectionChange: (..._args: any[]) => boolean;
|
38
46
|
pageLimitChange: (..._args: any[]) => boolean;
|
39
47
|
pageValueChange: (..._args: any[]) => boolean;
|
40
48
|
settingChange: (..._args: any[]) => boolean;
|
41
49
|
scrollBottom: (..._args: any[]) => boolean;
|
42
|
-
colFilterSave: (..._args: any[]) => boolean;
|
43
50
|
};
|
44
51
|
/**
|
45
52
|
* Table Row Attributes
|
@@ -48,6 +55,8 @@ export declare const TABLE_ROW_ATTRIBUTE: {
|
|
48
55
|
ROW_INDEX: string;
|
49
56
|
ROW_UID: string;
|
50
57
|
ROW_EXPAND: string;
|
58
|
+
ROW_SELECTION: string;
|
59
|
+
ROW_SELECTION_ALL: string;
|
51
60
|
};
|
52
61
|
/**
|
53
62
|
* Y 轴滚动条宽度
|
package/lib/table/index.d.ts
CHANGED
@@ -16,6 +16,7 @@ declare const BkTable: {
|
|
16
16
|
scrollLoading: boolean | {
|
17
17
|
[key: string]: any;
|
18
18
|
};
|
19
|
+
showOverflowTooltip: boolean | import("./props").IOverflowTooltip;
|
19
20
|
columnPick: string;
|
20
21
|
rowHeight: any;
|
21
22
|
showHead: boolean;
|
@@ -28,7 +29,10 @@ declare const BkTable: {
|
|
28
29
|
cellStyle: any;
|
29
30
|
cellClass: any;
|
30
31
|
reserveExpand: boolean;
|
32
|
+
selectionKey: string;
|
33
|
+
isSelectedFn: (...args: any[]) => any;
|
31
34
|
rowKey: any;
|
35
|
+
asyncData: boolean;
|
32
36
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
33
37
|
data: import("vue-types").VueTypeDef<any[]> & {
|
34
38
|
default: () => any[];
|
@@ -115,10 +119,29 @@ declare const BkTable: {
|
|
115
119
|
} & {
|
116
120
|
default: boolean;
|
117
121
|
};
|
122
|
+
selectionKey: import("vue-types").VueTypeValidableDef<string> & {
|
123
|
+
default: string;
|
124
|
+
} & {
|
125
|
+
default: string;
|
126
|
+
};
|
127
|
+
isSelectedFn: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
128
|
+
default: (...args: any[]) => any;
|
129
|
+
} & {
|
130
|
+
default: (...args: any[]) => any;
|
131
|
+
};
|
118
132
|
rowKey: import("vue-types").VueTypeDef<any> & {
|
119
133
|
default: any;
|
120
134
|
};
|
135
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("./props").IOverflowTooltip> & {
|
136
|
+
default: boolean | (() => import("./props").IOverflowTooltip);
|
137
|
+
};
|
138
|
+
asyncData: import("vue-types").VueTypeValidableDef<boolean> & {
|
139
|
+
default: boolean;
|
140
|
+
} & {
|
141
|
+
default: boolean;
|
142
|
+
};
|
121
143
|
}>> & {
|
144
|
+
onSelect?: (...args: any[]) => any;
|
122
145
|
onColumnPick?: (...args: any[]) => any;
|
123
146
|
onColumnSort?: (...args: any[]) => any;
|
124
147
|
onColumnFilter?: (...args: any[]) => any;
|
@@ -130,7 +153,9 @@ declare const BkTable: {
|
|
130
153
|
onPageValueChange?: (...args: any[]) => any;
|
131
154
|
onSettingChange?: (...args: any[]) => any;
|
132
155
|
onScrollBottom?: (...args: any[]) => any;
|
133
|
-
|
156
|
+
onSelectAll?: (...args: any[]) => any;
|
157
|
+
onSelectionChange?: (...args: any[]) => any;
|
158
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "data" | "height" | "maxHeight" | "minHeight" | "border" | "columns" | "headHeight" | "pagination" | "scrollLoading" | "showOverflowTooltip" | "columnPick" | "rowHeight" | "showHead" | "virtualEnabled" | "remotePagination" | "emptyText" | "settings" | "rowClass" | "rowStyle" | "cellStyle" | "cellClass" | "reserveExpand" | "selectionKey" | "isSelectedFn" | "rowKey" | "asyncData">;
|
134
159
|
$attrs: {
|
135
160
|
[x: string]: unknown;
|
136
161
|
};
|
@@ -142,7 +167,7 @@ declare const BkTable: {
|
|
142
167
|
}>;
|
143
168
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
144
169
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
145
|
-
$emit: ((event: import("./const").EMITEVENTS.COLUMN_PICK, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.COLUMN_SORT, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.COLUMN_FILTER, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.COLUMN_FILTER_SAVE, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.ROW_CLICK, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.ROW_DBL_CLICK, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.ROW_EXPAND_CLICK, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.PAGE_LIMIT_CHANGE, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.PAGE_VALUE_CHANGE, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.SETTING_CHANGE, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.SCROLL_BOTTOM, ...args: any[]) => void);
|
170
|
+
$emit: ((event: import("./const").EMITEVENTS.COLUMN_PICK, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.COLUMN_SORT, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.COLUMN_FILTER, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.COLUMN_FILTER_SAVE, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.ROW_CLICK, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.ROW_DBL_CLICK, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.ROW_EXPAND_CLICK, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.PAGE_LIMIT_CHANGE, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.PAGE_VALUE_CHANGE, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.SETTING_CHANGE, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.SCROLL_BOTTOM, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.ROW_SELECT, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.ROW_SELECT_ALL, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.ROW_SELECT_CHANGE, ...args: any[]) => void);
|
146
171
|
$el: any;
|
147
172
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
148
173
|
data: import("vue-types").VueTypeDef<any[]> & {
|
@@ -230,10 +255,29 @@ declare const BkTable: {
|
|
230
255
|
} & {
|
231
256
|
default: boolean;
|
232
257
|
};
|
258
|
+
selectionKey: import("vue-types").VueTypeValidableDef<string> & {
|
259
|
+
default: string;
|
260
|
+
} & {
|
261
|
+
default: string;
|
262
|
+
};
|
263
|
+
isSelectedFn: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
264
|
+
default: (...args: any[]) => any;
|
265
|
+
} & {
|
266
|
+
default: (...args: any[]) => any;
|
267
|
+
};
|
233
268
|
rowKey: import("vue-types").VueTypeDef<any> & {
|
234
269
|
default: any;
|
235
270
|
};
|
271
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("./props").IOverflowTooltip> & {
|
272
|
+
default: boolean | (() => import("./props").IOverflowTooltip);
|
273
|
+
};
|
274
|
+
asyncData: import("vue-types").VueTypeValidableDef<boolean> & {
|
275
|
+
default: boolean;
|
276
|
+
} & {
|
277
|
+
default: boolean;
|
278
|
+
};
|
236
279
|
}>> & {
|
280
|
+
onSelect?: (...args: any[]) => any;
|
237
281
|
onColumnPick?: (...args: any[]) => any;
|
238
282
|
onColumnSort?: (...args: any[]) => any;
|
239
283
|
onColumnFilter?: (...args: any[]) => any;
|
@@ -245,18 +289,23 @@ declare const BkTable: {
|
|
245
289
|
onPageValueChange?: (...args: any[]) => any;
|
246
290
|
onSettingChange?: (...args: any[]) => any;
|
247
291
|
onScrollBottom?: (...args: any[]) => any;
|
292
|
+
onSelectAll?: (...args: any[]) => any;
|
293
|
+
onSelectionChange?: (...args: any[]) => any;
|
248
294
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
249
295
|
columnPick: (..._args: any[]) => boolean;
|
250
296
|
columnFilter: (..._args: any[]) => boolean;
|
251
297
|
columnSort: (..._args: any[]) => boolean;
|
298
|
+
colFilterSave: (..._args: any[]) => boolean;
|
252
299
|
rowClick: (..._args: any[]) => boolean;
|
253
300
|
rowDblclick: (..._args: any[]) => boolean;
|
254
301
|
rowExpand: (..._args: any[]) => boolean;
|
302
|
+
select: (..._args: any[]) => boolean;
|
303
|
+
selectAll: (..._args: any[]) => boolean;
|
304
|
+
selectionChange: (..._args: any[]) => boolean;
|
255
305
|
pageLimitChange: (..._args: any[]) => boolean;
|
256
306
|
pageValueChange: (..._args: any[]) => boolean;
|
257
307
|
settingChange: (..._args: any[]) => boolean;
|
258
308
|
scrollBottom: (..._args: any[]) => boolean;
|
259
|
-
colFilterSave: (..._args: any[]) => boolean;
|
260
309
|
}, string, {
|
261
310
|
data: any[];
|
262
311
|
height: string | number;
|
@@ -271,6 +320,7 @@ declare const BkTable: {
|
|
271
320
|
scrollLoading: boolean | {
|
272
321
|
[key: string]: any;
|
273
322
|
};
|
323
|
+
showOverflowTooltip: boolean | import("./props").IOverflowTooltip;
|
274
324
|
columnPick: string;
|
275
325
|
rowHeight: any;
|
276
326
|
showHead: boolean;
|
@@ -283,7 +333,10 @@ declare const BkTable: {
|
|
283
333
|
cellStyle: any;
|
284
334
|
cellClass: any;
|
285
335
|
reserveExpand: boolean;
|
336
|
+
selectionKey: string;
|
337
|
+
isSelectedFn: (...args: any[]) => any;
|
286
338
|
rowKey: any;
|
339
|
+
asyncData: boolean;
|
287
340
|
}> & {
|
288
341
|
beforeCreate?: (() => void) | (() => void)[];
|
289
342
|
created?: (() => void) | (() => void)[];
|
@@ -390,10 +443,29 @@ declare const BkTable: {
|
|
390
443
|
} & {
|
391
444
|
default: boolean;
|
392
445
|
};
|
446
|
+
selectionKey: import("vue-types").VueTypeValidableDef<string> & {
|
447
|
+
default: string;
|
448
|
+
} & {
|
449
|
+
default: string;
|
450
|
+
};
|
451
|
+
isSelectedFn: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
452
|
+
default: (...args: any[]) => any;
|
453
|
+
} & {
|
454
|
+
default: (...args: any[]) => any;
|
455
|
+
};
|
393
456
|
rowKey: import("vue-types").VueTypeDef<any> & {
|
394
457
|
default: any;
|
395
458
|
};
|
459
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("./props").IOverflowTooltip> & {
|
460
|
+
default: boolean | (() => import("./props").IOverflowTooltip);
|
461
|
+
};
|
462
|
+
asyncData: import("vue-types").VueTypeValidableDef<boolean> & {
|
463
|
+
default: boolean;
|
464
|
+
} & {
|
465
|
+
default: boolean;
|
466
|
+
};
|
396
467
|
}>> & {
|
468
|
+
onSelect?: (...args: any[]) => any;
|
397
469
|
onColumnPick?: (...args: any[]) => any;
|
398
470
|
onColumnSort?: (...args: any[]) => any;
|
399
471
|
onColumnFilter?: (...args: any[]) => any;
|
@@ -405,6 +477,8 @@ declare const BkTable: {
|
|
405
477
|
onPageValueChange?: (...args: any[]) => any;
|
406
478
|
onSettingChange?: (...args: any[]) => any;
|
407
479
|
onScrollBottom?: (...args: any[]) => any;
|
480
|
+
onSelectAll?: (...args: any[]) => any;
|
481
|
+
onSelectionChange?: (...args: any[]) => any;
|
408
482
|
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
409
483
|
__isFragment?: never;
|
410
484
|
__isTeleport?: never;
|
@@ -495,10 +569,29 @@ declare const BkTable: {
|
|
495
569
|
} & {
|
496
570
|
default: boolean;
|
497
571
|
};
|
572
|
+
selectionKey: import("vue-types").VueTypeValidableDef<string> & {
|
573
|
+
default: string;
|
574
|
+
} & {
|
575
|
+
default: string;
|
576
|
+
};
|
577
|
+
isSelectedFn: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
578
|
+
default: (...args: any[]) => any;
|
579
|
+
} & {
|
580
|
+
default: (...args: any[]) => any;
|
581
|
+
};
|
498
582
|
rowKey: import("vue-types").VueTypeDef<any> & {
|
499
583
|
default: any;
|
500
584
|
};
|
585
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("./props").IOverflowTooltip> & {
|
586
|
+
default: boolean | (() => import("./props").IOverflowTooltip);
|
587
|
+
};
|
588
|
+
asyncData: import("vue-types").VueTypeValidableDef<boolean> & {
|
589
|
+
default: boolean;
|
590
|
+
} & {
|
591
|
+
default: boolean;
|
592
|
+
};
|
501
593
|
}>> & {
|
594
|
+
onSelect?: (...args: any[]) => any;
|
502
595
|
onColumnPick?: (...args: any[]) => any;
|
503
596
|
onColumnSort?: (...args: any[]) => any;
|
504
597
|
onColumnFilter?: (...args: any[]) => any;
|
@@ -510,18 +603,23 @@ declare const BkTable: {
|
|
510
603
|
onPageValueChange?: (...args: any[]) => any;
|
511
604
|
onSettingChange?: (...args: any[]) => any;
|
512
605
|
onScrollBottom?: (...args: any[]) => any;
|
606
|
+
onSelectAll?: (...args: any[]) => any;
|
607
|
+
onSelectionChange?: (...args: any[]) => any;
|
513
608
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
514
609
|
columnPick: (..._args: any[]) => boolean;
|
515
610
|
columnFilter: (..._args: any[]) => boolean;
|
516
611
|
columnSort: (..._args: any[]) => boolean;
|
612
|
+
colFilterSave: (..._args: any[]) => boolean;
|
517
613
|
rowClick: (..._args: any[]) => boolean;
|
518
614
|
rowDblclick: (..._args: any[]) => boolean;
|
519
615
|
rowExpand: (..._args: any[]) => boolean;
|
616
|
+
select: (..._args: any[]) => boolean;
|
617
|
+
selectAll: (..._args: any[]) => boolean;
|
618
|
+
selectionChange: (..._args: any[]) => boolean;
|
520
619
|
pageLimitChange: (..._args: any[]) => boolean;
|
521
620
|
pageValueChange: (..._args: any[]) => boolean;
|
522
621
|
settingChange: (..._args: any[]) => boolean;
|
523
622
|
scrollBottom: (..._args: any[]) => boolean;
|
524
|
-
colFilterSave: (..._args: any[]) => boolean;
|
525
623
|
}, string, {
|
526
624
|
data: any[];
|
527
625
|
height: string | number;
|
@@ -536,6 +634,7 @@ declare const BkTable: {
|
|
536
634
|
scrollLoading: boolean | {
|
537
635
|
[key: string]: any;
|
538
636
|
};
|
637
|
+
showOverflowTooltip: boolean | import("./props").IOverflowTooltip;
|
539
638
|
columnPick: string;
|
540
639
|
rowHeight: any;
|
541
640
|
showHead: boolean;
|
@@ -548,7 +647,10 @@ declare const BkTable: {
|
|
548
647
|
cellStyle: any;
|
549
648
|
cellClass: any;
|
550
649
|
reserveExpand: boolean;
|
650
|
+
selectionKey: string;
|
651
|
+
isSelectedFn: (...args: any[]) => any;
|
551
652
|
rowKey: any;
|
653
|
+
asyncData: boolean;
|
552
654
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
553
655
|
export default BkTable;
|
554
656
|
declare const BkColumn: {
|