Skip to content

Commit

Permalink
fix: 修复ci报错
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenlingasMx committed Jun 10, 2023
1 parent e94e18f commit ff2a4be
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 129 deletions.
6 changes: 3 additions & 3 deletions examples/antdp-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
"@antdp/hooks": "2.0.18",
"@antdp/request": "2.0.18",
"ahooks": "~3.7.2",
"antd": "5.4.7",
"antd": "5.6.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"overrides": {
"dva": "^2.6.0-beta.20",
"antd": "5.4.7"
"antd": "5.6.1"
},
"resolutions": {
"dva": "^2.6.0-beta.20",
"antd": "5.4.7"
"antd": "5.6.1"
},
"devDependencies": {
"@antdp/config": "2.0.18",
Expand Down
62 changes: 27 additions & 35 deletions examples/antdp-base/src/pages/Components/ProDescriptions/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,15 @@ const Page = () => {
<Card>
<ProDescriptions
title="用户信息"
request={async () => {
return Promise.resolve({
success: true,
data: {
id: '这是一段文本columns',
date: '20200809',
money: '1212100',
money2: -12345.33,
state: 'all',
switch: true,
state2: 'open',
},
});
dataSource={{
id: '这是一段文本columns',
date: '20200809',
money: '1212100',
money3: '1212100',
money2: -12345.33,
state: 'all',
switch: true,
state2: 'open',
}}
columns={[
{
Expand Down Expand Up @@ -58,13 +54,13 @@ const Page = () => {
{
title: '时间',
key: 'date',
dataIndex: 'date',
dataIndex: 'date2',
valueType: 'date',
},
{
title: '时间',
key: 'date',
dataIndex: 'date',
key: 'date2',
dataIndex: 'date2',
valueType: 'date',
fieldProps: {
format: 'DD.MM.YYYY',
Expand All @@ -87,8 +83,8 @@ const Page = () => {
},
{
title: 'money无符号',
key: 'money',
dataIndex: 'money',
key: 'money3',
dataIndex: 'mone3',
valueType: 'money',
fieldProps: {
moneySymbol: false,
Expand All @@ -110,19 +106,15 @@ const Page = () => {
<Card>
<ProDescriptions
title="客户信息"
request={async () => {
return Promise.resolve({
success: true,
data: {
id: '这是一段文本columns',
date: '20200809',
money: '1212100',
money2: -12345.33,
state: 'all',
switch: true,
state2: 'open',
},
});
dataSource={{
id: '这是一段文本columns',
date: '20200809',
money: '1212100',
money3: '1212100',
money2: -12345.33,
state: 'all',
switch: true,
state2: 'open',
}}
columns={[
{
Expand Down Expand Up @@ -160,8 +152,8 @@ const Page = () => {
},
{
title: '时间',
key: 'date',
dataIndex: 'date',
key: 'date2',
dataIndex: 'date2',
valueType: 'date',
fieldProps: {
format: 'DD.MM.YYYY',
Expand All @@ -184,8 +176,8 @@ const Page = () => {
},
{
title: 'money无符号',
key: 'money',
dataIndex: 'money',
key: 'money3',
dataIndex: 'money3',
valueType: 'money',
fieldProps: {
moneySymbol: false,
Expand Down
83 changes: 0 additions & 83 deletions examples/antdp-base/src/pages/Components/ProDescriptions/item.js

This file was deleted.

6 changes: 3 additions & 3 deletions examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
"@antdp/basic-layouts": "2.0.18",
"@antdp/hooks": "2.0.18",
"@antdp/user-login": "2.0.18",
"antd": "5.4.7",
"antd": "5.6.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"overrides": {
"dva": "^2.6.0-beta.20",
"antd": "5.4.7"
"antd": "5.6.1"
},
"resolutions": {
"dva": "^2.6.0-beta.20",
"antd": "5.4.7"
"antd": "5.6.1"
},
"devDependencies": {
"@antdp/config": "2.0.18",
Expand Down
2 changes: 1 addition & 1 deletion examples/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@uiw/react-markdown-preview": "4.1.10",
"@uiw/reset.css": "1.0.5",
"@wcj/dark-mode": "^1.0.15",
"antd": "5.4.7",
"antd": "5.6.1",
"markdown-react-code-preview-loader": "2.1.5",
"react-code-preview-layout": "3.0.0",
"react-test-renderer": "17.0.2",
Expand Down
3 changes: 1 addition & 2 deletions packages/antdp-ui/src/QuickForm/Hide/store.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import {
setValue,
setValues,
getValue,
} from 'rc-field-form/lib/utils/valueUtil';
import {
Expand Down Expand Up @@ -85,7 +84,7 @@ class Store {

private setInitialValues = (initialValues: {}, init: boolean) => {
if (init) {
this.store = setValues({}, initialValues, this.store);
this.store = Object.assign({}, this.store, initialValues);
}
};

Expand Down
5 changes: 3 additions & 2 deletions packages/antdp-ui/src/QuickForm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const QuickFormDemo = (props) => {
{
label: "备注",
name: "remark",
type: "input"
type: "input",
initialValue:"1234"
},
{
label: "水果",
Expand Down Expand Up @@ -195,7 +196,7 @@ export default QuickFormDemo
<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->
```jsx mdx:preview
import React, { useRef } from 'react';
import { QuickForm,CardPro,getChildFormItemFun } from '@antdp/antdp-ui'
import { QuickForm,CardPro } from '@antdp/antdp-ui'

const QuickFormDemo = (props) => {
const baseRef = useRef();
Expand Down

0 comments on commit ff2a4be

Please sign in to comment.