bkui-vue 0.0.2-beta.130 → 0.0.2-beta.131
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 +27 -27
- package/dist/index.esm.js +6093 -6062
- package/dist/index.umd.js +27 -27
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +3 -3
- package/lib/alert/alert.variable.css +3 -3
- package/lib/backtop/backtop.variable.css +3 -3
- package/lib/badge/badge.variable.css +3 -3
- package/lib/breadcrumb/breadcrumb.variable.css +3 -3
- package/lib/button/button.css +5 -5
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.variable.css +3 -3
- package/lib/button/index.d.ts +3 -3
- package/lib/card/card.variable.css +3 -3
- package/lib/cascader/cascader.variable.css +3 -3
- package/lib/checkbox/checkbox.css +12 -0
- package/lib/checkbox/checkbox.d.ts +1 -0
- package/lib/checkbox/checkbox.less +14 -0
- package/lib/checkbox/checkbox.variable.css +15 -3
- package/lib/checkbox/common.d.ts +1 -0
- package/lib/checkbox/index.d.ts +3 -0
- package/lib/checkbox/index.js +33 -9
- package/lib/code-diff/code-diff.variable.css +3 -3
- package/lib/collapse/collapse.variable.css +3 -3
- package/lib/collapse-transition/collapse-transition.variable.css +3 -3
- package/lib/color-picker/color-picker.variable.css +3 -3
- package/lib/config-provider/config-provider.variable.css +3 -3
- package/lib/container/container.variable.css +3 -3
- package/lib/date-picker/date-picker.variable.css +3 -3
- package/lib/dialog/dialog.variable.css +3 -3
- package/lib/divider/divider.variable.css +3 -3
- package/lib/dropdown/dropdown.variable.css +3 -3
- package/lib/exception/exception.variable.css +3 -3
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -3
- package/lib/form/form.variable.css +3 -3
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +58 -25
- package/lib/icon/loading.d.ts +4 -0
- package/lib/icon/loading.js +276 -0
- package/lib/image/image-viewer.variable.css +3 -3
- package/lib/image/image.variable.css +3 -3
- package/lib/info-box/info-box.variable.css +3 -3
- package/lib/input/input.variable.css +3 -3
- package/lib/link/link.variable.css +3 -3
- package/lib/loading/index.d.ts +3 -3
- package/lib/loading/loading.d.ts +1 -1
- package/lib/loading/loading.variable.css +3 -3
- package/lib/menu/menu.variable.css +3 -3
- package/lib/menu/submenu.variable.css +3 -3
- package/lib/message/message.variable.css +3 -3
- package/lib/modal/modal.variable.css +3 -3
- package/lib/navigation/navigation.variable.css +3 -3
- package/lib/notify/notify.variable.css +3 -3
- package/lib/pagination/pagination.variable.css +3 -3
- package/lib/pop-confirm/pop-confirm.variable.css +3 -3
- package/lib/popover/popover.variable.css +3 -3
- package/lib/process/process.variable.css +3 -3
- package/lib/progress/progress.variable.css +3 -3
- package/lib/radio/radio.css +3 -3
- package/lib/radio/radio.variable.css +3 -3
- package/lib/rate/rate.variable.css +3 -3
- package/lib/rate/star.variable.css +3 -3
- package/lib/resize-layout/resize-layout.variable.css +3 -3
- package/lib/search-select/search-select.variable.css +3 -3
- package/lib/select/index.d.ts +3 -3
- package/lib/select/select.d.ts +1 -1
- package/lib/select/select.variable.css +3 -3
- package/lib/sideslider/sideslider.variable.css +3 -3
- package/lib/slider/slider.variable.css +3 -3
- package/lib/steps/steps.variable.css +3 -3
- package/lib/styles/mixins/animate.variable.css +3 -3
- package/lib/styles/mixins/popper.variable.css +3 -3
- package/lib/styles/mixins/scroll.variable.css +3 -3
- package/lib/styles/reset.variable.css +3 -3
- package/lib/styles/themes/themes.less +3 -3
- package/lib/swiper/swiper.variable.css +3 -3
- package/lib/switcher/switcher.variable.css +3 -3
- package/lib/tab/tab.variable.css +3 -3
- package/lib/table/plugins/head-filter.variable.css +3 -3
- package/lib/table/plugins/head-sort.variable.css +3 -3
- package/lib/table/plugins/settings.variable.css +3 -3
- package/lib/table/table.css +17 -5
- package/lib/table/table.variable.css +20 -8
- package/lib/tag/tag.variable.css +3 -3
- package/lib/tag-input/tag-input.variable.css +3 -3
- package/lib/time-picker/time-picker.variable.css +3 -3
- package/lib/timeline/timeline.variable.css +3 -3
- package/lib/transfer/transfer.variable.css +3 -3
- package/lib/tree/tree.css +12 -0
- package/lib/tree/tree.variable.css +15 -3
- package/lib/upload/upload.variable.css +3 -3
- package/lib/virtual-render/virtual-render.variable.css +3 -3
- package/package.json +1 -1
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
package/lib/button/button.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.bk-button {
|
2
2
|
display: inline-flex;
|
3
3
|
height: 32px;
|
4
|
-
padding:
|
4
|
+
padding: 0 14px;
|
5
5
|
font-size: 14px;
|
6
6
|
color: #63656e;
|
7
7
|
text-decoration: none;
|
@@ -223,12 +223,12 @@
|
|
223
223
|
}
|
224
224
|
.bk-button.bk-button-small {
|
225
225
|
height: 26px;
|
226
|
-
padding:
|
226
|
+
padding: 0 12px;
|
227
227
|
font-size: 12px;
|
228
228
|
}
|
229
229
|
.bk-button.bk-button-large {
|
230
230
|
height: 40px;
|
231
|
-
padding:
|
231
|
+
padding: 0 16px;
|
232
232
|
font-size: 16px;
|
233
233
|
}
|
234
234
|
.bk-button .bk-button-text {
|
@@ -277,12 +277,12 @@
|
|
277
277
|
}
|
278
278
|
.bk-button-group.bk-button-group-small .bk-button {
|
279
279
|
height: 26px;
|
280
|
-
padding:
|
280
|
+
padding: 0 12px;
|
281
281
|
font-size: 12px;
|
282
282
|
}
|
283
283
|
.bk-button-group.bk-button-group-large .bk-button {
|
284
284
|
height: 40px;
|
285
|
-
padding:
|
285
|
+
padding: 0 16px;
|
286
286
|
font-size: 16px;
|
287
287
|
}
|
288
288
|
.bk-button-group .bk-button {
|
package/lib/button/button.d.ts
CHANGED
@@ -153,8 +153,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
153
153
|
disabled: boolean;
|
154
154
|
size: "" | "small" | "large";
|
155
155
|
icon: string;
|
156
|
-
outline: boolean;
|
157
156
|
loading: boolean;
|
157
|
+
outline: boolean;
|
158
158
|
iconRight: string;
|
159
159
|
loadingMode: "default" | "spin";
|
160
160
|
selected: boolean;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
package/lib/button/index.d.ts
CHANGED
@@ -9,8 +9,8 @@ declare const BkButton: {
|
|
9
9
|
disabled?: boolean;
|
10
10
|
size?: "" | "small" | "large";
|
11
11
|
icon?: string;
|
12
|
-
outline?: boolean;
|
13
12
|
loading?: boolean;
|
13
|
+
outline?: boolean;
|
14
14
|
iconRight?: string;
|
15
15
|
loadingMode?: "default" | "spin";
|
16
16
|
selected?: boolean;
|
@@ -125,8 +125,8 @@ declare const BkButton: {
|
|
125
125
|
disabled: boolean;
|
126
126
|
size: "" | "small" | "large";
|
127
127
|
icon: string;
|
128
|
-
outline: boolean;
|
129
128
|
loading: boolean;
|
129
|
+
outline: boolean;
|
130
130
|
iconRight: string;
|
131
131
|
loadingMode: "default" | "spin";
|
132
132
|
selected: boolean;
|
@@ -245,8 +245,8 @@ declare const BkButton: {
|
|
245
245
|
disabled: boolean;
|
246
246
|
size: "" | "small" | "large";
|
247
247
|
icon: string;
|
248
|
-
outline: boolean;
|
249
248
|
loading: boolean;
|
249
|
+
outline: boolean;
|
250
250
|
iconRight: string;
|
251
251
|
loadingMode: "default" | "spin";
|
252
252
|
selected: boolean;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -76,6 +76,12 @@
|
|
76
76
|
.bk-checkbox.is-disabled.is-checked .bk-checkbox-input::after {
|
77
77
|
background: #a3c5fd;
|
78
78
|
}
|
79
|
+
.bk-checkbox.is-prechecking {
|
80
|
+
position: relative;
|
81
|
+
}
|
82
|
+
.bk-checkbox.is-prechecking .bk-checkbox-input {
|
83
|
+
visibility: hidden;
|
84
|
+
}
|
79
85
|
.bk-checkbox-input {
|
80
86
|
position: relative;
|
81
87
|
display: inline-block;
|
@@ -102,3 +108,9 @@
|
|
102
108
|
margin-left: 6px;
|
103
109
|
vertical-align: middle;
|
104
110
|
}
|
111
|
+
.bk-checkbox-checking {
|
112
|
+
position: absolute;
|
113
|
+
font-size: 16px;
|
114
|
+
color: #3a84ff;
|
115
|
+
animation: loading 1s linear infinite;
|
116
|
+
}
|
@@ -71,6 +71,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
71
71
|
inputRef: import("vue").Ref<any>;
|
72
72
|
isFocus: import("vue").Ref<boolean>;
|
73
73
|
isChecked: import("vue").Ref<boolean>;
|
74
|
+
isPrechecking: import("vue").Ref<boolean>;
|
74
75
|
isDisabled: import("vue").ComputedRef<boolean>;
|
75
76
|
setChecked: (value?: boolean) => void;
|
76
77
|
handleBlur: () => void;
|
@@ -100,6 +100,13 @@
|
|
100
100
|
}
|
101
101
|
}
|
102
102
|
}
|
103
|
+
|
104
|
+
&.is-prechecking {
|
105
|
+
position: relative;
|
106
|
+
.@{bk-prefix}-checkbox-input {
|
107
|
+
visibility: hidden;
|
108
|
+
}
|
109
|
+
}
|
103
110
|
}
|
104
111
|
|
105
112
|
.@{bk-prefix}-checkbox-input {
|
@@ -131,3 +138,10 @@
|
|
131
138
|
margin-left: 6px;
|
132
139
|
vertical-align: middle;
|
133
140
|
}
|
141
|
+
|
142
|
+
.@{bk-prefix}-checkbox-checking {
|
143
|
+
position: absolute;
|
144
|
+
font-size: 16px;
|
145
|
+
color: #3a84ff;
|
146
|
+
animation: loading 1s linear infinite;
|
147
|
+
}
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -202,6 +202,12 @@
|
|
202
202
|
.bk-checkbox.is-disabled.is-checked .bk-checkbox-input::after {
|
203
203
|
background: var(--checkbox-disabled-checked-bg);
|
204
204
|
}
|
205
|
+
.bk-checkbox.is-prechecking {
|
206
|
+
position: relative;
|
207
|
+
}
|
208
|
+
.bk-checkbox.is-prechecking .bk-checkbox-input {
|
209
|
+
visibility: hidden;
|
210
|
+
}
|
205
211
|
.bk-checkbox-input {
|
206
212
|
position: relative;
|
207
213
|
display: inline-block;
|
@@ -228,3 +234,9 @@
|
|
228
234
|
margin-left: 6px;
|
229
235
|
vertical-align: middle;
|
230
236
|
}
|
237
|
+
.bk-checkbox-checking {
|
238
|
+
position: absolute;
|
239
|
+
font-size: 16px;
|
240
|
+
color: #3a84ff;
|
241
|
+
animation: loading 1s linear infinite;
|
242
|
+
}
|
package/lib/checkbox/common.d.ts
CHANGED
@@ -8,6 +8,7 @@ export declare function useFocus(): [Ref<boolean>, {
|
|
8
8
|
export declare const useCheckbox: () => {
|
9
9
|
inputRef: Ref<any>;
|
10
10
|
isChecked: Ref<boolean>;
|
11
|
+
isPrechecking: Ref<boolean>;
|
11
12
|
isDisabled: import("vue").ComputedRef<boolean>;
|
12
13
|
setChecked: (value?: boolean) => void;
|
13
14
|
handleChange: (event: Event) => void;
|
package/lib/checkbox/index.d.ts
CHANGED
@@ -117,6 +117,7 @@ declare const BkCheckbox: {
|
|
117
117
|
inputRef: import("vue").Ref<any>;
|
118
118
|
isFocus: import("vue").Ref<boolean>;
|
119
119
|
isChecked: import("vue").Ref<boolean>;
|
120
|
+
isPrechecking: import("vue").Ref<boolean>;
|
120
121
|
isDisabled: import("vue").ComputedRef<boolean>;
|
121
122
|
setChecked: (value?: boolean) => void;
|
122
123
|
handleBlur: () => void;
|
@@ -198,6 +199,7 @@ declare const BkCheckbox: {
|
|
198
199
|
inputRef: import("vue").Ref<any>;
|
199
200
|
isFocus: import("vue").Ref<boolean>;
|
200
201
|
isChecked: import("vue").Ref<boolean>;
|
202
|
+
isPrechecking: import("vue").Ref<boolean>;
|
201
203
|
isDisabled: import("vue").ComputedRef<boolean>;
|
202
204
|
setChecked: (value?: boolean) => void;
|
203
205
|
handleBlur: () => void;
|
@@ -250,6 +252,7 @@ declare const BkCheckbox: {
|
|
250
252
|
inputRef: import("vue").Ref<any>;
|
251
253
|
isFocus: import("vue").Ref<boolean>;
|
252
254
|
isChecked: import("vue").Ref<boolean>;
|
255
|
+
isPrechecking: import("vue").Ref<boolean>;
|
253
256
|
isDisabled: import("vue").ComputedRef<boolean>;
|
254
257
|
setChecked: (value?: boolean) => void;
|
255
258
|
handleBlur: () => void;
|
package/lib/checkbox/index.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
4
5
|
/******/ // The require scope
|
5
6
|
/******/ var __webpack_require__ = {};
|
6
7
|
/******/
|
@@ -149,6 +150,10 @@ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBP
|
|
149
150
|
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
150
151
|
var external_config_provider_y = x => () => x
|
151
152
|
const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
153
|
+
;// CONCATENATED MODULE: external "../icon"
|
154
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
155
|
+
var external_icon_y = x => () => x
|
156
|
+
const external_icon_namespaceObject = external_icon_x({ ["Loading"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Loading });
|
152
157
|
;// CONCATENATED MODULE: ../../packages/checkbox/src/common.ts
|
153
158
|
/*
|
154
159
|
* Tencent is pleased to support the open source community by making
|
@@ -199,6 +204,7 @@ var useCheckbox = function useCheckbox() {
|
|
199
204
|
var isGroup = !(0,external_shared_namespaceObject.isEmptyObj)(checkboxGroup);
|
200
205
|
var inputRef = (0,external_vue_namespaceObject.ref)();
|
201
206
|
var isChecked = (0,external_vue_namespaceObject.ref)(props.checked);
|
207
|
+
var isPrechecking = (0,external_vue_namespaceObject.ref)(false);
|
202
208
|
// 禁用状态
|
203
209
|
var isDisabled = (0,external_vue_namespaceObject.computed)(function () {
|
204
210
|
if (isGroup && checkboxGroup.props.disabled) {
|
@@ -259,12 +265,24 @@ var useCheckbox = function useCheckbox() {
|
|
259
265
|
};
|
260
266
|
// 值更新
|
261
267
|
var handleChange = function handleChange(event) {
|
262
|
-
|
268
|
+
var $targetInput = event.target;
|
269
|
+
if (isDisabled.value || isPrechecking.value) {
|
263
270
|
return;
|
264
271
|
}
|
265
|
-
|
266
|
-
|
267
|
-
|
272
|
+
isPrechecking.value = true;
|
273
|
+
var nextValue = $targetInput.checked;
|
274
|
+
Promise.resolve(props.beforeChange ? props.beforeChange(nextValue) : true).then(function (result) {
|
275
|
+
if (result) {
|
276
|
+
isChecked.value = nextValue;
|
277
|
+
triggerChange(event);
|
278
|
+
} else {
|
279
|
+
return Promise.reject();
|
280
|
+
}
|
281
|
+
})["catch"](function () {
|
282
|
+
$targetInput.checked = isChecked.value;
|
283
|
+
})["finally"](function () {
|
284
|
+
isPrechecking.value = false;
|
285
|
+
});
|
268
286
|
};
|
269
287
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
270
288
|
if (isGroup) {
|
@@ -279,6 +297,7 @@ var useCheckbox = function useCheckbox() {
|
|
279
297
|
return {
|
280
298
|
inputRef: inputRef,
|
281
299
|
isChecked: isChecked,
|
300
|
+
isPrechecking: isPrechecking,
|
282
301
|
isDisabled: isDisabled,
|
283
302
|
setChecked: setChecked,
|
284
303
|
handleChange: handleChange
|
@@ -317,6 +336,7 @@ var useCheckbox = function useCheckbox() {
|
|
317
336
|
|
318
337
|
|
319
338
|
|
339
|
+
|
320
340
|
var checkboxProps = {
|
321
341
|
modelValue: external_shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]),
|
322
342
|
label: external_shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]),
|
@@ -326,7 +346,7 @@ var checkboxProps = {
|
|
326
346
|
checked: external_shared_namespaceObject.PropTypes.bool.def(false),
|
327
347
|
indeterminate: external_shared_namespaceObject.PropTypes.bool,
|
328
348
|
beforeChange: external_shared_namespaceObject.PropTypes.func,
|
329
|
-
size: external_shared_namespaceObject.PropTypes.size().def(external_shared_namespaceObject.SizeEnum.
|
349
|
+
size: external_shared_namespaceObject.PropTypes.size().def(external_shared_namespaceObject.SizeEnum.DEFAULT),
|
330
350
|
immediateEmitChange: external_shared_namespaceObject.PropTypes.bool.def(true) // 默认设置checked是否触发change事件
|
331
351
|
};
|
332
352
|
|
@@ -354,6 +374,7 @@ var checkboxProps = {
|
|
354
374
|
var _useCheckbox = useCheckbox(),
|
355
375
|
inputRef = _useCheckbox.inputRef,
|
356
376
|
isChecked = _useCheckbox.isChecked,
|
377
|
+
isPrechecking = _useCheckbox.isPrechecking,
|
357
378
|
isDisabled = _useCheckbox.isDisabled,
|
358
379
|
setChecked = _useCheckbox.setChecked,
|
359
380
|
handleChange = _useCheckbox.handleChange;
|
@@ -363,6 +384,7 @@ var checkboxProps = {
|
|
363
384
|
inputRef: inputRef,
|
364
385
|
isFocus: isFocus,
|
365
386
|
isChecked: isChecked,
|
387
|
+
isPrechecking: isPrechecking,
|
366
388
|
isDisabled: isDisabled,
|
367
389
|
setChecked: setChecked,
|
368
390
|
handleBlur: handleBlur,
|
@@ -375,7 +397,7 @@ var checkboxProps = {
|
|
375
397
|
render: function render() {
|
376
398
|
var _classes,
|
377
399
|
_this = this;
|
378
|
-
var checkboxClass = (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('checkbox')), true), _defineProperty(_classes, 'is-focused', this.isFocus), _defineProperty(_classes, 'is-checked', this.isChecked), _defineProperty(_classes, 'is-disabled', this.isDisabled), _defineProperty(_classes, 'is-indeterminated', this.indeterminate), _classes));
|
400
|
+
var checkboxClass = (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('checkbox')), true), _defineProperty(_classes, "".concat(this.resolveClassName('checkbox'), "-").concat(this.size), true), _defineProperty(_classes, 'is-focused', this.isFocus), _defineProperty(_classes, 'is-checked', this.isChecked), _defineProperty(_classes, 'is-disabled', this.isDisabled), _defineProperty(_classes, 'is-indeterminated', this.indeterminate), _defineProperty(_classes, 'is-prechecking', this.isPrechecking), _classes));
|
379
401
|
var renderLabel = function renderLabel() {
|
380
402
|
if (!_this.label && !_this.$slots["default"]) {
|
381
403
|
return null;
|
@@ -387,16 +409,18 @@ var checkboxProps = {
|
|
387
409
|
return (0,external_vue_namespaceObject.createVNode)("label", {
|
388
410
|
"class": checkboxClass
|
389
411
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
390
|
-
"class":
|
412
|
+
"class": this.resolveClassName('checkbox-input')
|
391
413
|
}, [(0,external_vue_namespaceObject.createVNode)("input", {
|
392
414
|
"ref": "inputRef",
|
393
415
|
"role": "checkbox",
|
394
416
|
"type": "checkbox",
|
395
417
|
"class": "".concat(this.resolveClassName('checkbox-original')),
|
396
|
-
"disabled": this.isDisabled,
|
418
|
+
"disabled": this.isDisabled || this.isPrechecking,
|
397
419
|
"checked": this.isChecked,
|
398
420
|
"onChange": this.handleChange
|
399
|
-
}, null)]), renderLabel()
|
421
|
+
}, null)]), renderLabel(), this.isPrechecking && (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Loading, {
|
422
|
+
"class": "".concat(this.resolveClassName('checkbox-checking'))
|
423
|
+
}, null)]);
|
400
424
|
}
|
401
425
|
}));
|
402
426
|
;// CONCATENATED MODULE: ../../packages/checkbox/src/checkbox-group.tsx
|
@@ -22,9 +22,9 @@
|
|
22
22
|
--component-size-small: 26px;
|
23
23
|
--component-size-base: 32px;
|
24
24
|
--component-size-large: 40px;
|
25
|
-
--component-size-small-padding:
|
26
|
-
--component-size-base-padding:
|
27
|
-
--component-size-large-padding:
|
25
|
+
--component-size-small-padding: 0 12px;
|
26
|
+
--component-size-base-padding: 0 14px;
|
27
|
+
--component-size-large-padding: 0 16px;
|
28
28
|
--border-width-base: 1px;
|
29
29
|
--border-style-base: solid;
|
30
30
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
@@ -21,9 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
-
--component-size-small-padding:
|
25
|
-
--component-size-base-padding:
|
26
|
-
--component-size-large-padding:
|
24
|
+
--component-size-small-padding: 0 12px;
|
25
|
+
--component-size-base-padding: 0 14px;
|
26
|
+
--component-size-large-padding: 0 16px;
|
27
27
|
--border-width-base: 1px;
|
28
28
|
--border-style-base: solid;
|
29
29
|
--border-radius-base: 2px;
|
package/lib/icon/index.d.ts
CHANGED
@@ -56,6 +56,7 @@ export { default as InfoLine } from '../icon/info-line';
|
|
56
56
|
export { default as Info } from '../icon/info';
|
57
57
|
export { default as LeftShape } from '../icon/left-shape';
|
58
58
|
export { default as LeftTurnLine } from '../icon/left-turn-line';
|
59
|
+
export { default as Loading } from '../icon/loading';
|
59
60
|
export { default as NarrowLine } from '../icon/narrow-line';
|
60
61
|
export { default as Original } from '../icon/original';
|
61
62
|
export { default as PdfFill } from '../icon/pdf-fill';
|