Skip to content

Commit

Permalink
🐞 fix: 打包构建error
Browse files Browse the repository at this point in the history
  • Loading branch information
BBBboys committed Oct 1, 2024
1 parent 483ced4 commit 8c4d37e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-example-page
*.local

# Editor directories and files
Expand Down
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="tsx" setup>
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import en from "element-plus/dist/locale/en.mjs";
import zhCn from "element-plus/es/locale/lang/zh-cn";
import en from "element-plus/es/locale/lang/en";
import { provide, ref, computed } from "vue";
import Layout from "./Layout.vue";
Expand Down
2 changes: 1 addition & 1 deletion src/pages/example/advance/communication.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Content = defineComponent({
},
},
setup(props) {
const { destroyWithResolve } = getCommandDialogConsumer();
const { destroyWithResolve, destroyWithReject } = getCommandDialogConsumer();
const form = reactive({
name: "",
region: "",
Expand Down
4 changes: 2 additions & 2 deletions src/pages/example/base/confirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Content = defineComponent({
},
});
const openDialog = (config) => {
const openDialog = () => {
CommandDialog(<Content />, {
title: "请确认",
onConfirm: true,
Expand All @@ -33,7 +33,7 @@ const openDialog = (config) => {
});
};
const openDialog2 = (config) => {
const openDialog2 = () => {
const consumer = CommandDialog(<Content no-bind />, {
title: "请确认",
onConfirm: () => {
Expand Down
3 changes: 1 addition & 2 deletions src/pages/example/base/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { createElementPlusDialog } from "@/components/index";
import Content from "./components/Content.vue";
import { provide } from "vue";
import { ElMessage } from "element-plus";
provide("base", "来自base的🩷");
Expand Down Expand Up @@ -41,7 +40,7 @@ const openDialog3 = () => {
<template>
<div>
<el-button type="primary" @click="openDialog">打开弹窗</el-button>
<el-button type="success" @click="openDialog2">弹窗外部控制显示/隐藏/销毁</el-button>
<el-button type="success" @click="openDialog2">弹窗外部控制显示/隐藏/销毁(过程中弹窗会自动显示关闭)</el-button>
<el-button type="success" @click="openDialog3">三秒后打开</el-button>
</div>
</template>
Expand Down

0 comments on commit 8c4d37e

Please sign in to comment.