perf: add truthProp util (#8522)
* perf: add TruthyProp util * chore: rename * chore: upd
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
onMounted,
|
||||
defineComponent,
|
||||
} from 'vue';
|
||||
import { createNamespace, addUnit } from '../utils';
|
||||
import { truthProp, createNamespace, addUnit } from '../utils';
|
||||
import { useExpose } from '../composables/use-expose';
|
||||
|
||||
const [name, bem] = createNamespace('progress');
|
||||
@@ -20,6 +20,7 @@ export default defineComponent({
|
||||
inactive: Boolean,
|
||||
pivotText: String,
|
||||
textColor: String,
|
||||
showPivot: truthProp,
|
||||
pivotColor: String,
|
||||
trackColor: String,
|
||||
strokeWidth: [Number, String],
|
||||
@@ -28,10 +29,6 @@ export default defineComponent({
|
||||
required: true,
|
||||
validator: (value: number | string) => value >= 0 && value <= 100,
|
||||
},
|
||||
showPivot: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
|
||||
setup(props) {
|
||||
|
||||
Reference in New Issue
Block a user