Skip to content

Commit

Permalink
feat: v4.0.37
Browse files Browse the repository at this point in the history
  • Loading branch information
hocgin committed Dec 20, 2021
1 parent a2e2491 commit 4eedb85
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions src/Promise/demos/scheme-archive-config.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Dom } from '@hocgin/ui';
import { Dom, Utils } from '@hocgin/ui';
import treedata from './data-tree';

export const config: any = {
Expand Down Expand Up @@ -49,12 +49,13 @@ export const config: any = {
},
params: {
useAction: {
initialValues: async (params: Record<string, any>) => [
{
key: 'lab',
value: 'vx',
},
],
initialValues: async (params: Record<string, any>) =>
Utils.Lang.sleep(1000).then(() => [
{
key: '这是key字段',
value: 'vx',
},
]),
},
},
},
Expand All @@ -70,24 +71,20 @@ export const config: any = {
return [
{
key: '22',
title: 'search2',
title: 'search sleep',
dataIndex: 'search2',
valueType: Dom.columnPrefix('search'),
hideInTable: true,
valueEnum: {
[search2]: search2Name,
},
valueEnum: { [search2]: search2Name },
params: {
useAction: {
initialValues: async (params: Record<string, any>) => {
console.log('请求 search2', params);
return [
initialValues: async (params: Record<string, any>) =>
Utils.Lang.sleep(1000).then(() => [
{
key: 'lab',
key: '这是key字段',
value: 'vx',
},
];
},
]),
},
},
},
Expand Down

0 comments on commit 4eedb85

Please sign in to comment.