Browse Source

消除defineProp和defineEmits警告

feature/history-20250108
zhangjiming 7 months ago
parent
commit
efd06a3d18
  1. 1
      src/pages/Index/components/Consumables/BallGrid.vue
  2. 1
      src/pages/Index/components/Consumables/Plate.vue
  3. 2
      src/pages/Index/components/Consumables/SpttingPlates.vue
  4. 2
      src/pages/Index/components/Consumables/Warn/InitWarn.vue
  5. 2
      src/pages/Index/components/History/HistoryTable.vue
  6. 1
      src/pages/Index/components/History/HistoryWarn.vue
  7. 2
      src/pages/Index/components/Running/LittleBufferDisplay.vue
  8. 2
      src/pages/Index/components/Running/PlateDisplay.vue
  9. 2
      src/pages/Index/components/Running/SampleDisplay.vue
  10. 2
      src/pages/Index/components/Setting/AddUserModal.vue
  11. 2
      src/pages/Index/components/Setting/DelMessage.vue
  12. 2
      src/pages/Index/components/Setting/DelWarn.vue
  13. 2
      src/pages/Index/components/Setting/EnterPinModal.vue
  14. 2
      src/pages/Index/components/TestTube/ProjectSetting.vue
  15. 2
      src/pages/Index/components/TestTube/TestTubeRack.vue

1
src/pages/Index/components/Consumables/BallGrid.vue

@ -14,7 +14,6 @@ import {
watch,
onMounted,
onBeforeUnmount,
defineEmits,
} from 'vue'
//

1
src/pages/Index/components/Consumables/Plate.vue

@ -10,7 +10,6 @@
</template>
<script lang="ts" setup>
import { defineProps } from 'vue'
// props
defineProps({

2
src/pages/Index/components/Consumables/SpttingPlates.vue

@ -42,7 +42,7 @@
<script setup>
import Plate from './Plate.vue';
import { ref, onMounted, onBeforeUnmount, defineProps } from 'vue';
import { ref, onMounted, onBeforeUnmount } from 'vue';
import ChangeNum from './ChangeNum.vue';
const props = defineProps({

2
src/pages/Index/components/Consumables/Warn/InitWarn.vue

@ -24,7 +24,7 @@
</template>
<script setup lang="ts">
import { defineProps, ref, onMounted } from 'vue'
import { ref, onMounted } from 'vue'
const props = defineProps({
visible: Boolean, //

2
src/pages/Index/components/History/HistoryTable.vue

@ -44,7 +44,7 @@
</template>
<script setup lang="ts">
import { ref, defineProps, watch, computed } from 'vue'
import { ref, watch, computed } from 'vue'
import { formatDate } from '../../../../utils/formDate'
import type { TableItem } from '../../../../types/Index';

1
src/pages/Index/components/History/HistoryWarn.vue

@ -24,7 +24,6 @@
<script setup lang="ts">
import { defineProps } from 'vue';
defineProps({
icon: {

2
src/pages/Index/components/Running/LittleBufferDisplay.vue

@ -7,7 +7,7 @@
</div>
</template>
<script setup lang="ts">
import { defineProps } from 'vue'
import type { LittleBottleGroup } from '../../../../websocket/socket'
// props

2
src/pages/Index/components/Running/PlateDisplay.vue

@ -17,7 +17,7 @@
</div>
</template>
<script setup lang="ts">
import { defineProps } from 'vue'
import type { ConsumableGroupBase } from '../../../../websocket/socket'
defineProps<{

2
src/pages/Index/components/Running/SampleDisplay.vue

@ -40,7 +40,7 @@
</template>
<script setup lang="ts">
import { ref, defineProps } from 'vue'
import { ref } from 'vue'
import { generateSampleBackground, getBloodTypeLabel } from '../../utils'
import type { TubeHolderStateMessage } from '../../../../websocket/socket'
defineProps<{

2
src/pages/Index/components/Setting/AddUserModal.vue

@ -30,7 +30,7 @@
</template>
<script setup lang="ts">
import { ref, defineProps, computed, watch } from 'vue'
import { ref, computed, watch } from 'vue'
import activeIcon from '@/assets/register-user-active.svg'
import existIcon from '@/assets/register-user-exist.svg'
import devicateIcon from '@/assets/register-user-devicate.svg'

2
src/pages/Index/components/Setting/DelMessage.vue

@ -20,7 +20,7 @@
</template>
<script setup lang="ts">
import { defineProps, ref, onMounted } from 'vue'
import { ref, onMounted } from 'vue'
//
const props = withDefaults(defineProps<{

2
src/pages/Index/components/Setting/DelWarn.vue

@ -27,7 +27,7 @@
</template>
<script setup lang="ts">
import { defineProps, ref, onMounted } from 'vue'
import { ref, onMounted } from 'vue'
//
const props = defineProps<{

2
src/pages/Index/components/Setting/EnterPinModal.vue

@ -21,7 +21,7 @@
</template>
<script setup lang="ts">
import { ref, defineProps } from 'vue'
import { ref } from 'vue'
defineProps<{ visible: boolean; loading: boolean }>()
const emit = defineEmits<{

2
src/pages/Index/components/TestTube/ProjectSetting.vue

@ -25,7 +25,7 @@
</template>
<script lang="ts" setup>
import { ref, defineProps, watch } from 'vue'
import { ref, watch } from 'vue'
import { useTestTubeStore } from '../../../../store'
const testTubeStore = useTestTubeStore()
const props = defineProps({

2
src/pages/Index/components/TestTube/TestTubeRack.vue

@ -85,7 +85,7 @@
</template>
<script setup lang="ts">
import { ref, defineProps, onMounted } from 'vue'
import { ref, onMounted } from 'vue'
import ProjectSetting from './ProjectSetting.vue'
import { ReactionPlate, TubeRack, handleTube, DataItem } from '../../../../types/Index'
import {

Loading…
Cancel
Save