-
按照浏览数排序
+
+
+ {{ $tm(`pool.${item.name}`) }}
+
-
按照点赞数排序
-
-
@@ -45,14 +63,44 @@ import { Icon } from '@iconify/vue'
cursor: pointer;
display: none;
background-color: var(--kungalgame-trans-white-2);
- border: 1px solid var(--kungalgame-blue-1);
+ border: 1px solid var(--kungalgame-blue-4);
top: 0;
+}
- & > div {
+.item {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ padding: 8px;
+
+ span {
+ margin-left: 8px;
+ }
+
+ &:hover {
+ background-color: var(--kungalgame-trans-blue-1);
+ }
+}
+
+.order {
+ display: flex;
+
+ &:hover {
+ background-color: var(--kungalgame-trans-white-2);
+ }
+
+ span {
padding: 8px;
+ width: 100%;
+ height: 100%;
+ display: flex;
+ justify-content: space-around;
+ align-items: center;
+ color: var(--kungalgame-blue-4);
&:hover {
- background-color: var(--kungalgame-trans-blue-1);
+ background-color: var(--kungalgame-blue-4);
+ color: var(--kungalgame-white);
}
}
}
diff --git a/src/views/pool/components/sortItem.ts b/src/views/pool/components/sortItem.ts
new file mode 100644
index 00000000..88e1a48a
--- /dev/null
+++ b/src/views/pool/components/sortItem.ts
@@ -0,0 +1,27 @@
+interface Sort {
+ index: number
+ icon: string
+ name: string
+ field: string
+}
+
+export const sortItem: Sort[] = [
+ {
+ index: 1,
+ icon: 'ic:outline-remove-red-eye',
+ name: 'view',
+ field: 'views',
+ },
+ {
+ index: 2,
+ icon: 'line-md:thumbs-up-twotone',
+ name: 'like',
+ field: 'likes_count',
+ },
+ {
+ index: 3,
+ icon: 'eos-icons:hourglass',
+ name: 'time',
+ field: 'time',
+ },
+]