bkui-vue 0.0.1-beta.48 → 0.0.1-beta.50

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.
Files changed (80) hide show
  1. package/dist/index.cjs.js +21 -21
  2. package/dist/index.esm.js +353 -264
  3. package/dist/index.umd.js +21 -21
  4. package/dist/style.css +1 -1
  5. package/lib/alert/alert.d.ts +1 -1
  6. package/lib/alert/index.d.ts +4 -4
  7. package/lib/animate-number/animate-number.d.ts +1 -1
  8. package/lib/animate-number/index.d.ts +4 -4
  9. package/lib/backtop/backtop.d.ts +1 -1
  10. package/lib/backtop/index.d.ts +4 -4
  11. package/lib/badge/badge.d.ts +2 -2
  12. package/lib/badge/index.d.ts +7 -7
  13. package/lib/breadcrumb/breadcrumb.d.ts +1 -1
  14. package/lib/breadcrumb/index.d.ts +4 -4
  15. package/lib/button/button.css +31 -23
  16. package/lib/button/button.d.ts +15 -8
  17. package/lib/button/button.less +22 -18
  18. package/lib/button/button.variable.css +31 -23
  19. package/lib/button/index.d.ts +26 -15
  20. package/lib/button/index.js +1 -1
  21. package/lib/checkbox/index.js +1 -1
  22. package/lib/date-picker/date-picker.d.ts +6 -6
  23. package/lib/date-picker/index.d.ts +17 -17
  24. package/lib/date-picker/props.d.ts +1 -1
  25. package/lib/dialog/dialog.css +102 -0
  26. package/lib/dialog/dialog.d.ts +1 -1
  27. package/lib/dialog/dialog.less +86 -0
  28. package/lib/dialog/dialog.variable.css +102 -0
  29. package/lib/dialog/index.d.ts +4 -4
  30. package/lib/dropdown/dropdown.d.ts +4 -2
  31. package/lib/dropdown/index.d.ts +15 -7
  32. package/lib/dropdown/index.js +1 -1
  33. package/lib/input/index.d.ts +11 -3
  34. package/lib/input/index.js +1 -1
  35. package/lib/input/input.css +6 -2
  36. package/lib/input/input.d.ts +7 -1
  37. package/lib/input/input.less +6 -2
  38. package/lib/input/input.variable.css +6 -2
  39. package/lib/link/index.d.ts +7 -7
  40. package/lib/link/link.d.ts +2 -2
  41. package/lib/loading/index.d.ts +8 -0
  42. package/lib/loading/index.js +1 -1
  43. package/lib/loading/loading.css +1 -0
  44. package/lib/loading/loading.d.ts +6 -0
  45. package/lib/loading/loading.less +1 -0
  46. package/lib/loading/loading.variable.css +1 -0
  47. package/lib/modal/index.d.ts +4 -4
  48. package/lib/modal/modal.css +8 -8
  49. package/lib/modal/modal.d.ts +1 -1
  50. package/lib/modal/modal.less +25 -23
  51. package/lib/modal/modal.variable.css +8 -8
  52. package/lib/popover/index.d.ts +4 -4
  53. package/lib/popover/popover.d.ts +1 -1
  54. package/lib/resize-layout/index.d.ts +4 -4
  55. package/lib/resize-layout/resize-layout.d.ts +1 -1
  56. package/lib/select/index.d.ts +34 -4
  57. package/lib/select/index.js +1 -1
  58. package/lib/select/select.css +5 -0
  59. package/lib/select/select.d.ts +14 -1
  60. package/lib/select/select.less +6 -0
  61. package/lib/select/select.variable.css +5 -0
  62. package/lib/shared/popover.d.ts +2 -2
  63. package/lib/sideslider/index.d.ts +4 -4
  64. package/lib/sideslider/sideslider.d.ts +1 -1
  65. package/lib/slider/slider.d.ts +1 -1
  66. package/lib/switcher/index.d.ts +4 -4
  67. package/lib/switcher/switcher.d.ts +1 -1
  68. package/lib/tab/index.d.ts +8 -8
  69. package/lib/tab/tab-nav.d.ts +1 -1
  70. package/lib/tab/tab-panel.d.ts +1 -1
  71. package/lib/tab/tab.d.ts +2 -2
  72. package/lib/table/index.d.ts +4 -4
  73. package/lib/table/index.js +1 -1
  74. package/lib/table/table.css +8 -1
  75. package/lib/table/table.d.ts +3 -4
  76. package/lib/table/table.less +13 -1
  77. package/lib/table/table.variable.css +8 -1
  78. package/lib/table/use-common.d.ts +17 -0
  79. package/lib/table/utils.d.ts +0 -8
  80. package/package.json +5 -1
