mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-03 13:44:47 +08:00
types: optimization type
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, unref } from "vue";
|
||||
import { ref, reactive, unref } from "vue";
|
||||
import { templateRef } from "@vueuse/core";
|
||||
import SeamlessScroll from "/@/components/ReSeamlessScroll";
|
||||
|
||||
// eslint-disable-next-line no-undef
|
||||
const scroll = templateRef<ElRef | null>("scroll", null);
|
||||
|
||||
let listData = ref<Array<Object>>([
|
||||
let listData = ref<ForDataType<undefined>>([
|
||||
{
|
||||
title: "无缝滚动第一行无缝滚动第一行!!!!!!!!!!"
|
||||
},
|
||||
@@ -36,11 +36,12 @@ let listData = ref<Array<Object>>([
|
||||
}
|
||||
]);
|
||||
|
||||
let classOption = ref<Object>({
|
||||
let classOption = reactive({
|
||||
direction: "top"
|
||||
});
|
||||
|
||||
function changeDirection(val) {
|
||||
// @ts-ignore
|
||||
unref(scroll).reset();
|
||||
unref(classOption).direction = val;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ref } from "vue";
|
||||
import Selector from "/@/components/ReSelector";
|
||||
|
||||
let selectRange = ref<string>("");
|
||||
let dataLists = ref<Array<Object>>([
|
||||
let dataLists = ref<ForDataType<undefined>>([
|
||||
{
|
||||
title: "基本使用",
|
||||
echo: [],
|
||||
|
||||
Reference in New Issue
Block a user