bkui-vue 0.0.1-beta.49 → 0.0.1-beta.51

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 (76) hide show
  1. package/dist/index.cjs.js +25 -25
  2. package/dist/index.esm.js +448 -419
  3. package/dist/index.umd.js +26 -26
  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.d.ts +2 -2
  16. package/lib/button/index.d.ts +7 -7
  17. package/lib/components.js +1 -0
  18. package/lib/date-picker/date-picker.d.ts +6 -6
  19. package/lib/date-picker/index.d.ts +17 -17
  20. package/lib/date-picker/props.d.ts +1 -1
  21. package/lib/dialog/dialog.css +8 -8
  22. package/lib/dialog/dialog.d.ts +1 -1
  23. package/lib/dialog/dialog.variable.css +8 -8
  24. package/lib/dialog/index.d.ts +4 -4
  25. package/lib/dropdown/dropdown.d.ts +1 -1
  26. package/lib/dropdown/index.d.ts +4 -4
  27. package/lib/icon/help.js +1 -1
  28. package/lib/icon/index.js +1 -1
  29. package/lib/index.d.ts +0 -1
  30. package/lib/index.js +1 -0
  31. package/lib/input/index.d.ts +11 -3
  32. package/lib/input/index.js +1 -1
  33. package/lib/input/input.css +6 -2
  34. package/lib/input/input.d.ts +7 -1
  35. package/lib/input/input.less +6 -2
  36. package/lib/input/input.variable.css +6 -2
  37. package/lib/link/index.d.ts +7 -7
  38. package/lib/link/link.d.ts +2 -2
  39. package/lib/loading/index.d.ts +8 -0
  40. package/lib/loading/index.js +1 -1
  41. package/lib/loading/loading.d.ts +6 -0
  42. package/lib/modal/index.d.ts +4 -4
  43. package/lib/modal/modal.css +8 -8
  44. package/lib/modal/modal.d.ts +1 -1
  45. package/lib/modal/modal.less +25 -23
  46. package/lib/modal/modal.variable.css +8 -8
  47. package/lib/popover/index.d.ts +4 -4
  48. package/lib/popover/popover.d.ts +1 -1
  49. package/lib/preset.js +1 -0
  50. package/lib/resize-layout/index.d.ts +4 -4
  51. package/lib/resize-layout/resize-layout.d.ts +1 -1
  52. package/lib/select/index.d.ts +34 -4
  53. package/lib/select/index.js +1 -1
  54. package/lib/select/select.css +5 -0
  55. package/lib/select/select.d.ts +14 -1
  56. package/lib/select/select.less +6 -0
  57. package/lib/select/select.variable.css +5 -0
  58. package/lib/sideslider/index.d.ts +4 -4
  59. package/lib/sideslider/sideslider.d.ts +1 -1
  60. package/lib/slider/slider.d.ts +1 -1
  61. package/lib/switcher/index.d.ts +4 -4
  62. package/lib/switcher/switcher.d.ts +1 -1
  63. package/lib/tab/index.d.ts +8 -8
  64. package/lib/tab/tab-nav.d.ts +1 -1
  65. package/lib/tab/tab-panel.d.ts +1 -1
  66. package/lib/tab/tab.d.ts +2 -2
  67. package/lib/table/index.d.ts +4 -4
  68. package/lib/table/index.js +1 -1
  69. package/lib/table/table.css +8 -1
  70. package/lib/table/table.d.ts +3 -4
  71. package/lib/table/table.less +13 -1
  72. package/lib/table/table.variable.css +8 -1
  73. package/lib/table/use-common.d.ts +17 -0
  74. package/lib/table/utils.d.ts +0 -8
  75. package/package.json +8 -4
  76. package/lib/icon/help-fill.js +0 -1
@@ -41,9 +41,9 @@
41
41
  resize: none;
42
42
  }
43
43
  .bk-textarea--max-length {
44
- align-self: center;
45
44
  padding-right: 10px;
46
45
  margin: 0;
46
+ text-align: right;
47
47
  }
