编辑器样式更新

This commit is contained in:
陈梓阳 2025-05-30 11:30:03 +08:00
parent 7e592c6ec6
commit 074ad202a9
3 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "material-editor", "name": "material-editor",
"private": true, "private": true,
"version": "1.0.10", "version": "1.0.11",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@ -59,8 +59,8 @@ async function HandleUpdateConfig() {
<style scoped lang="scss"> <style scoped lang="scss">
.material-view .material-view
{ {
width: 100cqw; width: 100%;
height: 100cqh; height: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 0; padding: 0;
margin: 0; margin: 0;

View File

@ -1,5 +1,9 @@
import './assets/main.css' import './assets/main.css'
import { Mount } from './lib'; import { Mount } from './lib';
Mount("#app"); const app = document.createElement('div');
app.style.width = '100%';
app.style.height = '100vh';
document.body.appendChild(app);
Mount(app);