breaking change: rename get-container to teleport

This commit is contained in:
chenjiahan
2020-08-21 10:58:02 +08:00
parent 07d1a2590f
commit 52b187692b
39 changed files with 154 additions and 127 deletions
+3 -3
View File
@@ -51,7 +51,7 @@ test('click overlay and close', async () => {
<div>
<action-sheet
:value="true"
:get-container="getContainer"
:teleport="teleport"
@input="onInput"
@click-overlay="onClickOverlay"
/>
@@ -62,7 +62,7 @@ test('click overlay and close', async () => {
},
data() {
return {
getContainer: () => div,
teleport: () => div,
};
},
methods: {
@@ -110,7 +110,7 @@ test('get container', () => {
const wrapper = mount(ActionSheet, {
propsData: {
value: true,
getContainer: 'body',
teleport: 'body',
},
});