mirror of
https://github.com/certd/certd.git
synced 2026-04-25 21:27:32 +08:00
🔱: [client] sync upgrade with 3 commits [trident-sync]
build: publish success fix: 修复1.23.0 antdv下不显示pagination的bug
This commit is contained in:
@@ -8,7 +8,7 @@ import { FirstRow } from "./api";
|
||||
export type FirstContext = {
|
||||
test?: number;
|
||||
};
|
||||
export default async function ({ crudExpose, context }: CreateCrudOptionsProps<FirstRow, FirstContext>): Promise<CreateCrudOptionsRet<FirstRow>> {
|
||||
export default function ({ crudExpose, context }: CreateCrudOptionsProps<FirstRow, FirstContext>): CreateCrudOptionsRet<FirstRow> {
|
||||
context.test = 111;
|
||||
return {
|
||||
crudOptions: {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { nextTick, onMounted } from "vue";
|
||||
import { useFsAsync, useFsRef } from "@fast-crud/fast-crud";
|
||||
import { useFs, useFsRef } from "@fast-crud/fast-crud";
|
||||
import createCrudOptions, { FirstContext } from "./crud";
|
||||
import { FirstRow } from "./api";
|
||||
import { useTour } from "./use-tour";
|
||||
@@ -22,10 +22,9 @@ import { useTour } from "./use-tour";
|
||||
const { crudRef, crudBinding, crudExpose, context } = useFsRef();
|
||||
|
||||
const { open, current, steps, handleOpen } = useTour();
|
||||
|
||||
useFs<FirstRow, FirstContext>({ crudRef, crudBinding, crudExpose, createCrudOptions, context });
|
||||
// 页面打开后获取列表数据
|
||||
onMounted(async () => {
|
||||
const { crudExpose } = await useFsAsync<FirstRow, FirstContext>({ crudRef, crudBinding, createCrudOptions, context });
|
||||
await crudExpose.doRefresh();
|
||||
await nextTick();
|
||||
await nextTick();
|
||||
|
||||
Reference in New Issue
Block a user