diff --git a/examples/antdp-base/package.json b/examples/antdp-base/package.json index 9de29e191..e3e2970ed 100644 --- a/examples/antdp-base/package.json +++ b/examples/antdp-base/package.json @@ -17,10 +17,10 @@ }, "dependencies": { "@ant-design/pro-components": "^2.4.14", - "@antdp/authorized": "2.0.19", - "@antdp/basic-layouts": "2.0.19", - "@antdp/hooks": "2.0.19", - "@antdp/request": "2.0.19", + "@antdp/authorized": "2.0.21", + "@antdp/basic-layouts": "2.0.21", + "@antdp/hooks": "2.0.21", + "@antdp/request": "2.0.21", "ahooks": "~3.7.2", "antd": "5.6.1", "react": "^18.2.0", @@ -35,8 +35,8 @@ "antd": "5.6.1" }, "devDependencies": { - "@antdp/config": "2.0.19", - "@antdp/dependencies": "2.0.19", + "@antdp/config": "2.0.21", + "@antdp/dependencies": "2.0.21", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", "@umijs/fabric": "~2.14.1", diff --git a/examples/basic/package.json b/examples/basic/package.json index 0f37493a2..179a296f8 100644 --- a/examples/basic/package.json +++ b/examples/basic/package.json @@ -1,7 +1,7 @@ { "name": "@example/basic", "private": true, - "version": "2.0.20", + "version": "2.0.21", "scripts": { "start": "max dev", "build": "max build", @@ -9,10 +9,10 @@ }, "dependencies": { "@ant-design/pro-components": "^2.4.14", - "@antdp/authorized": "2.0.20", - "@antdp/basic-layouts": "2.0.20", - "@antdp/hooks": "2.0.20", - "@antdp/user-login": "2.0.20", + "@antdp/authorized": "2.0.21", + "@antdp/basic-layouts": "2.0.21", + "@antdp/hooks": "2.0.21", + "@antdp/user-login": "2.0.21", "antd": "5.6.1", "react": "^18.2.0", "react-dom": "^18.2.0" @@ -26,8 +26,8 @@ "antd": "5.6.1" }, "devDependencies": { - "@antdp/config": "2.0.20", - "@antdp/dependencies": "2.0.20", + "@antdp/config": "2.0.21", + "@antdp/dependencies": "2.0.21", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", "@umijs/max": "~4.0.47", diff --git a/examples/website/package.json b/examples/website/package.json index 81d7e48e1..50a7a185c 100644 --- a/examples/website/package.json +++ b/examples/website/package.json @@ -1,6 +1,6 @@ { "name": "@example/website", - "version": "2.0.20", + "version": "2.0.21", "private": true, "description": "new webiste with kktp.", "scripts": { @@ -16,20 +16,20 @@ "react-dom": ">=16.14.0" }, "dependencies": { - "@antdp/antdp-ui": "2.0.20", - "@antdp/authorized": "2.0.20", - "@antdp/basic-layouts": "2.0.20", - "@antdp/config": "2.0.20", - "@antdp/dependencies": "2.0.20", - "@antdp/document-title": "2.0.20", - "@antdp/edit-table": "2.0.20", - "@antdp/fullscreen": "2.0.20", - "@antdp/fuzzy-query": "2.0.20", - "@antdp/hooks": "2.0.20", - "@antdp/layout-tabs": "2.0.20", - "@antdp/page-loading": "2.0.20", - "@antdp/request": "2.0.20", - "@antdp/user-login": "2.0.20", + "@antdp/antdp-ui": "2.0.21", + "@antdp/authorized": "2.0.21", + "@antdp/basic-layouts": "2.0.21", + "@antdp/config": "2.0.21", + "@antdp/dependencies": "2.0.21", + "@antdp/document-title": "2.0.21", + "@antdp/edit-table": "2.0.21", + "@antdp/fullscreen": "2.0.21", + "@antdp/fuzzy-query": "2.0.21", + "@antdp/hooks": "2.0.21", + "@antdp/layout-tabs": "2.0.21", + "@antdp/page-loading": "2.0.21", + "@antdp/request": "2.0.21", + "@antdp/user-login": "2.0.21", "@babel/plugin-proposal-private-property-in-object": "7.21.0", "@babel/plugin-syntax-unicode-sets-regex": "7.18.6", "@types/styled-components": "^5.1.26", diff --git a/lerna.json b/lerna.json index 12b018fd3..d55dd9083 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "packages": ["examples/*", "packages/*"], - "version": "2.0.20", + "version": "2.0.21", "command": { "create": { "license": "MIT" diff --git a/packages/antdp-edit-table/README.md b/packages/antdp-edit-table/README.md index fe65c848a..f69c26341 100644 --- a/packages/antdp-edit-table/README.md +++ b/packages/antdp-edit-table/README.md @@ -1,12 +1,12 @@ EditTable 编辑表格 === -### 依赖安装 +## 依赖安装 ```bash npm i @antdp/edit-table ``` -### 基本使用 +## 基本使用 ```tsx mdx:preview import React from 'react'; import { Input, Col, InputNumber, Button, Select ,Form} from 'antd'; @@ -118,7 +118,7 @@ const EditableTable =() => { export default EditableTable ``` -### 操作列在第一列 +## 操作列在第一列 ```tsx mdx:preview import React from 'react'; import { Input, Col, InputNumber, Button, Select ,Form} from 'antd'; @@ -191,7 +191,7 @@ const EditableTable =() => { export default EditableTable ``` -### 显示删除按钮 +## 显示删除按钮 ```tsx mdx:preview import React from 'react'; import { Input, Col, InputNumber, Button, Select ,Form} from 'antd'; @@ -264,7 +264,7 @@ const EditableTable =() => { export default EditableTable ``` -### 允许同时编辑多行 +## 允许同时编辑多行 ```tsx mdx:preview import React from 'react'; import { Input, Col, InputNumber, Button, Select ,Form} from 'antd'; @@ -338,7 +338,7 @@ const EditableTable =() => { export default EditableTable ``` -### 无操作和新增 +## 无操作和新增 ```tsx mdx:preview import React from 'react'; import { Input, Col, InputNumber, Button, Select ,Form} from 'antd'; @@ -409,7 +409,7 @@ const EditableTable =() => { export default EditableTable ``` -### API +## API | 参数 | 说明 | 类型 | 默认值 | | -------- | -------- | -------- | -------- | | columns | 列 | `ColumnsProps[]` | - | @@ -429,7 +429,7 @@ export default EditableTable | addBtnProps | 新增按钮配置 | `ButtonProps` | - | | store | form 存储表单 | `Store` | - | -### ColumnsProps +## ColumnsProps | 参数 | 说明 | 类型 | 默认值 | | -------- | -------- | -------- | -------- | | editable | 是否编辑 | `boolean` | - | @@ -444,7 +444,7 @@ export default EditableTable | listAttr | List 组件参数 | `Omit` | - | | render | 自定义 渲染(列原始默认的自定义渲染,加了个 other 参数,不是编辑状态下的表格渲染) , other 参数 只有操作列才有 | `(value: any,record: any,index: number,other?: OtherProps) => React.ReactNode \| RenderedCell` | - | -### OtherProps +## OtherProps | 参数 | 说明 | 类型 | 默认值 | | -------- | -------- | -------- | -------- | | editingKey | 编辑中字段 | `any[]` | - | @@ -456,7 +456,7 @@ export default EditableTable | onDelete | 删除 ,`id:主键`, `rowItem 当前行数据` ,`index:下标` | `(id: string \| number, rowItem: any, index: number) => void` | - | | edit | 编辑 按钮 ,`record 当前行数` | `(record: any) => void` | - | -### ref 返回值 +## ref 返回值 | 参数 | 说明 | 类型 | 默认值 | | -------- | -------- | -------- | -------- | @@ -470,7 +470,7 @@ export default EditableTable | newAdd | 是否编辑 新增的数据 | `(string \| number)[]` | - | | forms | 收集 所有 表单 | `Store` | - | -### Item 组件参数 +## Item 组件参数 | 参数 | 说明 | 类型 | 默认值 | | -------- | -------- | -------- | -------- | | preName | 当前行数据存储父级的name list时不用传 | `string` | - | diff --git a/packages/antdp-edit-table/package.json b/packages/antdp-edit-table/package.json index ec0f7c3f3..8858cea52 100644 --- a/packages/antdp-edit-table/package.json +++ b/packages/antdp-edit-table/package.json @@ -1,6 +1,6 @@ { "name": "@antdp/edit-table", - "version": "2.0.20", + "version": "2.0.21", "description": "基于antd封装的组件", "license": "MIT", "main": "lib/index.js", diff --git a/packages/antdp-fuzzy-query/README.md b/packages/antdp-fuzzy-query/README.md index 249c05dad..42a2a2d55 100644 --- a/packages/antdp-fuzzy-query/README.md +++ b/packages/antdp-fuzzy-query/README.md @@ -1,13 +1,13 @@ FuzzyQuery 模糊查询 === -### 依赖安装 +## 依赖安装 ```bash npm i @antdp/fuzzy-query ``` -### 基本使用 +## 基本使用 ```tsx mdx:preview @@ -44,7 +44,7 @@ const Query =() => { export default Query ``` -### 延迟时间5s +## 延迟时间5s ```tsx mdx:preview import React from 'react'; import { Input, Col, InputNumber, Button, Select ,Form} from 'antd'; @@ -80,7 +80,7 @@ const Query =() => { export default Query ``` -### API +## API [更多参数参考 antd5 Select组件](https://ant.design/components/select-cn#api) | 参数 | 说明 | 类型 | 默认值 | diff --git a/packages/antdp-fuzzy-query/package.json b/packages/antdp-fuzzy-query/package.json index 63841628c..8c08fe1d4 100644 --- a/packages/antdp-fuzzy-query/package.json +++ b/packages/antdp-fuzzy-query/package.json @@ -1,6 +1,6 @@ { "name": "@antdp/fuzzy-query", - "version": "2.0.20", + "version": "2.0.21", "description": "基于antd封装的组件 模糊查询 自定义提示", "license": "MIT", "main": "lib/index.js", diff --git a/packages/antdp-ui/package.json b/packages/antdp-ui/package.json index 5f1d1008f..c529aba48 100644 --- a/packages/antdp-ui/package.json +++ b/packages/antdp-ui/package.json @@ -1,6 +1,6 @@ { "name": "@antdp/antdp-ui", - "version": "2.0.20", + "version": "2.0.21", "description": "基于antd封装的组件", "homepage": "https://antdpro.github.io/antdp", "main": "lib/index.js", @@ -29,7 +29,7 @@ }, "dependencies": { "@ant-design/icons": "5.1.4", - "@antdp/authorized": "2.0.20", + "@antdp/authorized": "2.0.21", "@babel/runtime": "~7.20.1", "classnames": "2.3.2", "immutability-helper": "^3.1.1", diff --git a/packages/antdp-ui/src/ButtonGroupPro/README.md b/packages/antdp-ui/src/ButtonGroupPro/README.md index 3b9810210..e122221fa 100644 --- a/packages/antdp-ui/src/ButtonGroupPro/README.md +++ b/packages/antdp-ui/src/ButtonGroupPro/README.md @@ -4,7 +4,7 @@ ButtonGroupPro ButtonGroupPro权限按钮组 -### 案例 +## 案例 ```tsx mdx:preview import React from "react"; @@ -40,7 +40,7 @@ const Demo = ()=>( export default Demo; ``` -### Props +## Props 组件继承antd的 [`Button`](https://ant.design/components/button-cn/#header) diff --git a/packages/antdp-ui/src/CardPro/README.md b/packages/antdp-ui/src/CardPro/README.md index 10d08a06c..83aa090c7 100644 --- a/packages/antdp-ui/src/CardPro/README.md +++ b/packages/antdp-ui/src/CardPro/README.md @@ -6,7 +6,7 @@ CardPro 卡片 > 🚧 该组件为内用组件, 取消了 `Card` 默认的 `border` 支持自定义样式 -### 基础示例 +## 基础示例 ```jsx mdx:preview import React from "react" @@ -23,7 +23,7 @@ const Demo = () => ( export default Demo ``` -### Props +## Props 组件继承 [`Card`](https://ant.design/components/card-cn/#header) diff --git a/packages/antdp-ui/src/FormDetail/README.md b/packages/antdp-ui/src/FormDetail/README.md index 6530a8e26..e2b4fbd3f 100644 --- a/packages/antdp-ui/src/FormDetail/README.md +++ b/packages/antdp-ui/src/FormDetail/README.md @@ -3,7 +3,7 @@ FormDetail 快速详情表单 快速生成详情表单表单。 -### 基础示例 +## 基础示例 @@ -44,7 +44,7 @@ export default FormDetailDemo; ``` -### Props +## Props | 参数 | 说明 | 类型 | 默认值 | | -------- | -------- | -------- | -------- | diff --git a/packages/antdp-ui/src/InputCount/README.md b/packages/antdp-ui/src/InputCount/README.md index 81e0c5c32..fa44edf9f 100644 --- a/packages/antdp-ui/src/InputCount/README.md +++ b/packages/antdp-ui/src/InputCount/README.md @@ -4,7 +4,7 @@ InputCount 可用于短信验证 -### 基础示例 +## 基础示例 ```jsx mdx:preview @@ -26,7 +26,7 @@ export default Demo ``` -### Props +## Props 组件继承 [`Input`](https://ant.design/components/input-cn/#header)[`Button`](https://ant.design/components/button-cn/#header) | 参数 | 说明 | 类型 | 默认值 | diff --git a/packages/antdp-ui/src/QuickForm/README.md b/packages/antdp-ui/src/QuickForm/README.md index 5de64eb90..489ea6905 100644 --- a/packages/antdp-ui/src/QuickForm/README.md +++ b/packages/antdp-ui/src/QuickForm/README.md @@ -3,7 +3,7 @@ QuickForm 快速表单 快速生成Form表单。 -### 基础示例 +## 基础示例 ```jsx mdx:preview @@ -36,7 +36,7 @@ const QuickFormDemo = (props) => { export default QuickFormDemo ``` -### 各种类型表单 +## 各种类型表单 ```jsx mdx:preview @@ -91,7 +91,7 @@ const QuickFormDemo = (props) => { export default QuickFormDemo ``` -### 表单排列 +## 表单排列 ```jsx mdx:preview @@ -124,7 +124,7 @@ const QuickFormDemo = (props) => { export default QuickFormDemo ``` -### 表单size +## 表单size ```jsx mdx:preview @@ -157,7 +157,7 @@ const QuickFormDemo = (props) => { export default QuickFormDemo ``` -### 折叠表单时每个面板右上角的内容 +## 折叠表单时每个面板右上角的内容 ```jsx mdx:preview @@ -191,7 +191,7 @@ const QuickFormDemo = (props) => { export default QuickFormDemo ``` -### 初始隐藏表单项 +## 初始隐藏表单项 ```jsx mdx:preview @@ -240,7 +240,7 @@ const QuickFormDemo = (props) => { export default QuickFormDemo ``` -### 表单提交验证 +## 表单提交验证 ```jsx mdx:preview @@ -289,7 +289,7 @@ export default QuickFormDemo ``` -### Props +## Props 组件继承[antd Form](https://ant.design/components/form-cn) | 参数 | 说明 | 类型 | 默认值 | @@ -309,7 +309,7 @@ export default QuickFormDemo | initialHide | 初始值 隐藏显示 字段对应的值 | `{ [x: string]: boolean }` | - | | initialHide | 初始值 隐藏显示 字段对应的值 | `{ [x: string]: boolean }` | - | -### itemProps +## itemProps | 参数 | 说明 | 类型 | 默认值 | | -------- | -------- | -------- | -------- | diff --git a/packages/antdp-ui/src/UploadGrid/README.md b/packages/antdp-ui/src/UploadGrid/README.md index d43b7bd0d..541928a8d 100644 --- a/packages/antdp-ui/src/UploadGrid/README.md +++ b/packages/antdp-ui/src/UploadGrid/README.md @@ -3,7 +3,7 @@ UploadGrid 可拖拽上传组件 UploadGrid 可拖拽上传组件。 -### 基础示例 +## 基础示例 ```jsx mdx:preview @@ -35,7 +35,7 @@ export default Demo; ``` -### Props +## Props 组件继承 [`antd Upload`](https:ant.design/components/upload-cn/#header) | 参数 | 说明 | 类型 | 默认值 | diff --git a/packages/antdp/package.json b/packages/antdp/package.json index 9d4e59a69..060659f45 100644 --- a/packages/antdp/package.json +++ b/packages/antdp/package.json @@ -1,6 +1,6 @@ { "name": "antdp", - "version": "2.0.20", + "version": "2.0.21", "description": "Ant Design Project", "repository": "https://github.com/antdpro/antdp/tree/master/packages/antdp", "homepage": "https://antdpro.github.io/antdp", @@ -11,16 +11,16 @@ "author": "jaywcjlove", "license": "MIT", "dependencies": { - "@antdp/antdp-ui": "2.0.20", - "@antdp/authorized": "2.0.20", - "@antdp/basic-layouts": "2.0.20", - "@antdp/config": "2.0.20", - "@antdp/dependencies": "2.0.20", - "@antdp/document-title": "2.0.20", - "@antdp/fullscreen": "2.0.20", - "@antdp/hooks": "2.0.20", - "@antdp/layout-tabs": "2.0.20", - "@antdp/page-loading": "2.0.20", - "@antdp/user-login": "2.0.20" + "@antdp/antdp-ui": "2.0.21", + "@antdp/authorized": "2.0.21", + "@antdp/basic-layouts": "2.0.21", + "@antdp/config": "2.0.21", + "@antdp/dependencies": "2.0.21", + "@antdp/document-title": "2.0.21", + "@antdp/fullscreen": "2.0.21", + "@antdp/hooks": "2.0.21", + "@antdp/layout-tabs": "2.0.21", + "@antdp/page-loading": "2.0.21", + "@antdp/user-login": "2.0.21" } } diff --git a/packages/authorized/package.json b/packages/authorized/package.json index 30e190fc9..29026f60a 100644 --- a/packages/authorized/package.json +++ b/packages/authorized/package.json @@ -1,6 +1,6 @@ { "name": "@antdp/authorized", - "version": "2.0.20", + "version": "2.0.21", "description": "通过判断是否进入主界面还是登录界面。", "homepage": "https://antdpro.github.io/antdp", "main": "lib/index.js", diff --git a/packages/basic-layouts/README.md b/packages/basic-layouts/README.md index 6299bc7be..3cdbcc331 100644 --- a/packages/basic-layouts/README.md +++ b/packages/basic-layouts/README.md @@ -334,7 +334,7 @@ export default () => { ## Message 由于antd 5.x需全局包裹App,引用message组件。我们在basic-layouts下也进行了注册。 -使用方法一 +### 方法一 ```jsx import { App } from 'antd'; import React from 'react'; @@ -351,7 +351,7 @@ const MyPage = () => { export default MyPage; ``` -使用方法二 +### 方法二 ```jsx import { Button, Space } from 'antd'; import React from 'react'; diff --git a/packages/basic-layouts/package.json b/packages/basic-layouts/package.json index 9597dd4c1..98c7ea1ae 100644 --- a/packages/basic-layouts/package.json +++ b/packages/basic-layouts/package.json @@ -1,6 +1,6 @@ { "name": "@antdp/basic-layouts", - "version": "2.0.20", + "version": "2.0.21", "description": "入口框架公共界面", "homepage": "https://antdpro.github.io/antdp", "main": "lib/index.js", @@ -29,10 +29,10 @@ }, "dependencies": { "@ant-design/icons": "5.1.4", - "@antdp/authorized": "2.0.20", - "@antdp/document-title": "2.0.20", - "@antdp/fullscreen": "2.0.20", - "@antdp/layout-tabs": "2.0.20", + "@antdp/authorized": "2.0.21", + "@antdp/document-title": "2.0.21", + "@antdp/fullscreen": "2.0.21", + "@antdp/layout-tabs": "2.0.21", "@babel/runtime": "~7.20.1" }, "devDependencies": { diff --git a/packages/config/package.json b/packages/config/package.json index 7e4eb82b1..3a1bd8289 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@antdp/config", - "version": "2.0.20", + "version": "2.0.21", "description": "路由配置", "homepage": "https://antdpro.github.io/antdp", "author": "antdp", diff --git a/packages/dependencies/package.json b/packages/dependencies/package.json index f305b44af..1f257917e 100644 --- a/packages/dependencies/package.json +++ b/packages/dependencies/package.json @@ -1,6 +1,6 @@ { "name": "@antdp/dependencies", - "version": "2.0.20", + "version": "2.0.21", "description": "核心依赖包,在这里升级依赖,包含底层编译 umi,代码检测等", "homepage": "https://antdpro.github.io/antdp", "repository": "https://github.com/antdpro/antdp/tree/master/packages/dependencies", diff --git a/packages/document-title/package.json b/packages/document-title/package.json index a33026262..b4dd10124 100644 --- a/packages/document-title/package.json +++ b/packages/document-title/package.json @@ -1,6 +1,6 @@ { "name": "@antdp/document-title", - "version": "2.0.20", + "version": "2.0.21", "description": "设置页面标题", "homepage": "https://antdpro.github.io/antdp", "sideEffects": false, diff --git a/packages/fullscreen/package.json b/packages/fullscreen/package.json index c89f64810..8f80b1b45 100644 --- a/packages/fullscreen/package.json +++ b/packages/fullscreen/package.json @@ -1,6 +1,6 @@ { "name": "@antdp/fullscreen", - "version": "2.0.20", + "version": "2.0.21", "description": "设置页面全屏", "homepage": "https://antdpro.github.io/antdp", "main": "lib/index.js", diff --git a/packages/hooks/package.json b/packages/hooks/package.json index 3cf5eab02..63891dac9 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -1,6 +1,6 @@ { "name": "@antdp/hooks", - "version": "2.0.20", + "version": "2.0.21", "description": "@/antdp-hooks", "homepage": "https://antdpro.github.io/antdp", "main": "lib/index.js", diff --git a/packages/icons/package.json b/packages/icons/package.json index 4f03d4ca3..abf8817c5 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -1,6 +1,6 @@ { "name": "@antdp/icons", - "version": "2.0.20", + "version": "2.0.21", "private": true, "description": "解决 antd 4.x Icon 组件不存在问题,通过老的方式调用新的图标组件。", "main": "lib/index.js", diff --git a/packages/layout-tabs/package.json b/packages/layout-tabs/package.json index 3077654e3..b9fceeeff 100644 --- a/packages/layout-tabs/package.json +++ b/packages/layout-tabs/package.json @@ -1,6 +1,6 @@ { "name": "@antdp/layout-tabs", - "version": "2.0.20", + "version": "2.0.21", "description": "用于主框架选项卡组件。", "homepage": "https://antdpro.github.io/antdp", "sideEffects": [ diff --git a/packages/page-loading/package.json b/packages/page-loading/package.json index 66d647a05..b252f81c1 100644 --- a/packages/page-loading/package.json +++ b/packages/page-loading/package.json @@ -1,6 +1,6 @@ { "name": "@antdp/page-loading", - "version": "2.0.20", + "version": "2.0.21", "description": "页面过渡动画组件。", "homepage": "https://antdpro.github.io/antdp", "main": "lib/index.js", diff --git a/packages/request/package.json b/packages/request/package.json index 2a415b090..a0cb48a47 100644 --- a/packages/request/package.json +++ b/packages/request/package.json @@ -1,6 +1,6 @@ { "name": "@antdp/request", - "version": "2.0.20", + "version": "2.0.21", "description": "@/antdp-request", "homepage": "https://antdpro.github.io/antdp", "main": "lib/index.js", diff --git a/packages/user-login/package.json b/packages/user-login/package.json index ff7e3eaf0..f8a35fbb7 100644 --- a/packages/user-login/package.json +++ b/packages/user-login/package.json @@ -1,6 +1,6 @@ { "name": "@antdp/user-login", - "version": "2.0.20", + "version": "2.0.21", "description": "用户登录页面", "homepage": "https://antdpro.github.io/antdp", "sideEffects": [ @@ -32,8 +32,8 @@ }, "dependencies": { "@ant-design/icons": "5.1.4", - "@antdp/antdp-ui": "2.0.20", - "@antdp/document-title": "2.0.20", + "@antdp/antdp-ui": "2.0.21", + "@antdp/document-title": "2.0.21", "@babel/runtime": "~7.20.1" }, "devDependencies": {