step component

This commit is contained in:
cookfront 2017-03-01 19:24:54 +08:00
parent bd24b22203
commit e3c65c3ec8
4 changed files with 22 additions and 11 deletions

View File

@ -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
View File

@ -0,0 +1,3 @@
import Step from 'packages/steps/src/step';
export default Step;

View File

@ -0,0 +1,11 @@
<template>
<div class="zan-step">
</div>
</template>
<script>
export default {
name: 'zan-step'
};
</script>

View File

@ -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>