48
48
  .bk-textarea--max-length span {
49
49
  color: #979ba5;
@@ -105,11 +105,15 @@
105
105
  border-bottom-color: #3a84ff;
106
106
  box-shadow: none;
107
107
  }
108
- .bk-input.is-disabled {
108
+ .bk-input.is-disabled input,
109
+ .bk-input.is-readonly input {
109
110
  cursor: not-allowed;
110
111
  background-color: #fafbfd;
111
112
  opacity: 1;
112
113
  }
114
+ .bk-input.is-readonly input {
115
+ cursor: auto;
116
+ }
113
117
  .bk-input--prefix-area,
114
118
  .bk-input--suffix-area {
115
119
  display: flex;
@@ -16,6 +16,8 @@ export declare const inputType: {
16
16
  };
17
17
  placeholder: import("vue-types").VueTypeValidableDef<string> & {
18
18
  default: string;
19
+ } & {
20
+ default: string;
19
21
  };
20
22
  prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
21
23
  default: string;
@@ -90,6 +92,8 @@ declare const _default: import("vue").DefineComponent<{
90
92
  };
91
93
  placeholder: import("vue-types").VueTypeValidableDef<string> & {
92
94
  default: string;
95
+ } & {
96
+ default: string;
93
97
  };
94
98
  prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
95
99
  default: string;
@@ -145,7 +149,7 @@ declare const _default: import("vue").DefineComponent<{
145
149
  rows: import("vue-types").VueTypeValidableDef<number> & {
146
150
  default: number;
147
151
  };
148
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter")[], "input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
152
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "clear" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "update:modelValue" | "enter")[], "input" | "clear" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "update:modelValue" | "enter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
149
153
  type: import("vue-types").VueTypeValidableDef<string> & {
150
154
  default: string;
151
155
  } & {
@@ -162,6 +166,8 @@ declare const _default: import("vue").DefineComponent<{
162
166
  };
163
167
  placeholder: import("vue-types").VueTypeValidableDef<string> & {
164
168
  default: string;
169
+ } & {
170
+ default: string;
165
171
  };
166
172
  prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
167
173
  default: string;
@@ -37,9 +37,9 @@
37
37
  }
38
38
 
39
39
  &--max-length {
40
- align-self: center;
41
40
  padding-right: @input-horizontal-padding;
42
41
  margin: 0;
42
+ text-align: right;
43
43
 
44
44
  span {
45
45
  color: @input-maxlength-color;
@@ -114,9 +114,13 @@
114
114
  }
115
115
  }
116
116
 
117
- &.is-disabled {
117
+ &.is-disabled input,
118
+ &.is-readonly input {
118
119
  .disabled();
119
120
  }
121
+ &.is-readonly input {
122
+ cursor: auto;
123
+ }
120
124
 
121
125
  &--prefix-area,
122
126
  &--suffix-area {
@@ -136,9 +136,9 @@
136
136
  resize: none;
137
137
  }
138
138
  .bk-textarea--max-length {
139
- align-self: center;
140
139
  padding-right: var(--input-horizontal-padding);
141
140
  margin: 0;
141
+ text-align: right;
142
142
  }
143
143
  .bk-textarea--max-length span {
144
144
  color: var(--input-maxlength-color);
@@ -200,11 +200,15 @@
200
200
  border-bottom-color: var(--primary-color);
201
201
  box-shadow: none;
202
202
  }
203
- .bk-input.is-disabled {
203
+ .bk-input.is-disabled input,
204
+ .bk-input.is-readonly input {
204
205
  cursor: not-allowed;
205
206
  background-color: var(--input-disabled-bg);
206
207
  opacity: 1;
207
208
  }
209
+ .bk-input.is-readonly input {
210
+ cursor: auto;
211
+ }
208
212
  .bk-input--prefix-area,
209
213
  .bk-input--suffix-area {
210
214
  display: flex;
@@ -3,10 +3,10 @@ declare const BkLink: {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
- theme: string;
7
- target: string;
8
6
  underline: boolean;
9
7
  disabled: boolean;
8
+ theme: string;
9
+ target: string;
10
10
  href: string;
11
11
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
12
12
  theme: import("vue-types").VueTypeDef<string> & {
@@ -32,7 +32,7 @@ declare const BkLink: {
32
32
  } & {
33
33
  default: string;
34
34
  };
35
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "target" | "underline" | "disabled" | "href">;
35
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "underline" | "disabled" | "theme" | "target" | "href">;
36
36
  $attrs: {
37
37
  [x: string]: unknown;
38
38
  };
@@ -73,10 +73,10 @@ declare const BkLink: {
73
73
  }>>, {
74
74
  handleClick: (event: Event) => boolean;
75
75
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
76
- theme: string;
77
- target: string;
78
76
  underline: boolean;
79
77
  disabled: boolean;
78
+ theme: string;
79
+ target: string;
80
80
  href: string;
81
81
  }> & {
82
82
  beforeCreate?: (() => void) | (() => void)[];
@@ -155,10 +155,10 @@ declare const BkLink: {
155
155
  }>>, {
156
156
  handleClick: (event: Event) => boolean;
157
157
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
158
- theme: string;
159
- target: string;
160
158
  underline: boolean;
161
159
  disabled: boolean;
160
+ theme: string;
161
+ target: string;
162
162
  href: string;
163
163
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
164
164
  export default BkLink;
@@ -49,10 +49,10 @@ declare const _default: import("vue").DefineComponent<{
49
49
  default: string;
50
50
  };
51
51
  }>>, {
52
- theme: string;
53
- target: string;
54
52
  underline: boolean;
55
53
  disabled: boolean;
54
+ theme: string;
55
+ target: string;
56
56
  href: string;
57
57
  }>;
58
58
  export default _default;
@@ -15,6 +15,8 @@ declare const BkLoading: {
15
15
  };
16
16
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
17
17
  default: boolean;
18
+ } & {
19
+ default: boolean;
18
20
  };
19
21
  inline: import("vue-types").VueTypeValidableDef<boolean> & {
20
22
  default: boolean;
@@ -53,6 +55,8 @@ declare const BkLoading: {
53
55
  };
54
56
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
55
57
  default: boolean;
58
+ } & {
59
+ default: boolean;
56
60
  };
57
61
  inline: import("vue-types").VueTypeValidableDef<boolean> & {
58
62
  default: boolean;
@@ -103,6 +107,8 @@ declare const BkLoading: {
103
107
  };
104
108
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
105
109
  default: boolean;
110
+ } & {
111
+ default: boolean;
106
112
  };
107
113
  inline: import("vue-types").VueTypeValidableDef<boolean> & {
108
114
  default: boolean;
@@ -131,6 +137,8 @@ declare const BkLoading: {
131
137
  };
132
138
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
133
139
  default: boolean;
140
+ } & {
141
+ default: boolean;
134
142
  };
135
143
  inline: import("vue-types").VueTypeValidableDef<boolean> & {
136
144
  default: boolean;
@@ -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 n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{r.r(a),r.d(a,{BkLoading:()=>s,BkLoadingMode:()=>t,BkLoadingSize:()=>n,default:()=>p,setDefaultIndicator:()=>d});var e=r(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,n,i,l=r(748);function d(e){i="function"==typeof e?e:function(){return(0,l.createVNode)(e,null,null)}}!function(e){e.Default="default",e.Spin="spin"}(t||(t={})),function(e){e.Normal="",e.Mini="mini",e.Small="small",e.Large="large"}(n||(n={}));var u={indicator:{type:Function},loading:e.PropTypes.bool,inline:e.PropTypes.bool.def(!0),theme:e.PropTypes.theme(["white","primary","warning","success","danger"]),title:e.PropTypes.string.def(""),size:e.PropTypes.commonType(Object.values(n)).def(n.Normal),mode:e.PropTypes.commonType(Object.values(t)).def("default")};const c=(0,l.defineComponent)({name:"Loading",props:u,setup:function(n,r){var a=[1,2,3,4].map((function(e){return(0,l.createVNode)("span",{class:"dot dot-".concat(e)},null)})),d=(0,l.createVNode)("div",{class:"bk-spin-indicator"},[[1,2,3,4,5,6,7,8].map((function(e){return(0,l.createVNode)("span",{class:"oval oval-".concat(e)},null)}))]),u=(0,l.computed)((function(){return(0,e.classes)({"bk-loading-wrapper":n.loading,"bk-nested-loading":!!r.slots.default})})),c=(0,l.computed)((function(){var t;return(0,e.classes)((o(t={},"bk-loading-size-".concat(n.size),!!n.size),o(t,"bk-loading-".concat(n.theme),!!n.theme),t),"bk-loading-indicator")})),s=(0,l.computed)((function(){return!!n.title})),p=(0,l.computed)((function(){var e=n.mode===t.Spin;return"function"==typeof n.indicator?(0,l.createVNode)(n.indicator,null,null):"function"==typeof i?(0,l.createVNode)(i,null,null):e?d:a}));return function(){var e,o;return(0,l.createVNode)("div",{class:u.value},[n.loading&&[(0,l.createVNode)("div",{class:c.value},[p.value,s.value&&(0,l.createVNode)("div",{class:"bk-loading-title"},[n.title])]),r.slots.default&&(0,l.createVNode)("div",{class:"bk-loading-mask"},null)],null===(o=(e=r.slots).default)||void 0===o?void 0:o.call(e)])}}});var s=(0,e.withInstallProps)(c,{setDefaultIndicator:d,BkLoadingMode:t,BkLoadingSize:n},!0);const p=s})(),a})()));
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 n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{r.r(a),r.d(a,{BkLoading:()=>s,BkLoadingMode:()=>t,BkLoadingSize:()=>n,default:()=>p,setDefaultIndicator:()=>d});var e=r(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,n,i,l=r(748);function d(e){i="function"==typeof e?e:function(){return(0,l.createVNode)(e,null,null)}}!function(e){e.Default="default",e.Spin="spin"}(t||(t={})),function(e){e.Normal="",e.Mini="mini",e.Small="small",e.Large="large"}(n||(n={}));var u={indicator:{type:Function},loading:e.PropTypes.bool.def(!0),inline:e.PropTypes.bool.def(!0),theme:e.PropTypes.theme(["white","primary","warning","success","danger"]),title:e.PropTypes.string.def(""),size:e.PropTypes.commonType(Object.values(n)).def(n.Normal),mode:e.PropTypes.commonType(Object.values(t)).def("default")};const c=(0,l.defineComponent)({name:"Loading",props:u,setup:function(n,r){var a=[1,2,3,4].map((function(e){return(0,l.createVNode)("span",{class:"dot dot-".concat(e)},null)})),d=(0,l.createVNode)("div",{class:"bk-spin-indicator"},[[1,2,3,4,5,6,7,8].map((function(e){return(0,l.createVNode)("span",{class:"oval oval-".concat(e)},null)}))]),u=(0,l.computed)((function(){return(0,e.classes)({"bk-loading-wrapper":n.loading,"bk-nested-loading":!!r.slots.default})})),c=(0,l.computed)((function(){var t;return(0,e.classes)((o(t={},"bk-loading-size-".concat(n.size),!!n.size),o(t,"bk-loading-".concat(n.theme),!!n.theme),t),"bk-loading-indicator")})),s=(0,l.computed)((function(){return!!n.title})),p=(0,l.computed)((function(){var e=n.mode===t.Spin;return"function"==typeof n.indicator?(0,l.createVNode)(n.indicator,null,null):"function"==typeof i?(0,l.createVNode)(i,null,null):e?d:a}));return function(){var e,o;return(0,l.createVNode)("div",{class:u.value},[n.loading&&[(0,l.createVNode)("div",{class:c.value},[p.value,s.value&&(0,l.createVNode)("div",{class:"bk-loading-title"},[n.title])]),r.slots.default&&(0,l.createVNode)("div",{class:"bk-loading-mask"},null)],null===(o=(e=r.slots).default)||void 0===o?void 0:o.call(e)])}}});var s=(0,e.withInstallProps)(c,{setDefaultIndicator:d,BkLoadingMode:t,BkLoadingSize:n},!0);const p=s})(),a})()));
@@ -16,6 +16,8 @@ export declare const loadingTypes: {
16
16
  };
