bkui-vue 0.0.1-beta.119 → 0.0.1-beta.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +8 -8
- package/dist/index.esm.js +14 -0
- package/dist/index.umd.js +8 -8
- package/dist/style.css +1 -1
- package/lib/affix/affix.variable.css +4 -1
- package/lib/affix/index.js +1 -1
- package/lib/alert/alert.variable.css +4 -1
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.variable.css +4 -1
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.variable.css +4 -1
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +4 -1
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button.css +9 -0
- package/lib/button/button.d.ts +10 -0
- package/lib/button/button.less +12 -1
- package/lib/button/button.variable.css +13 -1
- package/lib/button/index.d.ts +16 -1
- package/lib/button/index.js +1 -1
- package/lib/card/card.variable.css +4 -1
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader.variable.css +4 -1
- package/lib/cascader/index.js +1 -1
- package/lib/checkbox/checkbox.variable.css +4 -1
- package/lib/checkbox/index.js +1 -1
- package/lib/code-diff/code-diff.variable.css +4 -1
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/collapse.variable.css +4 -1
- package/lib/collapse/index.js +1 -1
- package/lib/components.js +1 -1
- package/lib/container/container.variable.css +4 -1
- package/lib/container/index.js +1 -1
- package/lib/date-picker/date-picker.variable.css +4 -1
- package/lib/date-picker/index.js +1 -1
- package/lib/dialog/dialog.css +5 -1
- package/lib/dialog/dialog.less +6 -1
- package/lib/dialog/dialog.variable.css +5 -1
- package/lib/dialog/index.js +1 -1
- package/lib/directives/index.js +1 -1
- package/lib/dist.index.js +1 -1
- package/lib/divider/divider.variable.css +4 -1
- package/lib/divider/index.js +1 -1
- package/lib/dropdown/dropdown.variable.css +4 -1
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.variable.css +4 -1
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +4 -1
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/form.variable.css +4 -1
- package/lib/form/index.js +1 -1
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.js +1 -1
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/index.js +1 -1
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +99 -15
- package/lib/input/input.less +83 -18
- package/lib/input/input.variable.css +102 -15
- package/lib/link/index.js +1 -1
- package/lib/link/link.variable.css +4 -1
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.variable.css +4 -1
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.variable.css +4 -1
- package/lib/menu/submenu.variable.css +4 -1
- package/lib/message/index.js +1 -1
- package/lib/message/message.variable.css +4 -1
- package/lib/modal/index.js +1 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.variable.css +4 -1
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.variable.css +4 -1
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.variable.css +4 -1
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.variable.css +4 -1
- package/lib/popover2/index.js +1 -1
- package/lib/popover2/popover2.variable.css +4 -1
- package/lib/preset.js +1 -1
- package/lib/process/index.js +1 -1
- package/lib/process/process.variable.css +4 -1
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.variable.css +4 -1
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio.variable.css +4 -1
- package/lib/rate/index.js +1 -1
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.variable.css +4 -1
- package/lib/select/index.js +1 -1
- package/lib/select/select.variable.css +4 -1
- package/lib/shared/index.js +1 -1
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.variable.css +4 -1
- package/lib/slider/index.js +1 -1
- package/lib/slider/slider.variable.css +4 -1
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.variable.css +4 -1
- package/lib/styles/themes/themes.less +6 -1
- package/lib/swiper/index.js +1 -1
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.variable.css +4 -1
- package/lib/tab/index.js +1 -1
- package/lib/tab/tab.variable.css +4 -1
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.variable.css +4 -1
- package/lib/table/plugins/head-sort.variable.css +4 -1
- package/lib/table/plugins/settings.variable.css +4 -1
- package/lib/table/table.variable.css +4 -1
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.variable.css +4 -1
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.variable.css +4 -1
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.variable.css +4 -1
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/transfer.variable.css +4 -1
- package/lib/tree/index.d.ts +4 -4
- package/lib/tree/index.js +1 -1
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/tree.variable.css +4 -1
- package/lib/upload/index.js +1 -1
- package/lib/upload/upload.variable.css +4 -1
- package/lib/virtual-render/index.js +1 -1
- package/package.json +1 -1
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
@@ -141,6 +144,34 @@
|
|
141
144
|
transition: all 0.3s;
|
142
145
|
flex-direction: column;
|
143
146
|
}
|
147
|
+
.bk-textarea ::placeholder {
|
148
|
+
color: var(--light-gray);
|
149
|
+
}
|
150
|
+
.bk-textarea.is-disabled,
|
151
|
+
.bk-textarea.is-readonly {
|
152
|
+
background-color: var(--input-disabled-bg);
|
153
|
+
border-color: var(--disable-color);
|
154
|
+
}
|
155
|
+
.bk-textarea.is-disabled .bk-input--prefix-area,
|
156
|
+
.bk-textarea.is-readonly .bk-input--prefix-area,
|
157
|
+
.bk-textarea.is-disabled .bk-input--suffix-area,
|
158
|
+
.bk-textarea.is-readonly .bk-input--suffix-area,
|
159
|
+
.bk-textarea.is-disabled .bk-input--suffix-icon,
|
160
|
+
.bk-textarea.is-readonly .bk-input--suffix-icon {
|
161
|
+
background-color: var(--input-disabled-bg);
|
162
|
+
}
|
163
|
+
.bk-textarea.is-disabled input,
|
164
|
+
.bk-textarea.is-readonly input,
|
165
|
+
.bk-textarea.is-disabled textarea,
|
166
|
+
.bk-textarea.is-readonly textarea {
|
167
|
+
cursor: not-allowed;
|
168
|
+
background-color: var(--input-disabled-bg);
|
169
|
+
opacity: 1;
|
170
|
+
}
|
171
|
+
.bk-textarea.is-readonly input,
|
172
|
+
.bk-textarea.is-readonly textarea {
|
173
|
+
cursor: auto;
|
174
|
+
}
|
144
175
|
.bk-textarea > textarea {
|
145
176
|
width: 100%;
|
146
177
|
flex: 1;
|
@@ -155,11 +186,20 @@
|
|
155
186
|
.bk-textarea--max-length {
|
156
187
|
padding-right: var(--input-horizontal-padding);
|
157
188
|
margin: 0;
|
189
|
+
margin-left: auto;
|
190
|
+
font-size: 12px;
|
158
191
|
text-align: right;
|
192
|
+
transform: scale(0.8);
|
193
|
+
justify-content: flex-end;
|
159
194
|
}
|
160
195
|
.bk-textarea--max-length span {
|
161
196
|
color: var(--input-maxlength-color);
|
162
197
|
}
|
198
|
+
.bk-textarea.is-focused:not(.is-readonly) {
|
199
|
+
border-color: var(--primary-color);
|
200
|
+
outline: 0;
|
201
|
+
box-shadow: 0px 0px 3px 0px var(--input-shadow-color);
|
202
|
+
}
|
163
203
|
.bk-input {
|
164
204
|
display: inline-flex;
|
165
205
|
align-items: stretch;
|
@@ -170,7 +210,38 @@
|
|
170
210
|
border-radius: var(--border-radius-base);
|
171
211
|
transition: all 0.3s;
|
172
212
|
}
|
173
|
-
.bk-input
|
213
|
+
.bk-input ::placeholder {
|
214
|
+
color: var(--light-gray);
|
215
|
+
}
|
216
|
+
.bk-input.is-disabled,
|
217
|
+
.bk-input.is-readonly {
|
218
|
+
background-color: var(--input-disabled-bg);
|
219
|
+
border-color: var(--disable-color);
|
220
|
+
}
|
221
|
+
.bk-input.is-disabled .bk-input--prefix-area,
|
222
|
+
.bk-input.is-readonly .bk-input--prefix-area,
|
223
|
+
.bk-input.is-disabled .bk-input--suffix-area,
|
224
|
+
.bk-input.is-readonly .bk-input--suffix-area,
|
225
|
+
.bk-input.is-disabled .bk-input--suffix-icon,
|
226
|
+
.bk-input.is-readonly .bk-input--suffix-icon {
|
227
|
+
background-color: var(--input-disabled-bg);
|
228
|
+
}
|
229
|
+
.bk-input.is-disabled input,
|
230
|
+
.bk-input.is-readonly input,
|
231
|
+
.bk-input.is-disabled textarea,
|
232
|
+
.bk-input.is-readonly textarea {
|
233
|
+
cursor: not-allowed;
|
234
|
+
background-color: var(--input-disabled-bg);
|
235
|
+
opacity: 1;
|
236
|
+
}
|
237
|
+
.bk-input.is-readonly input,
|
238
|
+
.bk-input.is-readonly textarea {
|
239
|
+
cursor: auto;
|
240
|
+
}
|
241
|
+
.bk-input:hover:not(.is-disabled) {
|
242
|
+
border-color: var(--gray-color);
|
243
|
+
}
|
244
|
+
.bk-input:hover:not(.is-disabled) .show-clear-only-hover {
|
174
245
|
display: block;
|
175
246
|
}
|
176
247
|
.bk-input.is-simplicity {
|
@@ -178,6 +249,14 @@
|
|
178
249
|
border-color: transparent;
|
179
250
|
border-bottom-color: var(--input-border-color);
|
180
251
|
}
|
252
|
+
.bk-input.is-simplicity:hover:not(.is-disabled) {
|
253
|
+
border-color: transparent;
|
254
|
+
border-bottom-color: var(--light-gray);
|
255
|
+
box-shadow: none;
|
256
|
+
}
|
257
|
+
.bk-input.is-simplicity:hover:not(.is-disabled) .bk-input--text {
|
258
|
+
background-color: var(--input-block-color);
|
259
|
+
}
|
181
260
|
.bk-input--suffix-icon {
|
182
261
|
display: flex;
|
183
262
|
height: 100%;
|
@@ -198,6 +277,9 @@
|
|
198
277
|
.bk-input--large .bk-input--max-length {
|
199
278
|
font-size: var(--font-size-large);
|
200
279
|
}
|
280
|
+
.bk-input--large .bk-input--number-control span:first-child {
|
281
|
+
margin-bottom: 4px;
|
282
|
+
}
|
201
283
|
.bk-input--small {
|
202
284
|
height: var(--component-size-small);
|
203
285
|
font-size: var(--font-size-base);
|
@@ -221,14 +303,8 @@
|
|
221
303
|
border-bottom-color: var(--primary-color);
|
222
304
|
box-shadow: none;
|
223
305
|
}
|
224
|
-
.bk-input.is-
|
225
|
-
|
226
|
-
cursor: not-allowed;
|
227
|
-
background-color: var(--input-disabled-bg);
|
228
|
-
opacity: 1;
|
229
|
-
}
|
230
|
-
.bk-input.is-readonly input {
|
231
|
-
cursor: auto;
|
306
|
+
.bk-input.is-focused:not(.is-readonly).is-simplicity .bk-input--text {
|
307
|
+
background-color: var(--input-block-color);
|
232
308
|
}
|
233
309
|
.bk-input--prefix-area,
|
234
310
|
.bk-input--suffix-area {
|
@@ -246,6 +322,8 @@
|
|
246
322
|
.bk-input--max-length {
|
247
323
|
align-self: center;
|
248
324
|
padding-right: var(--input-horizontal-padding);
|
325
|
+
font-size: 12px;
|
326
|
+
transform: scale(0.8);
|
249
327
|
}
|
250
328
|
.bk-input--max-length span {
|
251
329
|
color: var(--input-maxlength-color);
|
@@ -288,19 +366,28 @@
|
|
288
366
|
color: var(--light-gray);
|
289
367
|
}
|
290
368
|
.bk-input--number-control {
|
369
|
+
display: flex;
|
291
370
|
width: 26px;
|
292
371
|
height: 100%;
|
372
|
+
padding: 4px 0;
|
293
373
|
font-size: 0;
|
294
|
-
flex-direction: column;
|
295
374
|
user-select: none;
|
375
|
+
flex-direction: column;
|
376
|
+
align-items: center;
|
296
377
|
}
|
297
378
|
.bk-input--number-control span {
|
298
|
-
display:
|
299
|
-
height: 50%;
|
379
|
+
display: flex;
|
300
380
|
overflow: hidden;
|
301
381
|
line-height: 1;
|
302
|
-
color: var(--
|
382
|
+
color: var(--gray-color);
|
303
383
|
text-align: center;
|
384
|
+
cursor: pointer;
|
385
|
+
background-color: var(--input-block-color);
|
386
|
+
flex: 1;
|
387
|
+
align-items: center;
|
388
|
+
}
|
389
|
+
.bk-input--number-control span.is-disabled {
|
390
|
+
cursor: not-allowed;
|
304
391
|
}
|
305
392
|
.bk-input--number-control svg {
|
306
393
|
font-size: var(--input-icon-size);
|
@@ -309,5 +396,5 @@
|
|
309
396
|
transform: rotate(180deg);
|
310
397
|
}
|
311
398
|
.bk-input--number-control span:hover {
|
312
|
-
background-color:
|
399
|
+
background-color: var(--input-block-hover-color);
|
313
400
|
}
|
package/lib/link/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as t from"vue";var r={d:(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};r.d(s,{Z:()=>d});const n=(a={PropTypes:()=>e.PropTypes,classes:()=>e.classes,withInstall:()=>e.withInstall},o={},r.d(o,a),o);var a,o;const i=(e=>{var t={};return r.d(t,e),t})({createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent}),l=(0,i.defineComponent)({name:"Link",props:{theme:n.PropTypes.theme(["danger","success","primary","warning","default"]).def("default"),href:n.PropTypes.string.def(""),disabled:n.PropTypes.bool.def(!1),underline:n.PropTypes.bool.def(!1),target:n.PropTypes.string.def("_self")},setup:function(e,t){var r=t.emit;return{handleClick:function(t){if(e.disabled)return t.preventDefault(),!1;r("click",t)}}},render:function(){var e,t,r=(0,n.classes)({"is-disabled":this.disabled,"has-underline":this.underline},"".concat(this.theme," bk-link"));return(0,i.createVNode)("a",{href:this.href,target:this.target,class:r,onClick:this.handleClick},[(0,i.createVNode)("span",null,[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])])}}),d=(0,n.withInstall)(l);var p=s.Z;export{p as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/loading/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as o from"vue";var n={d:(e,o)=>{for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},t={};n.d(t,{L3:()=>v,MY:()=>s,p9:()=>d,ZP:()=>y,jk:()=>p});const a=(r={PropTypes:()=>e.PropTypes,classes:()=>e.classes,withInstallProps:()=>e.withInstallProps},i={},n.d(i,r),i);var r,i;function l(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}const c=(e=>{var o={};return n.d(o,e),o})({computed:()=>o.computed,createVNode:()=>o.createVNode,defineComponent:()=>o.defineComponent});var s,d,u;function p(e){u="function"==typeof e?e:function(){return(0,c.createVNode)(e,null,null)}}!function(e){e.Default="default",e.Spin="spin"}(s||(s={})),function(e){e.Normal="",e.Mini="mini",e.Small="small",e.Large="large"}(d||(d={}));var f={indicator:{type:Function},loading:a.PropTypes.bool.def(!0),inline:a.PropTypes.bool.def(!0),theme:a.PropTypes.theme(["white","primary","warning","success","danger"]),title:a.PropTypes.string.def(""),size:a.PropTypes.commonType(Object.values(d)).def(d.Normal),mode:a.PropTypes.commonType(Object.values(s)).def("default"),opacity:a.PropTypes.number.def(.9),color:a.PropTypes.string.def("white"),zIndex:a.PropTypes.number.def(1)};const m=(0,c.defineComponent)({name:"Loading",props:f,setup:function(e,o){var n=(0,c.createVNode)("div",{class:"bk-normal-indicator"},[[1,2,3,4].map((function(e){return(0,c.createVNode)("span",{class:"dot dot-".concat(e)},null)}))]),t=(0,c.createVNode)("div",{class:"bk-spin-indicator"},[[1,2,3,4,5,6,7,8].map((function(e){return(0,c.createVNode)("span",{class:"oval oval-".concat(e)},null)}))]),r=(0,c.computed)((function(){return{zIndex:e.zIndex}})),i=(0,c.computed)((function(){return Object.assign({opacity:e.opacity,backgroundColor:e.color},r.value)})),d=(0,c.computed)((function(){return(0,a.classes)({"bk-loading-wrapper":e.loading,"bk-nested-loading":!!o.slots.default})})),p=(0,c.computed)((function(){var o;return(0,a.classes)((l(o={},"bk-loading-size-".concat(e.size),!!e.size),l(o,"bk-loading-".concat(e.theme),!!e.theme),o),"bk-loading-indicator")})),f=(0,c.computed)((function(){return!!e.title})),m=(0,c.computed)((function(){var o=e.mode===s.Spin;return"function"==typeof e.indicator?(0,c.createVNode)(e.indicator,null,null):"function"==typeof u?(0,c.createVNode)(u,null,null):o?t:n}));return function(){var n,t;return(0,c.createVNode)("div",{class:d.value},[e.loading&&[o.slots.default&&(0,c.createVNode)("div",{class:"bk-loading-mask",style:i.value},null),(0,c.createVNode)("div",{class:p.value,style:r.value},[m.value,f.value&&(0,c.createVNode)("div",{class:"bk-loading-title"},[e.title])])],null===(t=(n=o.slots).default)||void 0===t?void 0:t.call(n)])}}});var v=(0,a.withInstallProps)(m,{setDefaultIndicator:p,BkLoadingMode:s,BkLoadingSize:d},!0);const y=v;var g=t.L3,b=t.MY,P=t.p9,k=t.ZP,N=t.jk;export{g as BkLoading,b as BkLoadingMode,P as BkLoadingSize,k as default,N as setDefaultIndicator};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/menu/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as t from"vue";import*as n from"../icon/";var o={d:(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},a={};o.d(a,{I3:()=>k,yK:()=>w,R1:()=>I,zM:()=>A,ZP:()=>C});const r=(l={withInstallProps:()=>e.withInstallProps},i={},o.d(i,l),i);var l,i;function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function c(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const s=(e=>{var t={};return o.d(t,e),t})({Transition:()=>t.Transition,computed:()=>t.computed,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,getCurrentInstance:()=>t.getCurrentInstance,inject:()=>t.inject,onBeforeUnmount:()=>t.onBeforeUnmount,provide:()=>t.provide,ref:()=>t.ref,vShow:()=>t.vShow,watch:()=>t.watch,watchEffect:()=>t.watchEffect,withDirectives:()=>t.withDirectives});var v=Symbol("MENU_PROVIDER_KEY"),d=Symbol("MENU_PROVIDER_KEY_PATH"),p=function(){return(0,s.inject)(v)},f=function(){var e,t=(0,s.getCurrentInstance)(),n=t.parent?t.parent.provides:null===(e=t.vnode.appContext)||void 0===e?void 0:e.provides;return n&&d in n?(0,s.inject)(d):{parentInfo:void 0,parentKeys:(0,s.ref)([])}},m=function(e){return(e||"").split(" ").filter((function(e){return!!e.trim()}))};function y(e,t){if(e&&t){var n=m(t),o=e.getAttribute("class")||"";if(e.classList){var a;(a=e.classList).remove.apply(a,c(n))}else{n.forEach((function(e){o=o.replace(" ".concat(e," ")," ")}));var r=m(o).join(" ");e.setAttribute("class",r)}}}function h(e,t){if(e){var n,o=e.getAttribute("class")||"",a=m(o),r=(t||"").split(" ").filter((function(e){return!a.includes(e)&&!!e.trim()}));e.classList?(n=e.classList).add.apply(n,c(r)):(o+=" ".concat(r.join(" ")),e.setAttribute("class",o))}}var g={activeKey:String,collapse:Boolean,openedKeys:{type:Array},mode:{type:String,default:"vertical"},uniqueOpen:{type:Boolean,default:!0}};const b=(0,s.defineComponent)({name:"Menu",props:g,emits:["update:activeKey","update:openKeys","click","openChange"],setup:function(e,t){var n,o=t.slots,a=t.emit,r=t.expose,l=(0,s.ref)(""),i=(0,s.ref)([]),u=(0,s.ref)({}),d=(0,s.computed)((function(){return e.mode})),p=(0,s.ref)(e.collapse),f=(0,s.ref)([]);return(0,s.watchEffect)((function(){void 0!==e.activeKey&&(l.value=e.activeKey)})),(0,s.watch)((function(){return e.collapse}),(function(){p.value=e.collapse,console.info(e.collapse);var t=c(f.value),n=c(i.value);i.value=p.value?[]:t,f.value=p.value?n:[]}),{immediate:!0}),(0,s.watch)((function(){return e.openedKeys}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.value;i.value=e}),{immediate:!0}),n={activeKey:l,menuStore:u,registerMenuInfo:function(e,t){u.value=Object.assign(Object.assign({},u.value),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t))},unregisterMenuInfo:function(e){delete u.value[e],u.value=Object.assign({},u.value)},mode:d.value,openedKeys:i,collapse:p,handleOpenChange:function(t,n){n?e.uniqueOpen?i.value=[t]:i.value.push(t):i.value=i.value.filter((function(e){return e!==t})),a("openChange",n,u.value[t]),a("update:openKeys",c(i.value))},handleActiveChange:function(e){l.value=e,a("click",u.value[e]),a("update:activeKey",e,u.value[e])}},(0,s.provide)(v,n),r({activeKey:l,openedKeys:i,menuStore:u}),function(){var e;return(0,s.createVNode)("div",{class:{"bk-menu":!0,"is-collapse":p.value}},[null===(e=o.default)||void 0===e?void 0:e.call(o)])}}}),w=(0,s.defineComponent)({name:"MenuGroup",props:{name:{type:String,default:""}},setup:function(e,t){var n=t.slots;return function(){var t;return(0,s.createVNode)("div",{class:"bk-menu-group"},[(0,s.createVNode)("div",{class:"group-name"},[e.name]),(0,s.createVNode)("ul",{class:"group-wrap"},[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}}),I=(0,s.defineComponent)({name:"MenuItem",props:{needIcon:{type:Boolean,default:!0}},emits:["click"],slots:["icon"],setup:function(e,t){var n,o,a=t.slots,r=t.emit,l=p(),i=l.registerMenuInfo,u=l.unregisterMenuInfo,c=l.activeKey,v=l.handleActiveChange,d=(0,s.getCurrentInstance)(),m=f().parentInfo,y=(null===(o=null===(n=d.vnode.key)||void 0===n?void 0:n.toString)||void 0===o?void 0:o.call(n))||String(d.uid),h=(0,s.computed)((function(){return c.value===y})),g=(0,s.computed)((function(){return e.needIcon}));i(y,{key:y,parentKey:null==m?void 0:m.key});var b=function(e){v(y),r("click",e)};return(0,s.onBeforeUnmount)((function(){return u(y)})),function(){var e,t;return(0,s.createVNode)("li",{class:{"bk-menu-item":!0,"is-active":h.value},onClick:b},[g.value&&(0,s.createVNode)("span",{class:"item-icon"},[(null===(e=null==a?void 0:a.icon)||void 0===e?void 0:e.call(a))||(0,s.createVNode)("i",{class:"default-icon"},null)]),(0,s.createVNode)("span",{class:"item-content"},[null===(t=a.default)||void 0===t?void 0:t.call(a)])])}}}),K=(e=>{var t={};return o.d(t,e),t})({AngleDown:()=>n.AngleDown,TreeApplicationShape:()=>n.TreeApplicationShape});var S={title:{type:String,default:"title"}};const A=(0,s.defineComponent)({name:"Submenu",props:S,emits:["collapse"],slots:["icon"],setup:function(e,t){var n,o,a=t.slots,r=t.emit,l=p(),i=l.registerMenuInfo,u=l.unregisterMenuInfo,v=l.openedKeys,m=l.handleOpenChange,g=l.collapse,b=l.activeKey,w=l.menuStore,I=f().parentInfo,S=(0,s.getCurrentInstance)(),A=(null===(o=null===(n=S.vnode.key)||void 0===n?void 0:n.toString)||void 0===o?void 0:o.call(n))||String(S.uid),k=(0,s.ref)({css:!0,onBeforeEnter:function(e){h(e,"collapse-transition"),e.dataset||(e.dataset={}),e.style.height="0px",e.style.maxHeight="0px"},onEnter:function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height="".concat(e.scrollHeight,"px"),e.style.maxHeight="".concat(e.scrollHeight,"px")):(e.style.height="0px",e.style.maxHeight="0px"),e.style.overflow="hidden"},onAfterEnter:function(e){e.style.height="",e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,y(e,"collapse-transition")},onBeforeLeave:function(e){e.dataset||(e.dataset={}),e.dataset.oldOverflow=e.style.overflow,e.style.height="".concat(e.scrollHeight,"px"),e.style.maxHeight="".concat(e.scrollHeight,"px"),e.style.overflow="hidden"},onLeave:function(e){0!==e.scrollHeight&&(h(e,"collapse-transition"),e.style.transitionProperty="height",e.style.height="0px",e.style.maxHeight="0px")},onAfterLeave:function(e){y(e,"collapse-transition"),e.style.height="",e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow}}),C=(0,s.computed)((function(){return v.value.includes(A)})),x=(0,s.computed)((function(){var e,t,n=null===(t=null===(e=w.value)||void 0===e?void 0:e[b.value])||void 0===t?void 0:t.parentKey;return g.value&&n===A&&C}));!function(e){var t=f(),n=t.parentKeys,o=t.parentInfo,a=(0,s.computed)((function(){return[].concat(c(n.value),[e])}));(0,s.provide)(d,{parentInfo:{key:e,parentKey:null==o?void 0:o.key},parentKeys:a})}(A),i(A,{key:A,parentKey:null==I?void 0:I.key}),(0,s.onBeforeUnmount)((function(){return u(A)}));var N=function(){m(A,!C.value),r("collapse",!C.value,S)};return function(){var t,n;return(0,s.createVNode)("li",{class:{"bk-menu-submenu":!0,"is-opened":C.value}},[(0,s.createVNode)("div",{class:{"submenu-header":!0,"is-collapse":x.value},onClick:N},[(0,s.createVNode)("span",{class:"submenu-header-icon"},[(null===(t=a.icon)||void 0===t?void 0:t.call(a))||(0,s.createVNode)(K.TreeApplicationShape,{class:"menu-icon"},null)]),(0,s.createVNode)("span",{class:"submenu-header-content"},[e.title]),(0,s.createVNode)(K.AngleDown,{class:{"submenu-header-collapse":!0,"is-collapse":v.value.includes(A)}},null)]),(0,s.createVNode)(s.Transition,k.value,{default:function(){return[(0,s.withDirectives)((0,s.createVNode)("ul",{class:"submenu-list"},[null===(n=a.default)||void 0===n?void 0:n.call(a)]),[[s.vShow,C.value]])]}})])}}});var k=(0,r.withInstallProps)(b,{Item:I,Submenu:A,Group:w});const C=k;var x=a.I3,N=a.yK,V=a.R1,O=a.zM,M=a.ZP;export{x as BkMenu,N as BkMenuGroup,V as BkMenuItem,O as BkSubmenu,M as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/message/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";import*as t from"../shared";import*as o from"../icon";var n={d:(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},r={};n.d(r,{Z:()=>m});const s=(a={Transition:()=>e.Transition,computed:()=>e.computed,createVNode:()=>e.createVNode,defineComponent:()=>e.defineComponent,onMounted:()=>e.onMounted,onUnmounted:()=>e.onUnmounted,ref:()=>e.ref,render:()=>e.render,vShow:()=>e.vShow,watch:()=>e.watch,withDirectives:()=>e.withDirectives},i={},n.d(i,a),i);var a,i;const c=(e=>{var t={};return n.d(t,e),t})({PropTypes:()=>t.PropTypes,bkZIndexManager:()=>t.bkZIndexManager,isElement:()=>t.isElement});var l={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},p=1;const d=(e=>{var t={};return n.d(t,e),t})({Close:()=>o.Close,Error:()=>o.Error,Info:()=>o.Info,Success:()=>o.Success,Warn:()=>o.Warn});var u={id:c.PropTypes.string.def(""),message:c.PropTypes.string.def(""),theme:c.PropTypes.theme(["primary","warning","success","error"]).def("primary"),delay:c.PropTypes.number.def(3e3),dismissable:c.PropTypes.bool.def(!0),offsetY:c.PropTypes.number.def(30),spacing:c.PropTypes.number.def(10),extCls:c.PropTypes.string.def(""),onClose:c.PropTypes.func,getContainer:c.PropTypes.instanceOf(HTMLElement)};const f=(0,s.defineComponent)({name:"Message",props:u,emits:["destory"],setup:function(e,t){var o=t.emit,n=(0,s.computed)((function(){return["bk-message","bk-message-".concat(e.theme),"".concat(e.extCls)]})),r=c.bkZIndexManager.getMessageNextIndex(),a=(0,s.computed)((function(){return e.getContainer&&(0,c.isElement)(e.getContainer)})),i=(0,s.computed)((function(){return{top:"".concat(e.offsetY,"px"),zIndex:r,position:a.value?"absolute":"fixed"}})),l=(0,s.ref)(!1),p=null;return(0,s.onMounted)((function(){e.delay&&(p=setTimeout((function(){l.value=!1}),e.delay)),l.value=!0})),(0,s.onUnmounted)((function(){clearTimeout(p)})),(0,s.watch)(l,(function(){l.value||o("destory",e.id)})),{classNames:n,styles:i,visible:l,close:function(e){e.preventDefault(),e.stopPropagation(),l.value=!1}}},render:function(){var e=this;return(0,s.createVNode)(s.Transition,{name:"bk-message-fade"},{default:function(){return[(0,s.withDirectives)((0,s.createVNode)("div",{class:e.classNames,style:e.styles},[(0,s.createVNode)("div",{class:"bk-message-content"},[(0,s.createVNode)("div",{class:"bk-message-icon"},[{primary:(0,s.createVNode)(d.Info,null,null),warning:(0,s.createVNode)(d.Warn,null,null),success:(0,s.createVNode)(d.Success,null,null),error:(0,s.createVNode)(d.Close,null,null)}[e.theme]]),e.message]),e.dismissable&&(0,s.createVNode)(d.Error,{class:"bk-message-icon bk-message-close",onClick:e.close},null)]),[[s.vShow,e.visible]])]}})}}),m=function(e){!function(e,t){var o=t,n=o.position||"top-right";"string"==typeof t&&(o={message:t});var r=t.onClose,a=o.offsetX||10,i=o.offsetY||30,d=o.spacing,u=void 0===d?10:d;l[n].forEach((function(e){i+=(e.el.offsetHeight||0)+u}));var f="message_".concat(p+=1);o=Object.assign(Object.assign({},o),{offsetX:a,offsetY:i,id:f});var m=document.createElement("div"),g=(0,s.createVNode)(e,o);g.props.onDestory=function(e){!function(e,t,o,n){null==n||n();var r=t.startsWith("top")?"top":"bottom",s=-1;l[t].forEach((function(t,o){t.props.id===e&&(s=o)}));for(var a=l[t][s].el.offsetHeight,i=l[t].length,c=s;c<i;c++){var p=parseInt(l[t][c].el.style[r],10)-a-o;l[t][c].component.props.offsetY=p}l[t].splice(s,1)}(e,n,u,r),(0,s.render)(null,m)},(0,s.render)(g,m),l[n].push(g),(g.props.getContainer&&(0,c.isElement)(g.props.getContainer)?g.props.getContainer:document.body).appendChild(m.firstElementChild)}(f,e)};var g=r.Z;export{g as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/modal/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as o from"vue";var t={d:(e,o)=>{for(var i in o)t.o(o,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:o[i]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},i={};t.d(i,{$S:()=>c,ZP:()=>p,ty:()=>l});const s=(n={PropTypes:()=>e.PropTypes,bkPopIndexManager:()=>e.bkPopIndexManager,withInstallProps:()=>e.withInstallProps},r={},t.d(r,n),r);var n,r;const a=(e=>{var o={};return t.d(o,e),o})({Transition:()=>o.Transition,createVNode:()=>o.createVNode,defineComponent:()=>o.defineComponent,vShow:()=>o.vShow,withDirectives:()=>o.withDirectives});var l={isShow:s.PropTypes.bool.def(!1),width:s.PropTypes.oneOfType([String,Number]).def("50%"),height:s.PropTypes.oneOfType([String,Number]).def("50%"),extCls:s.PropTypes.string||s.PropTypes.array,scrollable:s.PropTypes.bool.def(!0),showMask:s.PropTypes.bool.def(!0),closeIcon:s.PropTypes.bool.def(!0),escClose:s.PropTypes.bool.def(!0),fullscreen:s.PropTypes.bool.def(!1),size:s.PropTypes.commonType(["normal","small","medium","large"],"size").def(),draggable:s.PropTypes.bool.def(!0),quickClose:s.PropTypes.bool.def(!0),transfer:s.PropTypes.bool.def(!1),maxHeight:s.PropTypes.string,direction:s.PropTypes.string,title:s.PropTypes.string.def(""),animateType:s.PropTypes.string.def("slide"),renderDirective:s.PropTypes.commonType(["show","if"],"renderDirective").def("show"),beforeClose:s.PropTypes.custom((function(){return!0})),dialogType:s.PropTypes.commonType(["show","operation","confirm","process"],"dialogType").def("operation"),multiInstance:s.PropTypes.bool.def(!0)};const d=(0,a.defineComponent)({name:"Modal",props:Object.assign({},l),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(e){var o=this;e?this.$nextTick((function(){var e=o.showMask?{}:{"background-color":"rgba(0,0,0,0)"};s.bkPopIndexManager.show(o.$el,o.showMask,e,o.transfer),o.$emit("shown"),o.$emit("quick-close",o.$el),o.$emit("quickClose",o.$el)})):s.bkPopIndexManager.hide(this.$el,this.transfer)}},beforeUnmount:function(){s.bkPopIndexManager.hide(this.$el)},methods:{handleClickOutSide:function(){this.quickClose&&this.$emit("close")}},render:function(){var e,o,t,i,s,n,r,l,d,c=this,p=this.maxHeight?{maxHeight:this.maxHeight}:{},h="bk-modal-body ".concat("slide"===this.animateType?this.direction:"");return(0,a.createVNode)("div",{class:["bk-modal-wrapper",this.extCls,this.size],style:[this.compStyle,this.fullscreen?this.fullscreenStyle:""]},[(0,a.withDirectives)((0,a.createVNode)("div",{class:"bk-modal-outside",onClick:this.handleClickOutSide},null),[[a.vShow,this.isShow]]),(0,a.createVNode)(a.Transition,{name:this.animateType},{default:function(){return[c.isShow?(0,a.createVNode)("div",{class:h},[(0,a.createVNode)("div",{class:"bk-modal-header"},[null!==(t=null===(o=(e=c.$slots).header)||void 0===o?void 0:o.call(e))&&void 0!==t?t:""]),(0,a.createVNode)("div",{class:"bk-modal-content",style:["show"===c.dialogType?"padding-bottom: 20px":"",Object.assign({},p)]},[null!==(n=null===(s=(i=c.$slots).default)||void 0===s?void 0:s.call(i))&&void 0!==n?n:""]),"show"===c.dialogType?"":(0,a.createVNode)("div",{class:"bk-modal-footer"},[null!==(d=null===(l=(r=c.$slots).footer)||void 0===l?void 0:l.call(r))&&void 0!==d?d:""])]):""]}})])}});var c=(0,s.withInstallProps)(d,{propsMixin:l},!0);const p=c;var h=i.$S,u=i.ZP,f=i.ty;export{h as BkModal,u as default,f as propsMixin};
|
package/lib/navigation/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as t from"vue";import*as i from"../icon";var o={d:(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},a={};o.d(a,{Z:()=>f});const n=(l={withInstall:()=>e.withInstall},r={},o.d(r,l),r);var l,r;const s=(e=>{var t={};return o.d(t,e),t})({createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,onBeforeUnmount:()=>t.onBeforeUnmount,reactive:()=>t.reactive,ref:()=>t.ref}),d=(e=>{var t={};return o.d(t,e),t})({CollapseLeft:()=>i.CollapseLeft});var c={sideTitle:{type:String,default:""},navigationType:{type:String,default:"left-right"}};const h=(0,s.defineComponent)({props:c,slots:["side-icon"],setup:function(e,t){var i=t.slots;return function(){var t,o;return(0,s.createVNode)("div",{class:"bk-navigation-title",style:{borderBottomWidth:"left-right"===e.navigationType?"0":"1px"}},[(null===(t=i.default)||void 0===t?void 0:t.call(i))||[(0,s.createVNode)("span",{class:"title-icon"},[(null===(o=i["side-icon"])||void 0===o?void 0:o.call(i))||(0,s.createVNode)("i",{class:"bk-icon icon-rtx"},null)]),(0,s.createVNode)("span",{class:"title-desc"},[e.sideTitle])]])}}});var v={navWidth:{type:[Number,String],default:60},hoverWidth:{type:[Number,String],default:260},showSideNavTitle:{type:Boolean,default:!0},sideTitle:{type:String,default:""},headerTitle:{type:String,default:""},hoverLeaveDelay:{type:Number,default:0},hoverEnterDelay:{type:Number,default:100},defaultOpen:Boolean,headHeight:{type:[Number,String],default:52},navigationType:{type:String,default:"left-right",validator:function(e){return["top-bottom","left-right"].includes(e)}},needMenu:{type:Boolean,default:!0}};const u=(0,s.defineComponent)({name:"Navigation",props:v,emits:["leave","toggle","hover","toggle-click"],slots:["header","menu","footer","side-icon","side-header"],setup:function(e,t){var i=t.emit,o=(0,s.ref)(e.headerTitle),a=(0,s.reactive)({click:!1,hover:!1,delay:!1,timer:null,enterTimer:null});return e.defaultOpen&&(a.click=!a.click,a.hover=a.click,i("toggle",a.hover)),(0,s.onBeforeUnmount)((function(){a.timer&&window.clearTimeout(a.timer)})),{defaultHeaderTitle:o,nav:a,onBeforeUnmount:s.onBeforeUnmount,handleMouseOver:function(){a.click||(a.enterTimer=setTimeout((function(){a.hover=!0,a.enterTimer&&window.clearTimeout(a.enterTimer),a.timer&&window.clearTimeout(a.timer),i("hover",a.hover),i("toggle",a.hover)}),e.hoverEnterDelay))},handleMouseLeave:function(){a.click||(a.enterTimer&&window.clearTimeout(a.enterTimer),a.timer=setTimeout((function(){a.hover=!1,window.clearTimeout(a.timer),i("leave",a.hover),i("toggle",a.hover)}),e.hoverLeaveDelay))},handleClick:function(){a.click=!a.click,a.hover=a.click,i("toggle",a.hover),i("toggle-click",a.hover)}}},render:function(){var e,t,i,o,a,n,l,r,c,v,u,f;return(0,s.createVNode)("div",{class:"bk-navigation"},["top-bottom"===this.navigationType&&(0,s.createVNode)("div",{class:"bk-navigation-header",style:{flexBasis:"".concat(this.headHeight,"px")}},[(0,s.createVNode)(h,{sideTitle:this.sideTitle},{default:this.$slots["side-header"],"side-icon":this.$slots["side-header"]?void 0:this.$slots["side-icon"]}),(0,s.createVNode)("div",{class:"header-right"},[null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e)])]),(0,s.createVNode)("div",{class:"bk-navigation-wrapper"},[this.needMenu&&(0,s.createVNode)("div",{class:"navigation-nav",style:{width:this.nav.click?"".concat(this.hoverWidth,"px"):"".concat(this.navWidth,"px")}},[(0,s.createVNode)("div",{class:"nav-slider",onMouseenter:this.handleMouseOver,onMouseleave:this.handleMouseLeave,style:{width:this.nav.hover?"".concat(this.hoverWidth,"px"):"".concat(this.navWidth,"px"),borderRight:"top-bottom"!==this.navigationType?"none":"1px solid #DCDEE5"}},["top-bottom"!==this.navigationType&&this.showSideNavTitle&&(0,s.createVNode)(h,{style:{flexBasis:"".concat(this.headHeight,"px")},sideTitle:this.sideTitle},{default:this.$slots["side-header"],"side-icon":this.$slots["side-header"]?void 0:this.$slots["side-icon"]}),(0,s.createVNode)("div",{class:"nav-slider-list",style:{height:"calc(100vh - ".concat(+this.headHeight+56,"px)")}},[null===(o=(i=this.$slots).menu)||void 0===o?void 0:o.call(i)]),(0,s.createVNode)("div",{class:"nav-slider-footer"},[(0,s.createVNode)("div",{class:{"is-left":"top-bottom"!==this.navigationType,"footer-icon":!0},onClick:this.handleClick},[(0,s.createVNode)(d.CollapseLeft,{class:"footer-icon-svg",style:{transform:this.nav.click?"rotate(180deg)":"rotate(0deg)"}},null)])])])]),(0,s.createVNode)("div",{class:"navigation-container",style:{maxWidth:this.needMenu?"calc(100vw - 60px)":"100vw"}},["top-bottom"!==this.navigationType&&(0,s.createVNode)("div",{class:"container-header",style:{flexBasis:"".concat(this.headHeight,"px")}},[(null===(n=(a=this.$slots).header)||void 0===n?void 0:n.call(a))||[(0,s.createVNode)("div",{class:"container-header-title"},[this.headerTitle]),(0,s.createVNode)("div",{class:"container-header-sets"},[null===(r=(l=this.$slots)["header-set"])||void 0===r?void 0:r.call(l)])]]),(0,s.createVNode)("div",{class:"container-content",style:{maxHeight:"calc(100vh - ".concat(this.headHeight,"px)")}},[null===(v=(c=this.$slots).default)||void 0===v?void 0:v.call(c),(0,s.createVNode)("div",{class:"container-footer"},[null===(f=(u=this.$slots).footer)||void 0===f?void 0:f.call(u)])])])])])}}),f=(0,n.withInstall)(u);var p=a.Z;export{p as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|
package/lib/notify/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"vue";import*as t from"../shared";import*as o from"../icon";var n={d:(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},r={};n.d(r,{Z:()=>y});const s=(i={Transition:()=>e.Transition,computed:()=>e.computed,createVNode:()=>e.createVNode,defineComponent:()=>e.defineComponent,onMounted:()=>e.onMounted,onUnmounted:()=>e.onUnmounted,ref:()=>e.ref,render:()=>e.render,vShow:()=>e.vShow,watch:()=>e.watch,withDirectives:()=>e.withDirectives},a={},n.d(a,i),a);var i,a;const c=(e=>{var t={};return n.d(t,e),t})({PropTypes:()=>t.PropTypes,bkZIndexManager:()=>t.bkZIndexManager,isElement:()=>t.isElement});var f={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},l=1;function d(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const p=(e=>{var t={};return n.d(t,e),t})({Close:()=>o.Close,Error:()=>o.Error,Info:()=>o.Info,Success:()=>o.Success,Warn:()=>o.Warn});var u={id:c.PropTypes.string.def(""),title:c.PropTypes.string.def(""),message:c.PropTypes.string.def(""),theme:c.PropTypes.theme(["primary","warning","success","error"]).def("primary"),position:c.PropTypes.position().def("top-right"),delay:c.PropTypes.number.def(5e3),dismissable:c.PropTypes.bool.def(!0),offsetX:c.PropTypes.number.def(100),offsetY:c.PropTypes.number.def(30),spacing:c.PropTypes.number.def(10),extCls:c.PropTypes.string.def(""),onClose:c.PropTypes.func};const m=(0,s.defineComponent)({name:"Notify",props:u,emits:["destory"],setup:function(e,t){var o=t.emit,n=c.bkZIndexManager.getMessageNextIndex(),r=(0,s.computed)((function(){return e.position.indexOf("right")>1?"right":"left"})),i=(0,s.computed)((function(){return e.position.startsWith("top")?"top":"bottom"})),a=(0,s.computed)((function(){var t;return d(t={},r.value,"".concat(e.offsetX,"px")),d(t,i.value,"".concat(e.offsetY,"px")),d(t,"zIndex",n),t})),f=(0,s.computed)((function(){return["bk-notify","bk-notify-".concat(e.theme),r.value]})),l=(0,s.ref)(!1),p=null;return(0,s.onMounted)((function(){e.delay&&(p=setTimeout((function(){l.value=!1}),e.delay)),l.value=!0})),(0,s.onUnmounted)((function(){clearTimeout(p)})),(0,s.watch)(l,(function(){l.value||o("destory",e.id)})),{classNames:f,styles:a,visible:l,handleClose:function(){l.value=!1}}},render:function(){var e=this;return(0,s.createVNode)(s.Transition,{name:"bk-notify-fade"},{default:function(){return[(0,s.withDirectives)((0,s.createVNode)("div",{class:e.classNames,style:e.styles},[(0,s.createVNode)("div",{class:"bk-notify-content"},[(0,s.createVNode)("div",{class:"bk-notify-icon"},[{primary:(0,s.createVNode)(p.Info,null,null),warning:(0,s.createVNode)(p.Warn,null,null),success:(0,s.createVNode)(p.Success,null,null),error:(0,s.createVNode)(p.Close,null,null)}[e.theme]]),e.title?(0,s.createVNode)("h3",{class:"bk-notify-content-header"},[e.title]):"",(0,s.createVNode)("div",{class:"bk-notify-content-text"},[e.message])]),e.dismissable&&(0,s.createVNode)(p.Error,{class:"bk-notify-icon bk-notify-close",onClick:e.handleClose},null)]),[[s.vShow,e.visible]])]}})}}),y=function(e){!function(e,t){var o=t,n=o.position||"top-right";"string"==typeof t&&(o={message:t});var r=t.onClose,i=o.offsetX||10,a=o.offsetY||30,d=o.spacing,p=void 0===d?10:d;f[n].forEach((function(e){a+=(e.el.offsetHeight||0)+p}));var u="message_".concat(l+=1);o=Object.assign(Object.assign({},o),{offsetX:i,offsetY:a,id:u});var m=document.createElement("div"),y=(0,s.createVNode)(e,o);y.props.onDestory=function(e){!function(e,t,o,n){null==n||n();var r=t.startsWith("top")?"top":"bottom",s=-1;f[t].forEach((function(t,o){t.props.id===e&&(s=o)}));for(var i=f[t][s].el.offsetHeight,a=f[t].length,c=s;c<a;c++){var l=parseInt(f[t][c].el.style[r],10)-i-o;f[t][c].component.props.offsetY=l}f[t].splice(s,1)}(e,n,p,r),(0,s.render)(null,m)},(0,s.render)(y,m),f[n].push(y),(y.props.getContainer&&(0,c.isElement)(y.props.getContainer)?y.props.getContainer:document.body).appendChild(m.firstElementChild)}(m,e)};var v=r.Z;export{v as default};
|
@@ -32,7 +32,8 @@
|
|
32
32
|
--input-broder-radius: 3px;
|
33
33
|
--input-shadow-color: #a3c5fd;
|
34
34
|
--input-horizontal-padding: 10px;
|
35
|
-
--input-block-color: #
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
36
37
|
--input-icon-size: var(--font-size-large);
|
37
38
|
--input-maxlength-color: #979ba5;
|
38
39
|
--button-primary-hover-color: #5594fa;
|
@@ -44,6 +45,8 @@
|
|
44
45
|
--button-danger-active-color: #db2626;
|
45
46
|
--button-success-active-color: #1ab943;
|
46
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
47
50
|
--fixed-navbar-background: #fff;
|
48
51
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
49
52
|
--switch-default-color: #fff;
|