bkui-vue 0.0.1-beta.25 → 0.0.1-beta.28
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/bkui-vue.cjs.js +1368 -296
- package/dist/bkui-vue.esm.js +1369 -298
- package/dist/bkui-vue.umd.js +1368 -296
- package/dist/style.css +585 -72
- package/lib/components.d.ts +1 -0
- package/lib/pagination/index.d.ts +3 -3
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/pagination/type.d.ts +1 -1
- package/lib/popover/index.js +1 -1
- package/lib/resize-layout/index.d.ts +336 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +189 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +233 -0
- package/lib/resize-layout/resize-layout.variable.css +282 -0
- package/lib/select/common.d.ts +23 -27
- package/lib/select/index.d.ts +530 -145
- package/lib/select/index.js +12 -12
- package/lib/select/optionGroup.d.ts +0 -76
- package/lib/select/select.css +156 -46
- package/lib/select/select.d.ts +150 -39
- package/lib/select/select.less +136 -75
- package/lib/select/select.variable.css +156 -46
- package/lib/select/type.d.ts +31 -0
- package/lib/styles/index.d.ts +2 -0
- package/lib/styles/index.js +1 -1
- package/lib/swiper/index.js +1 -1
- package/lib/swiper/swiper.css +14 -14
- package/lib/swiper/swiper.less +93 -77
- package/lib/swiper/swiper.variable.css +14 -14
- package/lib/table/table.css +1 -1
- package/lib/table/table.less +1 -1
- package/lib/table/table.variable.css +1 -1
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +11 -5
- package/lib/tag/tag.less +12 -5
- package/lib/tag/tag.variable.css +11 -5
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +2 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +47 -0
- package/lib/tag-input/tag-input.css +208 -0
- package/lib/tag-input/tag-input.d.ts +374 -0
- package/lib/tag-input/tag-input.less +250 -0
- package/lib/tag-input/tag-input.variable.css +301 -0
- package/lib/tag-input/tag-props.d.ts +131 -0
- package/lib/tag-input/tag-render.d.ts +38 -0
- package/lib/tree/index.js +1 -1
- package/lib/tree/tree.css +6 -6
- package/lib/tree/tree.less +7 -6
- package/lib/tree/tree.variable.css +6 -6
- package/package.json +3 -3
@@ -91,8 +91,55 @@
|
|
91
91
|
--table-body-font-color: #575961;
|
92
92
|
--table-row-hover-bg-color: #f5f7fa;
|
93
93
|
}
|
94
|
-
|
95
|
-
|
94
|
+
@keyframes loading-scale-animate {
|
95
|
+
0% {
|
96
|
+
transform: scale(1);
|
97
|
+
}
|
98
|
+
100% {
|
99
|
+
transform: scale(0.6);
|
100
|
+
}
|
101
|
+
}
|
102
|
+
@keyframes fade {
|
103
|
+
100% {
|
104
|
+
background-color: transparent;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
.bk-fade-transtion .bk-fade-enter-active,
|
108
|
+
.bk-fade-transtion .bk-fade-leave-active {
|
109
|
+
transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
|
110
|
+
}
|
111
|
+
.bk-fade-transtion .bk-fade-enter,
|
112
|
+
.bk-fade-transtion .bk-fade-leave-to {
|
113
|
+
opacity: 0;
|
114
|
+
}
|
115
|
+
.bk-select .mr5 {
|
116
|
+
margin-right: 5px;
|
117
|
+
}
|
118
|
+
.bk-select .ml5 {
|
119
|
+
margin-left: 5px;
|
120
|
+
}
|
121
|
+
.bk-select .input {
|
122
|
+
width: 100%;
|
123
|
+
height: 32px;
|
124
|
+
padding: 0 28px 0 10px;
|
125
|
+
line-height: normal;
|
126
|
+
color: var(--default-color);
|
127
|
+
text-align: left;
|
128
|
+
vertical-align: middle;
|
129
|
+
cursor: pointer;
|
130
|
+
background-color: var(--white-color);
|
131
|
+
border: 1px solid var(--light-gray);
|
132
|
+
border-radius: 2px;
|
133
|
+
outline: none;
|
134
|
+
box-sizing: border-box;
|
135
|
+
transition: all 0.1s;
|
136
|
+
resize: none;
|
137
|
+
overflow: hidden;
|
138
|
+
text-overflow: ellipsis;
|
139
|
+
white-space: nowrap;
|
140
|
+
}
|
141
|
+
.bk-select .input::placeholder {
|
142
|
+
color: var(--light-gray);
|
96
143
|
}
|
97
144
|
.bk-select ul {
|
98
145
|
padding: 0;
|
@@ -100,19 +147,43 @@
|
|
100
147
|
font-weight: normal;
|
101
148
|
list-style: none;
|
102
149
|
}
|
150
|
+
.bk-select .bk-popover-reference {
|
151
|
+
display: unset;
|
152
|
+
}
|
103
153
|
.bk-select .bk-popover-content {
|
104
154
|
padding: 0;
|
105
155
|
}
|
106
|
-
.bk-select.
|
156
|
+
.bk-select.small .bk-select-trigger .bk-select-input {
|
157
|
+
height: 24px;
|
158
|
+
}
|
159
|
+
.bk-select.large .bk-select-trigger .bk-select-input {
|
160
|
+
height: 36px;
|
161
|
+
font-size: 14px;
|
162
|
+
}
|
163
|
+
.bk-select.large .bk-select-content {
|
164
|
+
font-size: 14px;
|
165
|
+
}
|
166
|
+
.bk-select.simplicity .bk-select-trigger .bk-select-input {
|
167
|
+
border: none;
|
168
|
+
border-bottom: 1px solid var(--light-gray);
|
169
|
+
}
|
170
|
+
.bk-select.is-focus.normal .bk-select-trigger .bk-select-input {
|
107
171
|
border-color: var(--primary-color);
|
108
172
|
box-shadow: 0px 0px 3px 0px #a3c5fd;
|
109
173
|
}
|
174
|
+
.bk-select.is-focus.simplicity .bk-select-trigger .bk-select-input {
|
175
|
+
border-color: var(--primary-color);
|
176
|
+
}
|
110
177
|
.bk-select.is-disabled .bk-select-trigger .bk-select-input {
|
111
178
|
cursor: not-allowed;
|
112
179
|
background: #fafbfd;
|
113
180
|
border-color: #dcdee5;
|
114
181
|
box-shadow: unset;
|
115
182
|
}
|
183
|
+
.bk-select.is-filterable .bk-select-trigger .bk-select-input,
|
184
|
+
.bk-select.is-filterable .bk-select-trigger .bk-select-tag-input {
|
185
|
+
cursor: text;
|
186
|
+
}
|
116
187
|
.bk-select.popover-show .bk-select-trigger .angle-up {
|
117
188
|
transform: rotate(0);
|
118
189
|
}
|
@@ -124,7 +195,6 @@
|
|
124
195
|
width: 100%;
|
125
196
|
height: 32px;
|
126
197
|
padding: 0 28px 0 10px;
|
127
|
-
font-size: 12px;
|
128
198
|
line-height: normal;
|
129
199
|
color: var(--default-color);
|
130
200
|
text-align: left;
|
@@ -137,57 +207,117 @@
|
|
137
207
|
box-sizing: border-box;
|
138
208
|
transition: all 0.1s;
|
139
209
|
resize: none;
|
210
|
+
overflow: hidden;
|
211
|
+
text-overflow: ellipsis;
|
212
|
+
white-space: nowrap;
|
140
213
|
}
|
141
214
|
.bk-select .bk-select-trigger .bk-select-input::placeholder {
|
142
215
|
color: var(--light-gray);
|
143
216
|
}
|
217
|
+
.bk-select .bk-select-trigger .bk-select-tag {
|
218
|
+
width: 100%;
|
219
|
+
height: 32px;
|
220
|
+
padding: 0 28px 0 10px;
|
221
|
+
line-height: normal;
|
222
|
+
color: var(--default-color);
|
223
|
+
text-align: left;
|
224
|
+
vertical-align: middle;
|
225
|
+
cursor: pointer;
|
226
|
+
background-color: var(--white-color);
|
227
|
+
border: 1px solid var(--light-gray);
|
228
|
+
border-radius: 2px;
|
229
|
+
outline: none;
|
230
|
+
box-sizing: border-box;
|
231
|
+
transition: all 0.1s;
|
232
|
+
resize: none;
|
233
|
+
overflow: hidden;
|
234
|
+
text-overflow: ellipsis;
|
235
|
+
white-space: nowrap;
|
236
|
+
display: flex;
|
237
|
+
width: auto;
|
238
|
+
height: auto;
|
239
|
+
min-height: 32px;
|
240
|
+
align-items: center;
|
241
|
+
flex-wrap: wrap;
|
242
|
+
}
|
243
|
+
.bk-select .bk-select-trigger .bk-select-tag::placeholder {
|
244
|
+
color: var(--light-gray);
|
245
|
+
}
|
246
|
+
.bk-select .bk-select-trigger .bk-select-tag-input {
|
247
|
+
width: 100%;
|
248
|
+
height: 32px;
|
249
|
+
padding: 0 28px 0 10px;
|
250
|
+
line-height: normal;
|
251
|
+
color: var(--default-color);
|
252
|
+
text-align: left;
|
253
|
+
vertical-align: middle;
|
254
|
+
cursor: pointer;
|
255
|
+
background-color: var(--white-color);
|
256
|
+
border: 1px solid var(--light-gray);
|
257
|
+
border-radius: 2px;
|
258
|
+
box-sizing: border-box;
|
259
|
+
transition: all 0.1s;
|
260
|
+
resize: none;
|
261
|
+
overflow: hidden;
|
262
|
+
text-overflow: ellipsis;
|
263
|
+
white-space: nowrap;
|
264
|
+
width: auto;
|
265
|
+
height: auto;
|
266
|
+
padding: 0;
|
267
|
+
border: none;
|
268
|
+
outline: none;
|
269
|
+
}
|
270
|
+
.bk-select .bk-select-trigger .bk-select-tag-input::placeholder {
|
271
|
+
color: var(--light-gray);
|
272
|
+
}
|
144
273
|
.bk-select .bk-select-trigger .bk-select-prefix {
|
145
274
|
position: absolute;
|
146
|
-
top:
|
275
|
+
top: 0;
|
276
|
+
display: inline-flex;
|
277
|
+
height: 100%;
|
278
|
+
align-items: center;
|
279
|
+
justify-content: center;
|
147
280
|
left: 4px;
|
148
281
|
font-size: 14px;
|
149
282
|
}
|
150
283
|
.bk-select .bk-select-trigger .angle-up {
|
284
|
+
right: 4px;
|
151
285
|
transform: rotate(180deg);
|
152
286
|
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
153
287
|
display: flex;
|
154
|
-
align-items: center;
|
155
|
-
justify-content: center;
|
156
288
|
width: 20px;
|
157
289
|
height: 20px;
|
158
290
|
font-size: 20px;
|
159
291
|
color: #979ba5;
|
160
292
|
position: absolute;
|
161
|
-
top:
|
162
|
-
|
293
|
+
top: 0;
|
294
|
+
display: inline-flex;
|
295
|
+
height: 100%;
|
296
|
+
align-items: center;
|
297
|
+
justify-content: center;
|
163
298
|
}
|
164
299
|
.bk-select .bk-select-trigger .clear-icon {
|
300
|
+
right: 4px;
|
165
301
|
transition: all 0.1s;
|
166
302
|
display: flex;
|
167
|
-
align-items: center;
|
168
|
-
justify-content: center;
|
169
303
|
width: 20px;
|
170
304
|
height: 20px;
|
171
305
|
font-size: 14px;
|
172
306
|
color: #c4c6cc;
|
173
307
|
position: absolute;
|
174
|
-
top:
|
175
|
-
|
308
|
+
top: 0;
|
309
|
+
display: inline-flex;
|
310
|
+
height: 100%;
|
311
|
+
align-items: center;
|
312
|
+
justify-content: center;
|
176
313
|
}
|
177
314
|
.bk-select .bk-select-trigger .clear-icon:hover {
|
178
315
|
color: #979ba5;
|
179
316
|
}
|
180
317
|
.bk-select .bk-select-trigger .spinner {
|
181
318
|
position: absolute;
|
182
|
-
top:
|
183
|
-
right:
|
184
|
-
display: flex;
|
185
|
-
align-items: center;
|
186
|
-
justify-content: center;
|
187
|
-
width: 20px;
|
188
|
-
height: 20px;
|
189
|
-
font-size: 16px;
|
190
|
-
color: #3A84FF;
|
319
|
+
top: 8px;
|
320
|
+
right: 6px;
|
191
321
|
}
|
192
322
|
.bk-select .bk-select-empty {
|
193
323
|
display: flex;
|
@@ -209,28 +339,6 @@
|
|
209
339
|
.bk-select .bk-select-dropdown {
|
210
340
|
overflow: auto;
|
211
341
|
}
|
212
|
-
.bk-select .bk-select-dropdown .bk-select-search {
|
213
|
-
position: relative;
|
214
|
-
padding: 0 5px;
|
215
|
-
}
|
216
|
-
.bk-select .bk-select-dropdown .bk-select-search-icon {
|
217
|
-
position: absolute;
|
218
|
-
top: 50%;
|
219
|
-
left: 8px;
|
220
|
-
font-size: 16px;
|
221
|
-
color: #979ba5;
|
222
|
-
transform: translateY(-50%);
|
223
|
-
}
|
224
|
-
.bk-select .bk-select-dropdown .bk-select-search-input {
|
225
|
-
width: 100%;
|
226
|
-
height: 32px;
|
227
|
-
padding: 0 10px 0 26px;
|
228
|
-
font-size: 12px;
|
229
|
-
cursor: text;
|
230
|
-
border: none;
|
231
|
-
border-bottom: 1px solid #dcdee5;
|
232
|
-
outline: 0;
|
233
|
-
}
|
234
342
|
.bk-select .bk-select-extension {
|
235
343
|
display: flex;
|
236
344
|
height: 40px;
|
@@ -263,7 +371,6 @@
|
|
263
371
|
.bk-select .bk-select-option.is-selected.is-multiple::after {
|
264
372
|
position: absolute;
|
265
373
|
right: 12px;
|
266
|
-
font-size: 12px;
|
267
374
|
font-weight: 700;
|
268
375
|
content: '\2713';
|
269
376
|
}
|
@@ -285,6 +392,10 @@
|
|
285
392
|
.bk-select .bk-option-group.collapsible .bk-select-option {
|
286
393
|
padding-left: 40px;
|
287
394
|
}
|
395
|
+
.bk-select .bk-option-group.disabled .default-group-label {
|
396
|
+
color: #c4c6cc;
|
397
|
+
cursor: not-allowed;
|
398
|
+
}
|
288
399
|
.bk-select .bk-option-group .default-group-label {
|
289
400
|
display: flex;
|
290
401
|
user-select: none;
|
@@ -295,7 +406,6 @@
|
|
295
406
|
width: 12px;
|
296
407
|
height: 12px;
|
297
408
|
margin-right: 8px;
|
298
|
-
font-size: 12px;
|
299
409
|
transition: all 0.1s;
|
300
410
|
align-items: center;
|
301
411
|
justify-content: center;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import Popover from '@bkui-vue/popover';
|
2
|
+
import Option from './option';
|
3
|
+
import Group from './optionGroup';
|
4
|
+
export declare type OptionInstanceType = InstanceType<typeof Option>;
|
5
|
+
export declare type GroupInstanceType = InstanceType<typeof Group>;
|
6
|
+
export declare type PopoverInstanceType = InstanceType<typeof Popover>;
|
7
|
+
export interface ISelectContext {
|
8
|
+
props: {
|
9
|
+
multiple?: boolean;
|
10
|
+
};
|
11
|
+
selectedOptions: Set<any>;
|
12
|
+
register(option: OptionInstanceType): any;
|
13
|
+
unregister(option: OptionInstanceType): any;
|
14
|
+
registerGroup(option: GroupInstanceType): any;
|
15
|
+
unregisterGroup(option: GroupInstanceType): any;
|
16
|
+
handleOptionSelected(option: OptionInstanceType): void;
|
17
|
+
}
|
18
|
+
export interface IOptionGroupContext {
|
19
|
+
disabled: boolean;
|
20
|
+
groupCollapse: boolean;
|
21
|
+
register(option: OptionInstanceType): any;
|
22
|
+
unregister(option: OptionInstanceType): any;
|
23
|
+
}
|
24
|
+
export interface ISelectState {
|
25
|
+
currentPlaceholder: string;
|
26
|
+
selectedOptions: Set<OptionInstanceType>;
|
27
|
+
currentSelectedLabel: string;
|
28
|
+
}
|
29
|
+
export interface IPopoverConfig {
|
30
|
+
popoverMinWidth: number;
|
31
|
+
}
|
package/lib/styles/index.d.ts
CHANGED
package/lib/styles/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e){"function"==typeof define&&define.amd?define(["./reset.less","../alert/alert.less","../backtop/backtop.less","../badge/badge.less","../breadcrumb/breadcrumb.less","../button/button.less","../card/card.less","../checkbox/checkbox.less","../collapse/collapse.less","../dialog/dialog.less","../exception/exception.less","../fixed-navbar/fixed-navbar.less","../input/input.less","../link/link.less","../dropdown/dropdown.less","../loading/loading.less","../modal/modal.less","../popover/popover.less","../progress/progress.less","../radio/radio.less","../rate/rate.less","../rate/star.less","../swiper/swiper.less","../select/select.less","../sideslider/sideslider.less","../switcher/switcher.less","../table/table.less","../tag/tag.less","../form/form.less","../steps/steps.less","../message/message.less","../notify/notify.less","../tree/tree.less","../slider/slider.less","../menu/menu.less","../navigation/navigation.less","../date-picker/date-picker.less","../divider/divider.less","../tab/tab.less","../process/process.less","../virtual-render/virtual-render.less","../transfer/transfer.less","../pagination/pagination.less","../timeline/timeline.less"],e):e()}((function(){}));
|
1
|
+
!function(e){"function"==typeof define&&define.amd?define(["./reset.less","../alert/alert.less","../backtop/backtop.less","../badge/badge.less","../breadcrumb/breadcrumb.less","../button/button.less","../card/card.less","../checkbox/checkbox.less","../collapse/collapse.less","../dialog/dialog.less","../exception/exception.less","../fixed-navbar/fixed-navbar.less","../input/input.less","../link/link.less","../dropdown/dropdown.less","../loading/loading.less","../modal/modal.less","../popover/popover.less","../progress/progress.less","../radio/radio.less","../rate/rate.less","../rate/star.less","../swiper/swiper.less","../select/select.less","../sideslider/sideslider.less","../switcher/switcher.less","../table/table.less","../tag/tag.less","../form/form.less","../steps/steps.less","../message/message.less","../notify/notify.less","../tree/tree.less","../slider/slider.less","../menu/menu.less","../navigation/navigation.less","../date-picker/date-picker.less","../divider/divider.less","../tab/tab.less","../process/process.less","../virtual-render/virtual-render.less","../transfer/transfer.less","../pagination/pagination.less","../timeline/timeline.less","../resize-layout/resize-layout.less","../tag-input/tag-input.less"],e):e()}((function(){}));
|
package/lib/swiper/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("../shared"),require("vue")):"function"==typeof define&&define.amd?define(["exports","../shared","vue"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared,e.Vue)}(this,(function(e,n,t){"use strict";var o=t.defineComponent({name:"Swiper",props:{isLoop:n.PropTypes.bool.def(!0),loopTime:n.PropTypes.number.def(8e3),pics:n.PropTypes.array.def([]),list:n.PropTypes.array.def([]),height:n.PropTypes.number,width:n.PropTypes.number},emits:["index-change"],setup:function(e,n){var o,a=n.emit,i=n.slots,r=t.toRefs(e),l=r.isLoop,u=r.loopTime,c=r.pics,s=r.list,d=r.height,p=r.width,v=t.ref(),f=t.ref(0),h=t.ref(0),b=t.ref(0),w=t.ref(0),m=t.computed((function(){var e;return(null===(e=s.value)||void 0===e?void 0:e.length)>0?s.value:c.value})),g=t.computed((function(){return{width:"".concat(h.value*m.value.length,"px"),transform:"translateX(-".concat(h.value*f.value,"px)")}})),k=t.computed((function(){return{width:"".concat(h.value,"px"),height:"".concat(b.value,"px")}})),y=function(e){var n=e;e>=m.value.length&&(n=0),e<0&&(n=m.value.length-1),f.value=n,a("index-change",n)},T=function(e){return["bk-swiper-img",{"bk-swiper-link":e.link},e.class]},x=function(e){return{"background-image":"url(".concat(e.url,")"),"background-color":e.color}},V=function(e){return{"bk-current-index":f.value===e}},N=function e(){l.value&&(w.value=window.setTimeout((function(){y(f.value+1),e()}),u.value))},P=function(){var e,n=function(e){if(void 0===e)return{height:0,width:0};var n=getComputedStyle(e),t=e.clientWidth-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom);return{height:e.clientHeight-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight),width:t}}(null===(e=v.value)||void 0===e?void 0:e.parentElement);h.value=+p.value>0?p.value:n.width,b.value=+d.value>0?d.value:n.height};return t.watch([d,p],P),t.onMounted((function(){var e,n;P(),N(),(n=null===(e=v.value)||void 0===e?void 0:e.parentElement)&&window.ResizeObserver&&(o=new ResizeObserver((function(){P()}))).observe(n)})),t.onBeforeUnmount((function(){var e;window.clearTimeout(w.value),null===(e=o.disconnect)||void 0===e||e.call(o)})),function(){return t.createVNode("section",{class:"bk-swiper-home",ref:v,style:k.value},[t.createVNode("hgroup",{style:g.value,class:"bk-transition bk-swiper-main"},[m.value.map((function(e){var n,o;return t.createVNode("h3",{class:"bk-swiper-card",style:k.value},[null!==(o=null===(n=i.default)||void 0===n?void 0:n.call(i,e))&&void 0!==o?o:t.createVNode("span",{class:T(e),style:x(e),onClick:function(){var n;(n=e.link)&&window.open(n,"_blank")}},null)])}))]),t.createVNode("ul",{class:"bk-swiper-index"},[m.value.map((function(e,n){return t.createVNode("li",{class:V(n),onMouseover:function(){return y(n)}},null)}))]),t.createVNode("span",{class:"bk-swiper-nav bk-nav-prev",onClick:function(){return y(f.value-1)}},[t.createVNode("i",{class:"bk-swiper-nav-icon"},null)]),t.createVNode("span",{class:"bk-swiper-nav bk-nav-next",onClick:function(){return y(f.value+1)}},[t.createVNode("i",{class:"bk-swiper-nav-icon"},null)])])}}}),a=n.withInstall(o);e.default=a,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/swiper/swiper.css
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
display: block;
|
7
7
|
}
|
8
8
|
.bk-swiper-main {
|
9
|
-
height: 100%;
|
10
9
|
display: flex;
|
10
|
+
height: 100%;
|
11
11
|
overflow: hidden;
|
12
12
|
}
|
13
13
|
.bk-swiper-main.bk-transition {
|
@@ -15,53 +15,53 @@
|
|
15
15
|
}
|
16
16
|
.bk-swiper-main .bk-swiper-card {
|
17
17
|
height: 100%;
|
18
|
-
margin: 0;
|
19
18
|
padding: 0;
|
19
|
+
margin: 0;
|
20
20
|
}
|
21
21
|
.bk-swiper-main .bk-swiper-img {
|
22
22
|
display: inline-block;
|
23
|
-
height: 100%;
|
24
23
|
width: 100%;
|
24
|
+
height: 100%;
|
25
25
|
margin: 0;
|
26
|
-
background-size: cover;
|
27
|
-
background-repeat: no-repeat;
|
28
26
|
background-position: center;
|
27
|
+
background-repeat: no-repeat;
|
28
|
+
background-size: cover;
|
29
29
|
}
|
30
30
|
.bk-swiper-main .bk-swiper-link {
|
31
31
|
cursor: pointer;
|
32
32
|
}
|
33
33
|
.bk-swiper-index {
|
34
34
|
position: absolute;
|
35
|
+
right: 0;
|
35
36
|
bottom: 10px;
|
36
37
|
left: 0;
|
37
|
-
right: 0;
|
38
38
|
display: flex;
|
39
|
-
justify-content: center;
|
40
|
-
margin: 0;
|
41
39
|
padding: 0;
|
40
|
+
margin: 0;
|
41
|
+
justify-content: center;
|
42
42
|
}
|
43
43
|
.bk-swiper-index li {
|
44
44
|
width: 11px;
|
45
45
|
height: 4px;
|
46
46
|
margin: 0 3px;
|
47
|
+
list-style-type: none;
|
47
48
|
background: #63656e;
|
48
49
|
border-radius: 2px;
|
49
50
|
transition: width 0.525s;
|
50
|
-
list-style-type: none;
|
51
51
|
}
|
52
52
|
.bk-swiper-index li.bk-current-index {
|
53
53
|
width: 17px;
|
54
54
|
background: #c5c7d1;
|
55
55
|
}
|
56
56
|
.bk-swiper-nav {
|
57
|
-
cursor: pointer;
|
58
57
|
position: absolute;
|
59
|
-
|
58
|
+
top: calc(50% - 15px);
|
59
|
+
display: none;
|
60
60
|
width: 30px;
|
61
61
|
height: 30px;
|
62
|
+
cursor: pointer;
|
62
63
|
background: rgba(31, 45, 61, 0.4);
|
63
|
-
|
64
|
-
display: none;
|
64
|
+
border-radius: 50%;
|
65
65
|
}
|
66
66
|
.bk-swiper-nav .bk-swiper-nav-icon {
|
67
67
|
position: absolute;
|
@@ -69,8 +69,8 @@
|
|
69
69
|
left: 11px;
|
70
70
|
width: 10px;
|
71
71
|
height: 10px;
|
72
|
-
border-left: 2px solid #fff;
|
73
72
|
border-bottom: 2px solid #fff;
|
73
|
+
border-left: 2px solid #fff;
|
74
74
|
}
|
75
75
|
.bk-swiper-nav.bk-nav-prev {
|
76
76
|
left: 14px;
|
package/lib/swiper/swiper.less
CHANGED
@@ -1,91 +1,107 @@
|
|
1
1
|
.bk-swiper-home {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
position: relative;
|
3
|
+
overflow: hidden;
|
4
|
+
|
5
|
+
&:hover .bk-swiper-nav {
|
6
|
+
display: block;
|
7
|
+
}
|
7
8
|
}
|
9
|
+
|
8
10
|
.bk-swiper-main {
|
11
|
+
display: flex;
|
12
|
+
height: 100%;
|
13
|
+
overflow: hidden;
|
14
|
+
|
15
|
+
&.bk-transition {
|
16
|
+
transition: .5s cubic-bezier(.42, 0, .58, 1);
|
17
|
+
}
|
18
|
+
|
19
|
+
.bk-swiper-card {
|
9
20
|
height: 100%;
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
background-position: center;
|
28
|
-
}
|
29
|
-
.bk-swiper-link {
|
30
|
-
cursor: pointer;
|
31
|
-
}
|
21
|
+
padding: 0;
|
22
|
+
margin: 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
.bk-swiper-img {
|
26
|
+
display: inline-block;
|
27
|
+
width: 100%;
|
28
|
+
height: 100%;
|
29
|
+
margin: 0;
|
30
|
+
background-position: center;
|
31
|
+
background-repeat: no-repeat;
|
32
|
+
background-size: cover;
|
33
|
+
}
|
34
|
+
|
35
|
+
.bk-swiper-link {
|
36
|
+
cursor: pointer;
|
37
|
+
}
|
32
38
|
}
|
39
|
+
|
33
40
|
.bk-swiper-index {
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
41
|
+
position: absolute;
|
42
|
+
right: 0;
|
43
|
+
bottom: 10px;
|
44
|
+
left: 0;
|
45
|
+
display: flex;
|
46
|
+
padding: 0;
|
47
|
+
margin: 0;
|
48
|
+
justify-content: center;
|
49
|
+
|
50
|
+
li {
|
51
|
+
width: 11px;
|
52
|
+
height: 4px;
|
53
|
+
margin: 0 3px;
|
54
|
+
list-style-type: none;
|
55
|
+
background: #63656e;
|
56
|
+
border-radius: 2px;
|
57
|
+
transition: width .525s;
|
58
|
+
|
59
|
+
&.bk-current-index {
|
60
|
+
width: 17px;
|
61
|
+
background: #c5c7d1;
|
54
62
|
}
|
63
|
+
}
|
55
64
|
}
|
65
|
+
|
56
66
|
.bk-swiper-nav {
|
57
|
-
|
67
|
+
position: absolute;
|
68
|
+
top: calc(50% - 15px);
|
69
|
+
display: none;
|
70
|
+
width: 30px;
|
71
|
+
height: 30px;
|
72
|
+
cursor: pointer;
|
73
|
+
background: rgba(31,45,61,.4);
|
74
|
+
border-radius: 50%;
|
75
|
+
|
76
|
+
.bk-swiper-nav-icon {
|
58
77
|
position: absolute;
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
}
|
74
|
-
&.bk-nav-prev {
|
75
|
-
left: 14px;
|
76
|
-
transform: rotate(45deg);
|
77
|
-
&:hover {
|
78
|
-
transform: rotate(45deg);
|
79
|
-
}
|
80
|
-
}
|
81
|
-
&.bk-nav-next {
|
82
|
-
right: 14px;
|
83
|
-
transform: rotate(225deg);
|
84
|
-
&:hover {
|
85
|
-
transform: rotate(225deg);
|
86
|
-
}
|
78
|
+
top: 9px;
|
79
|
+
left: 11px;
|
80
|
+
width: 10px;
|
81
|
+
height: 10px;
|
82
|
+
border-bottom: 2px solid #fff;
|
83
|
+
border-left: 2px solid #fff;
|
84
|
+
}
|
85
|
+
|
86
|
+
&.bk-nav-prev {
|
87
|
+
left: 14px;
|
88
|
+
transform: rotate(45deg);
|
89
|
+
|
90
|
+
&:hover {
|
91
|
+
transform: rotate(45deg);
|
87
92
|
}
|
93
|
+
}
|
94
|
+
|
95
|
+
&.bk-nav-next {
|
96
|
+
right: 14px;
|
97
|
+
transform: rotate(225deg);
|
98
|
+
|
88
99
|
&:hover {
|
89
|
-
|
100
|
+
transform: rotate(225deg);
|
90
101
|
}
|
102
|
+
}
|
103
|
+
|
104
|
+
&:hover {
|
105
|
+
background: rgba(31,45,61,.6);
|
106
|
+
}
|
91
107
|
}
|