fix: document 引用 main.ts 以实现实时调试
This commit is contained in:
@@ -43,7 +43,8 @@ const props = withDefaults(defineProps<LayPageProps>(), {
|
||||
});
|
||||
|
||||
const limits = ref(props.limits);
|
||||
const pages = props.pages / 2;
|
||||
const pages = Math.ceil(props.pages / 2);
|
||||
|
||||
const inlimit = computed({
|
||||
get() {
|
||||
return props.limit;
|
||||
@@ -52,7 +53,9 @@ const inlimit = computed({
|
||||
emit("limit", v);
|
||||
},
|
||||
});
|
||||
|
||||
const maxPage = ref(0);
|
||||
|
||||
const totalPage = computed(() => {
|
||||
maxPage.value = Math.ceil(props.total / props.limit);
|
||||
let r: number[] = [],
|
||||
|
||||
@@ -293,6 +293,7 @@ onMounted(() => {
|
||||
<table class="layui-table" :lay-size="size">
|
||||
<tbody>
|
||||
<template v-for="data in tableDataSource" :key="data">
|
||||
<!-- sub table impl -->
|
||||
<tr
|
||||
@click.stop="rowClick(data, $event)"
|
||||
@dblclick.stop="rowDoubleClick(data, $event)"
|
||||
|
||||
Reference in New Issue
Block a user