🔱: [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
@@ -20,6 +20,7 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
return {
output: {},
crudOptions: {
//大量数据的crud配置
request: {
pageRequest,
addRequest,
@@ -3,6 +3,7 @@ import mockUtil from "/src/mock/base";
const options: any = {
name: "AdvancedBigData",
idGenerator: 0,
//此处copy多次,模拟大量数据
copyTimes: 1000
};
const list = [
@@ -1,3 +1,4 @@
//此处演示从后台获取crudOptions配置字符串
export const crudOptions = `
({crudExpose,dict}) => {
return {
@@ -29,6 +29,7 @@ export default defineComponent({
// 页面打开后获取列表数据
onMounted(async () => {
const customValue = {};
//异步初始化fscreateCrudOptions为异步方法
const { crudExpose, context } = await useFsAsync({ crudRef, crudBinding, createCrudOptions, context: customValue });
// 刷新数据
await crudExpose.doRefresh();
@@ -9,6 +9,7 @@
<a-modal v-model:visible="dialogShow" width="80%" title="fs-crud in dialog">
<div style="height: 400px; position: relative">
<!-- 在此处显示fs-crud页面 -->
<fs-in-dialog></fs-in-dialog>
</div>
</a-modal>
@@ -17,6 +18,7 @@
<script lang="ts">
import { defineComponent, ref } from "vue";
//将fs-crud做成的页面在此处引入
import FsInDialog from "./crud/index.vue";
export default defineComponent({
name: "InDialog",