Browse Source

更新依赖

ZaiZai 1 year ago
parent
commit
94400f3e4b
5 changed files with 11 additions and 144 deletions
  1. 2 2
      package.json
  2. 1 1
      public/version.json
  3. 0 63
      src/components/message/index.js
  4. 0 70
      src/components/message/index.vue
  5. 8 8
      yarn.lock

+ 2 - 2
package.json

@@ -21,7 +21,7 @@
         "dayjs": "^1.11.10",
         "echarts": "^5.5.0",
         "element-plus": "2.6.1",
-        "hc-vue3-ui": "^3.4.5",
+        "hc-vue3-ui": "^3.4.7",
         "js-base64": "^3.7.7",
         "js-fast-way": "^0.4.6",
         "js-md5": "^0.8.3",
@@ -42,7 +42,7 @@
         "bignumber.js": "^9.1.2",
         "eslint": "^8.57.0",
         "eslint-plugin-vue": "^9.23.0",
-        "sass": "^1.71.1",
+        "sass": "^1.72.0",
         "unocss": "^0.58.5",
         "unocss-preset-extra": "^0.5.3",
         "unocss-preset-scrollbar": "^0.3.1",

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20240312100125"
+  "value": "20240313180111"
 }

+ 0 - 63
src/components/message/index.js

@@ -1,63 +0,0 @@
-import { h } from 'vue'
-import domView from './index.vue'
-
-//删除提醒
-export const delMessageV2 = (cbk) => {
-    window?.$messageBox({
-        center: true,
-        message: () => h(domView, {
-            type: 'delete',
-            title: '确认删除提醒',
-            text: '请谨慎考虑后,确认是否需要删除?',
-        }),
-        customClass: 'hc-message-view-box',
-        showCancelButton: true,
-        confirmButtonText: '确认删除',
-        cancelButtonText: '取消操作',
-        beforeClose: (action, instance, done) => {
-            if (cbk) {
-                cbk(action, instance, done)
-            } else {
-                done()
-            }
-        },
-    })
-}
-
-//请求异常
-export const apiErrorMessage = () => {
-    setTimeout(() => {
-        const doms = document.querySelector('.hc-message-view-box.warning')
-        if (doms) return
-        window?.$messageBox({
-            center: true,
-            message: () => h(domView, {
-                type: 'warning',
-                title: '服务器异常,请稍后重试',
-                text: '服务器异常了,如有需要,请联系管理员!',
-            }),
-            customClass: 'hc-message-view-box warning',
-            showCancelButton: false,
-            confirmButtonText: '关闭',
-        })
-    }, 1000)
-}
-
-//请求异常
-export const apiWarningMessage = () => {
-    setTimeout(() => {
-        const doms = document.querySelector('.hc-message-view-box.warning')
-        if (doms) return
-        window?.$messageBox({
-            center: true,
-            message: () => h(domView, {
-                type: 'warning',
-                title: '正在升级优化,请稍后重试',
-                text: '该功能正在升级优化,请联系管理员',
-            }),
-            customClass: 'hc-message-view-box warning',
-            showCancelButton: false,
-            confirmButtonText: '关闭',
-        })
-    }, 1000)
-}

+ 0 - 70
src/components/message/index.vue

@@ -1,70 +0,0 @@
-<template>
-    <div class="hc-message-box">
-        <div class="hc-lottie-box delete">
-            <HcLottie v-if="isType === 'delete'" type="delete" style="height: 200px" />
-            <HcLottie v-if="isType === 'warning'" type="warning" style="height: 140px" />
-        </div>
-        <div class="title">{{ titles }}</div>
-        <div class="text">{{ text }}</div>
-    </div>
-</template>
-
-<script setup>
-import { ref, watch } from 'vue'
-//参数
-const props = defineProps({
-    type: {
-        type: String,
-        default: 'warning',
-    },
-    title: {
-        type: String,
-        default: '',
-    },
-    text: {
-        type: String,
-        default: '',
-    },
-})
-
-//监听
-watch(() => [
-    props.type,
-    props.title,
-    props.text,
-], ([type, title, text]) => {
-    isType.value = type
-    titles.value = title
-    texts.value = text
-})
-
-//变量
-const isType = ref(props.type)
-const titles = ref(props.title)
-const texts = ref(props.text)
-</script>
-
-<style scoped lang="scss">
-.hc-message-box {
-    position: relative;
-    .hc-lottie-box {
-        position: relative;
-        height: 200px;
-        overflow: hidden;
-        display: flex;
-        align-items: center;
-        justify-content: center;
-    }
-    .title {
-        position: relative;
-        font-size: 20px;
-        color: var(--hc-text-color);
-        margin-bottom: 20px;
-    }
-    .text {
-        color: var(--hc-label-color);
-        font-size: 14px;
-        margin-bottom: 10px;
-    }
-}
-</style>

+ 8 - 8
yarn.lock

@@ -1955,10 +1955,10 @@ has-flag@^4.0.0:
   resolved "http://39.108.216.210:9000/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
   integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
 
-hc-vue3-ui@^3.4.5:
-  version "3.4.5"
-  resolved "http://39.108.216.210:9000/hc-vue3-ui/-/hc-vue3-ui-3.4.5.tgz#899ae5867659ee8ab6b91f8c3abf0b3645321805"
-  integrity sha512-KowF071vyjuOEPcvB9KaaZB6jRneGKRFENeRLubPCh5A0/+o7WHwnPlTeOiBd3DxqBlUd/osWZrbZJYGjhqD9Q==
+hc-vue3-ui@^3.4.7:
+  version "3.4.7"
+  resolved "http://39.108.216.210:9000/hc-vue3-ui/-/hc-vue3-ui-3.4.7.tgz#1955dc75684030a87dd79b7611d1e545ae6a2f99"
+  integrity sha512-lBOkk9tWt1Kw8YxMlAnOIaD10YfdCzjlDdboNUZdwhIxorFxFkyp1XDS1lBl/GaryyZRmUed4lFmnBUYvVxy8Q==
   dependencies:
     axios "^1.6.7"
     dayjs "^1.11.10"
@@ -2639,10 +2639,10 @@ safe-buffer@~5.2.0:
   resolved "http://39.108.216.210:9000/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
   integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
 
-sass@^1.71.1:
-  version "1.71.1"
-  resolved "http://39.108.216.210:9000/sass/-/sass-1.71.1.tgz#dfb09c63ce63f89353777bbd4a88c0a38386ee54"
-  integrity sha512-wovtnV2PxzteLlfNzbgm1tFXPLoZILYAMJtvoXXkD7/+1uP41eKkIt1ypWq5/q2uT94qHjXehEYfmjKOvjL9sg==
+sass@^1.72.0:
+  version "1.72.0"
+  resolved "http://39.108.216.210:9000/sass/-/sass-1.72.0.tgz#5b9978943fcfb32b25a6a5acb102fc9dabbbf41c"
+  integrity sha512-Gpczt3WA56Ly0Mn8Sl21Vj94s1axi9hDIzDFn9Ph9x3C3p4nNyvsqJoQyVXKou6cBlfFWEgRW4rT8Tb4i3XnVA==
   dependencies:
     chokidar ">=3.0.0 <4.0.0"
     immutable "^4.0.0"