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. * limitations under the License.
*/ */
export default {}; export default {
items: [],
style: {
width: '100%',
height: '100%',
},
};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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