@@ -6,10 +6,11 @@ declare const BkButton: {
6
6
  $props: Partial<{
7
7
  title: string;
8
8
  text: boolean;
9
- theme: string;
9
+ size: string;
10
10
  icon: string;
11
- outline: boolean;
12
11
  disabled: boolean;
12
+ theme: string;
13
+ outline: boolean;
13
14
  loading: boolean;
14
15
  hoverTheme: string;
15
16
  iconRight: string;
@@ -20,7 +21,9 @@ declare const BkButton: {
20
21
  hoverTheme: import("vue-types").VueTypeDef<string> & {
21
22
  default: string;
22
23
  };
23
- size: import("vue-types").VueTypeDef<string>;
24
+ size: import("vue-types").VueTypeDef<string> & {
25
+ default: string;
26
+ };
24
27
  title: import("vue-types").VueTypeValidableDef<string> & {
25
28
  default: string;
26
29
  };
@@ -36,7 +39,7 @@ declare const BkButton: {
36
39
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
37
40
  default: boolean;
38
41
  };
39
- laodingMode: import("vue-types").VueTypeDef<string>;
42
+ loadingMode: import("vue-types").VueTypeDef<string>;
40
43
  outline: import("vue-types").VueTypeValidableDef<boolean> & {
41
44
  default: boolean;
42
45
  };
@@ -49,7 +52,7 @@ declare const BkButton: {
49
52
  }>> & {
50
53
  onClick?: (...args: any[]) => any;
51
54
  onMouseover?: (...args: any[]) => any;
52
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "text" | "theme" | "icon" | "outline" | "disabled" | "loading" | "hoverTheme" | "iconRight">;
55
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "text" | "size" | "icon" | "disabled" | "theme" | "outline" | "loading" | "hoverTheme" | "iconRight">;
53
56
  $attrs: {
54
57
  [x: string]: unknown;
55
58
  };
@@ -70,7 +73,9 @@ declare const BkButton: {
70
73
  hoverTheme: import("vue-types").VueTypeDef<string> & {
71
74
  default: string;
72
75
  };
73
- size: import("vue-types").VueTypeDef<string>;
76
+ size: import("vue-types").VueTypeDef<string> & {
77
+ default: string;
78
+ };
74
79
  title: import("vue-types").VueTypeValidableDef<string> & {
75
80
  default: string;
76
81
  };
@@ -86,7 +91,7 @@ declare const BkButton: {
86
91
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
87
92
  default: boolean;
88
93
  };
89
- laodingMode: import("vue-types").VueTypeDef<string>;
94
+ loadingMode: import("vue-types").VueTypeDef<string>;
90
95
  outline: import("vue-types").VueTypeValidableDef<boolean> & {
91
96
  default: boolean;
92
97
  };
@@ -102,10 +107,11 @@ declare const BkButton: {
102
107
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover")[], string, {
103
108
  title: string;
104
109
  text: boolean;
105
- theme: string;
110
+ size: string;
106
111
  icon: string;
107
- outline: boolean;
108
112
  disabled: boolean;
113
+ theme: string;
114
+ outline: boolean;
109
115
  loading: boolean;
110
116
  hoverTheme: string;
111
117
  iconRight: string;
@@ -136,7 +142,9 @@ declare const BkButton: {
136
142
  hoverTheme: import("vue-types").VueTypeDef<string> & {
137
143
  default: string;
138
144
  };
139
- size: import("vue-types").VueTypeDef<string>;
145
+ size: import("vue-types").VueTypeDef<string> & {
146
+ default: string;
147
+ };
140
148
  title: import("vue-types").VueTypeValidableDef<string> & {
141
149
  default: string;
142
150
  };
@@ -152,7 +160,7 @@ declare const BkButton: {
152
160
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
153
161
  default: boolean;
154
162
  };
155
- laodingMode: import("vue-types").VueTypeDef<string>;
163
+ loadingMode: import("vue-types").VueTypeDef<string>;
156
164
  outline: import("vue-types").VueTypeValidableDef<boolean> & {
157
165
  default: boolean;
158
166
  };
@@ -176,7 +184,9 @@ declare const BkButton: {
176
184
  hoverTheme: import("vue-types").VueTypeDef<string> & {
177
185
  default: string;
178
186
  };
179
- size: import("vue-types").VueTypeDef<string>;
187
+ size: import("vue-types").VueTypeDef<string> & {
188
+ default: string;
189
+ };
180
190
  title: import("vue-types").VueTypeValidableDef<string> & {
181
191
  default: string;
182
192
  };
@@ -192,7 +202,7 @@ declare const BkButton: {
192
202
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
193
203
  default: boolean;
194
204
  };
195
- laodingMode: import("vue-types").VueTypeDef<string>;
205
+ loadingMode: import("vue-types").VueTypeDef<string>;
196
206
  outline: import("vue-types").VueTypeValidableDef<boolean> & {
197
207
  default: boolean;
198
208
  };
@@ -208,10 +218,11 @@ declare const BkButton: {
208
218
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover")[], "click" | "mouseover", {
209
219
  title: string;
210
220
  text: boolean;
211
- theme: string;
221
+ size: string;
212
222
  icon: string;
213
- outline: boolean;
214
223
  disabled: boolean;
224
+ theme: string;
225
+ outline: boolean;
215
226
  loading: boolean;
216
227
  hoverTheme: string;
217
228
  iconRight: string;
@@ -1 +1 @@
1
- !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("../loading"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../loading"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue"),require("../loading")):o(e["../shared"],e.vue,e["../loading"]);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,((e,o,t)=>(()=>{"use strict";var r={4870:e=>{e.exports=t},4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var t=n[e]={exports:{}};return r[e](t,t.exports,i),t.exports}i.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return i.d(o,{a:o}),o},i.d=(e,o)=>{for(var t in o)i.o(o,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},i.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{BkButton:()=>c,BkButtonGroup:()=>l,default:()=>d});var e=i(4212);function o(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var t=i(748),r=i(4870),n=i.n(r),u={theme:e.PropTypes.theme().def(""),hoverTheme:e.PropTypes.theme(["primary","warning","success","danger"]).def(""),size:e.PropTypes.size(),title:e.PropTypes.string,icon:e.PropTypes.string,iconRight:e.PropTypes.string,disabled:e.PropTypes.bool,loading:e.PropTypes.bool,laodingMode:e.PropTypes.commonType(Object.values(r.BkLoadingMode)),outline:e.PropTypes.bool,text:e.PropTypes.bool,nativeType:{type:String}};const s=(0,t.defineComponent)({name:"Button",props:u,emits:["click","mouseover"],setup:function(i,a){var u,s=a.slots,l=a.attrs,c=a.emit,d=(0,t.ref)(!1),p=null!==(u=s.default)&&void 0!==u&&u,v="bk-button",f=(0,t.computed)((function(){var t,r=i.hoverTheme?"".concat(v,"-hover-").concat(i.hoverTheme):"",n=i.theme?"".concat(v,"-").concat(i.theme):"",a=i.hoverTheme?"":n;return(0,e.classes)((o(t={"is-disabled":i.disabled,"is-outline":i.outline,"is-text":i.text&&!i.hoverTheme},"".concat(v,"-").concat(i.size),""!==i.size),o(t,"no-slot",!p),t),"".concat(a," ").concat(v," ").concat(r))})),m=(0,t.computed)((function(){return i.text||i.outline||i.hoverTheme?d.value&&!i.text?"white":i.hoverTheme||i.theme:["","default"].includes(i.theme)?"":"white"})),b=(0,t.computed)((function(){return i.size===r.BkLoadingSize.Small?r.BkLoadingSize.Mini:r.BkLoadingSize.Small})),y=function(){i.loading||c("click")},h=function(){d.value=!0,c("mouseover")},g=function(){d.value=!1};return function(){var e;return(0,t.createVNode)("button",(0,t.mergeProps)({title:i.title,disabled:i.disabled,class:f.value,type:i.nativeType},l,{onClick:y,onMouseover:h,onMouseleave:g}),[i.loading?(0,t.createVNode)(n(),{loading:!0,class:"".concat(v,"-loading"),mode:i.laodingMode,theme:m.value,size:b.value},null):s.default&&(0,t.createVNode)("span",{class:"".concat(v,"-text")},[null===(e=s.default)||void 0===e?void 0:e.call(s)])])}}}),l=(0,t.defineComponent)({name:"ButtonGroup",props:{size:e.PropTypes.size()},setup:function(r,n){var i=(0,t.computed)((function(){return(0,e.classes)(o({},"bk-button-group-".concat(r.size),!!r.size),"bk-button-group")}));return function(){var e,o;return(0,t.createVNode)("div",{class:i.value},[null===(o=(e=n.slots).default)||void 0===o?void 0:o.call(e)])}}});var c=(0,e.withInstallProps)(s,{ButtonGroup:l});const d=c})(),a})()));
1
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("../loading"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../loading"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue"),require("../loading")):o(e["../shared"],e.vue,e["../loading"]);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,((e,o,t)=>(()=>{"use strict";var r={4870:e=>{e.exports=t},4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var t=n[e]={exports:{}};return r[e](t,t.exports,i),t.exports}i.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return i.d(o,{a:o}),o},i.d=(e,o)=>{for(var t in o)i.o(o,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},i.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{BkButton:()=>d,BkButtonGroup:()=>c,default:()=>p});var e=i(4212);function o(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var t=i(748),r=i(4870),n=i.n(r),u=["","small","large"],l={theme:e.PropTypes.theme().def(""),hoverTheme:e.PropTypes.theme(["primary","warning","success","danger"]).def(""),size:e.PropTypes.size(u).def(""),title:e.PropTypes.string,icon:e.PropTypes.string,iconRight:e.PropTypes.string,disabled:e.PropTypes.bool,loading:e.PropTypes.bool,loadingMode:e.PropTypes.commonType(Object.values(r.BkLoadingMode)),outline:e.PropTypes.bool,text:e.PropTypes.bool,nativeType:{type:String}};const s=(0,t.defineComponent)({name:"Button",props:l,emits:["click","mouseover"],setup:function(i,a){var l,s=a.slots,c=a.attrs,d=a.emit,p=(0,t.ref)(!1),v=null!==(l=s.default)&&void 0!==l&&l,f="bk-button",m=(0,t.computed)((function(){return i.text&&!i.hoverTheme})),b=(0,t.computed)((function(){var t,r=i.hoverTheme?"".concat(f,"-hover-").concat(i.hoverTheme):"",n=i.theme?"".concat(f,"-").concat(i.theme):"",a=i.hoverTheme?"":n;return(0,e.classes)((o(t={"is-disabled":i.disabled,"is-outline":i.outline,"is-text":m.value},"".concat(f,"-").concat(i.size),i.size&&u.includes(i.size)),o(t,"no-slot",!v),t),"".concat(a," ").concat(f," ").concat(r))}));console.log(b.value,i);var g=(0,t.computed)((function(){return i.text||i.outline||i.hoverTheme?p.value&&!i.text?"white":i.hoverTheme||i.theme:["","default"].includes(i.theme)?"":"white"})),y=(0,t.computed)((function(){return m.value||i.size===r.BkLoadingSize.Small?r.BkLoadingSize.Mini:r.BkLoadingSize.Small})),h=function(){i.loading||d("click")},T=function(){p.value=!0,d("mouseover")},P=function(){p.value=!1};return function(){var e;return(0,t.createVNode)("button",(0,t.mergeProps)({title:i.title,disabled:i.disabled,class:b.value,type:i.nativeType},c,{onClick:h,onMouseover:T,onMouseleave:P}),[i.loading&&(0,t.createVNode)(n(),{loading:!0,class:"".concat(f,"-loading"),mode:i.loadingMode,theme:g.value,size:y.value},null),s.default&&(0,t.createVNode)("span",{class:"".concat(f,"-text")},[null===(e=s.default)||void 0===e?void 0:e.call(s)])])}}}),c=(0,t.defineComponent)({name:"ButtonGroup",props:{size:e.PropTypes.size()},setup:function(r,n){var i=(0,t.computed)((function(){return(0,e.classes)(o({},"bk-button-group-".concat(r.size),!!r.size),"bk-button-group")}));return function(){var e,o;return(0,t.createVNode)("div",{class:i.value},[null===(o=(e=n.slots).default)||void 0===o?void 0:o.call(e)])}}});var d=(0,e.withInstallProps)(s,{ButtonGroup:c});const p=d})(),a})()));
@@ -1 +1 @@
1
- !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue")):r(e["../shared"],e.vue);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r)=>(()=>{"use strict";var t={4212:r=>{r.exports=e},748:e=>{e.exports=r}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{BkCheckbox:()=>c,BkCheckboxGroup:()=>s,default:()=>d});var e=n(4212);function r(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}var t=n(748),o=Symbol("CheckboxGroup"),i={modelValue:e.PropTypes.oneOfType([String,Number,Boolean]).def(""),label:e.PropTypes.oneOfType([String,Number,Boolean]),trueLabel:e.PropTypes.oneOfType([String,Number,Boolean]).def(!0),falseLabel:e.PropTypes.oneOfType([String,Number,Boolean]).def(""),disabled:e.PropTypes.bool.def(!1),checked:e.PropTypes.bool.def(!1),indeterminate:e.PropTypes.bool,beforeChange:e.PropTypes.func,size:e.PropTypes.size()};const l=(0,t.defineComponent)({name:"Checkbox",props:i,emits:["update:modelValue","change"],setup:function(){var n,a,i,l,u,s,c,d,p,f=function(){var e=(0,t.ref)(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}(),h=(p=2,function(e){if(Array.isArray(e))return e}(d=f)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,n,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(o=t.next()).done)&&(a.push(o.value),!r||a.length!==r);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw n}}return a}}(d,p)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(d,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=h[0],y=h[1],v=y.blur,m=y.focus,k=(n=(0,t.getCurrentInstance)(),a=n.props,i=n.emit,l=(0,t.inject)(o,e.EMPTY_OBJ),u=!(0,e.isEmptyObj)(l),s=(0,t.ref)(a.checked),c=(0,t.computed)((function(){return!(!u||!l.props.disabled)||a.disabled})),u?(0,t.watch)((function(){return l.props.modelValue}),(function(e){s.value=e.includes(a.label)})):(0,t.watch)((function(){return a.modelValue}),(function(e){""!==e&&(s.value=e===a.trueLabel)}),{immediate:!0}),(0,t.onMounted)((function(){u&&l.register(n.proxy)})),(0,t.onBeforeUnmount)((function(){u&&l.unregister(n.proxy)})),{isChecked:s,isDisabled:c,setChecked:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];s.value=e},handleChange:function(e){if(!c.value){var r=e.target;s.value=r.checked;var o=s.value?a.trueLabel:a.falseLabel;i("change",o),i("update:modelValue",o),u&&l.handleChange(),(0,t.nextTick)((function(){r.checked!==s.value&&(r.checked=s.value)}))}}});return{isFocus:b,isChecked:k.isChecked,isDisabled:k.isDisabled,setChecked:k.setChecked,handleBlur:v,handleFocus:m,handleChange:k.handleChange}},render:function(){var r=(0,e.classes)({"bk-checkbox":!0,"is-focused":this.isFocus,"is-checked":this.isChecked,"is-disabled":this.isDisabled,"is-indeterminated":this.indeterminate});return(0,t.createVNode)("label",{class:r},[(0,t.createVNode)("span",{class:"bk-checkbox-input"},[(0,t.createVNode)("input",{role:"checkbox",type:"checkbox",class:"bk-checkbox-original",disabled:this.isDisabled,checked:this.isChecked,onChange:this.handleChange},null)]),this.$slots.default?this.$slots.default():(0,t.createVNode)("span",{class:"bk-checkbox-label"},[this.label])])}});var u={name:e.PropTypes.string.def(""),modelValue:e.PropTypes.array,disabled:e.PropTypes.bool};const s=(0,t.defineComponent)({name:"CheckboxGroup",props:u,emits:["change","update:modelValue"],setup:function(e,r){var n=[];return(0,t.provide)(o,{name:"CheckboxGroup",props:e,register:function(e){n.push(e)},unregister:function(e){var r=n.indexOf(e);r>-1&&n.splice(r,1)},handleChange:function(){var e=n.reduce((function(e,r){return r.isChecked&&e.push(r.label),e}),[]);r.emit("update:modelValue",e),r.emit("change",e)}}),(0,t.onMounted)((function(){var r=e.modelValue||[];n.forEach((function(e){r.includes(e.label)&&e.setChecked(!0)}))})),{}},render:function(){var e;return(0,t.createVNode)("div",{class:"bk-checkbox-group"},[null===(e=this.$slots)||void 0===e?void 0:e.default()])}});var c=(0,e.withInstallProps)(l,{Group:s});const d=c})(),a})()));
1
+ !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue")):r(e["../shared"],e.vue);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r)=>(()=>{"use strict";var t={4212:r=>{r.exports=e},748:e=>{e.exports=r}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{BkCheckbox:()=>c,BkCheckboxGroup:()=>s,default:()=>d});var e=n(4212);function r(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}var t=n(748),o=Symbol("CheckboxGroup"),i={modelValue:e.PropTypes.oneOfType([String,Number,Boolean]).def(""),label:e.PropTypes.oneOfType([String,Number,Boolean]),trueLabel:e.PropTypes.oneOfType([String,Number,Boolean]).def(!0),falseLabel:e.PropTypes.oneOfType([String,Number,Boolean]).def(""),disabled:e.PropTypes.bool.def(!1),checked:e.PropTypes.bool.def(!1),indeterminate:e.PropTypes.bool,beforeChange:e.PropTypes.func,size:e.PropTypes.size()};const l=(0,t.defineComponent)({name:"Checkbox",props:i,emits:["update:modelValue","change"],setup:function(){var n,a,i,l,u,s,c,d,p,f=function(){var e=(0,t.ref)(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}(),h=(p=2,function(e){if(Array.isArray(e))return e}(d=f)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,n,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(o=t.next()).done)&&(a.push(o.value),!r||a.length!==r);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw n}}return a}}(d,p)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(d,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=h[0],y=h[1],v=y.blur,m=y.focus,k=(n=(0,t.getCurrentInstance)(),a=n.props,i=n.emit,l=(0,t.inject)(o,e.EMPTY_OBJ),u=!(0,e.isEmptyObj)(l),s=(0,t.ref)(a.checked),c=(0,t.computed)((function(){return!(!u||!l.props.disabled)||a.disabled})),u?(0,t.watch)((function(){return l.props.modelValue}),(function(e){s.value=e.includes(a.label)}),{deep:!0}):(0,t.watch)((function(){return a.modelValue}),(function(e){""!==e&&(s.value=e===a.trueLabel)}),{immediate:!0}),(0,t.onMounted)((function(){u&&l.register(n.proxy)})),(0,t.onBeforeUnmount)((function(){u&&l.unregister(n.proxy)})),{isChecked:s,isDisabled:c,setChecked:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];s.value=e},handleChange:function(e){if(!c.value){var r=e.target;s.value=r.checked;var o=s.value?a.trueLabel:a.falseLabel;i("change",o),i("update:modelValue",o),u&&l.handleChange(),(0,t.nextTick)((function(){r.checked!==s.value&&(r.checked=s.value)}))}}});return{isFocus:b,isChecked:k.isChecked,isDisabled:k.isDisabled,setChecked:k.setChecked,handleBlur:v,handleFocus:m,handleChange:k.handleChange}},render:function(){var r=(0,e.classes)({"bk-checkbox":!0,"is-focused":this.isFocus,"is-checked":this.isChecked,"is-disabled":this.isDisabled,"is-indeterminated":this.indeterminate});return(0,t.createVNode)("label",{class:r},[(0,t.createVNode)("span",{class:"bk-checkbox-input"},[(0,t.createVNode)("input",{role:"checkbox",type:"checkbox",class:"bk-checkbox-original",disabled:this.isDisabled,checked:this.isChecked,onChange:this.handleChange},null)]),this.$slots.default?this.$slots.default():(0,t.createVNode)("span",{class:"bk-checkbox-label"},[this.label])])}});var u={name:e.PropTypes.string.def(""),modelValue:e.PropTypes.array,disabled:e.PropTypes.bool};const s=(0,t.defineComponent)({name:"CheckboxGroup",props:u,emits:["change","update:modelValue"],setup:function(e,r){var n=[];return(0,t.provide)(o,{name:"CheckboxGroup",props:e,register:function(e){n.push(e)},unregister:function(e){var r=n.indexOf(e);r>-1&&n.splice(r,1)},handleChange:function(){var e=n.reduce((function(e,r){return r.isChecked&&e.push(r.label),e}),[]);r.emit("update:modelValue",e),r.emit("change",e)}}),(0,t.onMounted)((function(){var r=e.modelValue||[];n.forEach((function(e){r.includes(e.label)&&e.setChecked(!0)}))})),{}},render:function(){var e;return(0,t.createVNode)("div",{class:"bk-checkbox-group"},[null===(e=this.$slots)||void 0===e?void 0:e.default()])}});var c=(0,e.withInstallProps)(l,{Group:s});const d=c})(),a})()));
@@ -76,7 +76,7 @@ declare const _default: import("vue").DefineComponent<{
76
76
  readonly default: () => {};
77
77
  };
78
78
  readonly fontSize: {
79
- readonly type: import("vue").PropType<"large" | "normal" | "medium">;
79
+ readonly type: import("vue").PropType<"normal" | "medium" | "large">;
80
80
  readonly default: "normal";
81
81
  };
82
82
  readonly upToNow: {
@@ -151,7 +151,7 @@ declare const _default: import("vue").DefineComponent<{
151
151
  timeEnterMode: import("vue").Ref<boolean>;
152
152
  shortcut: import("vue").Ref<any>;
153
153
  onSelectionModeChange: import("vue").Ref<(_type: any) => SelectionModeType>;
154
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change")[], "input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
154
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "input" | "change" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change")[], "input" | "clear" | "change" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
155
155
  readonly type: {
156
156
  readonly type: import("vue").PropType<import("./interface").PickerTypeType>;
157
157
  readonly default: "date";
@@ -228,7 +228,7 @@ declare const _default: import("vue").DefineComponent<{
228
228
  readonly default: () => {};
229
229
  };
230
230
  readonly fontSize: {
231
- readonly type: import("vue").PropType<"large" | "normal" | "medium">;
231
+ readonly type: import("vue").PropType<"normal" | "medium" | "large">;
232
232
  readonly default: "normal";
233
233
  };
234
234
  readonly upToNow: {
@@ -268,12 +268,12 @@ declare const _default: import("vue").DefineComponent<{
268
268
  }, {
269
269
  type: import("./interface").PickerTypeType;
270
270
  placeholder: string;
271
- placement: import("@popperjs/core").ComputedPlacement;
272
- options: Record<string, any>;
273
- fontSize: "large" | "normal" | "medium";
274
271
  open: boolean;
275
272
  multiple: boolean;
276
273
  disabled: boolean;
274
+ placement: import("@popperjs/core").ComputedPlacement;
275
+ options: Record<string, any>;
276
+ fontSize: "normal" | "medium" | "large";
277
277
  extPopoverCls: string;
278
278
  readonly: boolean;
279
279
  editable: boolean;
@@ -5,12 +5,12 @@ declare const BkDatePicker: {
5
5
  $props: Partial<{
6
6
  type: import("./interface").PickerTypeType;
7
7
  placeholder: string;
8
- placement: import("@popperjs/core").ComputedPlacement;
9
- options: Record<string, any>;
10
- fontSize: "large" | "normal" | "medium";
11
8
  open: boolean;
12
9
  multiple: boolean;
13
10
  disabled: boolean;
11
+ placement: import("@popperjs/core").ComputedPlacement;
12
+ options: Record<string, any>;
13
+ fontSize: "normal" | "medium" | "large";
14
14
  extPopoverCls: string;
15
15
  readonly: boolean;
16
16
  editable: boolean;
@@ -104,7 +104,7 @@ declare const BkDatePicker: {
104
104
  readonly default: () => {};
105
105
  };
106
106
  readonly fontSize: {
107
- readonly type: import("vue").PropType<"large" | "normal" | "medium">;
107
+ readonly type: import("vue").PropType<"normal" | "medium" | "large">;
108
108
  readonly default: "normal";
109
109
  };
110
110
  readonly upToNow: {
@@ -141,7 +141,7 @@ declare const BkDatePicker: {
141
141
  onClear?: (...args: any[]) => any;
142
142
  "onOpen-change"?: (...args: any[]) => any;
143
143
  "onShortcut-change"?: (...args: any[]) => any;
144
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "placeholder" | "placement" | "options" | "fontSize" | "open" | "multiple" | "disabled" | "extPopoverCls" | "readonly" | "editable" | "clearable" | "timePickerOptions" | "splitPanels" | "transfer" | "appendToBody" | "shortcuts" | "shortcutClose" | "upToNow" | "useShortcutText" | "shortcutSelectedIndex" | "footerSlotCls" | "allowCrossDay" | "behavior">;
144
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "placeholder" | "open" | "multiple" | "disabled" | "placement" | "options" | "fontSize" | "extPopoverCls" | "readonly" | "editable" | "clearable" | "timePickerOptions" | "splitPanels" | "transfer" | "appendToBody" | "shortcuts" | "shortcutClose" | "upToNow" | "useShortcutText" | "shortcutSelectedIndex" | "footerSlotCls" | "allowCrossDay" | "behavior">;
145
145
  $attrs: {
146
146
  [x: string]: unknown;
147
147
  };
@@ -153,7 +153,7 @@ declare const BkDatePicker: {
153
153
  }>;
154
154
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
155
155
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
156
- $emit: (event: "input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change", ...args: any[]) => void;
156
+ $emit: (event: "clear" | "input" | "change" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change", ...args: any[]) => void;
157
157
  $el: any;
158
158
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
159
159
  readonly type: {
@@ -232,7 +232,7 @@ declare const BkDatePicker: {
232
232
  readonly default: () => {};
233
233
  };
234
234
  readonly fontSize: {
235
- readonly type: import("vue").PropType<"large" | "normal" | "medium">;
235
+ readonly type: import("vue").PropType<"normal" | "medium" | "large">;
236
236
  readonly default: "normal";
237
237
  };
238
238
  readonly upToNow: {
@@ -315,15 +315,15 @@ declare const BkDatePicker: {
315
315
  timeEnterMode: import("vue").Ref<boolean>;
316
316
  shortcut: import("vue").Ref<any>;
317
317
  onSelectionModeChange: import("vue").Ref<(_type: any) => import("./interface").SelectionModeType>;
318
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change")[], string, {
318
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "input" | "change" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change")[], string, {
319
319
  type: import("./interface").PickerTypeType;
320
320
  placeholder: string;
321
- placement: import("@popperjs/core").ComputedPlacement;
322
- options: Record<string, any>;
323
- fontSize: "large" | "normal" | "medium";
324
321
  open: boolean;
325
322
  multiple: boolean;
326
323
  disabled: boolean;
324
+ placement: import("@popperjs/core").ComputedPlacement;
325
+ options: Record<string, any>;
326
+ fontSize: "normal" | "medium" | "large";
327
327
  extPopoverCls: string;
328
328
  readonly: boolean;
329
329
  editable: boolean;
@@ -437,7 +437,7 @@ declare const BkDatePicker: {
437
437
  readonly default: () => {};
438
438
  };
439
439
  readonly fontSize: {
440
- readonly type: import("vue").PropType<"large" | "normal" | "medium">;
440
+ readonly type: import("vue").PropType<"normal" | "medium" | "large">;
441
441
  readonly default: "normal";
442
442
  };
443
443
  readonly upToNow: {
@@ -601,7 +601,7 @@ declare const BkDatePicker: {
601
601
  readonly default: () => {};
602
602
  };
603
603
  readonly fontSize: {
604
- readonly type: import("vue").PropType<"large" | "normal" | "medium">;
604
+ readonly type: import("vue").PropType<"normal" | "medium" | "large">;
605
605
  readonly default: "normal";
606
606
  };
607
607
  readonly upToNow: {
@@ -684,15 +684,15 @@ declare const BkDatePicker: {
684
684
  timeEnterMode: import("vue").Ref<boolean>;
685
685
  shortcut: import("vue").Ref<any>;
686
686
  onSelectionModeChange: import("vue").Ref<(_type: any) => import("./interface").SelectionModeType>;
687
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change")[], "input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change", {
687
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "input" | "change" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change")[], "input" | "clear" | "change" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change", {
688
688
  type: import("./interface").PickerTypeType;
689
689
  placeholder: string;
690
- placement: import("@popperjs/core").ComputedPlacement;
691
- options: Record<string, any>;
692
- fontSize: "large" | "normal" | "medium";
693
690
  open: boolean;
694
691
  multiple: boolean;
695
692
  disabled: boolean;
693
+ placement: import("@popperjs/core").ComputedPlacement;
694
+ options: Record<string, any>;
695
+ fontSize: "normal" | "medium" | "large";
696
696
  extPopoverCls: string;
697
697
  readonly: boolean;
698
698
  editable: boolean;
@@ -78,7 +78,7 @@ export declare const datePickerProps: {
78
78
  readonly default: () => {};
79
79
  };
80
80
  readonly fontSize: {
81
- readonly type: PropType<"large" | "normal" | "medium">;
81
+ readonly type: PropType<"normal" | "medium" | "large">;
82
82
  readonly default: "normal";
83
83
  };
84
84
  readonly upToNow: {
@@ -0,0 +1,102 @@
1
+ .bk-modal-wrapper {
2
+ position: absolute;
3
+ top: 50%;
4
+ left: 50%;
5
+ background: #fff;
6
+ transform: translate(-50%, -50%);
7
+ }
8
+ .bk-modal-wrapper.bk-model-fullscreen {
9
+ width: 100%;
10
+ height: 100%;
11
+ }
12
+ .bk-modal-wrapper.normal {
13
+ width: 480px;
14
+ height: 240px;
15
+ }
16
+ .bk-modal-wrapper.small {
17
+ width: 400px;
18
+ height: 200px;
19
+ }
20
+ .bk-modal-wrapper.medium {
21
+ width: 640px;
22
+ height: 400px;
23
+ }
24
+ .bk-modal-wrapper.large {
25
+ width: 960px;
26
+ height: 720px;
27
+ }
28
+ .bk-modal-wrapper .bk-modal-body {
29
+ height: 100%;
30
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
31
+ }
32
+ .bk-modal-wrapper.bk-dialog-wrapper {
33
+ position: relative;
34
+ }
35
+ .bk-modal-wrapper.bk-dialog-wrapper * {
36
+ box-sizing: border-box;
37
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
38
+ }
39
+ .bk-modal-wrapper.bk-dialog-wrapper.scroll-able .bk-modal-content {
40
+ overflow: auto;
41
+ }
42
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-tool {
43
+ position: absolute;
44
+ top: 0;
45
+ right: 0;
46
+ left: 0;
47
+ height: 30px;
48
+ }
49
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-tool .bk-dialog-close {
50
+ position: absolute;
51
+ top: 5px;
52
+ right: 5px;
53
+ display: flex;
54
+ width: 26px;
55
+ height: 26px;
56
+ font-size: 22px;
57
+ font-weight: 700;
58
+ line-height: 26px;
59
+ color: #979ba5;
60
+ text-align: center;
61
+ cursor: pointer;
62
+ border-radius: 50%;
63
+ transform: rotate(45deg);
64
+ justify-content: center;
65
+ align-items: center;
66
+ }
67
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-tool .close-icon {
68
+ display: none;
69
+ }
70
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-header {
71
+ padding: 24px;
72
+ font-size: 20px;
73
+ line-height: 1;
74
+ }
75
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-header .bk-dialog-title {
76
+ display: inline-block;
77
+ width: 100%;
78
+ overflow: hidden;
79
+ font-size: 24px;
80
+ color: #313238;
81
+ text-overflow: ellipsis;
82
+ white-space: nowrap;
83
+ }
84
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-modal-content {
85
+ height: calc(100% - 132px);
86
+ padding: 3px 24px 26px;
87
+ margin-bottom: 58px;
88
+ font-size: 14px;
89
+ line-height: 1.5;
90
+ color: #63656e;
91
+ }
92
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-modal-footer {
93
+ position: absolute;
94
+ right: 0;
95
+ bottom: 0;
96
+ left: 0;
97
+ height: 58px;
98
+ padding: 12px 24px;
99
+ background-color: #fafbfd;
100
+ border-top: 1px solid #dcdee5;
101
+ border-radius: 2px;
102
+ }
@@ -166,9 +166,9 @@ declare const _default: import("vue").DefineComponent<{
166
166
  width: string | number;
167
167
  height: string | number;
168
168
  title: string;
169
+ size: string;
169
170
  showMask: boolean;
170
171
  theme: string;
171
- size: string;
172
172
  isShow: boolean;
173
173
  customClass: string | unknown[];
174
174
  scrollable: boolean;
@@ -0,0 +1,86 @@
1
+ @import '../modal/modal.less';
2
+
3
+ .bk-modal-wrapper {
4
+ &.bk-dialog-wrapper {
5
+ position: relative;
6
+
7
+ * {
8
+ box-sizing: border-box;
9
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
10
+ }
11
+
12
+ &.scroll-able {
13
+ .bk-modal-content {
14
+ overflow: auto;
15
+ }
16
+ }
17
+
18
+ .bk-dialog-tool {
19
+ position: absolute;
20
+ top: 0;
21
+ right: 0;
22
+ left: 0;
23
+ height: 30px;
24
+
25
+ .bk-dialog-close {
26
+ position: absolute;
27
+ top: 5px;
28
+ right: 5px;
29
+ display: flex;
30
+ width: 26px;
31
+ height: 26px;
32
+ font-size: 22px;
33
+ font-weight: 700;
34
+ line-height: 26px;
35
+ color: #979ba5;
36
+ text-align: center;
37
+ cursor: pointer;
38
+ border-radius: 50%;
39
+ transform: rotate(45deg);
40
+ justify-content: center;
41
+ align-items: center;
42
+ }
43
+
44
+ .close-icon {
45
+ display: none;
46
+ }
47
+ }
48
+
49
+ .bk-dialog-header {
50
+ padding: 24px;
51
+ font-size: 20px;
52
+ line-height: 1;
53
+
54
+ .bk-dialog-title {
55
+ display: inline-block;
56
+ width: 100%;
57
+ overflow: hidden;
58
+ font-size: 24px;
59
+ color: #313238;
60
+ text-overflow: ellipsis;
61
+ white-space: nowrap;
62
+ }
63
+ }
64
+
65
+ .bk-modal-content {
66
+ height: calc(100% - 132px);
67
+ padding: 3px 24px 26px;
68
+ margin-bottom: 58px;
69
+ font-size: 14px;
70
+ line-height: 1.5;
71
+ color: #63656e;
72
+ }
73
+
74
+ .bk-modal-footer {
75
+ position: absolute;
76
+ right: 0;
77
+ bottom: 0;
78
+ left: 0;
79
+ height: 58px;
80
+ padding: 12px 24px;
81
+ background-color: #fafbfd;
82
+ border-top: 1px solid #dcdee5;
83
+ border-radius: 2px;
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,102 @@
1
+ .bk-modal-wrapper {
2
+ position: absolute;
3
+ top: 50%;
4
+ left: 50%;
5
+ background: #fff;
6
+ transform: translate(-50%, -50%);
7
+ }
8
+ .bk-modal-wrapper.bk-model-fullscreen {
9
+ width: 100%;
10
+ height: 100%;
11
+ }
12
+ .bk-modal-wrapper.normal {
13
+ width: 480px;
14
+ height: 240px;
15
+ }
16
+ .bk-modal-wrapper.small {
17
+ width: 400px;
18
+ height: 200px;
19
+ }
20
+ .bk-modal-wrapper.medium {
21
+ width: 640px;
22
+ height: 400px;
23
+ }
24
+ .bk-modal-wrapper.large {
25
+ width: 960px;
26
+ height: 720px;
27
+ }
28
+ .bk-modal-wrapper .bk-modal-body {
29
+ height: 100%;
30
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
31
+ }
32
+ .bk-modal-wrapper.bk-dialog-wrapper {
33
+ position: relative;
34
+ }
35
+ .bk-modal-wrapper.bk-dialog-wrapper * {
36
+ box-sizing: border-box;
37
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
38
+ }
39
+ .bk-modal-wrapper.bk-dialog-wrapper.scroll-able .bk-modal-content {
40
+ overflow: auto;
41
+ }
42
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-tool {
43
+ position: absolute;
44
+ top: 0;
45
+ right: 0;
46
+ left: 0;
47
+ height: 30px;
48
+ }
49
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-tool .bk-dialog-close {
50
+ position: absolute;
51
+ top: 5px;
52
+ right: 5px;
53
+ display: flex;
54
+ width: 26px;
55
+ height: 26px;
56
+ font-size: 22px;
57
+ font-weight: 700;
58
+ line-height: 26px;
59
+ color: #979ba5;
60
+ text-align: center;
61
+ cursor: pointer;
62
+ border-radius: 50%;
63
+ transform: rotate(45deg);
64
+ justify-content: center;
65
+ align-items: center;
66
+ }
67
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-tool .close-icon {
68
+ display: none;
69
+ }
70
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-header {
71
+ padding: 24px;
72
+ font-size: 20px;
73
+ line-height: 1;
74
+ }
75
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-header .bk-dialog-title {
76
+ display: inline-block;
77
+ width: 100%;
78
+ overflow: hidden;
79
+ font-size: 24px;
80
+ color: #313238;
81
+ text-overflow: ellipsis;
82
+ white-space: nowrap;
83
+ }
84
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-modal-content {
85
+ height: calc(100% - 132px);
86
+ padding: 3px 24px 26px;
87
+ margin-bottom: 58px;
88
+ font-size: 14px;
89
+ line-height: 1.5;
90
+ color: #63656e;
91
+ }
92
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-modal-footer {
93
+ position: absolute;
94
+ right: 0;
95
+ bottom: 0;
96
+ left: 0;
97
+ height: 58px;
98
+ padding: 12px 24px;
99
+ background-color: #fafbfd;
100
+ border-top: 1px solid #dcdee5;
101
+ border-radius: 2px;
102
+ }