mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
step component
This commit is contained in:
parent
bd24b22203
commit
e3c65c3ec8
@ -20,5 +20,6 @@
|
|||||||
"checkbox-group": "./packages/checkbox-group/index.js",
|
"checkbox-group": "./packages/checkbox-group/index.js",
|
||||||
"badge-group": "./packages/badge-group/index.js",
|
"badge-group": "./packages/badge-group/index.js",
|
||||||
"badge": "./packages/badge/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>
|
<template>
|
||||||
<div>
|
<div class="zan-steps">
|
||||||
<h2>author: {{ author }}</h2>
|
<div class="zan-steps__desc"></div>
|
||||||
<div>Hello {{ name }}</div>
|
<div class="zan-steps__items">
|
||||||
|
<slot></slot>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'Sample',
|
name: 'zan-steps'
|
||||||
props: ['author'],
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
name: 'World'
|
|
||||||
};
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user