fix(playground): 新增页面默认width height 100%

This commit is contained in:
roymondchen 2022-03-28 19:47:07 +08:00 committed by jia000
parent 30ad8502c4
commit c3f4e41cc8
9 changed files with 86 additions and 25 deletions

View File

@ -16,4 +16,10 @@
* limitations under the License.
*/
export default {};
export default {
items: [],
style: {
width: '100%',
height: '100%',
},
};

View File

@ -16,4 +16,10 @@
* limitations under the License.
*/
export default {};
export default {
items: [],
style: {
width: '100%',
height: '100%',
},
};

View File

@ -19,7 +19,7 @@
export default {
items: [],
style: {
width: '375',
height: '728',
width: '100%',
height: '100%',
},
};

View File

@ -1,8 +1,11 @@
#root {
width: fit-content;
position: relative;
margin: 0 auto;
html,
body,
#app {
width: 100%;
height: 100%;
}
::-webkit-scrollbar {
width: 0;
#app {
position: relative;
overflow: auto;
}

View File

@ -1,11 +1,19 @@
#root {
width: fit-content;
position: relative;
margin: 0 auto;
html,
body,
#app {
width: 100%;
height: 100%;
}
::-webkit-scrollbar {
#app {
position: relative;
overflow: auto;
}
#app::-webkit-scrollbar {
width: 0;
}
.magic-ui-container {
background-color: rgba(136, 136, 136, 0.5);
}

View File

@ -22,12 +22,15 @@ export default defineComponent({
</script>
<style lang="scss">
html,
body,
#app {
width: fit-content;
position: relative;
margin: 0 auto;
width: 100%;
height: 100%;
}
::-webkit-scrollbar {
width: 0;
#app {
position: relative;
overflow: auto;
}
</style>

View File

@ -133,6 +133,22 @@ export default Vue.extend({
</script>
<style lang="scss">
html,
body,
#app {
width: 100%;
height: 100%;
}
#app {
position: relative;
overflow: auto;
&::-webkit-scrollbar {
width: 0;
}
}
.magic-ui-container {
background-color: rgba(136, 136, 136, 0.5);
}

View File

@ -22,12 +22,15 @@ export default defineComponent({
</script>
<style lang="scss">
html,
body,
#app {
width: fit-content;
position: relative;
margin: 0 auto;
width: 100%;
height: 100%;
}
::-webkit-scrollbar {
width: 0;
#app {
position: relative;
overflow: auto;
}
</style>

View File

@ -110,6 +110,22 @@ export default defineComponent({
</script>
<style lang="scss">
html,
body,
#app {
width: 100%;
height: 100%;
}
#app {
position: relative;
overflow: auto;
&::-webkit-scrollbar {
width: 0;
}
}
.magic-ui-container {
background-color: rgba(136, 136, 136, 0.5);
}