lb 1 рік тому
коміт
bf70872359
26 змінених файлів з 6048 додано та 0 видалено
  1. +3
    -0
      .browserslistrc
  2. +24
    -0
      .gitignore
  3. +19
    -0
      README.md
  4. +5
    -0
      babel.config.js
  5. +19
    -0
      jsconfig.json
  6. +24
    -0
      package.json
  7. BIN
      public/favicon.ico
  8. +17
    -0
      public/index.html
  9. +13
    -0
      src/App.vue
  10. BIN
      src/assets/logo.png
  11. +19
    -0
      src/components/BarChart.vue
  12. +35
    -0
      src/components/Container.vue
  13. +21
    -0
      src/components/DragableContainer.vue
  14. +19
    -0
      src/components/LineChart.vue
  15. +23
    -0
      src/components/SmallBox.vue
  16. +23
    -0
      src/components/SmallBox2.vue
  17. +19
    -0
      src/components/SmallTable.vue
  18. +35
    -0
      src/components/SmallTitle.vue
  19. +46
    -0
      src/components/SubContainer.vue
  20. +37
    -0
      src/components/TinyTable.vue
  21. +12
    -0
      src/main.js
  22. +29
    -0
      src/router/index.js
  23. +17
    -0
      src/store/index.js
  24. +18
    -0
      src/views/HomeView.vue
  25. +4
    -0
      vue.config.js
  26. +5567
    -0
      yarn.lock

+ 3
- 0
.browserslistrc Переглянути файл

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

+ 24
- 0
.gitignore Переглянути файл

@@ -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
- 0
README.md Переглянути файл

@@ -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
- 0
babel.config.js Переглянути файл

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

+ 19
- 0
jsconfig.json Переглянути файл

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

+ 24
- 0
package.json Переглянути файл

@@ -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 Переглянути файл

Перед Після

+ 17
- 0
public/index.html Переглянути файл

@@ -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
- 0
src/App.vue Переглянути файл

@@ -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 Переглянути файл

Перед Після
Ширина: 200  |  Висота: 200  |  Розмір: 6.7 KiB

+ 19
- 0
src/components/BarChart.vue Переглянути файл

@@ -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>

+ 35
- 0
src/components/Container.vue Переглянути файл

@@ -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>

+ 21
- 0
src/components/DragableContainer.vue Переглянути файл

@@ -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>

+ 19
- 0
src/components/LineChart.vue Переглянути файл

@@ -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>

+ 23
- 0
src/components/SmallBox.vue Переглянути файл

@@ -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>

+ 23
- 0
src/components/SmallBox2.vue Переглянути файл

@@ -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>

+ 19
- 0
src/components/SmallTable.vue Переглянути файл

@@ -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>

+ 35
- 0
src/components/SmallTitle.vue Переглянути файл

@@ -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>

+ 46
- 0
src/components/SubContainer.vue Переглянути файл

@@ -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>

+ 37
- 0
src/components/TinyTable.vue Переглянути файл

@@ -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
- 0
src/main.js Переглянути файл

@@ -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
- 0
src/router/index.js Переглянути файл

@@ -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
- 0
src/store/index.js Переглянути файл

@@ -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
- 0
src/views/HomeView.vue Переглянути файл

@@ -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
- 0
vue.config.js Переглянути файл

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

+ 5567
- 0
yarn.lock
Різницю між файлами не показано, бо вона завелика
Переглянути файл


Завантаження…
Відмінити
Зберегти