Browse Source

增加日历测试
Signed-off-by: Caner <40012261+Canees@users.noreply.github.com>

Caner 3 years ago
parent
commit
b8fd76bfc5
3 changed files with 32 additions and 5 deletions
  1. 7 4
      package.json
  2. 20 1
      src/pages/index/views/Result.vue
  3. 5 0
      yarn.lock

+ 7 - 4
package.json

@@ -16,19 +16,19 @@
   "devDependencies": {
   "devDependencies": {
     "@electron-forge/cli": "^6.0.0-beta.63",
     "@electron-forge/cli": "^6.0.0-beta.63",
     "@electron-forge/maker-zip": "^6.0.0-beta.63",
     "@electron-forge/maker-zip": "^6.0.0-beta.63",
+    "axios": "^0.24.0",
+    "echarts": "^5.3.2",
+    "electron": "^17.2.0",
     "eslint": "^8.15.0",
     "eslint": "^8.15.0",
     "eslint-config-airbnb-base": "^15.0.0",
     "eslint-config-airbnb-base": "^15.0.0",
     "eslint-plugin-import": "^2.26.0",
     "eslint-plugin-import": "^2.26.0",
     "eslint-plugin-vue": "^9.1.0",
     "eslint-plugin-vue": "^9.1.0",
-    "vite-plugin-eslint": "^1.6.1",
-    "axios": "^0.24.0",
-    "echarts": "^5.3.2",
-    "electron": "^17.2.0",
     "glob": "^7.2.0",
     "glob": "^7.2.0",
     "less": "^4.1.2",
     "less": "^4.1.2",
     "view-design": "^4.7.0",
     "view-design": "^4.7.0",
     "vite": "^2.8.6",
     "vite": "^2.8.6",
     "vite-plugin-compression": "^0.3.6",
     "vite-plugin-compression": "^0.3.6",
+    "vite-plugin-eslint": "^1.6.1",
     "vite-plugin-vue2": "^1.9.0",
     "vite-plugin-vue2": "^1.9.0",
     "vue": "^2.6.14",
     "vue": "^2.6.14",
     "vue-router": "^3.5.3",
     "vue-router": "^3.5.3",
@@ -47,5 +47,8 @@
         }
         }
       ]
       ]
     }
     }
+  },
+  "dependencies": {
+    "vue-calendar-component": "^2.8.2"
   }
   }
 }
 }

+ 20 - 1
src/pages/index/views/Result.vue

@@ -1,5 +1,24 @@
 <template>
 <template>
   <div class="result">
   <div class="result">
-    test1
+    <Calendar />
   </div>
   </div>
 </template>
 </template>
+<script>
+import Calendar from 'vue-calendar-component'
+export default {
+  components: {
+    Calendar
+  },
+  data() {
+    return {
+      remarks: { '2021-1-13': 'some tings' }
+    }
+  }
+}
+</script>
+<style lang="less" scoped>
+.result{
+  width: 500px;
+  height: 500px;
+}
+</style>

+ 5 - 0
yarn.lock

@@ -4947,6 +4947,11 @@ vite@^2.8.6:
   optionalDependencies:
   optionalDependencies:
     fsevents "~2.3.2"
     fsevents "~2.3.2"
 
 
+vue-calendar-component@^2.8.2:
+  version "2.8.2"
+  resolved "https://registry.npmmirror.com/vue-calendar-component/-/vue-calendar-component-2.8.2.tgz#8f60c05a72c8aacbdd224016f4e1a96664abd8aa"
+  integrity sha512-BJh7xOBzM7QVcapcN4EbPQ1eZ8Pii1/oy+dzqjZTilRSIDD7SRPdFpnUJwZvs8lCrhtBAyJbYFsdm2SogXWHVQ==
+
 vue-eslint-parser@^9.0.1:
 vue-eslint-parser@^9.0.1:
   version "9.0.2"
   version "9.0.2"
   resolved "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-9.0.2.tgz#d2535516f3f55adb387939427fe741065eb7948a"
   resolved "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-9.0.2.tgz#d2535516f3f55adb387939427fe741065eb7948a"