bkui-vue 1.0.3-beta.26 → 1.0.3-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/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 +2 -2
- package/lib/styles/themes/themes copy.less +0 -167
@@ -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,7 +127,7 @@
|
|
127
127
|
--select-active-color: #e1ecff;
|
128
128
|
--select-hover-color: #f5f7fa;
|
129
129
|
}
|
130
|
-
|
130
|
+
.bk-button {
|
131
131
|
display: inline-flex;
|
132
132
|
height: var(--component-size-base);
|
133
133
|
padding: var(--component-size-base-padding);
|
@@ -146,242 +146,242 @@
|
|
146
146
|
align-items: center;
|
147
147
|
justify-content: center;
|
148
148
|
}
|
149
|
-
|
149
|
+
.bk-button.bk-button-primary {
|
150
150
|
background-color: var(--primary-color);
|
151
151
|
color: var(--white-color);
|
152
152
|
border-color: var(--primary-color);
|
153
153
|
}
|
154
|
-
|
154
|
+
.bk-button.bk-button-primary:hover {
|
155
155
|
background-color: var(--button-primary-hover-color);
|
156
156
|
border-color: var(--button-primary-hover-color);
|
157
157
|
}
|
158
|
-
|
158
|
+
.bk-button.bk-button-primary:active {
|
159
159
|
background-color: var(--button-primary-active-color);
|
160
160
|
border-color: var(--button-primary-active-color);
|
161
161
|
color: var(--white-color);
|
162
162
|
}
|
163
|
-
|
163
|
+
.bk-button.bk-button-primary.is-outline {
|
164
164
|
color: var(--primary-color);
|
165
165
|
border-color: var(--primary-color);
|
166
166
|
background-color: var(--white-color);
|
167
167
|
}
|
168
|
-
|
168
|
+
.bk-button.bk-button-primary.is-outline:hover {
|
169
169
|
background-color: var(--button-primary-hover-color);
|
170
170
|
border-color: var(--button-primary-hover-color);
|
171
171
|
color: var(--white-color);
|
172
172
|
}
|
173
|
-
|
173
|
+
.bk-button.bk-button-primary.is-outline:active {
|
174
174
|
background-color: var(--button-primary-active-color);
|
175
175
|
border-color: var(--button-primary-active-color);
|
176
176
|
color: var(--white-color);
|
177
177
|
}
|
178
|
-
|
178
|
+
.bk-button.bk-button-primary.is-text {
|
179
179
|
color: var(--primary-color);
|
180
180
|
background-color: transparent;
|
181
181
|
border: none;
|
182
182
|
}
|
183
|
-
|
183
|
+
.bk-button.bk-button-primary.is-text:not(.is-disabled):hover {
|
184
184
|
color: var(--button-primary-hover-color);
|
185
185
|
}
|
186
|
-
|
186
|
+
.bk-button.bk-button-primary.is-disabled {
|
187
187
|
color: var(--disable-color);
|
188
188
|
cursor: not-allowed;
|
189
189
|
}
|
190
|
-
|
190
|
+
.bk-button.bk-button-primary.is-disabled:not(.is-text) {
|
191
191
|
background-color: var(--disable-color);
|
192
192
|
color: var(--white-color);
|
193
193
|
border-color: var(--disable-color);
|
194
194
|
}
|
195
|
-
|
195
|
+
.bk-button.bk-button-hover-primary:hover {
|
196
196
|
background-color: var(--button-primary-hover-color);
|
197
197
|
border-color: var(--button-primary-hover-color);
|
198
198
|
color: var(--white-color);
|
199
199
|
}
|
200
|
-
|
200
|
+
.bk-button.bk-button-warning {
|
201
201
|
background-color: var(--warning-color);
|
202
202
|
color: var(--white-color);
|
203
203
|
border-color: var(--warning-color);
|
204
204
|
}
|
205
|
-
|
205
|
+
.bk-button.bk-button-warning:hover {
|
206
206
|
background-color: var(--button-warning-hover-color);
|
207
207
|
border-color: var(--button-warning-hover-color);
|
208
208
|
}
|
209
|
-
|
209
|
+
.bk-button.bk-button-warning:active {
|
210
210
|
background-color: var(--button-warning-active-color);
|
211
211
|
border-color: var(--button-warning-active-color);
|
212
212
|
color: var(--white-color);
|
213
213
|
}
|
214
|
-
|
214
|
+
.bk-button.bk-button-warning.is-outline {
|
215
215
|
color: var(--warning-color);
|
216
216
|
border-color: var(--warning-color);
|
217
217
|
background-color: var(--white-color);
|
218
218
|
}
|
219
|
-
|
219
|
+
.bk-button.bk-button-warning.is-outline:hover {
|
220
220
|
background-color: var(--button-warning-hover-color);
|
221
221
|
border-color: var(--button-warning-hover-color);
|
222
222
|
color: var(--white-color);
|
223
223
|
}
|
224
|
-
|
224
|
+
.bk-button.bk-button-warning.is-outline:active {
|
225
225
|
background-color: var(--button-warning-active-color);
|
226
226
|
border-color: var(--button-warning-active-color);
|
227
227
|
color: var(--white-color);
|
228
228
|
}
|
229
|
-
|
229
|
+
.bk-button.bk-button-warning.is-text {
|
230
230
|
color: var(--warning-color);
|
231
231
|
background-color: transparent;
|
232
232
|
border: none;
|
233
233
|
}
|
234
|
-
|
234
|
+
.bk-button.bk-button-warning.is-text:not(.is-disabled):hover {
|
235
235
|
color: var(--button-warning-hover-color);
|
236
236
|
}
|
237
|
-
|
237
|
+
.bk-button.bk-button-warning.is-disabled {
|
238
238
|
color: var(--disable-color);
|
239
239
|
cursor: not-allowed;
|
240
240
|
}
|
241
|
-
|
241
|
+
.bk-button.bk-button-warning.is-disabled:not(.is-text) {
|
242
242
|
background-color: var(--disable-color);
|
243
243
|
color: var(--white-color);
|
244
244
|
border-color: var(--disable-color);
|
245
245
|
}
|
246
|
-
|
246
|
+
.bk-button.bk-button-hover-warning:hover {
|
247
247
|
background-color: var(--button-warning-hover-color);
|
248
248
|
border-color: var(--button-warning-hover-color);
|
249
249
|
color: var(--white-color);
|
250
250
|
}
|
251
|
-
|
251
|
+
.bk-button.bk-button-success {
|
252
252
|
background-color: var(--success-color);
|
253
253
|
color: var(--white-color);
|
254
254
|
border-color: var(--success-color);
|
255
255
|
}
|
256
|
-
|
256
|
+
.bk-button.bk-button-success:hover {
|
257
257
|
background-color: var(--button-success-hover-color);
|
258
258
|
border-color: var(--button-success-hover-color);
|
259
259
|
}
|
260
|
-
|
260
|
+
.bk-button.bk-button-success:active {
|
261
261
|
background-color: var(--button-success-active-color);
|
262
262
|
border-color: var(--button-success-active-color);
|
263
263
|
color: var(--white-color);
|
264
264
|
}
|
265
|
-
|
265
|
+
.bk-button.bk-button-success.is-outline {
|
266
266
|
color: var(--success-color);
|
267
267
|
border-color: var(--success-color);
|
268
268
|
background-color: var(--white-color);
|
269
269
|
}
|
270
|
-
|
270
|
+
.bk-button.bk-button-success.is-outline:hover {
|
271
271
|
background-color: var(--button-success-hover-color);
|
272
272
|
border-color: var(--button-success-hover-color);
|
273
273
|
color: var(--white-color);
|
274
274
|
}
|
275
|
-
|
275
|
+
.bk-button.bk-button-success.is-outline:active {
|
276
276
|
background-color: var(--button-success-active-color);
|
277
277
|
border-color: var(--button-success-active-color);
|
278
278
|
color: var(--white-color);
|
279
279
|
}
|
280
|
-
|
280
|
+
.bk-button.bk-button-success.is-text {
|
281
281
|
color: var(--success-color);
|
282
282
|
background-color: transparent;
|
283
283
|
border: none;
|
284
284
|
}
|
285
|
-
|
285
|
+
.bk-button.bk-button-success.is-text:not(.is-disabled):hover {
|
286
286
|
color: var(--button-success-hover-color);
|
287
287
|
}
|
288
|
-
|
288
|
+
.bk-button.bk-button-success.is-disabled {
|
289
289
|
color: var(--disable-color);
|
290
290
|
cursor: not-allowed;
|
291
291
|
}
|
292
|
-
|
292
|
+
.bk-button.bk-button-success.is-disabled:not(.is-text) {
|
293
293
|
background-color: var(--disable-color);
|
294
294
|
color: var(--white-color);
|
295
295
|
border-color: var(--disable-color);
|
296
296
|
}
|
297
|
-
|
297
|
+
.bk-button.bk-button-hover-success:hover {
|
298
298
|
background-color: var(--button-success-hover-color);
|
299
299
|
border-color: var(--button-success-hover-color);
|
300
300
|
color: var(--white-color);
|
301
301
|
}
|
302
|
-
|
302
|
+
.bk-button.bk-button-danger {
|
303
303
|
background-color: var(--danger-color);
|
304
304
|
color: var(--white-color);
|
305
305
|
border-color: var(--danger-color);
|
306
306
|
}
|
307
|
-
|
307
|
+
.bk-button.bk-button-danger:hover {
|
308
308
|
background-color: var(--button-danger-hover-color);
|
309
309
|
border-color: var(--button-danger-hover-color);
|
310
310
|
}
|
311
|
-
|
311
|
+
.bk-button.bk-button-danger:active {
|
312
312
|
background-color: var(--button-danger-active-color);
|
313
313
|
border-color: var(--button-danger-active-color);
|
314
314
|
color: var(--white-color);
|
315
315
|
}
|
316
|
-
|
316
|
+
.bk-button.bk-button-danger.is-outline {
|
317
317
|
color: var(--danger-color);
|
318
318
|
border-color: var(--danger-color);
|
319
319
|
background-color: var(--white-color);
|
320
320
|
}
|
321
|
-
|
321
|
+
.bk-button.bk-button-danger.is-outline:hover {
|
322
322
|
background-color: var(--button-danger-hover-color);
|
323
323
|
border-color: var(--button-danger-hover-color);
|
324
324
|
color: var(--white-color);
|
325
325
|
}
|
326
|
-
|
326
|
+
.bk-button.bk-button-danger.is-outline:active {
|
327
327
|
background-color: var(--button-danger-active-color);
|
328
328
|
border-color: var(--button-danger-active-color);
|
329
329
|
color: var(--white-color);
|
330
330
|
}
|
331
|
-
|
331
|
+
.bk-button.bk-button-danger.is-text {
|
332
332
|
color: var(--danger-color);
|
333
333
|
background-color: transparent;
|
334
334
|
border: none;
|
335
335
|
}
|
336
|
-
|
336
|
+
.bk-button.bk-button-danger.is-text:not(.is-disabled):hover {
|
337
337
|
color: var(--button-danger-hover-color);
|
338
338
|
}
|
339
|
-
|
339
|
+
.bk-button.bk-button-danger.is-disabled {
|
340
340
|
color: var(--disable-color);
|
341
341
|
cursor: not-allowed;
|
342
342
|
}
|
343
|
-
|
343
|
+
.bk-button.bk-button-danger.is-disabled:not(.is-text) {
|
344
344
|
background-color: var(--disable-color);
|
345
345
|
color: var(--white-color);
|
346
346
|
border-color: var(--disable-color);
|
347
347
|
}
|
348
|
-
|
348
|
+
.bk-button.bk-button-hover-danger:hover {
|
349
349
|
background-color: var(--button-danger-hover-color);
|
350
350
|
border-color: var(--button-danger-hover-color);
|
351
351
|
color: var(--white-color);
|
352
352
|
}
|
353
|
-
|
353
|
+
.bk-button.bk-button-small {
|
354
354
|
height: var(--component-size-small);
|
355
355
|
padding: var(--component-size-small-padding);
|
356
356
|
font-size: var(--font-size-base);
|
357
357
|
}
|
358
|
-
|
358
|
+
.bk-button.bk-button-large {
|
359
359
|
height: var(--component-size-large);
|
360
360
|
padding: var(--component-size-large-padding);
|
361
361
|
font-size: var(--font-size-large);
|
362
362
|
}
|
363
|
-
|
363
|
+
.bk-button .bk-button-text {
|
364
364
|
display: inline-flex;
|
365
365
|
align-items: center;
|
366
366
|
line-height: 1;
|
367
367
|
}
|
368
|
-
|
368
|
+
.bk-button.is-loading {
|
369
369
|
position: relative;
|
370
370
|
}
|
371
|
-
|
371
|
+
.bk-button.is-loading .bk-button-loading:not(:last-child) {
|
372
372
|
position: absolute;
|
373
373
|
}
|
374
|
-
|
374
|
+
.bk-button.is-loading .bk-button-text {
|
375
375
|
visibility: hidden;
|
376
376
|
}
|
377
|
-
|
377
|
+
.bk-button:hover {
|
378
378
|
border-color: var(--button-default-hover-border-color);
|
379
379
|
}
|
380
|
-
|
380
|
+
.bk-button:active {
|
381
381
|
color: var(--primary-color);
|
382
382
|
border-color: var(--primary-color);
|
383
383
|
}
|
384
|
-
|
384
|
+
.bk-button.is-text {
|
385
385
|
height: auto;
|
386
386
|
padding: 0;
|
387
387
|
font-size: inherit;
|
@@ -392,61 +392,61 @@
|
|
392
392
|
border: none;
|
393
393
|
outline: none;
|
394
394
|
}
|
395
|
-
|
395
|
+
.bk-button.is-disabled {
|
396
396
|
color: var(--disable-color);
|
397
397
|
cursor: not-allowed;
|
398
398
|
border-color: var(--disable-color);
|
399
399
|
}
|
400
|
-
|
400
|
+
.bk-button.is-disabled:not(.is-text) {
|
401
401
|
background-color: var(--disable-bg-color);
|
402
402
|
}
|
403
|
-
|
403
|
+
.bk-button-group {
|
404
404
|
display: inline-block;
|
405
405
|
font-size: 0;
|
406
406
|
}
|
407
|
-
|
407
|
+
.bk-button-group.bk-button-group-small .bk-button {
|
408
408
|
height: var(--component-size-small);
|
409
409
|
padding: var(--component-size-small-padding);
|
410
410
|
font-size: var(--font-size-base);
|
411
411
|
}
|
412
|
-
|
412
|
+
.bk-button-group.bk-button-group-large .bk-button {
|
413
413
|
height: var(--component-size-large);
|
414
414
|
padding: var(--component-size-large-padding);
|
415
415
|
font-size: var(--font-size-large);
|
416
416
|
}
|
417
|
-
|
417
|
+
.bk-button-group .bk-button {
|
418
418
|
height: var(--component-size-base);
|
419
419
|
margin: 0 0 0 -1px;
|
420
420
|
border-radius: 0;
|
421
421
|
}
|
422
|
-
|
422
|
+
.bk-button-group .bk-button:not(.is-disabled) {
|
423
423
|
color: var(--default-color);
|
424
424
|
background-color: var(--white-color);
|
425
425
|
border-color: var(--light-gray);
|
426
426
|
}
|
427
|
-
|
427
|
+
.bk-button-group .bk-button.is-disabled {
|
428
428
|
color: var(--light-gray);
|
429
429
|
}
|
430
|
-
|
430
|
+
.bk-button-group .bk-button:first-child {
|
431
431
|
border-radius: var(--border-radius-base) 0 0 var(--border-radius-base);
|
432
432
|
}
|
433
|
-
|
433
|
+
.bk-button-group .bk-button:last-child {
|
434
434
|
border-radius: 0 var(--border-radius-base) var(--border-radius-base) 0;
|
435
435
|
}
|
436
|
-
|
436
|
+
.bk-button-group .bk-button:only-child {
|
437
437
|
border-radius: var(--border-radius-base);
|
438
438
|
}
|
439
|
-
|
440
|
-
|
439
|
+
.bk-button-group .bk-button:hover:not(.is-disabled),
|
440
|
+
.bk-button-group .bk-button.is-selected:not(.is-disabled) {
|
441
441
|
position: relative;
|
442
442
|
z-index: 1;
|
443
443
|
color: var(--primary-color);
|
444
444
|
background-color: var(--white-color);
|
445
445
|
border-color: var(--primary-color);
|
446
446
|
}
|
447
|
-
|
447
|
+
.bk-button-group .bk-button.is-selected:not(.is-disabled) {
|
448
448
|
background-color: var(--button-selected-bg-color);
|
449
449
|
}
|
450
|
-
|
450
|
+
.bk-button-group .bk-button.is-selected.is-disabled {
|
451
451
|
background-color: var(--button-disabled-selected-bg-color);
|
452
452
|
}
|
package/lib/button/index.js
CHANGED
@@ -1,10 +1,7 @@
|
|
1
|
-
import "../
|
2
|
-
import "./button.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
|
7
|
-
import "../loading/loading.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
8
5
|
/******/ // The require scope
|
9
6
|
/******/ var __webpack_require__ = {};
|
10
7
|
/******/
|
@@ -39,7 +36,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
39
36
|
;// CONCATENATED MODULE: external "../shared"
|
40
37
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
41
38
|
var y = x => () => x
|
42
|
-
const
|
39
|
+
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
|
43
40
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
44
41
|
function _typeof(o) {
|
45
42
|
"@babel/helpers - typeof";
|
@@ -90,17 +87,13 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
90
87
|
var external_vue_y = x => () => x
|
91
88
|
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, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
|
92
89
|
;// CONCATENATED MODULE: external "../config-provider"
|
93
|
-
var
|
94
|
-
var
|
95
|
-
const
|
90
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
91
|
+
var external_config_provider_y = x => () => x
|
92
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
96
93
|
;// CONCATENATED MODULE: external "../loading"
|
97
|
-
var
|
98
|
-
var
|
99
|
-
const
|
100
|
-
;// CONCATENATED MODULE: external "../loading/loading.less"
|
101
|
-
var loading_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
102
|
-
var loading_less_y = x => () => x
|
103
|
-
const loading_less_namespaceObject = loading_less_x({ });
|
94
|
+
var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
95
|
+
var external_loading_y = x => () => x
|
96
|
+
const external_loading_namespaceObject = external_loading_x({ ["BkLoadingSize"]: () => __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__.BkLoadingSize, ["default"]: () => __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__["default"] });
|
104
97
|
;// CONCATENATED MODULE: ../../packages/button/src/button.tsx
|
105
98
|
|
106
99
|
|
@@ -133,28 +126,26 @@ const loading_less_namespaceObject = loading_less_x({ });
|
|
133
126
|
|
134
127
|
|
135
128
|
|
136
|
-
|
137
|
-
|
138
129
|
var btnSizes = ['', 'small', 'large'];
|
139
130
|
var buttonProps = {
|
140
|
-
theme:
|
141
|
-
hoverTheme:
|
131
|
+
theme: external_shared_namespaceObject.PropTypes.theme(),
|
132
|
+
hoverTheme: external_shared_namespaceObject.PropTypes.theme(),
|
142
133
|
size: {
|
143
134
|
type: String,
|
144
135
|
"default": btnSizes[0]
|
145
136
|
},
|
146
|
-
title:
|
147
|
-
icon:
|
148
|
-
iconRight:
|
149
|
-
disabled:
|
150
|
-
loading:
|
137
|
+
title: external_shared_namespaceObject.PropTypes.string,
|
138
|
+
icon: external_shared_namespaceObject.PropTypes.string,
|
139
|
+
iconRight: external_shared_namespaceObject.PropTypes.string,
|
140
|
+
disabled: external_shared_namespaceObject.PropTypes.bool,
|
141
|
+
loading: external_shared_namespaceObject.PropTypes.bool,
|
151
142
|
loadingMode: {
|
152
143
|
type: String,
|
153
144
|
"default": 'default'
|
154
145
|
},
|
155
|
-
outline:
|
156
|
-
text:
|
157
|
-
selected:
|
146
|
+
outline: external_shared_namespaceObject.PropTypes.bool,
|
147
|
+
text: external_shared_namespaceObject.PropTypes.bool,
|
148
|
+
selected: external_shared_namespaceObject.PropTypes.bool,
|
158
149
|
// circle: PropTypes.bool,
|
159
150
|
nativeType: {
|
160
151
|
type: String,
|
@@ -172,7 +163,7 @@ var buttonProps = {
|
|
172
163
|
emit = _ref.emit;
|
173
164
|
var isHover = (0,external_vue_namespaceObject.ref)(false);
|
174
165
|
var showSlot = (_slots$default = slots["default"]) !== null && _slots$default !== void 0 ? _slots$default : false;
|
175
|
-
var _usePrefix = (0,
|
166
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
176
167
|
resolveClassName = _usePrefix.resolveClassName;
|
177
168
|
var btnClsPrefix = resolveClassName('button');
|
178
169
|
var isText = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -182,7 +173,7 @@ var buttonProps = {
|
|
182
173
|
var hoverTheme = props.hoverTheme ? "".concat(btnClsPrefix, "-hover-").concat(props.hoverTheme) : '';
|
183
174
|
var btnThemeCls = props.theme ? "".concat(btnClsPrefix, "-").concat(props.theme) : '';
|
184
175
|
var themeCls = props.hoverTheme ? '' : btnThemeCls;
|
185
|
-
return (0,
|
176
|
+
return (0,external_shared_namespaceObject.classes)(_defineProperty(_defineProperty({
|
186
177
|
'is-disabled': props.disabled,
|
187
178
|
'is-outline': props.outline,
|
188
179
|
'is-text': isText.value,
|
@@ -199,7 +190,7 @@ var buttonProps = {
|
|
199
190
|
return !props.theme ? undefined : 'white';
|
200
191
|
});
|
201
192
|
var loadingSize = (0,external_vue_namespaceObject.computed)(function () {
|
202
|
-
return isText.value || props.size ===
|
193
|
+
return isText.value || props.size === external_loading_namespaceObject.BkLoadingSize.Small ? external_loading_namespaceObject.BkLoadingSize.Mini : external_loading_namespaceObject.BkLoadingSize.Small;
|
203
194
|
});
|
204
195
|
var handleClick = function handleClick(e) {
|
205
196
|
if (props.loading) return;
|
@@ -226,7 +217,7 @@ var buttonProps = {
|
|
226
217
|
"onClick": handleClick,
|
227
218
|
"onMouseover": handleMouseOver,
|
228
219
|
"onMouseleave": handleMouseout
|
229
|
-
}, [props.loading && (0,external_vue_namespaceObject.createVNode)(
|
220
|
+
}, [props.loading && (0,external_vue_namespaceObject.createVNode)(external_loading_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
230
221
|
"loading": true,
|
231
222
|
"class": "".concat(btnClsPrefix, "-loading"),
|
232
223
|
"mode": props.loadingMode,
|
@@ -273,13 +264,13 @@ var buttonProps = {
|
|
273
264
|
/* harmony default export */ const button_group = ((0,external_vue_namespaceObject.defineComponent)({
|
274
265
|
name: 'ButtonGroup',
|
275
266
|
props: {
|
276
|
-
size:
|
267
|
+
size: external_shared_namespaceObject.PropTypes.size()
|
277
268
|
},
|
278
269
|
setup: function setup(props, ctx) {
|
279
|
-
var _usePrefix = (0,
|
270
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
280
271
|
resolveClassName = _usePrefix.resolveClassName;
|
281
272
|
var btnGroupCls = (0,external_vue_namespaceObject.computed)(function () {
|
282
|
-
return (0,
|
273
|
+
return (0,external_shared_namespaceObject.classes)(_defineProperty({}, "".concat(resolveClassName("button-group-".concat(props.size))), !!props.size), "".concat(resolveClassName('button-group')));
|
283
274
|
});
|
284
275
|
return function () {
|
285
276
|
var _ctx$slots$default, _ctx$slots;
|
@@ -318,7 +309,7 @@ var buttonProps = {
|
|
318
309
|
|
319
310
|
|
320
311
|
|
321
|
-
var BkButton = (0,
|
312
|
+
var BkButton = (0,external_shared_namespaceObject.withInstallProps)(src_button, {
|
322
313
|
ButtonGroup: button_group
|
323
314
|
});
|
324
315
|
/* harmony default export */ const src = (BkButton);
|