mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
feat(Progress): add stroke-width prop (#4397)
This commit is contained in:
@@ -4,24 +4,17 @@
|
||||
<van-progress :percentage="50" />
|
||||
</demo-block>
|
||||
|
||||
<demo-block v-if="!$attrs.weapp" :title="$t('strokeWidth')">
|
||||
<van-progress :percentage="50" stroke-width="8" />
|
||||
</demo-block>
|
||||
|
||||
<demo-block :title="$t('title2')">
|
||||
<van-progress
|
||||
inactive
|
||||
:percentage="50"
|
||||
/>
|
||||
<van-progress inactive :percentage="50" />
|
||||
</demo-block>
|
||||
|
||||
<demo-block :title="$t('title3')">
|
||||
<van-progress
|
||||
color="#f2826a"
|
||||
:percentage="25"
|
||||
:pivot-text="$t('orange')"
|
||||
/>
|
||||
<van-progress
|
||||
color="#ee0a24"
|
||||
:percentage="50"
|
||||
:pivot-text="$t('red')"
|
||||
/>
|
||||
<van-progress color="#f2826a" :percentage="25" :pivot-text="$t('orange')" />
|
||||
<van-progress color="#ee0a24" :percentage="50" :pivot-text="$t('red')" />
|
||||
<van-progress
|
||||
:percentage="75"
|
||||
:pivot-text="$t('purple')"
|
||||
@@ -37,11 +30,13 @@ export default {
|
||||
i18n: {
|
||||
'zh-CN': {
|
||||
title2: '置灰',
|
||||
title3: '样式定制'
|
||||
title3: '样式定制',
|
||||
strokeWidth: '线条粗细'
|
||||
},
|
||||
'en-US': {
|
||||
title2: 'Inactive',
|
||||
title3: 'Custom Style'
|
||||
title3: 'Custom Style',
|
||||
strokeWidth: 'Stroke Width'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user