feat: use unplugin-vue-define-options add setup name

This commit is contained in:
xiaoxian521
2022-05-21 12:29:54 +08:00
parent dca722cb29
commit 747e2b9c1c
93 changed files with 2387 additions and 4420 deletions

View File

@@ -1,9 +1,3 @@
<script lang="ts">
export default {
name: "ReCard"
};
</script>
<script setup lang="ts">
import { computed, PropType } from "vue";
import shopIcon from "/@/assets/svg/shop.svg?component";
@@ -19,6 +13,10 @@ export interface CardProductType {
name: string;
}
defineOptions({
name: "ReCard"
});
const props = defineProps({
product: {
type: Object as PropType<CardProductType>

View File

@@ -1,9 +1,3 @@
<script lang="ts">
export default {
name: "ListCard"
};
</script>
<script setup lang="ts">
import { getCardList } from "/@/api/list";
import Card from "./components/Card.vue";
@@ -12,6 +6,10 @@ import dialogForm from "./components/DialogForm.vue";
import { ElMessage, ElMessageBox } from "element-plus";
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
defineOptions({
name: "ListCard"
});
const svg = `
<path class="path" d="
M 30 15