Skip to content

Commit 215cd1a

Browse files
committed
fix: popperjs
1 parent b1a6a21 commit 215cd1a

File tree

6 files changed

+133
-118
lines changed

6 files changed

+133
-118
lines changed

app.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
<script setup>
2+
import { ID_INJECTION_KEY } from 'element-plus'
3+
4+
provide(ID_INJECTION_KEY, {
5+
prefix: 100,
6+
current: 0,
7+
})
8+
</script>
9+
110
<template>
2-
<main>
3-
<NuxtPage />
4-
</main>
11+
<NuxtPage />
512
</template>

components/Counter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { ElInputNumber } from "element-plus/dist/index.full.js";
2+
import { ElInputNumber } from "element-plus";
33
const { count } = useCount();
44
</script>
55

components/Examples.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ import {
5959
ElConfigProvider,
6060
ElDatePicker,
6161
ElMessage,
62-
} from "element-plus/dist/index.full.js";
63-
import zhCn from "element-plus/dist/locale/zh-cn.js";
62+
} from "element-plus";
63+
import zhCn from "element-plus/es/locale/lang/zh-cn";
6464
import { Grape, IceCream, IceDrink, ArrowDown } from "@element-plus/icons-vue";
6565
6666
const timeValue = ref("");

components/Logos.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { ElIcon } from 'element-plus/dist/index.full.mjs'
2+
import { ElIcon } from 'element-plus'
33
import { Plus } from '@element-plus/icons-vue'
44
</script>
55

@@ -13,7 +13,7 @@ import { Plus } from '@element-plus/icons-vue'
1313
<NuxtLogo class="logo" />
1414
</div>
1515
<h2>
16-
<a target="_blank" href="https://v3.nuxtjs.org/">Element Plus</a>
16+
<a target="_blank" href="https://element-plus.org/">Element Plus</a>
1717
With
1818
<a target="_blank" href="https://v3.nuxtjs.org/">NuxtJS</a>
1919
</h2>

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,10 @@
3030
"nuxt": "npm:nuxt3@latest",
3131
"sass": "^1.50.1",
3232
"typescript": "^4.6.3"
33+
},
34+
"pnpm": {
35+
"overrides": {
36+
"@popperjs/core": "npm:@sxzz/popperjs-es@latest"
37+
}
3338
}
3439
}

0 commit comments

Comments
 (0)