chore: merge src and src-next

This commit is contained in:
chenjiahan
2020-07-15 20:02:00 +08:00
parent 6672b34618
commit 0304fcb6fa
382 changed files with 464 additions and 24746 deletions
+5 -3
View File
@@ -22,6 +22,8 @@ export default createComponent({
},
},
emits: ['click-left', 'click-right'],
data() {
return {
height: null,
@@ -36,7 +38,7 @@ export default createComponent({
methods: {
genLeft() {
const leftSlot = this.slots('left');
const leftSlot = this.$slots.left?.();
if (leftSlot) {
return leftSlot;
@@ -49,7 +51,7 @@ export default createComponent({
},
genRight() {
const rightSlot = this.slots('right');
const rightSlot = this.$slots.right?.();
if (rightSlot) {
return rightSlot;
@@ -71,7 +73,7 @@ export default createComponent({
{this.genLeft()}
</div>
<div class={[bem('title'), 'van-ellipsis']}>
{this.slots('title') || this.title}
{this.$slots.title ? this.$slots.title() : this.title}
</div>
<div class={bem('right')} onClick={this.onClickRight}>
{this.genRight()}