fix:remove import defineProps, defineEmits

This commit is contained in:
zyronon
2025-08-17 13:44:29 +08:00
parent f0eeb3a8a6
commit e07a86565e
8 changed files with 18 additions and 20 deletions

View File

@@ -1,9 +1,7 @@
<script setup lang="ts">
import BaseButton from "@/components/BaseButton.vue";
import {onMounted, watch} from "vue";
import {useSettingStore} from "@/stores/setting.ts";
import {Icon} from "@iconify/vue";
import Dialog from "@/pages/pc/components/dialog/Dialog.vue";
let settingStore = useSettingStore()

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import {ref, watch, defineProps, defineEmits, useAttrs, onMounted} from 'vue';
import {ref, useAttrs, watch} from 'vue';
const props = defineProps({
modelValue: [String, Number],

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import {ref, computed, watch, defineProps, defineEmits, onMounted, nextTick} from 'vue';
import {nextTick, onMounted, ref, watch} from 'vue';
const props = defineProps<{
modelValue: number;

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import {ref, computed, defineProps, defineEmits, watch} from 'vue';
import {ref, computed, watch} from 'vue';
const props = defineProps<{
modelValue: boolean;

View File

@@ -17,7 +17,7 @@
</template>
<script setup lang="ts">
import {inject, computed, defineProps} from 'vue'
import {inject, computed} from 'vue'
const props = defineProps({
value: [String, Number, Boolean],
@@ -92,7 +92,7 @@ function onClick() {
background-color: #409eff;
}
.radio__label{
.radio__label {
color: #409eff;
}

View File

@@ -5,7 +5,7 @@
</template>
<script setup lang="ts">
import {defineEmits, defineProps, provide, ref, watch} from 'vue'
import {provide, ref, watch} from 'vue'
const props = defineProps({
modelValue: [String, Number, Boolean],