[breaking change] Badge: rename to sidebar

This commit is contained in:
陈嘉涵
2019-04-29 20:06:20 +08:00
parent a84d93869c
commit baf309c33a
25 changed files with 288 additions and 284 deletions

28
packages/sidebar/index.js Normal file
View File

@@ -0,0 +1,28 @@
import { use } from '../utils';
const [sfc, bem] = use('sidebar');
export default sfc({
props: {
activeKey: {
type: [Number, String],
default: 0
}
},
provide() {
return {
vanSidebar: this
};
},
data() {
return {
items: []
};
},
render(h) {
return <div class={[bem(), 'van-hairline--top-bottom']}>{this.slots()}</div>;
}
});