docs: 更新成员信息
This commit is contained in:
@@ -312,7 +312,7 @@ const setDateList = (year: number, month: number) => {
|
||||
for (let i = prevDays - curFirstDayWeek + 1; i <= prevDays; i++) {
|
||||
list.push({
|
||||
day: i,
|
||||
value: + new Date(year, month - 1, i),
|
||||
value: +new Date(year, month - 1, i),
|
||||
isRange: false,
|
||||
isSelected: false,
|
||||
type: "prev",
|
||||
@@ -322,7 +322,7 @@ const setDateList = (year: number, month: number) => {
|
||||
for (let i = 1; i <= curDays; i++) {
|
||||
list.push({
|
||||
day: i,
|
||||
value: + new Date(year, month, i),
|
||||
value: +new Date(year, month, i),
|
||||
isRange: false,
|
||||
isSelected: false,
|
||||
type: "current",
|
||||
@@ -334,7 +334,7 @@ const setDateList = (year: number, month: number) => {
|
||||
for (let i = 1; i <= nextDays; i++) {
|
||||
list.push({
|
||||
day: i,
|
||||
value: + new Date(year, month + 1, i),
|
||||
value: +new Date(year, month + 1, i),
|
||||
isRange: false,
|
||||
isSelected: false,
|
||||
type: "next",
|
||||
@@ -362,9 +362,7 @@ const handleDayClick = (item: any) => {
|
||||
};
|
||||
|
||||
// 确认事件
|
||||
const ok = () => {
|
||||
|
||||
}
|
||||
const ok = () => {};
|
||||
|
||||
// 切换年月
|
||||
const changeYearOrMonth = (type: "year" | "month", num: number) => {
|
||||
|
||||
@@ -13,6 +13,7 @@ export interface LayPageProps {
|
||||
total: number;
|
||||
limit: number;
|
||||
theme?: string;
|
||||
modelValue?: number;
|
||||
showPage?: boolean | string;
|
||||
showSkip?: boolean | string;
|
||||
showCount?: boolean | string;
|
||||
@@ -36,9 +37,11 @@ const props = withDefaults(defineProps<LayPageProps>(), {
|
||||
showLimit: true,
|
||||
showInput: false,
|
||||
showRefresh: false,
|
||||
modelValue: 1,
|
||||
pages: 10,
|
||||
limits: () => [10, 20, 30, 40, 50],
|
||||
});
|
||||
|
||||
const limits = ref(props.limits);
|
||||
const pages = props.pages / 2;
|
||||
const inlimit = computed({
|
||||
@@ -67,7 +70,8 @@ const totalPage = computed(() => {
|
||||
}
|
||||
return r;
|
||||
});
|
||||
const currentPage: Ref<number> = ref(1);
|
||||
|
||||
const currentPage: Ref<number> = ref(props.modelValue);
|
||||
const currentPageShow: Ref<number> = ref(currentPage.value);
|
||||
|
||||
const emit = defineEmits(["jump", "limit"]);
|
||||
|
||||
Reference in New Issue
Block a user