kui-vue 3.2.2-rc4 → 3.2.2-rc5
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.
|
@@ -51,12 +51,14 @@ export default {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
// console.log(checked)
|
|
54
|
-
const wpclasses = ["k-checkbox-wrapper", {
|
|
54
|
+
const wpclasses = ["k-checkbox-wrapper", {
|
|
55
|
+
["k-checkbox-disabled"]: disabled,
|
|
56
|
+
["k-checkbox-checked"]: checked && !indeterminate,
|
|
57
|
+
}]
|
|
55
58
|
|
|
56
59
|
const classes = [
|
|
57
60
|
"k-checkbox",
|
|
58
61
|
{
|
|
59
|
-
["k-checkbox-checked"]: checked && !indeterminate,
|
|
60
62
|
["k-checkbox-indeterminate"]: indeterminate
|
|
61
63
|
}
|
|
62
64
|
];
|
|
@@ -16,52 +16,45 @@
|
|
|
16
16
|
margin: 0;
|
|
17
17
|
box-sizing: content-box;
|
|
18
18
|
font-size: 0;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
left: 50%;
|
|
37
|
-
top: 50%;
|
|
38
|
-
transform: translate3d(-50%, -50%, 0);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
.k-checkbox-input {
|
|
42
|
-
width: 100%;
|
|
43
|
-
height: 100%;
|
|
19
|
+
}
|
|
20
|
+
.k-checkbox-inner {
|
|
21
|
+
box-sizing: content-box;
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: 14px;
|
|
24
|
+
height: 14px;
|
|
25
|
+
position: relative;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
border: 1px solid @border-color;
|
|
29
|
+
border-radius: 2px;
|
|
30
|
+
background-color: #fff;
|
|
31
|
+
transition: border-color .2s ease-in-out, background-color .2s ease-in-out;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
color: #fff;
|
|
34
|
+
.k-icon {
|
|
35
|
+
font-size: 18px;
|
|
44
36
|
position: absolute;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
right: 0;
|
|
49
|
-
z-index: 1;
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
opacity: 0;
|
|
52
|
-
&:focus {
|
|
53
|
-
+.k-checkbox-inner {
|
|
54
|
-
border: 1px solid @main;
|
|
55
|
-
box-shadow: 0 0 5px fade(@main, 75%);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
37
|
+
left: 50%;
|
|
38
|
+
top: 50%;
|
|
39
|
+
transform: translate3d(-50%, -50%, 0);
|
|
58
40
|
}
|
|
59
41
|
}
|
|
60
|
-
.k-checkbox-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
42
|
+
.k-checkbox-input {
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100%;
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 0;
|
|
47
|
+
bottom: 0;
|
|
48
|
+
left: 0;
|
|
49
|
+
right: 0;
|
|
50
|
+
z-index: 1;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
opacity: 0;
|
|
53
|
+
&:focus {
|
|
54
|
+
+.k-checkbox-inner {
|
|
55
|
+
border: 1px solid @main;
|
|
56
|
+
box-shadow: 0 0 5px fade(@main, 75%);
|
|
57
|
+
}
|
|
65
58
|
}
|
|
66
59
|
}
|
|
67
60
|
.k-checkbox-indeterminate {
|
|
@@ -93,6 +86,13 @@
|
|
|
93
86
|
}
|
|
94
87
|
}
|
|
95
88
|
|
|
89
|
+
.k-checkbox-checked {
|
|
90
|
+
.k-checkbox-inner {
|
|
91
|
+
background: @main;
|
|
92
|
+
border-color: @main;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
96
|
.k-checkbox-disabled {
|
|
97
97
|
cursor: not-allowed;
|
|
98
98
|
color: @disable-color;
|
|
@@ -53,15 +53,13 @@ export default {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
const wpclasses = [
|
|
56
|
-
"k-radio-wrapper", { ["k-radio-disabled"]: disabled }
|
|
57
|
-
];
|
|
58
|
-
const classes = [
|
|
59
|
-
"k-radio", { ["k-radio-checked"]: checked }
|
|
56
|
+
"k-radio-wrapper", { ["k-radio-disabled"]: disabled, ["k-radio-checked"]: checked }
|
|
60
57
|
];
|
|
58
|
+
|
|
61
59
|
const labelNode = label || $slots.default
|
|
62
60
|
return (
|
|
63
61
|
<label class={wpclasses} onClick={e => e.stopPropagation()}>
|
|
64
|
-
<span class=
|
|
62
|
+
<span class="k-radio">
|
|
65
63
|
<input type="radio" class="k-radio-input" disabled={disabled} checked={checked} onChange={change} />
|
|
66
64
|
<span class="k-radio-inner"></span>
|
|
67
65
|
</span>
|
|
@@ -59,64 +59,50 @@
|
|
|
59
59
|
position: relative;
|
|
60
60
|
margin: 0;
|
|
61
61
|
font-size: 0;
|
|
62
|
-
|
|
62
|
+
}
|
|
63
|
+
.k-radio-inner {
|
|
64
|
+
box-sizing: content-box;
|
|
65
|
+
display: inline-block;
|
|
66
|
+
width: 14px;
|
|
67
|
+
height: 14px;
|
|
68
|
+
position: relative;
|
|
69
|
+
top: 0;
|
|
70
|
+
left: 0;
|
|
71
|
+
border: 1px solid @border-color;
|
|
72
|
+
border-radius: 2px;
|
|
73
|
+
background-color: #fff;
|
|
74
|
+
transition: border-color .2s ease-in-out, background-color .2s ease-in-out;
|
|
75
|
+
border-radius: 50%;
|
|
76
|
+
&:after {
|
|
63
77
|
box-sizing: content-box;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
height: 14px;
|
|
67
|
-
position: relative;
|
|
68
|
-
top: 0;
|
|
69
|
-
left: 0;
|
|
70
|
-
border: 1px solid @border-color;
|
|
71
|
-
border-radius: 2px;
|
|
72
|
-
background-color: #fff;
|
|
73
|
-
transition: border-color .2s ease-in-out, background-color .2s ease-in-out;
|
|
74
|
-
border-radius: 50%;
|
|
75
|
-
&:after {
|
|
76
|
-
box-sizing: content-box;
|
|
77
|
-
width: 4px;
|
|
78
|
-
height: 4px;
|
|
79
|
-
position: absolute;
|
|
80
|
-
left: 5px;
|
|
81
|
-
top: 5px;
|
|
82
|
-
border-radius: 6px;
|
|
83
|
-
display: block;
|
|
84
|
-
content: " ";
|
|
85
|
-
opacity: 0;
|
|
86
|
-
background-color: @main;
|
|
87
|
-
transition: all .2s ease-in-out;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
.k-radio-input {
|
|
91
|
-
width: 100%;
|
|
92
|
-
height: 100%;
|
|
78
|
+
width: 4px;
|
|
79
|
+
height: 4px;
|
|
93
80
|
position: absolute;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
cursor: pointer;
|
|
81
|
+
left: 5px;
|
|
82
|
+
top: 5px;
|
|
83
|
+
border-radius: 6px;
|
|
84
|
+
display: block;
|
|
85
|
+
content: " ";
|
|
100
86
|
opacity: 0;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
border: 1px solid @main;
|
|
104
|
-
box-shadow: 0 0 5px fade(@main, 75%);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
87
|
+
background-color: @main;
|
|
88
|
+
transition: all .2s ease-in-out;
|
|
107
89
|
}
|
|
108
90
|
}
|
|
109
|
-
.k-radio-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
91
|
+
.k-radio-input {
|
|
92
|
+
width: 100%;
|
|
93
|
+
height: 100%;
|
|
94
|
+
position: absolute;
|
|
95
|
+
top: 0;
|
|
96
|
+
bottom: 0;
|
|
97
|
+
left: 0;
|
|
98
|
+
right: 0;
|
|
99
|
+
z-index: 1;
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
opacity: 0;
|
|
102
|
+
&:focus {
|
|
103
|
+
+.k-radio-inner {
|
|
104
|
+
border: 1px solid @main;
|
|
105
|
+
box-shadow: 0 0 5px fade(@main, 75%);
|
|
120
106
|
}
|
|
121
107
|
}
|
|
122
108
|
}
|
|
@@ -126,6 +112,21 @@
|
|
|
126
112
|
}
|
|
127
113
|
}
|
|
128
114
|
|
|
115
|
+
.k-radio-checked {
|
|
116
|
+
.k-radio-inner {
|
|
117
|
+
background: #fff;
|
|
118
|
+
border-color: @main;
|
|
119
|
+
position: relative;
|
|
120
|
+
&:after {
|
|
121
|
+
opacity: 1;
|
|
122
|
+
width: 8px;
|
|
123
|
+
height: 8px;
|
|
124
|
+
left: 3px;
|
|
125
|
+
top: 3px;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
129
130
|
.k-radio-disabled {
|
|
130
131
|
cursor: not-allowed;
|
|
131
132
|
// opacity: .5;
|