From 21c3a13f5aad79c76d01b240f896bcb0f0e802ab Mon Sep 17 00:00:00 2001 From: aibayanyu Date: Fri, 17 Mar 2023 22:47:03 +0800 Subject: [PATCH] fix: use vc-utils createInjectionState replace vueuse --- components/config-provider/context.ts | 2 +- components/theme/internal.ts | 2 +- package.json | 1 + pnpm-lock.yaml | 13 +++++++++++++ 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/components/config-provider/context.ts b/components/config-provider/context.ts index bbfe898..6d5b277 100644 --- a/components/config-provider/context.ts +++ b/components/config-provider/context.ts @@ -1,4 +1,4 @@ -import { createInjectionState } from '@vueuse/core' +import { createInjectionState } from '@v-c/utils' import { computed } from 'vue' export const defaultIconPrefixCls = 'anticon' diff --git a/components/theme/internal.ts b/components/theme/internal.ts index c819b2e..6b5a5e2 100644 --- a/components/theme/internal.ts +++ b/components/theme/internal.ts @@ -1,6 +1,6 @@ import type { CSSInterpolation, Theme } from '@antd-tiny-vue/cssinjs' import { createTheme, useCacheToken, useStyleRegister } from '@antd-tiny-vue/cssinjs' -import { createInjectionState } from '@vueuse/core' +import { createInjectionState } from '@v-c/utils' import type { ComputedRef, VNodeChild } from 'vue' import { computed } from 'vue' import version from '../version' diff --git a/package.json b/package.json index be0b5b8..65dc9b8 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@ant-design/colors": "^7.0.0", "@antd-tiny-vue/cssinjs": "^0.0.4", "@ctrl/tinycolor": "^3.6.0", + "@v-c/utils": "^0.0.5", "@vueuse/core": "^9.13.0", "vue": "^3.2.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e86f7dd..25c46ef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,6 +10,7 @@ specifiers: '@mistjs/tsconfig': ^1.0.0 '@mistjs/tsconfig-vue': ^0.0.3 '@types/node': ^18.13.0 + '@v-c/utils': ^0.0.5 '@vitejs/plugin-vue-jsx': ^3.0.0 '@vueuse/core': ^9.13.0 eslint: ^8.34.0 @@ -27,6 +28,7 @@ dependencies: '@ant-design/colors': 7.0.0 '@antd-tiny-vue/cssinjs': 0.0.4_vue@3.2.47 '@ctrl/tinycolor': 3.6.0 + '@v-c/utils': 0.0.5 '@vueuse/core': 9.13.0_vue@3.2.47 vue: 3.2.47 @@ -1278,6 +1280,13 @@ packages: eslint-visitor-keys: 3.3.0 dev: true + /@v-c/utils/0.0.5: + resolution: {integrity: sha512-HiK9iupJ3YIl4AO8VxvQMVh5G7pkTYo7wMhWdsWr6XOPw86p5MgWdQRLhQNX1WbDjA9BsbpjuO7I5PyEhGYoFw==} + dependencies: + lodash.clonedeep: 4.5.0 + vue: 3.2.47 + dev: false + /@vitejs/plugin-vue-jsx/3.0.0_vite@4.1.1+vue@3.2.47: resolution: {integrity: sha512-vurkuzgac5SYuxd2HUZqAFAWGTF10diKBwJNbCvnWijNZfXd+7jMtqjPFbGt7idOJUn584fP1Ar9j/GN2jQ3Ew==} engines: {node: ^14.18.0 || >=16.0.0} @@ -3441,6 +3450,10 @@ packages: resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} dev: true + /lodash.clonedeep/4.5.0: + resolution: {integrity: sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==} + dev: false + /lodash.isfunction/3.0.9: resolution: {integrity: sha512-AirXNj15uRIMMPihnkInB4i3NHeb4iBtNg9WRWuK2o31S+ePwwNmDPaTL3o7dTJ+VXNZim7rFs4rxN4YU1oUJw==} dev: true