mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[Improvement] Support Vue.use to register a component (#401)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="van-step van-hairline" :class="[`van-step--${$parent.direction}`, { [`van-step--${status}`]: status }]">
|
||||
<div class="van-step__circle-container">
|
||||
<i class="van-step__circle" v-if="status !== 'process'" />
|
||||
<i class="van-icon van-icon-checked" :style="{ color: $parent.activeColor }" v-else />
|
||||
<icon v-else name="checked" :style="{ color: $parent.activeColor }" />
|
||||
</div>
|
||||
<div class="van-step__title" :style="titleStyle">
|
||||
<slot></slot>
|
||||
@@ -12,7 +12,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
import { create } from '../utils';
|
||||
|
||||
export default create({
|
||||
name: 'van-step',
|
||||
|
||||
beforeCreate() {
|
||||
@@ -37,5 +39,5 @@ export default {
|
||||
} : {};
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user