Skip to content

Commit

Permalink
perf: 调整间距,适配小屏
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Oct 9, 2023
1 parent 93c3d1a commit e92926d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
13 changes: 11 additions & 2 deletions src/components/AttrCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,17 @@ const attrs = computed(() => {
</script>

<template>
<DraggableCard :initialValue="{ top: 90, right: 10 }" v-slot="{ onRef }">
<NTable size="small" striped :singleLine="false" class="gkd_code">
<DraggableCard :initialValue="{ top: 75, right: 10 }" v-slot="{ onRef }">
<NTable
size="small"
striped
:singleLine="false"
class="gkd_code"
:themeOverrides="{
thPaddingSmall: '2px 4px',
tdPaddingSmall: '2px 4px',
}"
>
<thead cursor-move :ref="onRef">
<NTr>
<NTh> Name </NTh>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const enableSearchBySelector = shallowRef(true);
</script>
<template>
<DraggableCard
:initialValue="{ top: 90, right: 390 }"
:initialValue="{ top: 75, right: 390 }"
v-slot="{ onRef }"
class="z-1"
>
Expand Down
21 changes: 15 additions & 6 deletions src/components/WindowCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,23 @@ const renderLabel = (info: {

<template>
<div flex flex-col>
<NTable size="small" striped :singleLine="false" class="table-fixed">
<NTable
size="small"
striped
:singleLine="false"
class="table-fixed"
:themeOverrides="{
thPaddingSmall: '2px 4px',
tdPaddingSmall: '2px 4px',
}"
>
<NThead>
<NTr>
<NTh class="w-150px"> Device </NTh>
<NTh class="w-110px"> Name </NTh>
<NTh class="w-110px"> VersionName </NTh>
<NTh class="w-110px"> VersionCode </NTh>
<NTh class="w-240px"> AppId </NTh>
<NTh class="w-140px"> Device </NTh>
<NTh class="w-100px"> Name </NTh>
<NTh class="w-100px"> VersionName </NTh>
<NTh class="w-100px"> VersionCode </NTh>
<NTh class="w-200px"> AppId </NTh>
<NTh> ActivityId </NTh>
<NTh class="w-175px"> 操作 </NTh>
</NTr>
Expand Down

0 comments on commit e92926d

Please sign in to comment.