mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-03 13:44:47 +08:00
perf: fix some types and delete some redundant
This commit is contained in:
@@ -39,7 +39,7 @@ export default {
|
||||
SeamlessScroll
|
||||
},
|
||||
setup() {
|
||||
const scroll = templateRef<HTMLElement | null>("scroll", null);
|
||||
const scroll = templateRef<ElRef | null>("scroll", null);
|
||||
|
||||
let listData = ref([
|
||||
{
|
||||
@@ -76,8 +76,8 @@ export default {
|
||||
});
|
||||
|
||||
function changeDirection(val) {
|
||||
scroll.value.reset();
|
||||
classOption.value.direction = val;
|
||||
unref(scroll).reset();
|
||||
unref(classOption).direction = val;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -30,7 +30,7 @@ import demoData from "./dataTurbo.json";
|
||||
export default {
|
||||
components: { NodePanel, Control, DataDialog },
|
||||
setup() {
|
||||
let lf = ref(null);
|
||||
let lf = ref<ElRef>(null);
|
||||
let graphData = ref(null);
|
||||
let dataVisible = ref(false);
|
||||
let config = ref({
|
||||
|
||||
Reference in New Issue
Block a user