Skip to content

Commit f04c683

Browse files
committed
feat(CProgress): add thin variant
1 parent 3778ad8 commit f04c683

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/components/progress/CProgress.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,23 @@ const CProgress = defineComponent({
1010
default: undefined,
1111
required: false,
1212
},
13+
/**
14+
* Makes progress bar thinner.
15+
*/
16+
thin: Boolean,
1317
...CProgressBar.props,
1418
},
1519
setup(props, { slots }) {
1620
return () =>
1721
h(
1822
'div',
1923
{
20-
class: 'progress',
24+
class: [
25+
'progress',
26+
{
27+
'progress-thin': props.thin,
28+
},
29+
],
2130
...(props.height, { style: `height: ${props.height}px` }),
2231
},
2332
props.value

0 commit comments

Comments
 (0)