bkui-vue 1.0.3-beta.26 → 1.0.3-beta.27
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 +46 -46
- package/dist/index.esm.js +6162 -6148
- package/dist/index.umd.js +46 -46
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +1 -1
- package/lib/affix/affix.less +2 -2
- package/lib/affix/affix.variable.css +3 -3
- package/lib/affix/index.js +13 -15
- package/lib/alert/alert.css +21 -21
- package/lib/alert/alert.less +16 -17
- package/lib/alert/alert.variable.css +23 -23
- package/lib/alert/index.js +22 -24
- package/lib/animate-number/index.js +5 -6
- package/lib/backtop/backtop.css +11 -11
- package/lib/backtop/backtop.less +3 -3
- package/lib/backtop/backtop.variable.css +13 -13
- package/lib/backtop/index.js +20 -22
- package/lib/badge/badge.css +32 -32
- package/lib/badge/badge.less +5 -5
- package/lib/badge/badge.variable.css +34 -34
- package/lib/badge/index.js +19 -21
- package/lib/breadcrumb/breadcrumb.css +31 -31
- package/lib/breadcrumb/breadcrumb.less +8 -8
- package/lib/breadcrumb/breadcrumb.variable.css +33 -33
- package/lib/breadcrumb/index.js +24 -26
- package/lib/button/button.css +69 -69
- package/lib/button/button.less +5 -3
- package/lib/button/button.variable.css +71 -71
- package/lib/button/index.js +28 -37
- package/lib/card/card.css +31 -31
- package/lib/card/card.less +4 -4
- package/lib/card/card.variable.css +33 -33
- package/lib/card/index.js +35 -43
- package/lib/cascader/cascader.css +63 -63
- package/lib/cascader/cascader.less +11 -12
- package/lib/cascader/cascader.variable.css +65 -65
- package/lib/cascader/index.js +80 -100
- package/lib/checkbox/checkbox.css +21 -21
- package/lib/checkbox/checkbox.less +8 -8
- package/lib/checkbox/checkbox.variable.css +23 -23
- package/lib/checkbox/index.js +32 -34
- package/lib/code-diff/code-diff.css +97 -97
- package/lib/code-diff/code-diff.less +4 -3
- package/lib/code-diff/code-diff.variable.css +99 -99
- package/lib/code-diff/index.js +12 -14
- package/lib/collapse/collapse.css +30 -30
- package/lib/collapse/collapse.less +24 -25
- package/lib/collapse/collapse.variable.css +32 -32
- package/lib/collapse/index.js +39 -41
- package/lib/collapse-transition/collapse-transition.css +32 -32
- package/lib/collapse-transition/collapse-transition.less +48 -59
- package/lib/collapse-transition/collapse-transition.variable.css +34 -34
- package/lib/collapse-transition/index.js +8 -9
- package/lib/color-picker/color-picker.css +57 -57
- package/lib/color-picker/color-picker.less +30 -36
- package/lib/color-picker/color-picker.variable.css +59 -59
- package/lib/color-picker/index.js +48 -50
- package/lib/components.js +505 -60
- package/lib/config-provider/config-provider.variable.css +2 -2
- package/lib/config-provider/index.js +8 -9
- package/lib/container/container.css +19 -19
- package/lib/container/container.less +3 -3
- package/lib/container/container.variable.css +21 -21
- package/lib/container/index.js +19 -21
- package/lib/date-picker/date-picker.css +92 -92
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.less +54 -55
- package/lib/date-picker/date-picker.variable.css +94 -94
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +69 -77
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/dialog/dialog.css +51 -51
- package/lib/dialog/dialog.less +1 -1
- package/lib/dialog/dialog.variable.css +53 -53
- package/lib/dialog/index.js +49 -63
- package/lib/directives/index.js +12 -13
- package/lib/dist.index.js +62 -5
- package/lib/divider/divider.css +8 -8
- package/lib/divider/divider.less +8 -5
- package/lib/divider/divider.variable.css +10 -10
- package/lib/divider/index.js +13 -15
- package/lib/dropdown/dropdown.css +15 -15
- package/lib/dropdown/dropdown.less +6 -6
- package/lib/dropdown/dropdown.variable.css +17 -17
- package/lib/dropdown/index.js +24 -32
- package/lib/exception/exception.css +13 -13
- package/lib/exception/exception.less +6 -6
- package/lib/exception/exception.variable.css +15 -15
- package/lib/exception/index.js +11 -13
- package/lib/fixed-navbar/fixed-navbar.css +9 -9
- package/lib/fixed-navbar/fixed-navbar.less +2 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +11 -11
- package/lib/fixed-navbar/index.js +13 -15
- package/lib/form/form.css +63 -63
- package/lib/form/form.less +16 -14
- package/lib/form/form.variable.css +65 -65
- package/lib/form/index.js +48 -50
- package/lib/hooks.js +48 -1
- package/lib/icon/index.js +0 -1
- package/lib/image/image-viewer.css +23 -23
- package/lib/image/image-viewer.less +25 -24
- package/lib/image/image-viewer.variable.css +25 -25
- package/lib/image/image.css +29 -29
- package/lib/image/image.less +8 -6
- package/lib/image/image.variable.css +31 -31
- package/lib/image/index.js +38 -39
- package/lib/index.js +72 -7
- package/lib/info-box/index.js +13 -21
- package/lib/info-box/info-box.css +10 -10
- package/lib/info-box/info-box.less +2 -1
- package/lib/info-box/info-box.variable.css +12 -12
- package/lib/input/index.js +59 -61
- package/lib/input/input.css +104 -102
- package/lib/input/input.less +33 -27
- package/lib/input/input.variable.css +106 -104
- package/lib/link/index.js +13 -15
- package/lib/link/link.css +18 -18
- package/lib/link/link.less +3 -1
- package/lib/link/link.variable.css +20 -20
- package/lib/loading/index.js +17 -19
- package/lib/loading/loading.css +94 -94
- package/lib/loading/loading.less +4 -4
- package/lib/loading/loading.variable.css +96 -96
- package/lib/locale/index.js +0 -1
- package/lib/menu/index.js +13 -15
- package/lib/menu/menu.css +38 -38
- package/lib/menu/menu.less +10 -10
- package/lib/menu/menu.variable.css +40 -40
- package/lib/menu/submenu.css +1 -1
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +3 -3
- package/lib/message/index.js +38 -40
- package/lib/message/message.css +59 -59
- package/lib/message/message.less +24 -25
- package/lib/message/message.variable.css +61 -61
- package/lib/modal/index.js +41 -43
- package/lib/modal/modal.css +26 -26
- package/lib/modal/modal.less +12 -8
- package/lib/modal/modal.variable.css +28 -28
- package/lib/navigation/index.js +14 -16
- package/lib/navigation/navigation.css +25 -25
- package/lib/navigation/navigation.less +9 -9
- package/lib/navigation/navigation.variable.css +27 -27
- package/lib/notify/index.js +31 -33
- package/lib/notify/notify.css +17 -17
- package/lib/notify/notify.less +6 -8
- package/lib/notify/notify.variable.css +19 -19
- package/lib/overflow-title/index.js +14 -22
- package/lib/pagination/index.js +50 -65
- package/lib/pagination/pagination.css +60 -60
- package/lib/pagination/pagination.less +25 -24
- package/lib/pagination/pagination.variable.css +62 -62
- package/lib/plugin-popover/index.js +53 -54
- package/lib/plugins/index.js +0 -1
- package/lib/pop-confirm/index.js +28 -42
- package/lib/pop-confirm/pop-confirm.css +10 -10
- package/lib/pop-confirm/pop-confirm.less +11 -14
- package/lib/pop-confirm/pop-confirm.variable.css +12 -12
- package/lib/popover/index.js +52 -54
- package/lib/popover/popover.css +5 -5
- package/lib/popover/popover.less +6 -5
- package/lib/popover/popover.variable.css +7 -7
- package/lib/popover2/index.js +3 -4
- package/lib/preset.js +64 -18
- package/lib/process/index.js +26 -27
- package/lib/process/process.css +33 -36
- package/lib/process/process.less +7 -8
- package/lib/process/process.variable.css +35 -38
- package/lib/progress/index.js +26 -28
- package/lib/progress/progress.css +33 -33
- package/lib/progress/progress.less +5 -6
- package/lib/progress/progress.variable.css +35 -35
- package/lib/radio/index.js +32 -34
- package/lib/radio/radio.css +51 -51
- package/lib/radio/radio.less +20 -13
- package/lib/radio/radio.variable.css +53 -53
- package/lib/rate/index.js +22 -24
- package/lib/rate/rate.css +2 -2
- package/lib/rate/rate.less +1 -1
- package/lib/rate/rate.variable.css +4 -4
- package/lib/rate/star.css +7 -7
- package/lib/rate/star.less +1 -1
- package/lib/rate/star.variable.css +9 -9
- package/lib/resize-layout/index.js +25 -27
- package/lib/resize-layout/resize-layout.css +42 -42
- package/lib/resize-layout/resize-layout.less +10 -17
- package/lib/resize-layout/resize-layout.variable.css +44 -44
- package/lib/search-select/index.js +49 -68
- package/lib/search-select/search-select.css +15 -15
- package/lib/search-select/search-select.variable.css +17 -17
- package/lib/select/index.js +129 -168
- package/lib/select/select.css +87 -87
- package/lib/select/select.less +22 -27
- package/lib/select/select.variable.css +89 -89
- package/lib/shared/index.js +4 -7
- package/lib/sideslider/index.js +14 -22
- package/lib/sideslider/sideslider.css +14 -14
- package/lib/sideslider/sideslider.less +13 -9
- package/lib/sideslider/sideslider.variable.css +16 -16
- package/lib/slider/index.js +22 -36
- package/lib/slider/slider.css +31 -31
- package/lib/slider/slider.less +8 -8
- package/lib/slider/slider.variable.css +33 -33
- package/lib/steps/index.js +28 -30
- package/lib/steps/steps.css +134 -134
- package/lib/steps/steps.less +48 -44
- package/lib/steps/steps.variable.css +136 -136
- package/lib/styles/mixins/animate.css +4 -4
- package/lib/styles/mixins/animate.less +3 -3
- package/lib/styles/mixins/animate.variable.css +6 -6
- package/lib/styles/mixins/mixins.css +15 -15
- package/lib/styles/mixins/mixins.variable.css +15 -15
- package/lib/styles/mixins/popper.css +11 -11
- package/lib/styles/mixins/popper.less +6 -6
- package/lib/styles/mixins/popper.variable.css +13 -13
- package/lib/styles/mixins/scroll.css +5 -5
- package/lib/styles/mixins/scroll.less +4 -4
- package/lib/styles/mixins/scroll.variable.css +7 -7
- package/lib/styles/reset.css +6 -6
- package/lib/styles/reset.less +5 -4
- package/lib/styles/reset.variable.css +8 -8
- package/lib/styles/themes/themes.less +10 -3
- package/lib/swiper/index.js +14 -16
- package/lib/swiper/swiper.css +15 -15
- package/lib/swiper/swiper.less +8 -8
- package/lib/swiper/swiper.variable.css +17 -17
- package/lib/switcher/index.js +29 -31
- package/lib/switcher/switcher.css +57 -57
- package/lib/switcher/switcher.less +22 -14
- package/lib/switcher/switcher.variable.css +59 -59
- package/lib/tab/index.js +44 -46
- package/lib/tab/tab.css +78 -78
- package/lib/tab/tab.less +39 -40
- package/lib/tab/tab.variable.css +80 -80
- package/lib/table/components/table-column.d.ts +1 -0
- package/lib/table/index.d.ts +1 -0
- package/lib/table/index.js +168 -207
- package/lib/table/plugins/head-filter.css +13 -13
- package/lib/table/plugins/head-filter.less +3 -3
- package/lib/table/plugins/head-filter.variable.css +15 -15
- package/lib/table/plugins/head-sort.css +5 -5
- package/lib/table/plugins/head-sort.less +2 -2
- package/lib/table/plugins/head-sort.variable.css +7 -7
- package/lib/table/plugins/settings.css +26 -26
- package/lib/table/plugins/settings.less +3 -1
- package/lib/table/plugins/settings.variable.css +28 -28
- package/lib/table/table.css +380 -380
- package/lib/table/table.less +14 -10
- package/lib/table/table.variable.css +382 -382
- package/lib/table-column/index.d.ts +3 -0
- package/lib/table-column/index.js +57 -43
- package/lib/tag/index.js +19 -21
- package/lib/tag/tag.css +51 -51
- package/lib/tag/tag.less +34 -34
- package/lib/tag/tag.variable.css +53 -53
- package/lib/tag-input/index.js +65 -80
- package/lib/tag-input/tag-input.css +38 -38
- package/lib/tag-input/tag-input.less +3 -3
- package/lib/tag-input/tag-input.variable.css +40 -40
- package/lib/time-picker/index.d.ts +3 -0
- package/lib/time-picker/index.js +7 -9
- package/lib/time-picker/time-picker.css +40 -40
- package/lib/time-picker/time-picker.less +44 -76
- package/lib/time-picker/time-picker.variable.css +42 -42
- package/lib/timeline/index.js +12 -13
- package/lib/timeline/timeline.css +69 -69
- package/lib/timeline/timeline.less +12 -6
- package/lib/timeline/timeline.variable.css +71 -71
- package/lib/transfer/index.js +36 -51
- package/lib/transfer/transfer.css +89 -89
- package/lib/transfer/transfer.less +1 -1
- package/lib/transfer/transfer.variable.css +91 -91
- package/lib/tree/index.js +72 -92
- package/lib/tree/tree.css +49 -49
- package/lib/tree/tree.less +7 -6
- package/lib/tree/tree.variable.css +51 -51
- package/lib/upload/index.js +48 -63
- package/lib/upload/upload.css +98 -98
- package/lib/upload/upload.less +69 -68
- package/lib/upload/upload.variable.css +100 -100
- package/lib/virtual-render/index.js +33 -35
- package/lib/virtual-render/virtual-render.css +9 -9
- package/lib/virtual-render/virtual-render.less +1 -1
- package/lib/virtual-render/virtual-render.variable.css +11 -11
- package/package.json +1 -1
- package/lib/styles/themes/themes copy.less +0 -167
package/lib/swiper/swiper.less
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
@import '../styles/themes/themes.less';
|
2
2
|
|
3
|
-
|
3
|
+
.@{bk-prefix}-swiper-home {
|
4
4
|
position: relative;
|
5
5
|
overflow: hidden;
|
6
6
|
|
@@ -9,13 +9,13 @@
|
|
9
9
|
}
|
10
10
|
}
|
11
11
|
|
12
|
-
|
12
|
+
.@{bk-prefix}-swiper-main {
|
13
13
|
display: flex;
|
14
14
|
height: 100%;
|
15
15
|
overflow: hidden;
|
16
16
|
|
17
17
|
&.@{bk-prefix}-transition {
|
18
|
-
transition:
|
18
|
+
transition: .5s cubic-bezier(.42, 0, .58, 1);
|
19
19
|
}
|
20
20
|
|
21
21
|
.@{bk-prefix}-swiper-card {
|
@@ -39,7 +39,7 @@
|
|
39
39
|
}
|
40
40
|
}
|
41
41
|
|
42
|
-
|
42
|
+
.@{bk-prefix}-swiper-index {
|
43
43
|
position: absolute;
|
44
44
|
right: 0;
|
45
45
|
bottom: 10px;
|
@@ -56,7 +56,7 @@
|
|
56
56
|
list-style-type: none;
|
57
57
|
background: #63656e;
|
58
58
|
border-radius: 2px;
|
59
|
-
transition: width
|
59
|
+
transition: width .525s;
|
60
60
|
|
61
61
|
&.@{bk-prefix}-current-index {
|
62
62
|
width: 17px;
|
@@ -65,14 +65,14 @@
|
|
65
65
|
}
|
66
66
|
}
|
67
67
|
|
68
|
-
|
68
|
+
.@{bk-prefix}-swiper-nav {
|
69
69
|
position: absolute;
|
70
70
|
top: calc(50% - 15px);
|
71
71
|
display: none;
|
72
72
|
width: 30px;
|
73
73
|
height: 30px;
|
74
74
|
cursor: pointer;
|
75
|
-
background: rgba(31,
|
75
|
+
background: rgba(31,45,61,.4);
|
76
76
|
border-radius: 50%;
|
77
77
|
|
78
78
|
.@{bk-prefix}-swiper-nav-icon {
|
@@ -96,6 +96,6 @@
|
|
96
96
|
}
|
97
97
|
|
98
98
|
&:hover {
|
99
|
-
background: rgba(31,
|
99
|
+
background: rgba(31,45,61,.6);
|
100
100
|
}
|
101
101
|
}
|
@@ -12,13 +12,13 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
18
19
|
--line-height-base: 16px;
|
19
20
|
--line-height-medium: 16px;
|
20
21
|
--line-height-large: 18px;
|
21
|
-
--border-color: #dcdee5;
|
22
22
|
--component-size-small: 26px;
|
23
23
|
--component-size-base: 32px;
|
24
24
|
--component-size-large: 40px;
|
@@ -111,7 +111,7 @@
|
|
111
111
|
--table-border-color: #dcdee5;
|
112
112
|
--table-head-bg-color: #fafbfd;
|
113
113
|
--table-head-font-color: #313238;
|
114
|
-
--table-body-font-color: #
|
114
|
+
--table-body-font-color: #63656E;
|
115
115
|
--table-row-hover-bg-color: #f5f7fa;
|
116
116
|
--table-row-active-bg-color: #f0f1f5;
|
117
117
|
--cascader-panel-border-color: #dcdee5;
|
@@ -127,27 +127,27 @@
|
|
127
127
|
--select-active-color: #e1ecff;
|
128
128
|
--select-hover-color: #f5f7fa;
|
129
129
|
}
|
130
|
-
|
130
|
+
.bk-swiper-home {
|
131
131
|
position: relative;
|
132
132
|
overflow: hidden;
|
133
133
|
}
|
134
|
-
|
134
|
+
.bk-swiper-home:hover .bk-swiper-nav {
|
135
135
|
display: block;
|
136
136
|
}
|
137
|
-
|
137
|
+
.bk-swiper-main {
|
138
138
|
display: flex;
|
139
139
|
height: 100%;
|
140
140
|
overflow: hidden;
|
141
141
|
}
|
142
|
-
|
142
|
+
.bk-swiper-main.bk-transition {
|
143
143
|
transition: 0.5s cubic-bezier(0.42, 0, 0.58, 1);
|
144
144
|
}
|
145
|
-
|
145
|
+
.bk-swiper-main .bk-swiper-card {
|
146
146
|
height: 100%;
|
147
147
|
padding: 0;
|
148
148
|
margin: 0;
|
149
149
|
}
|
150
|
-
|
150
|
+
.bk-swiper-main .bk-swiper-img {
|
151
151
|
display: inline-block;
|
152
152
|
width: 100%;
|
153
153
|
height: 100%;
|
@@ -156,10 +156,10 @@
|
|
156
156
|
background-repeat: no-repeat;
|
157
157
|
background-size: cover;
|
158
158
|
}
|
159
|
-
|
159
|
+
.bk-swiper-main .bk-swiper-link {
|
160
160
|
cursor: pointer;
|
161
161
|
}
|
162
|
-
|
162
|
+
.bk-swiper-index {
|
163
163
|
position: absolute;
|
164
164
|
right: 0;
|
165
165
|
bottom: 10px;
|
@@ -169,7 +169,7 @@
|
|
169
169
|
margin: 0;
|
170
170
|
justify-content: center;
|
171
171
|
}
|
172
|
-
|
172
|
+
.bk-swiper-index li {
|
173
173
|
width: 11px;
|
174
174
|
height: 4px;
|
175
175
|
margin: 0 3px;
|
@@ -178,11 +178,11 @@
|
|
178
178
|
border-radius: 2px;
|
179
179
|
transition: width 0.525s;
|
180
180
|
}
|
181
|
-
|
181
|
+
.bk-swiper-index li.bk-current-index {
|
182
182
|
width: 17px;
|
183
183
|
background: #c5c7d1;
|
184
184
|
}
|
185
|
-
|
185
|
+
.bk-swiper-nav {
|
186
186
|
position: absolute;
|
187
187
|
top: calc(50% - 15px);
|
188
188
|
display: none;
|
@@ -192,7 +192,7 @@
|
|
192
192
|
background: rgba(31, 45, 61, 0.4);
|
193
193
|
border-radius: 50%;
|
194
194
|
}
|
195
|
-
|
195
|
+
.bk-swiper-nav .bk-swiper-nav-icon {
|
196
196
|
position: absolute;
|
197
197
|
top: 9px;
|
198
198
|
left: 11px;
|
@@ -201,14 +201,14 @@
|
|
201
201
|
border-bottom: 2px solid #fff;
|
202
202
|
border-left: 2px solid #fff;
|
203
203
|
}
|
204
|
-
|
204
|
+
.bk-swiper-nav.bk-nav-prev {
|
205
205
|
left: 14px;
|
206
206
|
transform: rotate(45deg);
|
207
207
|
}
|
208
|
-
|
208
|
+
.bk-swiper-nav.bk-nav-next {
|
209
209
|
right: 14px;
|
210
210
|
transform: rotate(225deg);
|
211
211
|
}
|
212
|
-
|
212
|
+
.bk-swiper-nav:hover {
|
213
213
|
background: rgba(31, 45, 61, 0.6);
|
214
214
|
}
|
package/lib/switcher/index.js
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
import "../
|
2
|
-
import "./switcher.less";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
4
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
|
-
import * as
|
6
|
-
import * as
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
7
5
|
/******/ // The require scope
|
8
6
|
/******/ var __webpack_require__ = {};
|
9
7
|
/******/
|
@@ -36,7 +34,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
36
34
|
;// CONCATENATED MODULE: external "../shared"
|
37
35
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
38
36
|
var y = x => () => x
|
39
|
-
const
|
37
|
+
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["SwitcherThemeType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.SwitcherThemeType, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
40
38
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
41
39
|
function _typeof(o) {
|
42
40
|
"@babel/helpers - typeof";
|
@@ -87,13 +85,13 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
87
85
|
var external_vue_y = x => () => x
|
88
86
|
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
89
87
|
;// CONCATENATED MODULE: external "../config-provider"
|
90
|
-
var
|
91
|
-
var
|
92
|
-
const
|
88
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
89
|
+
var external_config_provider_y = x => () => x
|
90
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
93
91
|
;// CONCATENATED MODULE: external "../icon"
|
94
|
-
var
|
95
|
-
var
|
96
|
-
const
|
92
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
93
|
+
var external_icon_y = x => () => x
|
94
|
+
const external_icon_namespaceObject = external_icon_x({ ["SwitcherLoading"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.SwitcherLoading });
|
97
95
|
;// CONCATENATED MODULE: ../../packages/switcher/src/switcher.tsx
|
98
96
|
|
99
97
|
|
@@ -127,21 +125,21 @@ const icon_namespaceObject = icon_x({ ["SwitcherLoading"]: () => __WEBPACK_EXTER
|
|
127
125
|
|
128
126
|
|
129
127
|
var switcherType = {
|
130
|
-
theme: (0,
|
131
|
-
size:
|
132
|
-
disabled:
|
133
|
-
showText:
|
134
|
-
isOutline:
|
135
|
-
onText:
|
136
|
-
offText:
|
137
|
-
isSquare:
|
138
|
-
extCls:
|
139
|
-
beforeChange:
|
140
|
-
trueValue:
|
141
|
-
falseValue:
|
142
|
-
value:
|
143
|
-
modelValue:
|
144
|
-
withValidate:
|
128
|
+
theme: (0,external_shared_namespaceObject.SwitcherThemeType)(),
|
129
|
+
size: external_shared_namespaceObject.PropTypes.size(),
|
130
|
+
disabled: external_shared_namespaceObject.PropTypes.bool,
|
131
|
+
showText: external_shared_namespaceObject.PropTypes.bool,
|
132
|
+
isOutline: external_shared_namespaceObject.PropTypes.bool,
|
133
|
+
onText: external_shared_namespaceObject.PropTypes.string.def('ON'),
|
134
|
+
offText: external_shared_namespaceObject.PropTypes.string.def('OFF'),
|
135
|
+
isSquare: external_shared_namespaceObject.PropTypes.bool,
|
136
|
+
extCls: external_shared_namespaceObject.PropTypes.string,
|
137
|
+
beforeChange: external_shared_namespaceObject.PropTypes.func.def(undefined),
|
138
|
+
trueValue: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.bool]).def(true),
|
139
|
+
falseValue: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.bool]).def(false),
|
140
|
+
value: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.bool]).def(false),
|
141
|
+
modelValue: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.bool]).def(false),
|
142
|
+
withValidate: external_shared_namespaceObject.PropTypes.bool.def(true)
|
145
143
|
};
|
146
144
|
var EVENTS;
|
147
145
|
(function (EVENTS) {
|
@@ -161,8 +159,8 @@ var switcherEmitEventsType = _defineProperty(_defineProperty({}, EVENTS.UPDATE,
|
|
161
159
|
emits: switcherEmitEventsType,
|
162
160
|
setup: function setup(props, _ref) {
|
163
161
|
var emit = _ref.emit;
|
164
|
-
var formItem = (0,
|
165
|
-
var _usePrefix = (0,
|
162
|
+
var formItem = (0,external_shared_namespaceObject.useFormItem)();
|
163
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
166
164
|
resolveClassName = _usePrefix.resolveClassName;
|
167
165
|
var isLoading = (0,external_vue_namespaceObject.ref)(false);
|
168
166
|
var isChecked = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -235,7 +233,7 @@ var switcherEmitEventsType = _defineProperty(_defineProperty({}, EVENTS.UPDATE,
|
|
235
233
|
"onClick": handleChange,
|
236
234
|
"tabindex": "0",
|
237
235
|
"onKeydown": handleKeydown
|
238
|
-
}, [isLoading.value ? (0,external_vue_namespaceObject.createVNode)(
|
236
|
+
}, [isLoading.value ? (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.SwitcherLoading, {
|
239
237
|
"class": "".concat(resolveClassName('switcher-loading'))
|
240
238
|
}, null) : '', props.showText ? (0,external_vue_namespaceObject.createVNode)("span", {
|
241
239
|
"class": "switcher-text"
|
@@ -271,7 +269,7 @@ var switcherEmitEventsType = _defineProperty(_defineProperty({}, EVENTS.UPDATE,
|
|
271
269
|
*/
|
272
270
|
|
273
271
|
|
274
|
-
var BkSwitcher = (0,
|
272
|
+
var BkSwitcher = (0,external_shared_namespaceObject.withInstall)(switcher);
|
275
273
|
/* harmony default export */ const src = (BkSwitcher);
|
276
274
|
var __webpack_exports__default = __webpack_exports__["default"];
|
277
275
|
export { __webpack_exports__default as default };
|
@@ -11,12 +11,12 @@
|
|
11
11
|
background-color: transparent;
|
12
12
|
}
|
13
13
|
}
|
14
|
-
|
15
|
-
|
14
|
+
.bk-transition .bk-fade-enter-active,
|
15
|
+
.bk-transition .bk-fade-leave-active {
|
16
16
|
transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
|
17
17
|
}
|
18
|
-
|
19
|
-
|
18
|
+
.bk-transition .bk-fade-enter,
|
19
|
+
.bk-transition .bk-fade-leave-to {
|
20
20
|
opacity: 0;
|
21
21
|
}
|
22
22
|
.clearfix-style::after {
|
@@ -27,7 +27,7 @@
|
|
27
27
|
content: '';
|
28
28
|
visibility: hidden;
|
29
29
|
}
|
30
|
-
|
30
|
+
.bk-popper {
|
31
31
|
display: none;
|
32
32
|
padding: 7px 14px;
|
33
33
|
font-size: 12px;
|
@@ -35,42 +35,42 @@
|
|
35
35
|
background: #333;
|
36
36
|
border-radius: 4px;
|
37
37
|
}
|
38
|
-
|
38
|
+
.bk-popper.light {
|
39
39
|
color: #63656e;
|
40
40
|
background: #fff;
|
41
41
|
box-shadow: #dcdee5 0 0 6px 0;
|
42
42
|
}
|
43
|
-
|
44
|
-
|
43
|
+
.bk-popper .bk-popper-arrow,
|
44
|
+
.bk-popper .bk-popper-arrow::before {
|
45
45
|
position: absolute;
|
46
46
|
width: 8px;
|
47
47
|
height: 8px;
|
48
48
|
background: inherit;
|
49
49
|
}
|
50
|
-
|
50
|
+
.bk-popper .bk-popper-arrow {
|
51
51
|
visibility: hidden;
|
52
52
|
}
|
53
|
-
|
53
|
+
.bk-popper .bk-popper-arrow::before {
|
54
54
|
content: '';
|
55
55
|
visibility: visible;
|
56
56
|
transform: rotate(45deg);
|
57
57
|
}
|
58
|
-
|
58
|
+
.bk-popper[data-show] {
|
59
59
|
display: block;
|
60
60
|
}
|
61
|
-
|
61
|
+
.bk-popper[data-popper-placement^='top'] > .bk-popper-arrow {
|
62
62
|
bottom: -4px;
|
63
63
|
}
|
64
|
-
|
64
|
+
.bk-popper[data-popper-placement^='bottom'] > .bk-popper-arrow {
|
65
65
|
top: -4px;
|
66
66
|
}
|
67
|
-
|
67
|
+
.bk-popper[data-popper-placement^='left'] > .bk-popper-arrow {
|
68
68
|
right: -4px;
|
69
69
|
}
|
70
|
-
|
70
|
+
.bk-popper[data-popper-placement^='right'] > .bk-popper-arrow {
|
71
71
|
left: -4px;
|
72
72
|
}
|
73
|
-
|
73
|
+
.bk-switcher {
|
74
74
|
position: relative;
|
75
75
|
display: inline-block;
|
76
76
|
height: 20px;
|
@@ -94,7 +94,7 @@
|
|
94
94
|
user-select: none;
|
95
95
|
/* 显示文本时固定尺寸 */
|
96
96
|
}
|
97
|
-
|
97
|
+
.bk-switcher:after {
|
98
98
|
position: absolute;
|
99
99
|
top: 1px;
|
100
100
|
left: 1px;
|
@@ -107,7 +107,7 @@
|
|
107
107
|
content: ' ';
|
108
108
|
transition: all 0.3s ease;
|
109
109
|
}
|
110
|
-
|
110
|
+
.bk-switcher .switcher-text {
|
111
111
|
display: block;
|
112
112
|
margin-right: 6px;
|
113
113
|
margin-left: 28px;
|
@@ -117,7 +117,7 @@
|
|
117
117
|
text-align: center;
|
118
118
|
transition: all 0.3s ease;
|
119
119
|
}
|
120
|
-
|
120
|
+
.bk-switcher .animating-node {
|
121
121
|
position: absolute;
|
122
122
|
top: 0;
|
123
123
|
right: 0;
|
@@ -132,7 +132,7 @@
|
|
132
132
|
animation: fadeEffect 2s cubic-bezier(0.08, 0.82, 0.17, 1), waveEffect 0.4s cubic-bezier(0.08, 0.82, 0.17, 1);
|
133
133
|
animation-fill-mode: forwards;
|
134
134
|
}
|
135
|
-
|
135
|
+
.bk-switcher .bk-switcher-loading {
|
136
136
|
position: absolute;
|
137
137
|
top: 1px;
|
138
138
|
left: 1px;
|
@@ -147,7 +147,7 @@
|
|
147
147
|
content: ' ';
|
148
148
|
transition: all 0.36s cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
149
149
|
}
|
150
|
-
|
150
|
+
.bk-switcher .bk-switcher-loading svg {
|
151
151
|
position: absolute;
|
152
152
|
top: 0;
|
153
153
|
right: 0;
|
@@ -156,138 +156,138 @@
|
|
156
156
|
margin: auto;
|
157
157
|
animation: loading 1s linear infinite;
|
158
158
|
}
|
159
|
-
|
159
|
+
.bk-switcher.is-loading {
|
160
160
|
cursor: defalt;
|
161
161
|
}
|
162
|
-
|
162
|
+
.bk-switcher.is-loading input[type=checkbox] {
|
163
163
|
cursor: default;
|
164
164
|
}
|
165
|
-
|
165
|
+
.bk-switcher.show-label {
|
166
166
|
height: 28px;
|
167
167
|
min-width: 60px;
|
168
168
|
line-height: 28px;
|
169
169
|
}
|
170
|
-
|
170
|
+
.bk-switcher.show-label::after {
|
171
171
|
width: 24px;
|
172
172
|
height: 24px;
|
173
173
|
}
|
174
|
-
|
174
|
+
.bk-switcher.show-label .bk-switcher-loading {
|
175
175
|
width: 24px;
|
176
176
|
height: 24px;
|
177
177
|
font-size: 20px;
|
178
178
|
}
|
179
|
-
|
179
|
+
.bk-switcher.show-label.is-checked .bk-switcher-loading {
|
180
180
|
left: 100%;
|
181
181
|
margin-left: -25px;
|
182
182
|
}
|
183
|
-
|
183
|
+
.bk-switcher.is-disabled {
|
184
184
|
cursor: not-allowed;
|
185
185
|
opacity: 0.3;
|
186
186
|
}
|
187
|
-
|
187
|
+
.bk-switcher.is-disabled .bk-switcher-loading {
|
188
188
|
cursor: not-allowed;
|
189
189
|
}
|
190
|
-
|
190
|
+
.bk-switcher.is-disabled::after {
|
191
191
|
cursor: not-allowed;
|
192
192
|
}
|
193
|
-
|
193
|
+
.bk-switcher.is-checked {
|
194
194
|
background: #2dcb56;
|
195
195
|
}
|
196
|
-
|
196
|
+
.bk-switcher.is-checked .bk-switcher-loading svg {
|
197
197
|
color: #2dcb56;
|
198
198
|
}
|
199
|
-
|
199
|
+
.bk-switcher.is-checked:not(.bk-switcher-outline).bk-switcher.is-checked.bk-primary {
|
200
200
|
background: #3a84ff;
|
201
201
|
}
|
202
|
-
|
202
|
+
.bk-switcher.is-checked:not(.bk-switcher-outline).bk-switcher.is-checked.bk-primary .bk-switcher-loading svg {
|
203
203
|
color: #3a84ff;
|
204
204
|
}
|
205
|
-
|
205
|
+
.bk-switcher.is-checked:after {
|
206
206
|
left: 100%;
|
207
207
|
margin-left: -1px;
|
208
208
|
transform: translateX(-100%);
|
209
209
|
}
|
210
|
-
|
210
|
+
.bk-switcher.is-checked .switcher-text {
|
211
211
|
margin-right: 28px;
|
212
212
|
margin-left: 6px;
|
213
213
|
}
|
214
|
-
|
214
|
+
.bk-switcher:not(.show-label).is-checked .bk-switcher-loading {
|
215
215
|
left: 100%;
|
216
216
|
margin-left: -17px;
|
217
217
|
}
|
218
|
-
|
218
|
+
.bk-switcher.bk-switcher-outline {
|
219
219
|
background: #fff;
|
220
220
|
border: 1px solid #c4c6cc;
|
221
221
|
}
|
222
|
-
|
222
|
+
.bk-switcher.bk-switcher-outline:after {
|
223
223
|
width: 24px;
|
224
224
|
height: 24px;
|
225
225
|
background-color: #c4c6cc;
|
226
226
|
box-shadow: none;
|
227
227
|
}
|
228
|
-
|
228
|
+
.bk-switcher.bk-switcher-outline .switcher-text {
|
229
229
|
color: #c4c6cc;
|
230
230
|
}
|
231
|
-
|
231
|
+
.bk-switcher.bk-switcher-outline.is-checked {
|
232
232
|
border: 1px solid #2dcb56;
|
233
233
|
}
|
234
|
-
|
234
|
+
.bk-switcher.bk-switcher-outline.is-checked:after {
|
235
235
|
background-color: #2dcb56;
|
236
236
|
}
|
237
|
-
|
237
|
+
.bk-switcher.bk-switcher-outline.is-checked .switcher-text {
|
238
238
|
color: #2dcb56;
|
239
239
|
}
|
240
|
-
|
240
|
+
.bk-switcher.bk-switcher-outline .bk-switcher-loading svg {
|
241
241
|
color: #fff;
|
242
242
|
}
|
243
|
-
|
243
|
+
.bk-switcher.bk-switcher-outline.bk-switcher.bk-primary.is-checked {
|
244
244
|
border: 1px solid #3a84ff;
|
245
245
|
}
|
246
|
-
|
246
|
+
.bk-switcher.bk-switcher-outline.bk-switcher.bk-primary.is-checked:after {
|
247
247
|
background: #3a84ff;
|
248
248
|
}
|
249
|
-
|
249
|
+
.bk-switcher.bk-switcher-outline.bk-switcher.bk-primary.is-checked .switcher-text {
|
250
250
|
color: #3a84ff;
|
251
251
|
}
|
252
|
-
|
252
|
+
.bk-switcher.bk-switcher-square {
|
253
253
|
border-radius: 2px;
|
254
254
|
}
|
255
|
-
|
255
|
+
.bk-switcher.bk-switcher-square:after {
|
256
256
|
border-radius: 2px;
|
257
257
|
}
|
258
|
-
|
258
|
+
.bk-switcher.bk-switcher-large {
|
259
259
|
height: 24px;
|
260
260
|
min-width: 42px;
|
261
261
|
line-height: 22px;
|
262
262
|
}
|
263
|
-
|
263
|
+
.bk-switcher.bk-switcher-large:after {
|
264
264
|
width: 20px;
|
265
265
|
height: 20px;
|
266
266
|
}
|
267
|
-
|
267
|
+
.bk-switcher.bk-switcher-large .bk-switcher-loading {
|
268
268
|
width: 20px;
|
269
269
|
height: 20px;
|
270
270
|
font-size: 16px;
|
271
271
|
}
|
272
|
-
|
272
|
+
.bk-switcher.bk-switcher-large.is-checked .bk-switcher-loading {
|
273
273
|
margin-left: -21px;
|
274
274
|
}
|
275
|
-
|
275
|
+
.bk-switcher.bk-switcher-small {
|
276
276
|
height: 16px;
|
277
277
|
min-width: 26px;
|
278
278
|
line-height: 22px;
|
279
279
|
}
|
280
|
-
|
280
|
+
.bk-switcher.bk-switcher-small:after {
|
281
281
|
width: 12px;
|
282
282
|
height: 12px;
|
283
283
|
}
|
284
|
-
|
284
|
+
.bk-switcher.bk-switcher-small .bk-switcher-loading {
|
285
285
|
width: 12px;
|
286
286
|
height: 12px;
|
287
287
|
font-weight: 700;
|
288
288
|
transform: scale(0.66667);
|
289
289
|
}
|
290
|
-
|
290
|
+
.bk-switcher.bk-switcher-small.is-checked .bk-switcher-loading {
|
291
291
|
margin-left: -13px;
|
292
292
|
}
|
293
293
|
:not(.show-label).bk-switcher-default.bk-switcher-outline::after {
|