diff --git a/package-lock.json b/package-lock.json index 5d9d623..09c017c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "dependencies": { "axios": "^0.27.0", - "view-ui-plus": "^1.0.0", + "view-ui-plus": "^1.3.0", "vue": "^3.2.25", "vue-router": "^4.0.14", "vuex": "^4.0.2" @@ -906,7 +906,7 @@ "node_modules/countup.js": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/countup.js/-/countup.js-1.9.3.tgz", - "integrity": "sha1-zj5QzXFgRB5HjwfaMYle3MDxyd0=" + "integrity": "sha512-UHf2P/mFKaESqdPq+UdBJm/1y8lYdlcDd0nTZHNC8cxWoJwZr1Eldm1PpWui446vDl5Pd8PtRYkr3q6K4+Qa5A==" }, "node_modules/cross-spawn": { "version": "7.0.3", @@ -968,9 +968,9 @@ "integrity": "sha512-/WwNkdXfckNgw6S5R125rrW8ez139lBHWouiBvX8dfMFtcn6V81REDqnH7+CRpRipfYlyU1CmOnOxrmGcFOjeA==" }, "node_modules/dayjs": { - "version": "1.11.2", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.2.tgz", - "integrity": "sha512-F4LXf1OeU9hrSYRPTTj/6FbO4HTjPKXvEIC1P2kcnFurViINCVk3ZV0xAS3XVx9MkMsXbbqlK6hjseaYbgKEHw==" + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.3.tgz", + "integrity": "sha512-xxwlswWOlGhzgQ4TKzASQkUhqERI3egRNqgV4ScR8wlANA/A9tZ7miXa44vTTKEq5l7vWoL5G57bG3zA+Kow0A==" }, "node_modules/debug": { "version": "4.3.4", @@ -2942,7 +2942,7 @@ "node_modules/lodash.chunk": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/lodash.chunk/-/lodash.chunk-4.2.0.tgz", - "integrity": "sha1-ZuXOH3btJ7QwPYxlEujRIW6BBrw=" + "integrity": "sha512-ZzydJKfUHJwHa+hF5X66zLFCBrWn5GeF28OHEr4WVWtNDXlQ/IjWKPBiikqKo2ne0+v6JgCgJ0GzJp8k8bHC7w==" }, "node_modules/lodash.merge": { "version": "4.6.2", @@ -2959,7 +2959,7 @@ "node_modules/lodash.throttle": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz", - "integrity": "sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ=" + "integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==" }, "node_modules/lower-case": { "version": "2.0.2", @@ -3214,7 +3214,7 @@ "node_modules/numeral": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/numeral/-/numeral-2.0.6.tgz", - "integrity": "sha1-StCAk21EPCVhrtnyGX7//iX05QY=", + "integrity": "sha512-qaKRmtYPZ5qdw4jWJD6bxEf1FJEqllJrwxCLIm0sQU/A7v2/czigzOb+C2uSiFsa9lBUzeH7M1oK+Q+OLxL3kA==", "engines": { "node": "*" } @@ -3748,7 +3748,7 @@ "node_modules/select": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz", - "integrity": "sha1-DnNQrN7ICxEIUoeG7B1EGNEbOW0=" + "integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA==" }, "node_modules/semver": { "version": "6.3.0", @@ -4135,9 +4135,9 @@ "dev": true }, "node_modules/view-ui-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/view-ui-plus/-/view-ui-plus-1.0.0.tgz", - "integrity": "sha512-qBDOB+l91lV8fDsOemmXu6wcLj0iG7swA9gXDdYlXg/BG6J15PCQWJvoznlFY9pT5+sFnSu3YNXngyiT/P/2OQ==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/view-ui-plus/-/view-ui-plus-1.3.0.tgz", + "integrity": "sha512-p7b2xc10n7BSUDbBtsQNstNtPJcSrsnRK7ExPJqbT5Kn5j3Ud1UxyWQ2ZIYtaIDevVY3cO21rM2JV6oltUBQDg==", "dependencies": { "async-validator": "^3.3.0", "countup.js": "^1.9.3", @@ -5185,7 +5185,7 @@ "countup.js": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/countup.js/-/countup.js-1.9.3.tgz", - "integrity": "sha1-zj5QzXFgRB5HjwfaMYle3MDxyd0=" + "integrity": "sha512-UHf2P/mFKaESqdPq+UdBJm/1y8lYdlcDd0nTZHNC8cxWoJwZr1Eldm1PpWui446vDl5Pd8PtRYkr3q6K4+Qa5A==" }, "cross-spawn": { "version": "7.0.3", @@ -5229,9 +5229,9 @@ "integrity": "sha512-/WwNkdXfckNgw6S5R125rrW8ez139lBHWouiBvX8dfMFtcn6V81REDqnH7+CRpRipfYlyU1CmOnOxrmGcFOjeA==" }, "dayjs": { - "version": "1.11.2", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.2.tgz", - "integrity": "sha512-F4LXf1OeU9hrSYRPTTj/6FbO4HTjPKXvEIC1P2kcnFurViINCVk3ZV0xAS3XVx9MkMsXbbqlK6hjseaYbgKEHw==" + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.3.tgz", + "integrity": "sha512-xxwlswWOlGhzgQ4TKzASQkUhqERI3egRNqgV4ScR8wlANA/A9tZ7miXa44vTTKEq5l7vWoL5G57bG3zA+Kow0A==" }, "debug": { "version": "4.3.4", @@ -6595,7 +6595,7 @@ "lodash.chunk": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/lodash.chunk/-/lodash.chunk-4.2.0.tgz", - "integrity": "sha1-ZuXOH3btJ7QwPYxlEujRIW6BBrw=" + "integrity": "sha512-ZzydJKfUHJwHa+hF5X66zLFCBrWn5GeF28OHEr4WVWtNDXlQ/IjWKPBiikqKo2ne0+v6JgCgJ0GzJp8k8bHC7w==" }, "lodash.merge": { "version": "4.6.2", @@ -6612,7 +6612,7 @@ "lodash.throttle": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz", - "integrity": "sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ=" + "integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==" }, "lower-case": { "version": "2.0.2", @@ -6820,7 +6820,7 @@ "numeral": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/numeral/-/numeral-2.0.6.tgz", - "integrity": "sha1-StCAk21EPCVhrtnyGX7//iX05QY=" + "integrity": "sha512-qaKRmtYPZ5qdw4jWJD6bxEf1FJEqllJrwxCLIm0sQU/A7v2/czigzOb+C2uSiFsa9lBUzeH7M1oK+Q+OLxL3kA==" }, "object-inspect": { "version": "1.12.0", @@ -7178,7 +7178,7 @@ "select": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz", - "integrity": "sha1-DnNQrN7ICxEIUoeG7B1EGNEbOW0=" + "integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA==" }, "semver": { "version": "6.3.0", @@ -7464,9 +7464,9 @@ "dev": true }, "view-ui-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/view-ui-plus/-/view-ui-plus-1.0.0.tgz", - "integrity": "sha512-qBDOB+l91lV8fDsOemmXu6wcLj0iG7swA9gXDdYlXg/BG6J15PCQWJvoznlFY9pT5+sFnSu3YNXngyiT/P/2OQ==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/view-ui-plus/-/view-ui-plus-1.3.0.tgz", + "integrity": "sha512-p7b2xc10n7BSUDbBtsQNstNtPJcSrsnRK7ExPJqbT5Kn5j3Ud1UxyWQ2ZIYtaIDevVY3cO21rM2JV6oltUBQDg==", "requires": { "async-validator": "^3.3.0", "countup.js": "^1.9.3", diff --git a/package.json b/package.json index fc9b7e7..f9513d1 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "axios": "^0.27.0", - "view-ui-plus": "^1.1.0", + "view-ui-plus": "^1.3.0", "vue": "^3.2.25", "vue-router": "^4.0.14", "vuex": "^4.0.2" diff --git a/src/styles/index.less b/src/styles/index.less index 380c579..d03d1bc 100644 --- a/src/styles/index.less +++ b/src/styles/index.less @@ -1 +1,3 @@ -@import '../../node_modules/view-ui-plus/dist/styles/viewuiplus.css'; \ No newline at end of file +@import '~view-ui-plus/src/styles/index.less'; + +//@primary-color: #8c0776; \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 81676f1..f28779f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -38,9 +38,10 @@ const config = ({ mode }) => { }, envPrefix, resolve: { - alias: { - '@': path.resolve(__dirname, 'src'), - }, + alias: [ + { find: /^@\//, replacement: `${path.resolve(__dirname, 'src')}/` }, + { find: /^~/, replacement: '' } + ], extensions: ['.js', '.mjs', '.vue', '.json', '.less', '.css'] }, css: {