init commit

This commit is contained in:
lb 2023-05-06 15:55:27 +08:00
커밋 bf70872359
26개의 변경된 파일6048개의 추가작업 그리고 0개의 파일을 삭제

3
.browserslistrc Normal file
파일 보기

@ -0,0 +1,3 @@
> 1%
last 2 versions
not dead

24
.gitignore vendored Normal file
파일 보기

@ -0,0 +1,24 @@
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
node_modules

19
README.md Normal file
파일 보기

@ -0,0 +1,19 @@
# app
## Project setup
```
yarn install
```
### Compiles and hot-reloads for development
```
yarn serve
```
### Compiles and minifies for production
```
yarn build
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

5
babel.config.js Normal file
파일 보기

@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}

19
jsconfig.json Normal file
파일 보기

@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}

24
package.json Normal file
파일 보기

@ -0,0 +1,24 @@
{
"name": "app",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build"
},
"dependencies": {
"core-js": "^3.8.3",
"vue": "^2.6.14",
"vue-router": "^3.5.1",
"vuex": "^3.6.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-router": "~5.0.0",
"@vue/cli-plugin-vuex": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"sass": "^1.32.7",
"sass-loader": "^12.0.0",
"vue-template-compiler": "^2.6.14"
}
}

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  크기: 4.2 KiB

17
public/index.html Normal file
파일 보기

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>

13
src/App.vue Normal file
파일 보기

@ -0,0 +1,13 @@
<template>
<div id="app">
<!-- <nav>
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</nav> -->
<router-view />
</div>
</template>
<script></script>
<style lang="scss"></style>

BIN
src/assets/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  크기: 6.7 KiB

파일 보기

@ -0,0 +1,19 @@
<template>
<!-- line chart -->
<div></div>
</template>
<script>
export default {
name: "BarChart",
props: {},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

파일 보기

@ -0,0 +1,35 @@
<template>
<!-- 带框的 container -->
<div class="outter-container" :style="{ padding, backgroundColor }">
<slot />
</div>
</template>
<script>
export default {
name: "Container",
props: {
padding: {
type: String,
default: '10px 10px 10px 10px'
},
backgroundColor: {
type: String,
default: ''
}
},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped>
.outter-container {
padding: 0;
background: #ccc;
}
</style>

파일 보기

@ -0,0 +1,21 @@
<template>
<div class="draggable-container">
<!-- draggable -->
<slot />
</div>
</template>
<script>
export default {
name: "DragableContainer",
props: {},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

파일 보기

@ -0,0 +1,19 @@
<template>
<!-- line chart -->
<div></div>
</template>
<script>
export default {
name: "LineChart",
props: {},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

파일 보기

@ -0,0 +1,23 @@
<template>
<div></div>
</template>
<script>
export default {
name: "SmallBox",
props: {
title: {
type: String,
default: '水', //
}
},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

파일 보기

@ -0,0 +1,23 @@
<template>
<div></div>
</template>
<script>
export default {
name: "SmallBox2",
props: {
title: {
type: String,
default: '车间温度', //
}
},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

파일 보기

@ -0,0 +1,19 @@
<template>
<!-- 引入 el-table -->
<div></div>
</template>
<script>
export default {
name: "SmallTable",
props: {},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

파일 보기

@ -0,0 +1,35 @@
<template>
<!-- small-title -->
<div class="small-title">
<template v-if="type === 0">
<span>000</span>
<span>设计单位中建材智能自动化研究院</span>
<span>000</span>
</template>
<template v-if="type === 1">
<span>000</span>
<span>23&nbsp;&nbsp;2023.02.27星期一&nbsp;&nbsp;02:23:23</span>
<span>000</span>
</template>
</div>
</template>
<script>
export default {
name: "SmallTitle",
props: {
type: {
type: Number,
default: 0, // 1
},
},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

파일 보기

@ -0,0 +1,46 @@
<template>
<!-- 带标题的 container -->
<div class="sub-container" :style="{ padding }">
<div class="title">
<span></span>
<span>{{ title }}</span>
</div>
<div class="content">
<slot />
</div>
</div>
</template>
<script>
export default {
name: "SubContainer",
props: {
title: {
type: String,
default: "Default Title",
},
icon: {
type: String,
default: "default",
},
padding: {
type: String,
default: "10px",
},
},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped>
.sub-container {}
.title {
margin-bottom: 12px;
}
</style>

파일 보기

@ -0,0 +1,37 @@
<template>
<div class="tiny-table">
<table>
<thead>
<tr>
<th></th>
<th>原板宽</th>
<th>净板宽</th>
<th>玻璃厚度</th>
</tr>
</thead>
<tbody>
<tr>
<td>A线</td>
<td>3300mm</td>
<td>2800mm</td>
<td>2mm</td>
</tr>
</tbody>
</table>
</div>
</template>
<script>
export default {
name: "TinyTable",
props: {},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

12
src/main.js Normal file
파일 보기

@ -0,0 +1,12 @@
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
Vue.config.productionTip = false
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')

29
src/router/index.js Normal file
파일 보기

@ -0,0 +1,29 @@
import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
Vue.use(VueRouter)
const routes = [
{
path: '/',
name: 'home',
component: HomeView
},
// {
// path: '/about',
// name: 'about',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
// component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
// }
]
const router = new VueRouter({
mode: 'history',
base: process.env.BASE_URL,
routes
})
export default router

17
src/store/index.js Normal file
파일 보기

@ -0,0 +1,17 @@
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
},
getters: {
},
mutations: {
},
actions: {
},
modules: {
}
})

18
src/views/HomeView.vue Normal file
파일 보기

@ -0,0 +1,18 @@
<template>
<div class="home-view">home view</div>
</template>
<script>
export default {
name: "HomeView",
props: {},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

4
vue.config.js Normal file
파일 보기

@ -0,0 +1,4 @@
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true
})

5567
yarn.lock Normal file

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다. Load Diff