提交 ec92a841 编写于 作者: W wangmou96

Mon Dec 18 15:49:00 CST 2023 inscode

上级 7a093d7e
run = "npm i && npm run dev"
language = "node"
[deployment]
build = "npm i && npm run build"
......@@ -8,3 +9,6 @@ run = "npm run preview"
PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}"
XDG_CONFIG_HOME = "/root/.config"
npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global"
[debugger]
program = "main.js"
......@@ -7,6 +7,7 @@
"preview": "vite preview --port 4173"
},
"dependencies": {
"element-ui": "^2.15.14",
"guess": "^1.0.2",
"vue": "^3.2.37"
},
......
......@@ -4,40 +4,62 @@ import TheWelcome from './components/TheWelcome.vue'
</script>
<template>
<header>
<img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
<div>
<header>
<img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
<div class="wrapper">
<HelloWorld msg="You did it!" />
</div>
</header>
<div class="wrapper">
<HelloWorld msg="You did it!" />
</div>
</header>
<main>
<TheWelcome />
</main>
<main>
<div id="app">
<el-row>
<el-button>默认按钮</el-button>
<el-button type="primary">主要按钮</el-button>
<el-button type="success">成功按钮</el-button>
<el-button type="info">信息按钮</el-button>
<el-button type="warning">警告按钮</el-button>
<el-button type="danger">危险按钮</el-button>
</el-row>
</div>
<TheWelcome />
</main>
</div>
</template>
<style scoped>
<style scoped>
header {
line-height: 1.5;
display: flex;
place-items: center;
padding-right: calc(var(--section-gap) / 2);
}
.logo {
display: block;
margin: 0 auto 2rem;
margin: 0 2rem 0 0;
}
@media (min-width: 1024px) {
@media (max-width: 1023px) {
header {
display: flex;
place-items: center;
padding-right: calc(var(--section-gap) / 2);
flex-direction: column;
justify-content: center;
padding-right: 0;
}
.logo {
margin: 0 2rem 0 0;
margin-bottom: 2rem;
}
header .wrapper {
display: flex;
justify-content: center;
}
}
@media (min-width: 1024px) {
header .wrapper {
display: flex;
place-items: flex-start;
......
@import "./base.css";
@import url("//unpkg.com/element-ui@2.15.14/lib/theme-chalk/index.css");
#app {
max-width: 1280px;
margin: 0 auto;
......
import { createApp } from 'vue'
import ElementUI from "element-ui";
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import './assets/main.css'
createApp(App).mount('#app')
createApp(App)
.use(ElementUI)
.mount('#app')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册