bkui-vue 0.0.1-beta.118 → 0.0.1-beta.119

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.
@@ -6,6 +6,7 @@ declare const BkModal: {
6
6
  visible: boolean;
7
7
  };
8
8
  $props: Partial<{
9
+ title: string;
9
10
  multiInstance: boolean;
10
11
  showMask: boolean;
11
12
  extCls: string | unknown[];
@@ -91,6 +92,11 @@ declare const BkModal: {
91
92
  direction: import("vue-types").VueTypeValidableDef<string> & {
92
93
  default: string;
93
94
  };
95
+ title: import("vue-types").VueTypeValidableDef<string> & {
96
+ default: string;
97
+ } & {
98
+ default: string;
99
+ };
94
100
  animateType: import("vue-types").VueTypeValidableDef<string> & {
95
101
  default: string;
96
102
  } & {
@@ -114,7 +120,7 @@ declare const BkModal: {
114
120
  "onQuick-close"?: (...args: any[]) => any;
115
121
  onQuickClose?: (...args: any[]) => any;
116
122
  onShown?: (...args: any[]) => any;
117
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "multiInstance" | "showMask" | "extCls" | "width" | "height" | "draggable" | "size" | "direction" | "maxHeight" | "isShow" | "transfer" | "renderDirective" | "dialogType" | "quickClose" | "scrollable" | "closeIcon" | "escClose" | "fullscreen" | "animateType">;
123
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "multiInstance" | "showMask" | "extCls" | "width" | "height" | "draggable" | "size" | "direction" | "maxHeight" | "isShow" | "transfer" | "renderDirective" | "dialogType" | "quickClose" | "scrollable" | "closeIcon" | "escClose" | "fullscreen" | "animateType">;
118
124
  $attrs: {
119
125
  [x: string]: unknown;
120
126
  };
@@ -194,6 +200,11 @@ declare const BkModal: {
194
200
  direction: import("vue-types").VueTypeValidableDef<string> & {
195
201
  default: string;
196
202
  };
203
+ title: import("vue-types").VueTypeValidableDef<string> & {
204
+ default: string;
205
+ } & {
206
+ default: string;
207
+ };
197
208
  animateType: import("vue-types").VueTypeValidableDef<string> & {
198
209
  default: string;
199
210
  } & {
@@ -227,6 +238,7 @@ declare const BkModal: {
227
238
  }, {
228
239
  handleClickOutSide(): void;
229
240
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "quick-close" | "quickClose" | "shown")[], string, {
241
+ title: string;
230
242
  multiInstance: boolean;
231
243
  showMask: boolean;
232
244
  extCls: string | unknown[];
@@ -332,6 +344,11 @@ declare const BkModal: {
332
344
  direction: import("vue-types").VueTypeValidableDef<string> & {
333
345
  default: string;
334
346
  };
347
+ title: import("vue-types").VueTypeValidableDef<string> & {
348
+ default: string;
349
+ } & {
350
+ default: string;
351
+ };
335
352
  animateType: import("vue-types").VueTypeValidableDef<string> & {
336
353
  default: string;
337
354
  } & {
@@ -434,6 +451,11 @@ declare const BkModal: {
434
451
  direction: import("vue-types").VueTypeValidableDef<string> & {
435
452
  default: string;
436
453
  };
454
+ title: import("vue-types").VueTypeValidableDef<string> & {
455
+ default: string;
456
+ } & {
457
+ default: string;
458
+ };
437
459
  animateType: import("vue-types").VueTypeValidableDef<string> & {
438
460
  default: string;
439
461
  } & {
@@ -467,6 +489,7 @@ declare const BkModal: {
467
489
  }, {
468
490
  handleClickOutSide(): void;
469
491
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "quick-close" | "quickClose" | "shown")[], "close" | "hidden" | "quick-close" | "quickClose" | "shown", {
492
+ title: string;
470
493
  multiInstance: boolean;
471
494
  showMask: boolean;
472
495
  extCls: string | unknown[];
@@ -553,6 +576,11 @@ declare const BkModal: {
553
576
  direction: import("vue-types").VueTypeValidableDef<string> & {
554
577
  default: string;
555
578
  };
579
+ title: import("vue-types").VueTypeValidableDef<string> & {
580
+ default: string;
581
+ } & {
582
+ default: string;
583
+ };
556
584
  animateType: import("vue-types").VueTypeValidableDef<string> & {
557
585
  default: string;
558
586
  } & {
@@ -1 +1 @@
1
- !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var i in t)("object"==typeof exports?exports:e)[i]=t[i]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},i={};function s(e){var o=i[e];if(void 0!==o)return o.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,s),r.exports}s.d=(e,o)=>{for(var t in o)s.o(o,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{s.r(r),s.d(r,{BkModal:()=>n,default:()=>l,propsMixin:()=>t});var e=s(4212),o=s(748),t={isShow:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([String,Number]).def("50%"),height:e.PropTypes.oneOfType([String,Number]).def("50%"),extCls:e.PropTypes.string||e.PropTypes.array,scrollable:e.PropTypes.bool.def(!0),showMask:e.PropTypes.bool.def(!0),closeIcon:e.PropTypes.bool.def(!0),escClose:e.PropTypes.bool.def(!0),fullscreen:e.PropTypes.bool.def(!1),size:e.PropTypes.commonType(["normal","small","medium","large"],"size").def(),draggable:e.PropTypes.bool.def(!0),quickClose:e.PropTypes.bool.def(!0),transfer:e.PropTypes.bool.def(!1),maxHeight:e.PropTypes.string,direction:e.PropTypes.string,animateType:e.PropTypes.string.def("slide"),renderDirective:e.PropTypes.commonType(["show","if"],"renderDirective").def("show"),beforeClose:e.PropTypes.custom((function(){return!0})),dialogType:e.PropTypes.commonType(["show","operation","confirm","process"],"dialogType").def("operation"),multiInstance:e.PropTypes.bool.def(!0)};const i=(0,o.defineComponent)({name:"Modal",inheritAttrs:!1,props:Object.assign({},t),emits:["quick-close","quickClose","hidden","shown","close"],data:function(){return{visible:!1}},computed:{dialogWidth:function(){return/^\d+$/.test("".concat(this.width))?"".concat(this.width,"px"):this.width},dialogHeight:function(){return/^\d+$/.test("".concat(this.height))?"".concat(this.height,"px"):this.height},compStyle:function(){return{width:this.dialogWidth,height:this.dialogHeight,minHeigth:"".concat(200,"px"),display:this.visible?"inherit":"none"}},fullscreenStyle:function(){return{width:"".concat(100,"%"),height:"".concat(100,"%")}}},watch:{isShow:{handler:function(e){var o=this;e?this.visible=e:(this.$emit("hidden"),setTimeout((function(){o.visible=e}),250))},deep:!0},visible:function(o){var t=this;o?this.$nextTick((function(){var o=t.showMask?{}:{"background-color":"rgba(0,0,0,0)"};e.bkPopIndexManager.show(t.$el,t.showMask,o,t.transfer),t.$emit("shown"),t.$emit("quick-close",t.$el),t.$emit("quickClose",t.$el)})):e.bkPopIndexManager.hide(this.$el,this.transfer)}},beforeUnmount:function(){e.bkPopIndexManager.hide(this.$el)},methods:{handleClickOutSide:function(){this.quickClose&&this.$emit("close")}},render:function(){var e,t,i,s,r,n,l,d,a,c=this,p=this.maxHeight?{maxHeight:this.maxHeight}:{},h="bk-modal-body ".concat("slide"===this.animateType?this.direction:"");return(0,o.createVNode)("div",{class:["bk-modal-wrapper",this.extCls,this.size],style:[this.compStyle,this.fullscreen?this.fullscreenStyle:""]},[(0,o.withDirectives)((0,o.createVNode)("div",{class:"bk-modal-outside",onClick:this.handleClickOutSide},null),[[o.vShow,this.isShow]]),(0,o.createVNode)(o.Transition,{name:this.animateType},{default:function(){return[c.isShow?(0,o.createVNode)("div",{class:h},[(0,o.createVNode)("div",{class:"bk-modal-header"},[null!==(i=null===(t=(e=c.$slots).header)||void 0===t?void 0:t.call(e))&&void 0!==i?i:""]),(0,o.createVNode)("div",{class:"bk-modal-content",style:["show"===c.dialogType?"padding-bottom: 20px":"",Object.assign({},p)]},[null!==(n=null===(r=(s=c.$slots).default)||void 0===r?void 0:r.call(s))&&void 0!==n?n:""]),"show"===c.dialogType?"":(0,o.createVNode)("div",{class:"bk-modal-footer"},[null!==(a=null===(d=(l=c.$slots).footer)||void 0===d?void 0:d.call(l))&&void 0!==a?a:""])]):""]}})])}});var n=(0,e.withInstallProps)(i,{propsMixin:t},!0);const l=n})(),r})()));
1
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var i in t)("object"==typeof exports?exports:e)[i]=t[i]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},i={};function s(e){var o=i[e];if(void 0!==o)return o.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,s),r.exports}s.d=(e,o)=>{for(var t in o)s.o(o,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{s.r(r),s.d(r,{BkModal:()=>n,default:()=>l,propsMixin:()=>t});var e=s(4212),o=s(748),t={isShow:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([String,Number]).def("50%"),height:e.PropTypes.oneOfType([String,Number]).def("50%"),extCls:e.PropTypes.string||e.PropTypes.array,scrollable:e.PropTypes.bool.def(!0),showMask:e.PropTypes.bool.def(!0),closeIcon:e.PropTypes.bool.def(!0),escClose:e.PropTypes.bool.def(!0),fullscreen:e.PropTypes.bool.def(!1),size:e.PropTypes.commonType(["normal","small","medium","large"],"size").def(),draggable:e.PropTypes.bool.def(!0),quickClose:e.PropTypes.bool.def(!0),transfer:e.PropTypes.bool.def(!1),maxHeight:e.PropTypes.string,direction:e.PropTypes.string,title:e.PropTypes.string.def(""),animateType:e.PropTypes.string.def("slide"),renderDirective:e.PropTypes.commonType(["show","if"],"renderDirective").def("show"),beforeClose:e.PropTypes.custom((function(){return!0})),dialogType:e.PropTypes.commonType(["show","operation","confirm","process"],"dialogType").def("operation"),multiInstance:e.PropTypes.bool.def(!0)};const i=(0,o.defineComponent)({name:"Modal",props:Object.assign({},t),emits:["quick-close","quickClose","hidden","shown","close"],data:function(){return{visible:!1}},computed:{dialogWidth:function(){return/^\d+$/.test("".concat(this.width))?"".concat(this.width,"px"):this.width},dialogHeight:function(){return/^\d+$/.test("".concat(this.height))?"".concat(this.height,"px"):this.height},compStyle:function(){return{width:this.dialogWidth,height:this.dialogHeight,minHeigth:"".concat(200,"px"),display:this.visible?"inherit":"none"}},fullscreenStyle:function(){return{width:"".concat(100,"%"),height:"".concat(100,"%")}}},watch:{isShow:{handler:function(e){var o=this;e?this.visible=e:(this.$emit("hidden"),setTimeout((function(){o.visible=e}),250))},deep:!0},visible:function(o){var t=this;o?this.$nextTick((function(){var o=t.showMask?{}:{"background-color":"rgba(0,0,0,0)"};e.bkPopIndexManager.show(t.$el,t.showMask,o,t.transfer),t.$emit("shown"),t.$emit("quick-close",t.$el),t.$emit("quickClose",t.$el)})):e.bkPopIndexManager.hide(this.$el,this.transfer)}},beforeUnmount:function(){e.bkPopIndexManager.hide(this.$el)},methods:{handleClickOutSide:function(){this.quickClose&&this.$emit("close")}},render:function(){var e,t,i,s,r,n,l,d,a,p=this,c=this.maxHeight?{maxHeight:this.maxHeight}:{},h="bk-modal-body ".concat("slide"===this.animateType?this.direction:"");return(0,o.createVNode)("div",{class:["bk-modal-wrapper",this.extCls,this.size],style:[this.compStyle,this.fullscreen?this.fullscreenStyle:""]},[(0,o.withDirectives)((0,o.createVNode)("div",{class:"bk-modal-outside",onClick:this.handleClickOutSide},null),[[o.vShow,this.isShow]]),(0,o.createVNode)(o.Transition,{name:this.animateType},{default:function(){return[p.isShow?(0,o.createVNode)("div",{class:h},[(0,o.createVNode)("div",{class:"bk-modal-header"},[null!==(i=null===(t=(e=p.$slots).header)||void 0===t?void 0:t.call(e))&&void 0!==i?i:""]),(0,o.createVNode)("div",{class:"bk-modal-content",style:["show"===p.dialogType?"padding-bottom: 20px":"",Object.assign({},c)]},[null!==(n=null===(r=(s=p.$slots).default)||void 0===r?void 0:r.call(s))&&void 0!==n?n:""]),"show"===p.dialogType?"":(0,o.createVNode)("div",{class:"bk-modal-footer"},[null!==(a=null===(d=(l=p.$slots).footer)||void 0===d?void 0:d.call(l))&&void 0!==a?a:""])]):""]}})])}});var n=(0,e.withInstallProps)(i,{propsMixin:t},!0);const l=n})(),r})()));
@@ -64,6 +64,11 @@ declare const _default: import("vue").DefineComponent<{
64
64
  direction: import("vue-types").VueTypeValidableDef<string> & {
65
65
  default: string;
66
66
  };
67
+ title: import("vue-types").VueTypeValidableDef<string> & {
68
+ default: string;
69
+ } & {
70
+ default: string;
71
+ };
67
72
  animateType: import("vue-types").VueTypeValidableDef<string> & {
68
73
  default: string;
69
74
  } & {
@@ -156,6 +161,11 @@ declare const _default: import("vue").DefineComponent<{
156
161
  direction: import("vue-types").VueTypeValidableDef<string> & {
157
162
  default: string;
158
163
  };
164
+ title: import("vue-types").VueTypeValidableDef<string> & {
165
+ default: string;
166
+ } & {
167
+ default: string;
168
+ };
159
169
  animateType: import("vue-types").VueTypeValidableDef<string> & {
160
170
  default: string;
161
171
  } & {
@@ -180,6 +190,7 @@ declare const _default: import("vue").DefineComponent<{
180
190
  onQuickClose?: (...args: any[]) => any;
181
191
  onShown?: (...args: any[]) => any;
182
192
  }, {
193
+ title: string;
183
194
  multiInstance: boolean;
184
195
  showMask: boolean;
185
196
  extCls: string | unknown[];
@@ -64,6 +64,11 @@ export declare const propsMixin: {
64
64
  direction: import("vue-types").VueTypeValidableDef<string> & {
65
65
  default: string;
66
66
  };
67
+ title: import("vue-types").VueTypeValidableDef<string> & {
68
+ default: string;
69
+ } & {
70
+ default: string;
71
+ };
67
72
  animateType: import("vue-types").VueTypeValidableDef<string> & {
68
73
  default: string;
69
74
  } & {