Skip to content

Commit

Permalink
fix(ProTable): 调整文档异常
Browse files Browse the repository at this point in the history
  • Loading branch information
yaob421123 committed Mar 31, 2023
1 parent 563c819 commit c1c936e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/base/src/pages/TableList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function Demo() {
pageSizeOptions: [10, 20, 30],
pageSize: 10,
onShowSizeChange: (current, pageSize) => {
console.log(current, pageSize)
// console.log(current, pageSize)
},
}}
columns={[
Expand Down
2 changes: 0 additions & 2 deletions packages/components/src/ProForm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,6 @@ const Demo = () => {
const validateList = formList.map(itm=>itm.validateFieldsAndGetValue()) || []
const values = await asyncAwaitFormList(validateList)
setState(values)
console.log("values",values)
// 调用接口
}

Expand Down Expand Up @@ -983,7 +982,6 @@ const Demo = () => {
const validateList = formList.map(itm=>itm.validateFieldsAndGetValue()) || []
const values = await asyncAwaitFormList(validateList)
setState(values)
console.log("values",values)
// 调用接口
}

Expand Down
1 change: 0 additions & 1 deletion packages/components/src/ProForm/utils/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,5 @@ export const fromValidate = (rules: FromValidateProps[] = []) => {
);
}
});
console.log(4456, errorObj);
return errorObj;
};
3 changes: 1 addition & 2 deletions packages/components/src/ProTable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
```jsx mdx:preview
import React from 'react';
import { ProTable, useTable } from '@uiw-admin/components';
import { Icon } from 'uiw';

function Demo1() {
const table = useTable('https://randomuser.me/api', {
Expand Down Expand Up @@ -63,7 +64,6 @@ function Demo1() {
widget: 'input',
initialValue: '',
widgetProps: {
preIcon: 'user',
placeholder: '输入用户名',
},
},
Expand Down Expand Up @@ -493,7 +493,6 @@ function Demo5() {
},
requestOptions: {method: 'GET'}
});
console.log(table)
return (
<ProTable
// 搜索栏按钮
Expand Down

0 comments on commit c1c936e

Please sign in to comment.