refactor: 移除 Arco 设计相关依赖,替换为 Ant Design Vue
This commit is contained in:
@ -3,8 +3,6 @@
|
||||
* */
|
||||
import AutoImport from 'unplugin-auto-import/vite';
|
||||
|
||||
import { ArcoResolver } from 'unplugin-vue-components/resolvers';
|
||||
|
||||
import { layoutsResolver } from '../utils';
|
||||
|
||||
export function configAutoImport() {
|
||||
@ -38,11 +36,6 @@ export function configAutoImport() {
|
||||
},
|
||||
],
|
||||
resolvers: [
|
||||
ArcoResolver({
|
||||
resolveIcons: {
|
||||
enable: true,
|
||||
},
|
||||
}),
|
||||
layoutsResolver(),
|
||||
],
|
||||
eslintrc: {
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
import { kebabCase } from 'unplugin-vue-components';
|
||||
import Components from 'unplugin-vue-components/vite';
|
||||
|
||||
import { ArcoResolver } from 'unplugin-vue-components/resolvers';
|
||||
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
|
||||
|
||||
import { getSep, getPath, setResolve, layoutsResolver } from '../utils';
|
||||
|
||||
@ -13,11 +13,8 @@ export function configComponents() {
|
||||
dirs: ['src/components'],
|
||||
extensions: ['vue'],
|
||||
resolvers: [
|
||||
ArcoResolver({
|
||||
resolveIcons: {
|
||||
enable: true,
|
||||
},
|
||||
sideEffect: true,
|
||||
AntDesignVueResolver({
|
||||
importStyle: false,
|
||||
}),
|
||||
layoutsResolver(),
|
||||
{
|
||||
|
||||
@ -12,7 +12,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ant-design/icons-vue": "^7.0.1",
|
||||
"@arco-design/web-vue": "^2.42.0",
|
||||
"@microsoft/fetch-event-source": "^2.0.1",
|
||||
"@types/nprogress": "^0.2.0",
|
||||
"@vueuse/core": "^9.12.0",
|
||||
|
||||
70
pnpm-lock.yaml
generated
70
pnpm-lock.yaml
generated
@ -11,9 +11,6 @@ importers:
|
||||
'@ant-design/icons-vue':
|
||||
specifier: ^7.0.1
|
||||
version: 7.0.1(vue@3.5.18(typescript@4.9.5))
|
||||
'@arco-design/web-vue':
|
||||
specifier: ^2.42.0
|
||||
version: 2.42.0(vue@3.5.18(typescript@4.9.5))
|
||||
'@microsoft/fetch-event-source':
|
||||
specifier: ^2.0.1
|
||||
version: 2.0.1
|
||||
@ -247,14 +244,6 @@ packages:
|
||||
'@antfu/utils@0.7.2':
|
||||
resolution: {integrity: sha512-vy9fM3pIxZmX07dL+VX1aZe7ynZ+YyB0jY+jE6r3hOK6GNY2t6W8rzpFC4tgpbXUYABkFQwgJq2XYXlxbXAI0g==}
|
||||
|
||||
'@arco-design/color@0.4.0':
|
||||
resolution: {integrity: sha512-s7p9MSwJgHeL8DwcATaXvWT3m2SigKpxx4JA1BGPHL4gfvaQsmQfrLBDpjOJFJuJ2jG2dMt3R3P8Pm9E65q18g==}
|
||||
|
||||
'@arco-design/web-vue@2.42.0':
|
||||
resolution: {integrity: sha512-YJJnMp6WibIAO8iJ7ZVLRIVuEgrvPjrHlGVU1J8UWPFBvzJ7wmwWhOGnar5uG/5cR/fyQbBNC3nTKNwah4rmtA==}
|
||||
peerDependencies:
|
||||
vue: ^3.1.0
|
||||
|
||||
'@babel/code-frame@7.18.6':
|
||||
resolution: {integrity: sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
@ -1460,12 +1449,6 @@ packages:
|
||||
axios@1.3.0:
|
||||
resolution: {integrity: sha512-oCye5nHhTypzkdLIvF9SaHfr8UAquqCn1KY3j8vsrjeol8yohAdGxIpRPbF1bOLsx33HOAatdfMX1yzsj2cHwg==}
|
||||
|
||||
b-tween@0.3.3:
|
||||
resolution: {integrity: sha512-oEHegcRpA7fAuc9KC4nktucuZn2aS8htymCPcP3qkEGPqiBH+GfqtqoG2l7LxHngg6O0HFM7hOeOYExl1Oz4ZA==}
|
||||
|
||||
b-validate@1.4.4:
|
||||
resolution: {integrity: sha512-E2tnSnxxKDyxP1G+TMTbVHA8XajfHHOJKeWm9YVRISSPtzTL7ZP/7tIYp01b+O83L5R/6i31+Su+vCOJBnQWFQ==}
|
||||
|
||||
bach@0.5.0:
|
||||
resolution: {integrity: sha512-wr1KICs4sa/Ye4D38CEWkxmRi0E/1NnlcTXE4WT46993f+m+W8rVeRlQVh7O9jUHd3/cyNttv4qIDEUullFPcw==}
|
||||
engines: {node: '>= 0.10'}
|
||||
@ -1803,12 +1786,6 @@ packages:
|
||||
color-name@1.1.4:
|
||||
resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
|
||||
|
||||
color-string@1.9.1:
|
||||
resolution: {integrity: sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==}
|
||||
|
||||
color@3.2.1:
|
||||
resolution: {integrity: sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==}
|
||||
|
||||
colorette@2.0.19:
|
||||
resolution: {integrity: sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==}
|
||||
|
||||
@ -3025,9 +3002,6 @@ packages:
|
||||
is-arrayish@0.2.1:
|
||||
resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==}
|
||||
|
||||
is-arrayish@0.3.2:
|
||||
resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==}
|
||||
|
||||
is-async-function@2.1.1:
|
||||
resolution: {integrity: sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==}
|
||||
engines: {node: '>= 0.4'}
|
||||
@ -4035,9 +4009,6 @@ packages:
|
||||
resolution: {integrity: sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
|
||||
number-precision@1.6.0:
|
||||
resolution: {integrity: sha512-05OLPgbgmnixJw+VvEh18yNPUo3iyp4BEWJcrLu4X9W05KmMifN7Mu5exYvQXqxxeNWhvIF+j3Rij+HmddM/hQ==}
|
||||
|
||||
object-assign@4.1.1:
|
||||
resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
@ -4798,9 +4769,6 @@ packages:
|
||||
signal-exit@3.0.7:
|
||||
resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
|
||||
|
||||
simple-swizzle@0.2.2:
|
||||
resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==}
|
||||
|
||||
sirv@2.0.2:
|
||||
resolution: {integrity: sha512-4Qog6aE29nIjAOKe/wowFTxOdmbEZKb+3tsLljaBRzJwtqto0BChD2zzH0LhgCSXiI+V7X+Y45v14wBZQ1TK3w==}
|
||||
engines: {node: '>= 10'}
|
||||
@ -5745,22 +5713,6 @@ snapshots:
|
||||
|
||||
'@antfu/utils@0.7.2': {}
|
||||
|
||||
'@arco-design/color@0.4.0':
|
||||
dependencies:
|
||||
color: 3.2.1
|
||||
|
||||
'@arco-design/web-vue@2.42.0(vue@3.5.18(typescript@4.9.5))':
|
||||
dependencies:
|
||||
'@arco-design/color': 0.4.0
|
||||
b-tween: 0.3.3
|
||||
b-validate: 1.4.4
|
||||
compute-scroll-into-view: 1.0.20
|
||||
dayjs: 1.11.7
|
||||
number-precision: 1.6.0
|
||||
resize-observer-polyfill: 1.5.1
|
||||
scroll-into-view-if-needed: 2.2.31
|
||||
vue: 3.5.18(typescript@4.9.5)
|
||||
|
||||
'@babel/code-frame@7.18.6':
|
||||
dependencies:
|
||||
'@babel/highlight': 7.18.6
|
||||
@ -7234,10 +7186,6 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- debug
|
||||
|
||||
b-tween@0.3.3: {}
|
||||
|
||||
b-validate@1.4.4: {}
|
||||
|
||||
bach@0.5.0:
|
||||
dependencies:
|
||||
async-done: 1.3.2
|
||||
@ -7868,16 +7816,6 @@ snapshots:
|
||||
|
||||
color-name@1.1.4: {}
|
||||
|
||||
color-string@1.9.1:
|
||||
dependencies:
|
||||
color-name: 1.1.4
|
||||
simple-swizzle: 0.2.2
|
||||
|
||||
color@3.2.1:
|
||||
dependencies:
|
||||
color-convert: 1.9.3
|
||||
color-string: 1.9.1
|
||||
|
||||
colorette@2.0.19: {}
|
||||
|
||||
combined-stream@1.0.8:
|
||||
@ -9398,8 +9336,6 @@ snapshots:
|
||||
|
||||
is-arrayish@0.2.1: {}
|
||||
|
||||
is-arrayish@0.3.2: {}
|
||||
|
||||
is-async-function@2.1.1:
|
||||
dependencies:
|
||||
async-function: 1.0.0
|
||||
@ -10520,8 +10456,6 @@ snapshots:
|
||||
|
||||
number-is-nan@1.0.1: {}
|
||||
|
||||
number-precision@1.6.0: {}
|
||||
|
||||
object-assign@4.1.1: {}
|
||||
|
||||
object-copy@0.1.0:
|
||||
@ -11422,10 +11356,6 @@ snapshots:
|
||||
|
||||
signal-exit@3.0.7: {}
|
||||
|
||||
simple-swizzle@0.2.2:
|
||||
dependencies:
|
||||
is-arrayish: 0.3.2
|
||||
|
||||
sirv@2.0.2:
|
||||
dependencies:
|
||||
'@polka/url': 1.0.0-next.21
|
||||
|
||||
@ -13,7 +13,6 @@ import SvgIcon from '@/components/svg-icon/index.vue';
|
||||
|
||||
import '@/api/index';
|
||||
import './core';
|
||||
import '@arco-design/web-vue/dist/arco.css'; // 已移除 Arco 样式
|
||||
|
||||
import 'normalize.css';
|
||||
import 'uno.css';
|
||||
|
||||
@ -124,7 +124,7 @@ import iconWb from '@/assets/img/platform/icon-wb.png';
|
||||
import iconGzh from '@/assets/img/platform/icon-gzh.png';
|
||||
import iconWarn from '@/assets/img/media-account/icon-warn.png';
|
||||
import { getTaskSchedulesDetail } from '@/api/all/assignment-management';
|
||||
import { DatePicker } from '@arco-design/web-vue';
|
||||
|
||||
// 定义props和emit
|
||||
const props = defineProps({
|
||||
task: Object,
|
||||
|
||||
Reference in New Issue
Block a user