mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 17:18:40 +08:00
docs: ✏️ 移除文档中CountTo不支持的type
This commit is contained in:
parent
60c92f2f38
commit
cae2e56aba
@ -12,7 +12,7 @@
|
|||||||
<wd-count-to type="error" prefix="¥" :startVal="0" :endVal="888888" suffix="%"></wd-count-to>
|
<wd-count-to type="error" prefix="¥" :startVal="0" :endVal="888888" suffix="%"></wd-count-to>
|
||||||
<wd-count-to type="success" prefix="¥" :startVal="0" :endVal="888888" suffix="%"></wd-count-to>
|
<wd-count-to type="success" prefix="¥" :startVal="0" :endVal="888888" suffix="%"></wd-count-to>
|
||||||
<wd-count-to type="warning" prefix="¥" :startVal="0" :endVal="888888" suffix="%"></wd-count-to>
|
<wd-count-to type="warning" prefix="¥" :startVal="0" :endVal="888888" suffix="%"></wd-count-to>
|
||||||
<wd-count-to type="info" prefix="¥" :startVal="0" :endVal="888888" suffix="%"></wd-count-to>
|
<wd-count-to prefix="¥" :startVal="0" :endVal="888888" suffix="%"></wd-count-to>
|
||||||
</demo-block>
|
</demo-block>
|
||||||
|
|
||||||
<demo-block title="手动控制">
|
<demo-block title="手动控制">
|
||||||
|
|||||||
@ -43,8 +43,9 @@ watch(
|
|||||||
}),
|
}),
|
||||||
({ type }) => {
|
({ type }) => {
|
||||||
// 验证 type 属性
|
// 验证 type 属性
|
||||||
if (type && !['primary', 'error', 'warning', 'success', 'default'].includes(type)) {
|
const types = ['primary', 'error', 'warning', 'success', 'default']
|
||||||
console.error(`type must be one of ${type.toString()}`)
|
if (type && !types.includes(type)) {
|
||||||
|
console.error(`type must be one of ${types.toString()}`)
|
||||||
}
|
}
|
||||||
computeTextClass()
|
computeTextClass()
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user