Skip to content

Commit

Permalink
chore: use ts in components
Browse files Browse the repository at this point in the history
  • Loading branch information
LaicZhang committed Apr 22, 2022
1 parent 55682df commit a3321d4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
7 changes: 2 additions & 5 deletions src/components/backTo/backToSvg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@
</div>
</template>

<script>
export default {
props: ['text'],
}
<script setup>
defineProps(['text'])
</script>

<style lang="scss" scoped>
Expand All @@ -37,7 +35,6 @@ export default {
width: 50px;
cursor:pointer;
margin-right: -100px;
}
.svg-icon {
width: 50px;
Expand Down
4 changes: 2 additions & 2 deletions src/components/is-online/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
</template>
</el-popover>
</template>
<script setup>
<script setup lang="ts">
import { useNetwork } from '@vueuse/core'
const { isOnline, offlineAt, saveData, downlink, rtt, effectiveType, type } = useNetwork()
const { isOnline, offlineAt, saveData, downlink, rtt, effectiveType } = useNetwork()
</script>
<style lang="scss" scoped>
.is-online-user {
Expand Down
16 changes: 6 additions & 10 deletions src/components/menu/c-tree-menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,14 @@
<!-- </div> -->
</template>

<script>
<script setup>
import { defineComponent } from 'vue'
export default defineComponent({
name: 'CTreeMenu',
components: {},
props: {
menus: {
type: Array,
default: () => {
return []
},
defineProps({
menus: {
type: Array,
default: () => {
return []
},
},
})
Expand Down

1 comment on commit a3321d4

@vercel
Copy link

@vercel vercel bot commented on a3321d4 Apr 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.