17
17
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
18
18
  default: boolean;
19
+ } & {
20
+ default: boolean;
19
21
  };
20
22
  inline: import("vue-types").VueTypeValidableDef<boolean> & {
21
23
  default: boolean;
@@ -42,6 +44,8 @@ declare const _default: import("vue").DefineComponent<{
42
44
  };
43
45
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
44
46
  default: boolean;
47
+ } & {
48
+ default: boolean;
45
49
  };
46
50
  inline: import("vue-types").VueTypeValidableDef<boolean> & {
47
51
  default: boolean;
@@ -66,6 +70,8 @@ declare const _default: import("vue").DefineComponent<{
66
70
  };
67
71
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
68
72
  default: boolean;
73
+ } & {
74
+ default: boolean;
69
75
  };
70
76
  inline: import("vue-types").VueTypeValidableDef<boolean> & {
71
77
  default: boolean;
@@ -8,8 +8,8 @@ declare const BkModal: {
8
8
  $props: Partial<{
9
9
  width: string | number;
10
10
  height: string | number;
11
- showMask: boolean;
12
11
  size: string;
12
+ showMask: boolean;
13
13
  isShow: boolean;
14
14
  customClass: string | unknown[];
15
15
  scrollable: boolean;
@@ -69,7 +69,7 @@ declare const BkModal: {
69
69
  default: string;
70
70
  validator: (value: string) => boolean;
71
71
  };
72
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "showMask" | "size" | "isShow" | "customClass" | "scrollable" | "closeIcon" | "escClose" | "maskClose" | "fullscreen" | "renderDirective">;
72
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "size" | "showMask" | "isShow" | "customClass" | "scrollable" | "closeIcon" | "escClose" | "maskClose" | "fullscreen" | "renderDirective">;
73
73
  $attrs: {
74
74
  [x: string]: unknown;
75
75
  };
@@ -143,8 +143,8 @@ declare const BkModal: {
143
143
  }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
144
144
  width: string | number;
145
145
  height: string | number;
146
- showMask: boolean;
147
146
  size: string;
147
+ showMask: boolean;
148
148
  isShow: boolean;
149
149
  customClass: string | unknown[];
150
150
  scrollable: boolean;
@@ -294,8 +294,8 @@ declare const BkModal: {
294
294
  }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
295
295
  width: string | number;
296
296
  height: string | number;
297
- showMask: boolean;
298
297
  size: string;
298
+ showMask: boolean;
299
299
  isShow: boolean;
300
300
  customClass: string | unknown[];
301
301
  scrollable: boolean;
@@ -5,27 +5,27 @@
5
5
  background: #fff;
6
6
  transform: translate(-50%, -50%);
7
7
  }
8
- .bk-modal-wrapper .bk-modal-body {
8
+ .bk-modal-wrapper.bk-model-fullscreen {
9
+ width: 100%;
9
10
  height: 100%;
10
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
11
11
  }
12
- .normal {
12
+ .bk-modal-wrapper.normal {
13
13
  width: 480px;
14
14
  height: 240px;
15
15
  }
16
- .small {
16
+ .bk-modal-wrapper.small {
17
17
  width: 400px;
18
18
  height: 200px;
19
19
  }
20
- .medium {
20
+ .bk-modal-wrapper.medium {
21
21
  width: 640px;
22
22
  height: 400px;
23
23
  }
24
- .large {
24
+ .bk-modal-wrapper.large {
25
25
  width: 960px;
26
26
  height: 720px;
27
27
  }
28
- .bk-model-fullscreen {
29
- width: 100%;
28
+ .bk-modal-wrapper .bk-modal-body {
30
29
  height: 100%;
30
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
31
31
  }
@@ -109,8 +109,8 @@ declare const _default: import("vue").DefineComponent<{
109
109
  }>>, {
110
110
  width: string | number;
111
111
  height: string | number;
112
- showMask: boolean;
113
112
  size: string;
113
+ showMask: boolean;
114
114
  isShow: boolean;
115
115
  customClass: string | unknown[];
116
116
  scrollable: boolean;
@@ -5,33 +5,35 @@
5
5
  background: #fff;
6
6
  transform: translate(-50%, -50%);
7
7
 
8
- .bk-modal-body {
8
+ &.bk-model-fullscreen {
9
+ width: 100%;
9
10
  height: 100%;
10
- box-shadow: 0 4px 12px rgba(0,0,0,.15);
11
11
  }
12
- }
13
-
14
- .normal {
15
- width: 480px;
16
- height: 240px;
17
- }
18
12
 
19
- .small {
20
- width: 400px;
21
- height: 200px;
22
- }
13
+ &.normal {
14
+ width: 480px;
15
+ height: 240px;
16
+ }
17
+
18
+ &.small {
19
+ width: 400px;
20
+ height: 200px;
21
+ }
22
+
23
+ &.medium {
24
+ width: 640px;
25
+ height: 400px;
26
+ }
27
+
28
+ &.large {
29
+ width: 960px;
30
+ height: 720px;
31
+ }
23
32
 
24
- .medium {
25
- width: 640px;
26
- height: 400px;
33
+ .bk-modal-body {
34
+ height: 100%;
35
+ box-shadow: 0 4px 12px rgba(0,0,0,.15);
36
+ }
27
37
  }
28
38
 
29
- .large {
30
- width: 960px;
31
- height: 720px;
32
- }
33
39
 
34
- .bk-model-fullscreen {
35
- width: 100%;
36
- height: 100%;
37
- }
@@ -5,27 +5,27 @@
5
5
  background: #fff;
6
6
  transform: translate(-50%, -50%);
7
7
  }
8
- .bk-modal-wrapper .bk-modal-body {
8
+ .bk-modal-wrapper.bk-model-fullscreen {
9
+ width: 100%;
9
10
  height: 100%;
10
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
11
11
  }
12
- .normal {
12
+ .bk-modal-wrapper.normal {
13
13
  width: 480px;
14
14
  height: 240px;
15
15
  }
16
- .small {
16
+ .bk-modal-wrapper.small {
17
17
  width: 400px;
18
18
  height: 200px;
19
19
  }
20
- .medium {
20
+ .bk-modal-wrapper.medium {
21
21
  width: 640px;
22
22
  height: 400px;
23
23
  }
24
- .large {
24
+ .bk-modal-wrapper.large {
25
25
  width: 960px;
26
26
  height: 720px;
27
27
  }
28
- .bk-model-fullscreen {
29
- width: 100%;
28
+ .bk-modal-wrapper .bk-modal-body {
30
29
  height: 100%;
30
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
31
31
  }
@@ -5,9 +5,9 @@ declare const BkPopover: {
5
5
  $props: Partial<{
6
6
  width: string | number;
7
7
  height: string | number;
8
+ content: string | number;
8
9
  placement: string;
9
10
  modifiers: unknown[];
10
- content: string | number;
11
11
  theme: string;
12
12
  transition: string;
13
13
  trigger: string;
@@ -74,7 +74,7 @@ declare const BkPopover: {
74
74
  stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
75
75
  default: string | (() => string[]);
76
76
  };
77
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "placement" | "modifiers" | "content" | "theme" | "transition" | "trigger" | "arrow" | "isShow" | "stopBehaviors" | "handleFirstUpdate" | "fixOnBoundary">;
77
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "content" | "placement" | "modifiers" | "theme" | "transition" | "trigger" | "arrow" | "isShow" | "stopBehaviors" | "handleFirstUpdate" | "fixOnBoundary">;
78
78
  $attrs: {
79
79
  [x: string]: unknown;
80
80
  };
@@ -149,9 +149,9 @@ declare const BkPopover: {
149
149
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {
150
150
  width: string | number;
151
151
  height: string | number;
152
+ content: string | number;
152
153
  placement: string;
153
154
  modifiers: unknown[];
154
- content: string | number;
155
155
  theme: string;
156
156
  transition: string;
157
157
  trigger: string;
@@ -303,9 +303,9 @@ declare const BkPopover: {
303
303
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "update:isShow" | "afterHidden" | "afterShow", {
304
304
  width: string | number;
305
305
  height: string | number;
306
+ content: string | number;
306
307
  placement: string;
307
308
  modifiers: unknown[];
308
- content: string | number;
309
309
  theme: string;
310
310
  transition: string;
311
311
  trigger: string;
@@ -117,9 +117,9 @@ declare const _default: import("vue").DefineComponent<{
117
117
  }>>, {
118
118
  width: string | number;
119
119
  height: string | number;
120
+ content: string | number;
120
121
  placement: string;
121
122
  modifiers: unknown[];
122
- content: string | number;
123
123
  theme: string;
124
124
  transition: string;
125
125
  trigger: string;
package/lib/preset.js ADDED
@@ -0,0 +1 @@
1
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("./components"));else if("function"==typeof define&&define.amd)define(["./components"],o);else{var t="object"==typeof exports?o(require("./components")):o(e["./components"]);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,(e=>(()=>{"use strict";var o={4689:o=>{o.exports=e}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return o[e](i,i.exports,r),i.exports}r.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return r.d(o,{a:o}),o},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{default:()=>t});var e=r(4689),o=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Bk";return function(t){var r=t.config.globalProperties.bkUIPrefix||o;Object.keys(e).forEach((function(o){var n=e[o];"install"in n?t.use(n,{prefix:r}):t.component(r+o,e[o])}))}};const t={createInstall:o,install:o(),version:"0.0.1"}})(),n})()));
@@ -3,9 +3,9 @@ declare const BkResizeLayout: {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
- placement: string;
7
6
  border: boolean;
8
7
  disabled: boolean;
8
+ placement: string;
9
9
  max: number;
10
10
  min: number;
11
11
  collapsible: boolean;
@@ -63,7 +63,7 @@ declare const BkResizeLayout: {
63
63
  onResizing?: (...args: any[]) => any;
64
64
  "onAfter-resize"?: (...args: any[]) => any;
65
65
  "onCollapse-change"?: (...args: any[]) => any;
66
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "border" | "disabled" | "max" | "min" | "collapsible" | "triggerWidth" | "triggerOffset" | "initialDivide" | "immediate" | "autoMinimize">;
66
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "border" | "disabled" | "placement" | "max" | "min" | "collapsible" | "triggerWidth" | "triggerOffset" | "initialDivide" | "immediate" | "autoMinimize">;
67
67
  $attrs: {
68
68
  [x: string]: unknown;
69
69
  };
@@ -147,9 +147,9 @@ declare const BkResizeLayout: {
147
147
  handleMousedown: (event: any) => void;
148
148
  setCollapse: (collapse: any) => void;
149
149
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("before-resize" | "resizing" | "after-resize" | "collapse-change")[], string, {
150
- placement: string;
151
150
  border: boolean;
152
151
  disabled: boolean;
152
+ placement: string;
153
153
  max: number;
154
154
  min: number;
155
155
  collapsible: boolean;
@@ -321,9 +321,9 @@ declare const BkResizeLayout: {
321
321
  handleMousedown: (event: any) => void;
322
322
  setCollapse: (collapse: any) => void;
323
323
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("before-resize" | "resizing" | "after-resize" | "collapse-change")[], "before-resize" | "resizing" | "after-resize" | "collapse-change", {
324
- placement: string;
325
324
  border: boolean;
326
325
  disabled: boolean;
326
+ placement: string;
327
327
  max: number;
328
328
  min: number;
329
329
  collapsible: boolean;
@@ -112,9 +112,9 @@ declare const _default: import("vue").DefineComponent<{
112
112
  "onAfter-resize"?: (...args: any[]) => any;
113
113
  "onCollapse-change"?: (...args: any[]) => any;
114
114
  }, {
115
- placement: string;
116
115
  border: boolean;
117
116
  disabled: boolean;
117
+ placement: string;
118
118
  max: number;
119
119
  min: number;
120
120
  collapsible: boolean;