🔱: [client] sync upgrade with 3 commits [trident-sync]

chore: 一些小优化
chore: doc
This commit is contained in:
GitHub Actions Bot
2023-05-23 19:24:05 +00:00
parent 59f22ab17e
commit 02466ea0bd
7 changed files with 17 additions and 3 deletions
@@ -11,17 +11,17 @@
</template>
<script lang="ts">
import { defineComponent, ref, onMounted } from "vue";
import { defineComponent, ref, onMounted, reactive } from "vue";
import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, DelReq, dict, EditReq, useCrud, useFs, UserPageQuery, UserPageRes } from "@fast-crud/fast-crud";
import _ from "lodash-es";
//此处为crudOptions配置
const createCrudOptions = function ({}: CreateCrudOptionsProps): CreateCrudOptionsRet {
//本地模拟后台crud接口方法 ----开始
const records = [{ id: 1, name: "Hello World", type: 1 }];
const records = reactive([{ id: 1, name: "Hello World", type: 1 }]);
const pageRequest = async (query: UserPageQuery): Promise<UserPageRes> => {
return {
records: [...records],
records,
currentPage: 1,
pageSize: 20,
total: records.length