diff --git a/package.json b/package.json index 5fbc568fbb..b8bfd88e87 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ }, "dependencies": { "@element-plus/components": "workspace:*", + "@element-plus/constants": "workspace:*", "@element-plus/directives": "workspace:*", "@element-plus/hooks": "workspace:*", "@element-plus/icons-vue": "^0.2.6", @@ -61,6 +62,7 @@ "@element-plus/theme-chalk": "workspace:*", "@element-plus/tokens": "workspace:*", "@element-plus/utils": "workspace:*", + "@element-plus/utils-v2": "workspace:*", "@popperjs/core": "^2.11.2", "@vueuse/core": "^7.5.5", "async-validator": "^4.0.7", diff --git a/packages/components/affix/index.ts b/packages/components/affix/index.ts index 3688e83cee..301872b72a 100644 --- a/packages/components/affix/index.ts +++ b/packages/components/affix/index.ts @@ -1,4 +1,4 @@ -import { withInstall } from '@element-plus/utils/with-install' +import { withInstall } from '@element-plus/utils-v2' import Affix from './src/affix.vue' diff --git a/packages/components/affix/src/affix.ts b/packages/components/affix/src/affix.ts index 326d24e38e..e9e400f1be 100644 --- a/packages/components/affix/src/affix.ts +++ b/packages/components/affix/src/affix.ts @@ -1,4 +1,4 @@ -import { buildProps, definePropType } from '@element-plus/utils/props' +import { buildProps, definePropType } from '@element-plus/utils-v2' import type { ExtractPropTypes } from 'vue' import type { ZIndexProperty } from 'csstype' import type Affix from './affix.vue' diff --git a/packages/components/alert/__tests__/alert.spec.ts b/packages/components/alert/__tests__/alert.spec.ts index 5311c7fd58..a1cd389462 100644 --- a/packages/components/alert/__tests__/alert.spec.ts +++ b/packages/components/alert/__tests__/alert.spec.ts @@ -1,5 +1,5 @@ import { mount } from '@vue/test-utils' -import { TypeComponentsMap } from '@element-plus/utils/icon' +import { TypeComponentsMap } from '@element-plus/utils-v2' import Alert from '../src/alert.vue' const AXIOM = 'Rem is the best girl' diff --git a/packages/components/alert/index.ts b/packages/components/alert/index.ts index 79068d136a..c5b018ec1b 100644 --- a/packages/components/alert/index.ts +++ b/packages/components/alert/index.ts @@ -1,4 +1,4 @@ -import { withInstall } from '@element-plus/utils/with-install' +import { withInstall } from '@element-plus/utils-v2' import Alert from './src/alert.vue' diff --git a/packages/components/alert/src/alert.ts b/packages/components/alert/src/alert.ts index 1be6b82c51..f4551fa239 100644 --- a/packages/components/alert/src/alert.ts +++ b/packages/components/alert/src/alert.ts @@ -1,5 +1,4 @@ -import { TypeComponentsMap } from '@element-plus/utils/icon' -import { buildProps, keyOf } from '@element-plus/utils/props' +import { TypeComponentsMap, buildProps, keyOf } from '@element-plus/utils-v2' import type { ExtractPropTypes } from 'vue' import type Alert from './alert.vue' diff --git a/packages/components/alert/src/alert.vue b/packages/components/alert/src/alert.vue index b4072df4f9..ea595ea960 100644 --- a/packages/components/alert/src/alert.vue +++ b/packages/components/alert/src/alert.vue @@ -42,7 +42,7 @@