Explorar o código

Merge branch 'master' of http://git.dayaedu.com/lex/dy-admin-live

lex-xin %!s(int64=3) %!d(string=hai) anos
pai
achega
6ad1929188
Modificáronse 7 ficheiros con 784 adicións e 8 borrados
  1. 736 7
      package-lock.json
  2. 1 0
      package.json
  3. 7 0
      src/icons/mute.svg
  4. 15 0
      src/icons/share-disabled.svg
  5. 15 0
      src/icons/share.svg
  6. 1 0
      src/main.ts
  7. 9 1
      vite.config.ts

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 736 - 7
package-lock.json


+ 1 - 0
package.json

@@ -31,6 +31,7 @@
     "typescript": "^4.5.4",
     "typescript": "^4.5.4",
     "vite": "^2.8.0",
     "vite": "^2.8.0",
     "vite-plugin-pwa": "^0.11.13",
     "vite-plugin-pwa": "^0.11.13",
+    "vite-plugin-svg-icons": "^2.0.1",
     "vue-tsc": "^0.29.8"
     "vue-tsc": "^0.29.8"
   }
   }
 }
 }

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 7 - 0
src/icons/mute.svg


+ 15 - 0
src/icons/share-disabled.svg

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="52px" height="32px" viewBox="0 0 52 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>分享</title>
+    <g id="后台直播界面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="图标状态" transform="translate(-414.000000, -117.000000)">
+            <g id="分享" transform="translate(414.000000, 117.000000)">
+                <rect id="矩形备份-21" fill-opacity="0.33" fill="#5E626D" x="0" y="0" width="52" height="32" rx="16"></rect>
+                <g id="编组" transform="translate(18.000000, 8.000000)" fill="#A4A6A9" fill-rule="nonzero">
+                    <path d="M16.0553331,7.55555556 C15.5338307,7.55555556 15.1108886,7.97849758 15.1108886,8.5 C15.1108886,12.1453998 12.1451773,15.1111111 8.49977752,15.1111111 C4.8543777,15.1111111 1.88888889,12.1453998 1.88888889,8.5 C1.88888889,4.85460018 4.85460018,1.88888889 8.5,1.88888889 C9.02150242,1.88888889 9.44444444,1.46594687 9.44444444,0.944444444 C9.44444444,0.422942023 9.02150242,0 8.5,0 C3.81337521,0 0,3.81337521 0,8.5 C0,13.1866248 3.81315273,17 8.5,17 C13.1866248,17 17,13.1866248 17,8.5 C16.9997775,7.97827509 16.577058,7.55555556 16.0553331,7.55555556 Z" id="路径"></path>
+                    <path d="M12.0344828,1.99097056 L13.6125509,1.98396504 L8.28931638,7.30396168 C7.90356121,7.68949914 7.90356121,8.32023002 8.28931638,8.70576748 C8.48581553,8.90215573 8.7381569,9.0002331 8.99073191,9 C9.24330692,9 9.49564828,8.90192222 9.69214743,8.70576748 L15.0153819,3.38553732 L15.0083724,4.9627148 C15.0083724,5.50937937 15.457213,5.95796657 16.0041862,5.95796657 C16.5511595,5.95796657 17,5.50937937 17,4.9627148 L17,0.995251764 C17,0.869152291 16.9719621,0.743052818 16.9228957,0.623725355 C16.9018672,0.574686671 16.8878483,0.532653513 16.8528009,0.497625882 C16.7756966,0.35050983 16.6492922,0.22417684 16.5020931,0.147116051 C16.4670457,0.11208842 16.4179793,0.0910718414 16.3759224,0.0770607888 C16.2567612,0.028022105 16.1303569,0 16.0041862,0 L12.0344828,0 C11.4875095,0 11.038669,0.448587198 11.038669,0.995251764 C11.0384353,1.54238336 11.4872758,1.99097056 12.0344828,1.99097056 L12.0344828,1.99097056 Z" id="路径"></path>
+                </g>
+            </g>
+        </g>
+    </g>
+</svg>

