mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
step component
This commit is contained in:
parent
bd24b22203
commit
e3c65c3ec8
@ -20,5 +20,6 @@
|
||||
"checkbox-group": "./packages/checkbox-group/index.js",
|
||||
"badge-group": "./packages/badge-group/index.js",
|
||||
"badge": "./packages/badge/index.js",
|
||||
"search": "./packages/search/index.js"
|
||||
"search": "./packages/search/index.js",
|
||||
"step": "./packages/step/index.js"
|
||||
}
|
||||
|
3
packages/step/index.js
Normal file
3
packages/step/index.js
Normal file
@ -0,0 +1,3 @@
|
||||
import Step from 'packages/steps/src/step';
|
||||
|
||||
export default Step;
|
11
packages/steps/src/step.vue
Normal file
11
packages/steps/src/step.vue
Normal file
@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<div class="zan-step">
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'zan-step'
|
||||
};
|
||||
</script>
|
@ -1,18 +1,14 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>author: {{ author }}</h2>
|
||||
<div>Hello {{ name }}</div>
|
||||
<div class="zan-steps">
|
||||
<div class="zan-steps__desc"></div>
|
||||
<div class="zan-steps__items">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Sample',
|
||||
props: ['author'],
|
||||
data() {
|
||||
return {
|
||||
name: 'World'
|
||||
};
|
||||
}
|
||||
name: 'zan-steps'
|
||||
};
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user