File tree Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 137
137
background-color : @popover-bg ;
138
138
content : ' ' ;
139
139
pointer-events : auto ;
140
+ .roundedArrow (@popover-arrow-width , 5px , @popover-bg );
140
141
}
141
142
}
142
143
170
171
left : @popover-distance - @popover-arrow-rotate-width ;
171
172
172
173
&-content {
173
- box-shadow : - 3px 3px 7px fade (@black , 7% );
174
- transform : translateX ((@popover-arrow-rotate-width / 2 )) rotate (45 deg );
174
+ box-shadow : 3px 3px 7px fade (@black , 7% );
175
+ transform : translateX ((@popover-arrow-rotate-width / 2 )) rotate (135 deg );
175
176
}
176
177
}
177
178
194
195
top : @popover-distance - @popover-arrow-rotate-width ;
195
196
196
197
&-content {
197
- box-shadow : - 2px - 2px 5px fade (@black , 6% );
198
- transform : translateY ((@popover-arrow-rotate-width / 2 )) rotate (45 deg );
198
+ box-shadow : 2px 2px 5px fade (@black , 6% );
199
+ transform : translateY ((@popover-arrow-rotate-width / 2 )) rotate (-135 deg );
199
200
}
200
201
}
201
202
218
219
right : @popover-distance - @popover-arrow-rotate-width ;
219
220
220
221
&-content {
221
- box-shadow : 3px - 3px 7px fade (@black , 7% );
222
- transform : translateX ((-@popover-arrow-rotate-width / 2 )) rotate (45deg );
222
+ box-shadow : 3px 3px 7px fade (@black , 7% );
223
+ transform : translateX ((-@popover-arrow-rotate-width / 2 )) rotate (- 45deg );
223
224
}
224
225
}
225
226
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ export default defineComponent({
93
93
return {
94
94
width : `${ validProgress ( percent ) } %` ,
95
95
height : `${ strokeWidth || ( size === 'small' ? 6 : 8 ) } px` ,
96
- borderRadius : strokeLinecap === 'square' ? 0 : '' ,
96
+ borderRadius : strokeLinecap === 'square' ? 0 : undefined ,
97
97
...( backgroundProps . value as any ) ,
98
98
} ;
99
99
} ) ;
@@ -106,7 +106,7 @@ export default defineComponent({
106
106
return {
107
107
width : `${ validProgress ( successPercent . value ) } %` ,
108
108
height : `${ strokeWidth || ( size === 'small' ? 6 : 8 ) } px` ,
109
- borderRadius : strokeLinecap === 'square' ? 0 : '' ,
109
+ borderRadius : strokeLinecap === 'square' ? 0 : undefined ,
110
110
backgroundColor : success ?. strokeColor ,
111
111
} ;
112
112
} ) ;
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ Properties that shared by all types.
23
23
| format | The template function of the content | function(percent, successPercent) | (percent) => percent + ` % ` | |
24
24
| percent | To set the completion percentage | number | 0 | |
25
25
| showInfo | Whether to display the progress value and the status icon | boolean | true | |
26
+ | size | To set the size of the progress | ` default ` \| ` small ` | ` default ` |
26
27
| status | To set the status of the Progress, options: ` success ` ` exception ` ` normal ` ` active ` (line only) | string | - | |
27
28
| strokeColor | The color of progress bar | string | - | |
28
29
| strokeLinecap | To set the style of the progress linecap | ` round ` \| ` square ` | ` round ` | |
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/xqsDu4ZyR/Progress.svg
24
24
| format | 内容的模板函数 | function(percent, successPercent) | (percent) => percent + ` % ` | |
25
25
| percent | 百分比 | number | 0 | |
26
26
| showInfo | 是否显示进度数值或状态图标 | boolean | true | |
27
+ | size | 进度条大小 | ` default ` \| ` small ` | ` default ` |
27
28
| status | 状态,可选:` success ` ` exception ` ` normal ` ` active ` (仅限 line) | string | - | |
28
29
| strokeColor | 进度条的色彩 | string | - | |
29
30
| strokeLinecap | 进度条的样式 | ` round ` \| ` square ` | ` round ` | |
You can’t perform that action at this time.
0 commit comments