diff --git a/continew-admin-ui/components.d.ts b/continew-admin-ui/components.d.ts index fd2e811c..524ea406 100644 --- a/continew-admin-ui/components.d.ts +++ b/continew-admin-ui/components.d.ts @@ -9,77 +9,6 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { - AAffix: typeof import('@arco-design/web-vue')['Affix'] - AAlert: typeof import('@arco-design/web-vue')['Alert'] - AAvatar: typeof import('@arco-design/web-vue')['Avatar'] - ABadge: typeof import('@arco-design/web-vue')['Badge'] - ABreadcrumb: typeof import('@arco-design/web-vue')['Breadcrumb'] - ABreadcrumbItem: typeof import('@arco-design/web-vue')['BreadcrumbItem'] - AButton: typeof import('@arco-design/web-vue')['Button'] - AButtonGroup: typeof import('@arco-design/web-vue')['ButtonGroup'] - ACard: typeof import('@arco-design/web-vue')['Card'] - ACardMeta: typeof import('@arco-design/web-vue')['CardMeta'] - ACarousel: typeof import('@arco-design/web-vue')['Carousel'] - ACarouselItem: typeof import('@arco-design/web-vue')['CarouselItem'] - ACheckbox: typeof import('@arco-design/web-vue')['Checkbox'] - ACol: typeof import('@arco-design/web-vue')['Col'] - AConfigProvider: typeof import('@arco-design/web-vue')['ConfigProvider'] - ADescriptions: typeof import('@arco-design/web-vue')['Descriptions'] - ADescriptionsItem: typeof import('@arco-design/web-vue')['DescriptionsItem'] - ADivider: typeof import('@arco-design/web-vue')['Divider'] - ADoption: typeof import('@arco-design/web-vue')['Doption'] - ADrawer: typeof import('@arco-design/web-vue')['Drawer'] - ADropdown: typeof import('@arco-design/web-vue')['Dropdown'] - AForm: typeof import('@arco-design/web-vue')['Form'] - AFormItem: typeof import('@arco-design/web-vue')['FormItem'] - AGrid: typeof import('@arco-design/web-vue')['Grid'] - AGridItem: typeof import('@arco-design/web-vue')['GridItem'] - AInput: typeof import('@arco-design/web-vue')['Input'] - AInputNumber: typeof import('@arco-design/web-vue')['InputNumber'] - AInputPassword: typeof import('@arco-design/web-vue')['InputPassword'] - AInputSearch: typeof import('@arco-design/web-vue')['InputSearch'] - ALayout: typeof import('@arco-design/web-vue')['Layout'] - ALayoutContent: typeof import('@arco-design/web-vue')['LayoutContent'] - ALayoutFooter: typeof import('@arco-design/web-vue')['LayoutFooter'] - ALayoutSider: typeof import('@arco-design/web-vue')['LayoutSider'] - ALink: typeof import('@arco-design/web-vue')['Link'] - AList: typeof import('@arco-design/web-vue')['List'] - AListItem: typeof import('@arco-design/web-vue')['ListItem'] - AListItemMeta: typeof import('@arco-design/web-vue')['ListItemMeta'] - AMenu: typeof import('@arco-design/web-vue')['Menu'] - AMenuItem: typeof import('@arco-design/web-vue')['MenuItem'] - AModal: typeof import('@arco-design/web-vue')['Modal'] - AOption: typeof import('@arco-design/web-vue')['Option'] - APopconfirm: typeof import('@arco-design/web-vue')['Popconfirm'] - APopover: typeof import('@arco-design/web-vue')['Popover'] - ARadio: typeof import('@arco-design/web-vue')['Radio'] - ARadioGroup: typeof import('@arco-design/web-vue')['RadioGroup'] - ARangePicker: typeof import('@arco-design/web-vue')['RangePicker'] - AResult: typeof import('@arco-design/web-vue')['Result'] - ARow: typeof import('@arco-design/web-vue')['Row'] - ASelect: typeof import('@arco-design/web-vue')['Select'] - ASkeleton: typeof import('@arco-design/web-vue')['Skeleton'] - ASkeletonLine: typeof import('@arco-design/web-vue')['SkeletonLine'] - ASpace: typeof import('@arco-design/web-vue')['Space'] - ASpin: typeof import('@arco-design/web-vue')['Spin'] - AStatistic: typeof import('@arco-design/web-vue')['Statistic'] - AStep: typeof import('@arco-design/web-vue')['Step'] - ASteps: typeof import('@arco-design/web-vue')['Steps'] - ASubMenu: typeof import('@arco-design/web-vue')['SubMenu'] - ASwitch: typeof import('@arco-design/web-vue')['Switch'] - ATable: typeof import('@arco-design/web-vue')['Table'] - ATableColumn: typeof import('@arco-design/web-vue')['TableColumn'] - ATabPane: typeof import('@arco-design/web-vue')['TabPane'] - ATabs: typeof import('@arco-design/web-vue')['Tabs'] - ATag: typeof import('@arco-design/web-vue')['Tag'] - ATextarea: typeof import('@arco-design/web-vue')['Textarea'] - ATooltip: typeof import('@arco-design/web-vue')['Tooltip'] - ATree: typeof import('@arco-design/web-vue')['Tree'] - ATreeSelect: typeof import('@arco-design/web-vue')['TreeSelect'] - ATypographyParagraph: typeof import('@arco-design/web-vue')['TypographyParagraph'] - ATypographyText: typeof import('@arco-design/web-vue')['TypographyText'] - ATypographyTitle: typeof import('@arco-design/web-vue')['TypographyTitle'] - AUpload: typeof import('@arco-design/web-vue')['Upload'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } diff --git a/continew-admin-ui/config/plugin/arcoStyleImport.ts b/continew-admin-ui/config/plugin/arcoStyleImport.ts new file mode 100644 index 00000000..5b85fab9 --- /dev/null +++ b/continew-admin-ui/config/plugin/arcoStyleImport.ts @@ -0,0 +1,12 @@ +/** + * Theme import + * 样式按需引入 + * https://github.com/arco-design/arco-plugins/blob/main/packages/plugin-vite-vue/README.md + * https://arco.design/vue/docs/start + */ +import { vitePluginForArco } from '@arco-plugins/vite-vue'; + +export default function configArcoStyleImportPlugin() { + const arcoResolverPlugin = vitePluginForArco({}); + return arcoResolverPlugin; +} \ No newline at end of file diff --git a/continew-admin-ui/config/plugin/styleImport.ts b/continew-admin-ui/config/plugin/styleImport.ts deleted file mode 100644 index afd13fd2..00000000 --- a/continew-admin-ui/config/plugin/styleImport.ts +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Introduces component library styles on demand. - * 按需引入组件库样式 - * https://github.com/anncwb/vite-plugin-style-import - */ - -import styleImport from 'vite-plugin-style-import'; - -export default function configStyleImportPlugin() { - const styleImportPlugin = styleImport({ - libs: [ - { - libraryName: '@arco-design/web-vue', - esModule: true, - resolveStyle: (name) => { - // The use of this part of the component must depend on the parent, so it can be ignored directly. - // 这部分组件的使用必须依赖父级,所以直接忽略即可。 - const ignoreList = [ - 'config-provider', - 'anchor-link', - 'sub-menu', - 'menu-item', - 'menu-item-group', - 'breadcrumb-item', - 'form-item', - 'step', - 'card-grid', - 'card-meta', - 'collapse-panel', - 'collapse-item', - 'descriptions-item', - 'list-item', - 'list-item-meta', - 'table-column', - 'table-column-group', - 'tab-pane', - 'tab-content', - 'timeline-item', - 'tree-node', - 'skeleton-line', - 'skeleton-shape', - 'grid-item', - 'carousel-item', - 'doption', - 'option', - 'optgroup', - 'icon', - 'dsubmenu', - 'dgroup', - ]; - // List of components that need to map imported styles - // 需要映射引入样式的组件列表 - const replaceList = { - 'typography-text': 'typography', - 'typography-title': 'typography', - 'typography-paragraph': 'typography', - 'typography-link': 'typography', - 'dropdown-button': 'dropdown', - 'input-password': 'input', - 'input-search': 'input', - 'input-group': 'input', - 'radio-group': 'radio', - 'checkbox-group': 'checkbox', - 'layout-sider': 'layout', - 'layout-content': 'layout', - 'layout-footer': 'layout', - 'layout-header': 'layout', - 'month-picker': 'date-picker', - 'range-picker': 'date-picker', - 'row': 'grid', // 'grid/row.less' - 'col': 'grid', // 'grid/col.less' - 'avatar-group': 'avatar', - 'image-preview': 'image', - 'image-preview-group': 'image', - 'cascader-panel': 'cascader', - 'button-group': 'button', - }; - if (ignoreList.includes(name)) return ''; - // eslint-disable-next-line no-prototype-builtins - return replaceList.hasOwnProperty(name) - ? `@arco-design/web-vue/es/${replaceList[name]}/style/css.js` - : `@arco-design/web-vue/es/${name}/style/css.js`; - // less - // return `@arco-design/web-vue/es/${name}/style/index.js`; - }, - }, - ], - }); - return styleImportPlugin; -} diff --git a/continew-admin-ui/config/vite.config.base.ts b/continew-admin-ui/config/vite.config.base.ts index ec249658..6af7baf7 100644 --- a/continew-admin-ui/config/vite.config.base.ts +++ b/continew-admin-ui/config/vite.config.base.ts @@ -3,9 +3,15 @@ import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; import vueJsx from '@vitejs/plugin-vue-jsx'; import svgLoader from 'vite-svg-loader'; +import configArcoStyleImportPlugin from './plugin/arcoStyleImport'; export default defineConfig({ - plugins: [vue(), vueJsx(), svgLoader({ svgoConfig: {} })], + plugins: [ + vue(), + vueJsx(), + svgLoader({ svgoConfig: {} }), + configArcoStyleImportPlugin(), + ], resolve: { alias: [ { diff --git a/continew-admin-ui/config/vite.config.prod.ts b/continew-admin-ui/config/vite.config.prod.ts index e42edc37..fc07a346 100644 --- a/continew-admin-ui/config/vite.config.prod.ts +++ b/continew-admin-ui/config/vite.config.prod.ts @@ -3,7 +3,6 @@ import baseConfig from './vite.config.base'; import configCompressPlugin from './plugin/compress'; import configVisualizerPlugin from './plugin/visualizer'; import configArcoResolverPlugin from './plugin/arcoResolver'; -import configStyleImportPlugin from './plugin/styleImport'; import configImageminPlugin from './plugin/imagemin'; import createSvgIcon from './plugin/svg-icon'; @@ -14,7 +13,6 @@ export default mergeConfig( configCompressPlugin('gzip'), configVisualizerPlugin(), configArcoResolverPlugin(), - configStyleImportPlugin(), configImageminPlugin(), createSvgIcon(true), ], diff --git a/continew-admin-ui/package.json b/continew-admin-ui/package.json index 75305f8e..0e656e80 100644 --- a/continew-admin-ui/package.json +++ b/continew-admin-ui/package.json @@ -29,7 +29,7 @@ ] }, "dependencies": { - "@arco-design/web-vue": "^2.44.5", + "@arco-design/web-vue": "^2.44.7", "@vueuse/core": "^9.13.0", "axios": "^0.24.0", "crypto-js": "^4.1.1", @@ -49,6 +49,7 @@ "vue-router": "^4.1.6" }, "devDependencies": { + "@arco-plugins/vite-vue": "^1.4.5", "@commitlint/cli": "^17.5.0", "@commitlint/config-conventional": "^17.4.4", "@types/crypto-js": "^4.1.1", @@ -89,7 +90,6 @@ "vite-plugin-compression": "^0.5.1", "vite-plugin-eslint": "^1.8.1", "vite-plugin-imagemin": "^0.6.1", - "vite-plugin-style-import": "1.4.1", "vite-plugin-svg-icons": "^2.0.1", "vite-svg-loader": "^3.6.0", "vue-tsc": "^1.2.0" diff --git a/continew-admin-ui/pnpm-lock.yaml b/continew-admin-ui/pnpm-lock.yaml index 1c6c8093..3d3480dd 100644 --- a/continew-admin-ui/pnpm-lock.yaml +++ b/continew-admin-ui/pnpm-lock.yaml @@ -7,8 +7,8 @@ overrides: dependencies: '@arco-design/web-vue': - specifier: ^2.44.5 - version: 2.44.5(vue@3.2.47) + specifier: ^2.44.7 + version: 2.44.7(vue@3.2.47) '@vueuse/core': specifier: ^9.13.0 version: 9.13.0(vue@3.2.47) @@ -62,6 +62,9 @@ dependencies: version: 4.1.6(vue@3.2.47) devDependencies: + '@arco-plugins/vite-vue': + specifier: ^1.4.5 + version: 1.4.5 '@commitlint/cli': specifier: ^17.5.0 version: 17.5.0 @@ -182,9 +185,6 @@ devDependencies: vite-plugin-imagemin: specifier: ^0.6.1 version: 0.6.1(vite@3.2.5) - vite-plugin-style-import: - specifier: 1.4.1 - version: 1.4.1(vite@3.2.5) vite-plugin-svg-icons: specifier: ^2.0.1 version: 2.0.1(vite@3.2.5) @@ -215,8 +215,8 @@ packages: color: 3.2.1 dev: false - /@arco-design/web-vue@2.44.5(vue@3.2.47): - resolution: {integrity: sha512-aJp5/DTz9N4puYnMqxdjUXYRPBYSdJ4F8DF3ZOz2u+hQyD1ZGCFee0hnKvgrySXwNJi6xIk1dEE0ticPCqNOcQ==} + /@arco-design/web-vue@2.44.7(vue@3.2.47): + resolution: {integrity: sha512-liosD2PX3yIPnvLwD8LSWUA1/UkNeWbYQvlVYdKFgxlb78N/rP5PKkcZKZ/m58c4rbT0RAIW4qVEKiDS6XvHFg==} peerDependencies: vue: ^3.1.0 dependencies: @@ -231,6 +231,19 @@ packages: vue: 3.2.47 dev: false + /@arco-plugins/vite-vue@1.4.5: + resolution: {integrity: sha512-2pJ9mpZP9mRD7NGZwRsZTS9C/US5ilEBBUqxN5Qgnd3Td50u9apJVKAABCZjG2K2eHiyZg7Fd9XhgHJXVJJmsw==} + dependencies: + '@babel/generator': 7.21.3 + '@babel/helper-module-imports': 7.18.6 + '@babel/parser': 7.21.3 + '@babel/traverse': 7.21.3 + '@babel/types': 7.21.3 + '@types/node': 16.18.25 + transitivePeerDependencies: + - supports-color + dev: true + /@babel/code-frame@7.18.6: resolution: {integrity: sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==} engines: {node: '>=6.9.0'} @@ -1064,6 +1077,10 @@ packages: resolution: {integrity: sha512-OCxXz6hEaJOVpRwuJMiVY5a6LtJcih+br9gwB/Q8ooOBikvk5FpBQ31OlNimXo3EqKha1Z7PFBni+q9m+8NCWg==} dev: true + /@types/node@16.18.25: + resolution: {integrity: sha512-rUDO6s9Q/El1R1I21HG4qw/LstTHCPO/oQNAwI/4b2f9EWvMnqt4d3HJwPMawfZ3UvodB8516Yg+VAq54YM+eA==} + dev: true + /@types/node@18.15.10: resolution: {integrity: sha512-9avDaQJczATcXgfmMAW3MIWArOO7A+m90vuCFLr8AotWf8igO/mRoYukrk2cqZVtv38tHs33retzHEilM7FpeQ==} dev: true @@ -1967,13 +1984,6 @@ packages: engines: {node: '>=6'} dev: true - /camel-case@4.1.2: - resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==} - dependencies: - pascal-case: 3.1.2 - tslib: 2.5.0 - dev: true - /camelcase-keys@2.1.0: resolution: {integrity: sha512-bA/Z/DERHKqoEOrp+qeGKw1QlvEQkGZSc0XaY6VnTxZr+Kv1G5zFwttpjv8qxZ/sBPT4nthwZaAcsAZTJlSKXQ==} engines: {node: '>=0.10.0'} @@ -2024,14 +2034,6 @@ packages: resolution: {integrity: sha512-065uNwY6QtHCBOExzbV6m236DDhYCCtPmQUCoQtwkVqzud8v5QPidoMr6CoMkC2nfp6nksjttqWQRRh75LqUmA==} dev: true - /capital-case@1.0.4: - resolution: {integrity: sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==} - dependencies: - no-case: 3.0.4 - tslib: 2.5.0 - upper-case-first: 2.0.2 - dev: true - /caw@2.0.1: resolution: {integrity: sha512-Cg8/ZSBEa8ZVY9HspcGUYaK63d/bN7rqS3CYCzEGUxuYv6UlmcjzDUz2fCFFHyTvUW5Pk0I+3hkA3iXlIj6guA==} engines: {node: '>=4'} @@ -2079,23 +2081,6 @@ packages: engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} dev: true - /change-case@4.1.2: - resolution: {integrity: sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==} - dependencies: - camel-case: 4.1.2 - capital-case: 1.0.4 - constant-case: 3.0.4 - dot-case: 3.0.4 - header-case: 2.0.4 - no-case: 3.0.4 - param-case: 3.0.4 - pascal-case: 3.1.2 - path-case: 3.0.4 - sentence-case: 3.0.4 - snake-case: 3.0.4 - tslib: 2.5.0 - dev: true - /character-entities-html4@1.1.4: resolution: {integrity: sha512-HRcDxZuZqMx3/a+qrzxdBKBPUpxWEq9xw2OPZ3a/174ihfrQKVsFhqtthBInFy1zZ9GgZyFXOatNujm8M+El3g==} dev: true @@ -2297,14 +2282,6 @@ packages: resolution: {integrity: sha512-QC/8l9e6ofi6nqZ5PawlDgzmMw3OxIXtvolBzap/F4UDBJlDaZRSNbL/lb41C29FcbSJncBFlJFj2WJoNyZRfQ==} dev: true - /constant-case@3.0.4: - resolution: {integrity: sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==} - dependencies: - no-case: 3.0.4 - tslib: 2.5.0 - upper-case: 2.0.2 - dev: true - /content-disposition@0.5.4: resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==} engines: {node: '>= 0.6'} @@ -2796,13 +2773,6 @@ packages: domhandler: 5.0.3 dev: true - /dot-case@3.0.4: - resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==} - dependencies: - no-case: 3.0.4 - tslib: 2.5.0 - dev: true - /dot-prop@5.3.0: resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==} engines: {node: '>=8'} @@ -2963,10 +2933,6 @@ packages: which-typed-array: 1.1.9 dev: true - /es-module-lexer@0.9.3: - resolution: {integrity: sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==} - dev: true - /es-set-tostringtag@2.0.1: resolution: {integrity: sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==} engines: {node: '>= 0.4'} @@ -4595,13 +4561,6 @@ packages: hasBin: true dev: true - /header-case@2.0.4: - resolution: {integrity: sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==} - dependencies: - capital-case: 1.0.4 - tslib: 2.5.0 - dev: true - /hosted-git-info@2.8.9: resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} dev: true @@ -5659,12 +5618,6 @@ packages: signal-exit: 3.0.7 dev: true - /lower-case@2.0.2: - resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} - dependencies: - tslib: 2.5.0 - dev: true - /lowercase-keys@1.0.0: resolution: {integrity: sha512-RPlX0+PHuvxVDZ7xX+EBVAp4RsVxP/TdDSN2mJYdiq1Lc4Hz7EUSjUI7RZrKKlmrIzVhf6Jo2stj7++gVarS0A==} engines: {node: '>=0.10.0'} @@ -6103,13 +6056,6 @@ packages: resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==} dev: true - /no-case@3.0.4: - resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==} - dependencies: - lower-case: 2.0.2 - tslib: 2.5.0 - dev: true - /node-releases@2.0.10: resolution: {integrity: sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==} dev: true @@ -6457,13 +6403,6 @@ packages: engines: {node: '>=6'} dev: true - /param-case@3.0.4: - resolution: {integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==} - dependencies: - dot-case: 3.0.4 - tslib: 2.5.0 - dev: true - /parent-module@1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} @@ -6512,25 +6451,11 @@ packages: engines: {node: '>= 0.10'} dev: true - /pascal-case@3.1.2: - resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==} - dependencies: - no-case: 3.0.4 - tslib: 2.5.0 - dev: true - /pascalcase@0.1.1: resolution: {integrity: sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==} engines: {node: '>=0.10.0'} dev: true - /path-case@3.0.4: - resolution: {integrity: sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==} - dependencies: - dot-case: 3.0.4 - tslib: 2.5.0 - dev: true - /path-dirname@1.0.2: resolution: {integrity: sha512-ALzNPpyNq9AqXMBjeymIjFDAkAFH06mHJH/cSBHAgU0s4vfpBn6b2nf8tiRLvagKD8RbTpq2FKTBg7cl9l3c7Q==} dev: true @@ -7437,14 +7362,6 @@ packages: lru-cache: 6.0.0 dev: true - /sentence-case@3.0.4: - resolution: {integrity: sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==} - dependencies: - no-case: 3.0.4 - tslib: 2.5.0 - upper-case-first: 2.0.2 - dev: true - /set-value@2.0.1: resolution: {integrity: sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==} engines: {node: '>=0.10.0'} @@ -7547,13 +7464,6 @@ packages: is-fullwidth-code-point: 4.0.0 dev: true - /snake-case@3.0.4: - resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==} - dependencies: - dot-case: 3.0.4 - tslib: 2.5.0 - dev: true - /snapdragon-node@2.1.1: resolution: {integrity: sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==} engines: {node: '>=0.10.0'} @@ -8623,18 +8533,6 @@ packages: picocolors: 1.0.0 dev: true - /upper-case-first@2.0.2: - resolution: {integrity: sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==} - dependencies: - tslib: 2.5.0 - dev: true - - /upper-case@2.0.2: - resolution: {integrity: sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==} - dependencies: - tslib: 2.5.0 - dev: true - /uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: @@ -8785,22 +8683,6 @@ packages: - supports-color dev: true - /vite-plugin-style-import@1.4.1(vite@3.2.5): - resolution: {integrity: sha512-lJCRvm7+So0hHdnSJiJPg9gD5mxtL6YY0jmhEph+k7ArpsyvqOh6han2kG5htbWWDZxHkUN9d1BuTFL//yCLLQ==} - peerDependencies: - vite: '>=2.0.0' - dependencies: - '@rollup/pluginutils': 4.2.1 - change-case: 4.1.2 - debug: 4.3.4 - es-module-lexer: 0.9.3 - fs-extra: 10.1.0 - magic-string: 0.25.9 - vite: 3.2.5(@types/node@18.15.10)(less@4.1.3) - transitivePeerDependencies: - - supports-color - dev: true - /vite-plugin-svg-icons@2.0.1(vite@3.2.5): resolution: {integrity: sha512-6ktD+DhV6Rz3VtedYvBKKVA2eXF+sAQVaKkKLDSqGUfnhqXl3bj5PPkVTl3VexfTuZy66PmINi8Q6eFnVfRUmA==} peerDependencies: diff --git a/continew-admin-ui/src/main.ts b/continew-admin-ui/src/main.ts index 8342c344..1d226202 100644 --- a/continew-admin-ui/src/main.ts +++ b/continew-admin-ui/src/main.ts @@ -11,7 +11,9 @@ import i18n from './locale'; import directive from './directive'; import './mock'; import App from './App.vue'; -import '@arco-design/web-vue/dist/arco.css'; +// Styles are imported via arco-plugin. See config/plugin/arcoStyleImport.ts in the directory for details +// 样式通过 arco-plugin 插件导入。详见目录文件 config/plugin/arcoStyleImport.ts +// https://arco.design/docs/designlab/use-theme-package import '@/assets/style/global.less'; import '@/utils/request'; diff --git a/continew-admin-ui/src/utils/env.ts b/continew-admin-ui/src/utils/env.ts index 02e2f081..4147b353 100644 --- a/continew-admin-ui/src/utils/env.ts +++ b/continew-admin-ui/src/utils/env.ts @@ -1,3 +1,3 @@ -const debug = import.meta.env.NODE_ENV !== 'production'; +const debug = import.meta.env.MODE !== 'production'; export default debug; diff --git a/continew-admin-ui/src/views/arco-design/list/search-table/index.vue b/continew-admin-ui/src/views/arco-design/list/search-table/index.vue index 70bed540..e2321957 100644 --- a/continew-admin-ui/src/views/arco-design/list/search-table/index.vue +++ b/continew-admin-ui/src/views/arco-design/list/search-table/index.vue @@ -167,7 +167,9 @@