fix:remove import defineProps, defineEmits
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
import {Icon} from "@iconify/vue";
|
||||
import Tooltip from "@/pages/pc/components/base/Tooltip.vue";
|
||||
|
||||
defineEmits(['click'])
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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],
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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],
|
||||
|
||||
@@ -7,7 +7,7 @@ import SlidePlugin from './src/components/slide/data.js';
|
||||
import {getLastCommit} from "git-last-commit";
|
||||
import UnoCSS from 'unocss/vite'
|
||||
import VueMacros from 'unplugin-vue-macros/vite'
|
||||
import {Plugin as importToCDN} from 'vite-plugin-cdn-import'
|
||||
import cdn from 'vite-plugin-cdn-import'
|
||||
import Icons from 'unplugin-icons/vite'
|
||||
import Components from 'unplugin-vue-components/vite'
|
||||
import IconsResolver from 'unplugin-icons/resolver'
|
||||
@@ -26,11 +26,10 @@ export default defineConfig(() => {
|
||||
if (!err) latestCommitHash = commit.shortHash
|
||||
resolve({
|
||||
plugins: [
|
||||
VueMacros({
|
||||
plugins: {
|
||||
vue: Vue(),
|
||||
vueJsx: VueJsx(), // 如果需要
|
||||
},
|
||||
Icons({
|
||||
//自动安装@iconify-json/xx
|
||||
autoInstall: true,
|
||||
compiler: 'vue3',
|
||||
}),
|
||||
Components({
|
||||
resolvers: [
|
||||
@@ -40,9 +39,11 @@ export default defineConfig(() => {
|
||||
}),
|
||||
],
|
||||
}),
|
||||
Icons({
|
||||
autoInstall: true,
|
||||
compiler: 'vue3',
|
||||
VueMacros({
|
||||
plugins: {
|
||||
vue: Vue(),
|
||||
vueJsx: VueJsx(), // 如果需要
|
||||
},
|
||||
}),
|
||||
UnoCSS(),
|
||||
lifecycle === 'report' ?
|
||||
@@ -54,7 +55,7 @@ export default defineConfig(() => {
|
||||
open: true //如果存在本地服务端口,将在打包后自动展示
|
||||
}) : null,
|
||||
SlidePlugin(),
|
||||
['build', 'report'].includes(lifecycle) ? importToCDN({
|
||||
['build', 'report'].includes(lifecycle) ? cdn({
|
||||
modules: [
|
||||
{
|
||||
name: 'vue',
|
||||
@@ -71,7 +72,7 @@ export default defineConfig(() => {
|
||||
var: 'axios',
|
||||
path: 'https://2study.top/axios.min.js'
|
||||
},
|
||||
]
|
||||
],
|
||||
}) : null
|
||||
],
|
||||
build: {
|
||||
|
||||
Reference in New Issue
Block a user