Browse Source

fix: 本地 warning

lanceJiang 1 year ago
parent
commit
2f8762bb7f

+ 0 - 1
src/components/NoData.vue

@@ -7,7 +7,6 @@
 	</div>
 </template>
 <script setup name="LeNoData" lang="ts">
-import { defineProps, defineEmits } from 'vue'
 import Icon from '@/components/Icon.vue'
 defineEmits(['click'])
 const props = defineProps({

+ 1 - 1
src/components/scFormTable/index.vue

@@ -28,7 +28,7 @@
 <script setup>
 import Sortable from 'sortablejs'
 import { Plus, Delete } from '@element-plus/icons-vue'
-import { defineEmits, nextTick, onMounted, ref, watch } from 'vue'
+import { nextTick, onMounted, ref, watch } from 'vue'
 
 const myProps = defineProps({
 	modelValue: { type: Array, default: () => [] },

+ 1 - 1
src/views/flow/instance/instance-detail.vue

@@ -18,7 +18,7 @@
 
 <script setup>
 import app from '@/api/system/app'
-import { computed, defineEmits, defineProps, nextTick, ref } from 'vue'
+import { computed, nextTick, ref } from 'vue'
 import { useTablePage } from '@/hooks/useTablePage'
 
 const direction = ref('rtl')

+ 1 - 1
src/views/setting/role/permission.vue

@@ -28,7 +28,7 @@
 </template>
 
 <script setup>
-import { computed, defineEmits, onMounted, ref, watch, reactive } from 'vue'
+import { computed, onMounted, ref, watch, reactive } from 'vue'
 import role from '@/api/system/role'
 import resource from '@/api/system/resource'
 import { ElMessage, ElMessageBox } from 'element-plus'

+ 1 - 1
src/views/setting/user/assign-role.vue

@@ -14,7 +14,7 @@
 </template>
 
 <script setup>
-import { defineProps, defineEmits, ref, nextTick, watch, computed } from 'vue'
+import { ref, nextTick, watch, computed } from 'vue'
 import { ElMessage } from 'element-plus'
 import user from '@/api/system/user'
 import role from '@/api/system/role'

+ 1 - 1
src/views/setting/user/reset-pwd.vue

@@ -13,7 +13,7 @@
 </template>
 
 <script setup>
-import { defineProps, defineEmits, ref, computed, reactive } from 'vue'
+import { ref, computed, reactive } from 'vue'
 import { ElMessage } from 'element-plus'
 import user from '@/api/system/user'
 

+ 1 - 1
src/views/test/componentCommunication/components/Comp_Emit/child.vue

@@ -8,7 +8,7 @@
 	</div>
 </template>
 <script setup>
-import { ref, defineEmits } from 'vue'
+import { ref } from 'vue'
 const value = ref('')
 const emits = defineEmits(['add'])
 const handleSubmit = () => {

+ 0 - 1
src/views/test/componentCommunication/components/Comp_Props/child.vue

@@ -5,7 +5,6 @@
 	</ul>
 </template>
 <script setup>
-import { defineProps } from 'vue'
 const props = defineProps({
 	list: {
 		type: Array,

+ 2 - 2
src/views/test/setupComponent.vue

@@ -1,6 +1,6 @@
 <!--<script setup lang="tsx">-->
 <script lang="tsx">
-import {defineComponent, ref, watchEffect, withDefaults, defineProps } from "vue";
+import {defineComponent, ref, watchEffect, withDefaults } from "vue";
 // interface Props {
 // 	msg?: string
 // 	labels: string[]
@@ -71,4 +71,4 @@ export default defineComponent({
 
 <style scoped lang="scss">
 
-</style>
+</style>