Browse Source

10.23

master
lichong 6 months ago
parent
commit
06446fe675
  1. 4
      electron-builder.yml
  2. 2
      package.json
  3. 12
      src/renderer/src/App.vue
  4. 9
      src/renderer/src/assets/css/base.css

4
electron-builder.yml

@ -1,5 +1,5 @@
appId: com.electron.lichong appId: com.electron.lichong
productName: 桌面应用 productName: 数据生成
directories: directories:
buildResources: build buildResources: build
files: files:
@ -14,7 +14,7 @@ win:
executableName: lichong-app executableName: lichong-app
nsis: nsis:
oneClick: false oneClick: false
artifactName: ${name}-${version}-setup.${ext} artifactName: 数据生成-${version}-setup.${ext}
allowToChangeInstallationDirectory: true allowToChangeInstallationDirectory: true
shortcutName: ${productName} shortcutName: ${productName}
uninstallDisplayName: ${productName} uninstallDisplayName: ${productName}

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "electron", "name": "electron",
"version": "1.0.0", "version": "1.0.2",
"description": "An Electron application with Vue", "description": "An Electron application with Vue",
"main": "./out/main/index.js", "main": "./out/main/index.js",
"author": "lichong", "author": "lichong",

12
src/renderer/src/App.vue

@ -33,7 +33,7 @@
<el-input-number v-model="secondObj.second" style="width: 230px;" :min="0" /> <el-input-number v-model="secondObj.second" style="width: 230px;" :min="0" />
</el-col> </el-col>
<el-col class="colStyle"> <el-col class="colStyle">
<el-input v-model="secondObj.result" style="width: 330px;" placeholder="Please input" disabled> <el-input v-model="secondObj.result" placeholder="Please input" disabled class="singleClass">
<template #prepend>压实度</template> <template #prepend>压实度</template>
<template #append>%</template> <template #append>%</template>
</el-input> </el-input>
@ -63,13 +63,13 @@ export default {
return { return {
_: _, _: _,
dayjs: dayjs, dayjs: dayjs,
isVip: false, isVip: true,
form: { form: {
min: 1, min: 1,
max: 10, max: 10,
weishu: 3, weishu: 2,
geshu: 3, geshu: 10,
zushu: 8, zushu: 10,
}, },
secondObj: { secondObj: {
first: 0, first: 0,
@ -146,7 +146,7 @@ export default {
}, },
}, },
async mounted() { async mounted() {
let fiveDay = dayjs('2024-10-15T00:00:00').valueOf() let fiveDay = dayjs('2024-11-02T00:00:00').valueOf()
if (!this.isVip) { if (!this.isVip) {
if (dayjs().valueOf() > fiveDay) { if (dayjs().valueOf() > fiveDay) {
this.isVip = false this.isVip = false

9
src/renderer/src/assets/css/base.css

@ -2,4 +2,13 @@ html,
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
}
.singleClass {
width: 330px;
text-align-last: center;
}
.singleClass .el-input__inner {
font-size: 1.4em;
} }
Loading…
Cancel
Save