+ 15 - 0
src/icons/share.svg

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="52px" height="32px" viewBox="0 0 52 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>编组 18备份</title>
+    <g id="后台直播界面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="图标状态" transform="translate(-414.000000, -26.000000)">
+            <g id="编组-18备份" transform="translate(414.000000, 26.000000)">
+                <rect id="矩形备份-21" fill-opacity="0.33" fill="#5E626D" x="0" y="0" width="52" height="32" rx="16"></rect>
+                <g id="编组" transform="translate(18.000000, 8.000000)" fill="#FFFFFF" fill-rule="nonzero">
+                    <path d="M16.0553331,7.55555556 C15.5338307,7.55555556 15.1108886,7.97849758 15.1108886,8.5 C15.1108886,12.1453998 12.1451773,15.1111111 8.49977752,15.1111111 C4.8543777,15.1111111 1.88888889,12.1453998 1.88888889,8.5 C1.88888889,4.85460018 4.85460018,1.88888889 8.5,1.88888889 C9.02150242,1.88888889 9.44444444,1.46594687 9.44444444,0.944444444 C9.44444444,0.422942023 9.02150242,0 8.5,0 C3.81337521,0 0,3.81337521 0,8.5 C0,13.1866248 3.81315273,17 8.5,17 C13.1866248,17 17,13.1866248 17,8.5 C16.9997775,7.97827509 16.577058,7.55555556 16.0553331,7.55555556 Z" id="路径"></path>
+                    <path d="M12.0344828,1.99097056 L13.6125509,1.98396504 L8.28931638,7.30396168 C7.90356121,7.68949914 7.90356121,8.32023002 8.28931638,8.70576748 C8.48581553,8.90215573 8.7381569,9.0002331 8.99073191,9 C9.24330692,9 9.49564828,8.90192222 9.69214743,8.70576748 L15.0153819,3.38553732 L15.0083724,4.9627148 C15.0083724,5.50937937 15.457213,5.95796657 16.0041862,5.95796657 C16.5511595,5.95796657 17,5.50937937 17,4.9627148 L17,0.995251764 C17,0.869152291 16.9719621,0.743052818 16.9228957,0.623725355 C16.9018672,0.574686671 16.8878483,0.532653513 16.8528009,0.497625882 C16.7756966,0.35050983 16.6492922,0.22417684 16.5020931,0.147116051 C16.4670457,0.11208842 16.4179793,0.0910718414 16.3759224,0.0770607888 C16.2567612,0.028022105 16.1303569,0 16.0041862,0 L12.0344828,0 C11.4875095,0 11.038669,0.448587198 11.038669,0.995251764 C11.0384353,1.54238336 11.4872758,1.99097056 12.0344828,1.99097056 L12.0344828,1.99097056 Z" id="路径"></path>
+                </g>
+            </g>
+        </g>
+    </g>
+</svg>

+ 1 - 0
src/main.ts

@@ -1,5 +1,6 @@
 import { createApp } from 'vue'
 import { createApp } from 'vue'
 import ElementPlus from 'element-plus'
 import ElementPlus from 'element-plus'
+import 'virtual:svg-icons-register'
 import 'element-plus/dist/index.css'
 import 'element-plus/dist/index.css'
 import App from './App.vue'
 import App from './App.vue'
 import router from './router'
 import router from './router'

+ 9 - 1
vite.config.ts

@@ -1,7 +1,8 @@
-const { resolve } = require('path')
+const path = require('path')
 import { defineConfig } from 'vite'
 import { defineConfig } from 'vite'
 import vue from "@vitejs/plugin-vue";
 import vue from "@vitejs/plugin-vue";
 import { VitePWA } from 'vite-plugin-pwa'
 import { VitePWA } from 'vite-plugin-pwa'
+import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
 const vueJsx = require('@vitejs/plugin-vue-jsx')
 const vueJsx = require('@vitejs/plugin-vue-jsx')
 const legacy = require('@vitejs/plugin-legacy')
 const legacy = require('@vitejs/plugin-legacy')
 
 
@@ -28,6 +29,13 @@ export default defineConfig({
     }
     }
   },
   },
   plugins: [
   plugins: [
+    createSvgIconsPlugin({
+      // 指定需要缓存的图标文件夹
+      iconDirs: [path.resolve(process.cwd(), 'src/icons')],
+      // 指定symbolId格式
+      symbolId: 'icon-[dir]-[name]',
+      customDomId: '__svg__icons__dom__',
+    }),
     vue(),
     vue(),
     vueJsx(),
     vueJsx(),
     legacy({
     legacy({

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio