diff --git a/.gitignore b/.gitignore index 044373f..ccf8139 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ dist-ssr *.sln *.sw? doc_build +src/adaptor/ diff --git a/bun.lockb b/bun.lockb index d0d56ea..382b740 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/docs/index.mdx b/docs/index.mdx index 0a3bd12..7ea8880 100644 --- a/docs/index.mdx +++ b/docs/index.mdx @@ -26,111 +26,3 @@ features: details: Through its extension mechanism, you can easily extend theme UI and build process. icon: 🔥 --- -```tsx -/** - * inline: true - */ -import React from 'react'; -import {Overview} from 'proformily'; - -// const prefix = process.env.NODE_ENV === 'development' ? '/components' : '/fireformily/components'; -// const prefixPro = process.env.NODE_ENV === 'development' ? '/pro' : '/fireformily/pro'; -const prefix = '' - -const groups = [ - // { - // title: '优雅阅读态组件', - // prefix, - // children: [ - // { - // title: 'Dict', - // subtitle: '远程词典', - // cover: 'https://gw.alipayobjects.com/zos/antfincdn/AwU0Cv%26Ju/bianzu%2525208.svg', - // link: '/dict' - // }, - // { - // title: 'ImageView', - // subtitle: '图片查看', - // cover: 'https://gw.alipayobjects.com/zos/antfincdn/D1dXz9PZqa/image.svg', - // link: '/image-view' - // }, - // { - // title: 'LongText', - // subtitle: '长文本', - // cover: 'https://gw.alipayobjects.com/zos/alicdn/Vyyeu8jq2/Tooltp.svg', - // link: '/long-text' - // }, - // ], - // }, - { - title: '专业级组件', - prefix, - children: [ - { - title: 'ArrayTablePro', - subtitle: '专业列表', - cover: 'https://gw.alipayobjects.com/zos/antfincdn/AwU0Cv%26Ju/bianzu%2525208.svg', - link: '/pro-table' - }, - // { - // title: 'QueryList', - // subtitle: '查询列表', - // cover: 'https://gw.alipayobjects.com/zos/antfincdn/AwU0Cv%26Ju/bianzu%2525208.svg', - // link: '/query-list' - // }, - // { - // title: 'PopActions', - // subtitle: '弹窗动作表单', - // cover: 'https://gw.alipayobjects.com/zos/alicdn/3StSdUlSH/Modal.svg', - // link: '/pop-actions' - // }, - // { - // title: 'Linkage', - // subtitle: '级联选择', - // cover: 'https://gw.alipayobjects.com/zos/alicdn/UdS8y8xyZ/Cascader.svg', - // link: '/linkage' - // }, - // { - // title: 'Suggestion', - // subtitle: '搜索建议', - // cover: 'https://gw.alipayobjects.com/zos/alicdn/qtJm4yt45/AutoComplete.svg', - // link: '/suggestion' - // }, - // { - // title: 'TreeNodes', - // subtitle: '节点树', - // cover: 'https://gw.alipayobjects.com/zos/alicdn/Xh-oWqg9k/Tree.svg', - // link: '/tree-nodes' - // }, - ] - }, - // { - // title: '最佳实践', - // prefix: prefixPro, - // children: [ - // { - // title: 'Dict', - // subtitle: '远程词典', - // cover: 'https://gw.alipayobjects.com/zos/antfincdn/AwU0Cv%26Ju/bianzu%2525208.svg', - // link: '/dict' - // }, - // { - // title: 'TreeBase', - // subtitle: '基础树', - // cover: 'https://gw.alipayobjects.com/zos/alicdn/Xh-oWqg9k/Tree.svg', - // link: '/tree-base' - // }, - // { - // title: '响应式编程 in React', - // subtitle: 'useLive', - // cover: 'https://gw.alipayobjects.com/zos/alicdn/kegYxl1wj/ConfigProvider.svg', - // link: '/live' - // }, - // ], - // }, -]; - -export default () => { - return -} -``` diff --git a/docs/pro-table/demos/ArrayTablePro.tsx b/docs/pro-table/demos/ArrayTablePro.tsx index 4cc4b05..7e2b57b 100644 --- a/docs/pro-table/demos/ArrayTablePro.tsx +++ b/docs/pro-table/demos/ArrayTablePro.tsx @@ -14,6 +14,7 @@ import { import { FormProvider, ISchema, createSchemaField } from "@formily/react"; import { Button, ConfigProvider, Divider, Space } from "antd"; import "antd/dist/antd.css"; +// import "antd/dist/antd.css"; import zhCN from "antd/lib/locale/zh_CN"; import moment from "moment"; import "moment/locale/zh-cn"; @@ -23,18 +24,19 @@ import { ArrayTablePro, useArrayCompPropsOf, useFormArrayProps, -} from "proformily"; +} from "@proformily/antd"; import { useEffect } from "react"; const CustomeToolbar = () => { const array = ArrayBase.useArray!(); - const [, $row] = useArrayCompPropsOf(array.field, "rowSelection"); + const [, $row] = useArrayCompPropsOf(array?.field, "rowSelection"); return (