From 6e4ca03f897ab4072efd509c29910d7ccfbc80b5 Mon Sep 17 00:00:00 2001 From: duenyang <377153400@qq.com> Date: Fri, 18 Oct 2024 17:24:19 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat(site):=20=E6=9B=B4=E6=96=B0=E7=BD=91?= =?UTF-8?q?=E7=AB=99=E8=B7=AF=E7=94=B1=20&=20=E5=A2=9E=E5=8A=A0CHANGELOG.m?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 101 ++++++++++++++++++++ site/pages/layout/component-layout.tsx | 1 + site/routes.tsx | 2 +- site/sidebar.config.ts | 125 +++++++++++-------------- src/divider/README.md | 14 +++ src/dropdown/README.md | 4 +- src/popup/popup.tsx | 1 - 7 files changed, 172 insertions(+), 76 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..fbb4263 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,101 @@ +--- +title: 更新日志 +docClass: timeline +toc: false +spline: explain +--- + +## 🌈 0.0.1-alpha.2 `2024-10-18` +### 🚀 Features +- `util`: convertToLightDomNode 将基于 Omi 的 Showdow Root 组件转成 LightDom @ming680 ([#68](https://github.com/TDesignOteam/tdesign-web-components/pull/68)) +- `affix`: affix complete🎉 @601odd ([#75](https://github.com/TDesignOteam/tdesign-web-components/pull/75)) +- `range-input`: range-input 组件 @ming680 ([#104](https://github.com/TDesignOteam/tdesign-web-components/pull/104)) +- `swiper`: 新增swiper组件 @jiasy1616 ([#116](https://github.com/TDesignOteam/tdesign-web-components/pull/116)) +- `tag-input`: 添加 tag-input 组件 @demoadminjie ([#114](https://github.com/TDesignOteam/tdesign-web-components/pull/114)) +- `list`: 新增list组件 @carolin913 ([#132](https://github.com/TDesignOteam/tdesign-web-components/pull/132)) +- `input`: 增加input组件密码可见切换/增加清除输入按钮 @nightchanges ([#119](https://github.com/TDesignOteam/tdesign-web-components/pull/119)) +- `tabs`: 完善除超长tabs header滚动外的功能 @LzhengH ([#139](https://github.com/TDesignOteam/tdesign-web-components/pull/139)) +- `inputNumber`: inputNumber @ming680 ([#148](https://github.com/TDesignOteam/tdesign-web-components/pull/148)) +- `dialog`: add dialog @novlan1 ([#110](https://github.com/TDesignOteam/tdesign-web-components/pull/110)) +### 🐞 Bug Fixes +- `menu`: fix 切换报错 && icon样式 @ming680 ([#89](https://github.com/TDesignOteam/tdesign-web-components/pull/89)) +- `input`: focus,blur double trigger @carolin913 ([#94](https://github.com/TDesignOteam/tdesign-web-components/pull/94)) +- `util`: fix convertToLightDom beforeRender @ming680 ([#118](https://github.com/TDesignOteam/tdesign-web-components/pull/118)) +- `icon`: 修复icon不居中显示和class重复设置问题 @duenyang ([#128](https://github.com/TDesignOteam/tdesign-web-components/pull/128)) +- `tag-input`: 修复 中文拼音输入bug(输入中文拼音时, 按backspace会删除之前存在的 tag) @demoadminjie ([#131](https://github.com/TDesignOteam/tdesign-web-components/pull/131)) +- `loading`: 修复慢速加载示例 @LzhengH ([#139](https://github.com/TDesignOteam/tdesign-web-components/pull/139)) +- `affix`: 修复示例滚动逻辑 @LzhengH ([#139](https://github.com/TDesignOteam/tdesign-web-components/pull/139)) +- `input`: 升级 omi fix input @ming680 ([#141](https://github.com/TDesignOteam/tdesign-web-components/pull/141)) +- `tag-input`: 1、fix 第一次点击无法删除,需要点两次,暂时通过阻止 mousedown 的默认事件防止触发input blur 后续需要omi排查 2、fix 输入文字后展示不全 @ming680 ([#142](https://github.com/TDesignOteam/tdesign-web-components/pull/142)) +- `menu`: fix 收起样式 @ming680 ([#149](https://github.com/TDesignOteam/tdesign-web-components/pull/149)) +- `slider`: 与 input 联动 @novlan1 ([#144](https://github.com/TDesignOteam/tdesign-web-components/pull/144)) +### 🚧 Others +- 网站&组件&目录整理 @duenyang ([#1](https://github.com/TDesignOteam/tdesign-web-components/pull/1)) +- feat: 优化路由跳转 @duenyang ([#2](https://github.com/TDesignOteam/tdesign-web-components/pull/2)) +- feat: fix anchor style && some optimize @duenyang ([#3](https://github.com/TDesignOteam/tdesign-web-components/pull/3)) +- chore(lint): 增加代码自动格式化 & 优化目录 & commit msg 格式化 & common子仓库 @duenyang ([#4](https://github.com/TDesignOteam/tdesign-web-components/pull/4)) +- feat(button): button complete 🎉 @duenyang ([#5](https://github.com/TDesignOteam/tdesign-web-components/pull/5)) +- feat(site): site build complete 🎉 @duenyang ([#21](https://github.com/TDesignOteam/tdesign-web-components/pull/21)) +- [Build]构建并支持esm、cjs、umd和按需加载,支持通过less变量和css变量修改主题 @duenyang ([#38](https://github.com/TDesignOteam/tdesign-web-components/pull/38)) +- chore(workflow): Add GitHub Workflow @sa03 ([#39](https://github.com/TDesignOteam/tdesign-web-components/pull/39)) +- chore(workflow): 调整 Workflow 配置 @sa03 ([#40](https://github.com/TDesignOteam/tdesign-web-components/pull/40)) +- fix(type): fix TNode type @duenyang ([#46](https://github.com/TDesignOteam/tdesign-web-components/pull/46)) +- chore(workflow): pull request jobs @sa03 ([#50](https://github.com/TDesignOteam/tdesign-web-components/pull/50)) +- feat(switch): switch complete 🎉 @duenyang ([#54](https://github.com/TDesignOteam/tdesign-web-components/pull/54)) +- feat(switch): switch complete 🎉 @duenyang ([#55](https://github.com/TDesignOteam/tdesign-web-components/pull/55)) +- feat: textarea问题修复 @haishancai ([#49](https://github.com/TDesignOteam/tdesign-web-components/pull/49)) +- feat(popup): add popup 🎉 @duenyang ([#59](https://github.com/TDesignOteam/tdesign-web-components/pull/59)) +- [feat]: add image,divider,space @carolin913 ([#58](https://github.com/TDesignOteam/tdesign-web-components/pull/58)) +- feat(tooltip): add tooltip 🎉 @duenyang ([#61](https://github.com/TDesignOteam/tdesign-web-components/pull/61)) +- feat(loading): add loading adn portal 🎉 @duenyang ([#64](https://github.com/TDesignOteam/tdesign-web-components/pull/64)) +- feat(avatar): add avatar component @aaronmhl ([#70](https://github.com/TDesignOteam/tdesign-web-components/pull/70)) +- feat(collpase): add collapse component @novlan1 ([#66](https://github.com/TDesignOteam/tdesign-web-components/pull/66)) +- Feature/collapse transition @novlan1 ([#72](https://github.com/TDesignOteam/tdesign-web-components/pull/72)) +- add slider component @novlan1 ([#71](https://github.com/TDesignOteam/tdesign-web-components/pull/71)) +- chore: update prop type @novlan1 ([#80](https://github.com/TDesignOteam/tdesign-web-components/pull/80)) +- Refactor/avatar @aaronmhl ([#79](https://github.com/TDesignOteam/tdesign-web-components/pull/79)) +- Feature/menu @ming680 ([#76](https://github.com/TDesignOteam/tdesign-web-components/pull/76)) +- Feature/icon @duenyang ([#81](https://github.com/TDesignOteam/tdesign-web-components/pull/81)) +- Feature/popconfirm @LzhengH ([#85](https://github.com/TDesignOteam/tdesign-web-components/pull/85)) +- feat(back-top): add back top component @Tzz1194593491 ([#74](https://github.com/TDesignOteam/tdesign-web-components/pull/74)) +- fix(submodule): 归正版本 @duenyang ([#90](https://github.com/TDesignOteam/tdesign-web-components/pull/90)) +- feat(grid): grid complete 🎉 @duenyang ([#91](https://github.com/TDesignOteam/tdesign-web-components/pull/91)) +- chore(spell-check): 移除对dom.ts文件的检查 @duenyang ([#93](https://github.com/TDesignOteam/tdesign-web-components/pull/93)) +- feat(tag): add tag component @carolin913 ([#92](https://github.com/TDesignOteam/tdesign-web-components/pull/92)) +- feat(input): add input component and its examples @HOWARD-WANG-323 ([#78](https://github.com/TDesignOteam/tdesign-web-components/pull/78)) +- fix(omi): 处理 isLightDOM 模式时会重复渲染DOM情况 @duenyang ([#96](https://github.com/TDesignOteam/tdesign-web-components/pull/96)) +- fix(omi): isLightDom 重复渲染 @duenyang ([#99](https://github.com/TDesignOteam/tdesign-web-components/pull/99)) +- docs(avatar): update avatar docs @aaronmhl ([#100](https://github.com/TDesignOteam/tdesign-web-components/pull/100)) +- feat(alert): add alert component @Tzz1194593491 ([#97](https://github.com/TDesignOteam/tdesign-web-components/pull/97)) +- feat(dropdown): dropdown complete 🎉 @duenyang ([#106](https://github.com/TDesignOteam/tdesign-web-components/pull/106)) +- Feature/dropdown @duenyang ([#107](https://github.com/TDesignOteam/tdesign-web-components/pull/107)) +- Feat/radio @LzhengH ([#105](https://github.com/TDesignOteam/tdesign-web-components/pull/105)) +- `chore`: 完善PR CI工作流 复用主仓库部分 @uyarn ([#112](https://github.com/TDesignOteam/tdesign-web-components/pull/112)) +- `chore`: 删除暂未使用的CI 需要使用再按需补充 @uyarn ([#112](https://github.com/TDesignOteam/tdesign-web-components/pull/112)) +- `chore`: 暂时没有 `test script`,暂时移除build 类型文件 保证流程完整 @duenyang @uyarn ([#112](https://github.com/TDesignOteam/tdesign-web-components/pull/112)) +- feat(checkbox): 完成checkbox组件 @1379255913 ([#103](https://github.com/TDesignOteam/tdesign-web-components/pull/103)) +- feat: completed all functions of the card component and wrote test sa… @zyy-bupt2022 ([#87](https://github.com/TDesignOteam/tdesign-web-components/pull/87)) +- fix icon @duenyang ([#125](https://github.com/TDesignOteam/tdesign-web-components/pull/125)) +- Feat/link 增加link组件及相关api文档 @nightchanges ([#123](https://github.com/TDesignOteam/tdesign-web-components/pull/123)) +- Feature/badge 增加badge组件 @Tzz1194593491 ([#124](https://github.com/TDesignOteam/tdesign-web-components/pull/124)) +- feat(breadcrumb): add breadcrumb component @Lyan-u ([#108](https://github.com/TDesignOteam/tdesign-web-components/pull/108)) +- feat(watermark): add watermark component @zzzp9527 ([#101](https://github.com/TDesignOteam/tdesign-web-components/pull/101)) +- fix(watermark): 修复watermark无法生成水印及其它展示问题 @duenyang ([#130](https://github.com/TDesignOteam/tdesign-web-components/pull/130)) +- feat(upload): add upload component @wadwings ([#126](https://github.com/TDesignOteam/tdesign-web-components/pull/126)) +- feat(progress): add new component progress @carolin913 ([#133](https://github.com/TDesignOteam/tdesign-web-components/pull/133)) +- feat(notification): add new component notification @LzhengH ([#135](https://github.com/TDesignOteam/tdesign-web-components/pull/135)) +- feat(skeleton): add new component skeleton @carolin913 ([#134](https://github.com/TDesignOteam/tdesign-web-components/pull/134)) +- tabs compelete🎉 @601odd ([#127](https://github.com/TDesignOteam/tdesign-web-components/pull/127)) +- fix(progress): icons use single tag @carolin913 ([#137](https://github.com/TDesignOteam/tdesign-web-components/pull/137)) +- feat(message): add message @Tzz1194593491 ([#136](https://github.com/TDesignOteam/tdesign-web-components/pull/136)) +- fix(icon): 修复多次渲染问题 @duenyang ([#140](https://github.com/TDesignOteam/tdesign-web-components/pull/140)) +- fix(useDragSorter hooks): 文件位置移动 @duenyang ([#143](https://github.com/TDesignOteam/tdesign-web-components/pull/143)) +- fix(input): fix input 受控 @ming680 ([#147](https://github.com/TDesignOteam/tdesign-web-components/pull/147)) +- feat(select-input): 完成select-input&优化popup @duenyang ([#146](https://github.com/TDesignOteam/tdesign-web-components/pull/146)) +- fix(dropdown): dropdown问题修复 @duenyang ([#150](https://github.com/TDesignOteam/tdesign-web-components/pull/150)) +- fix(omi-transition): 修复同一个页面注册多次动画覆盖的问题 @duenyang ([#151](https://github.com/TDesignOteam/tdesign-web-components/pull/151)) +- fix(doc): doc类型README.md无法高亮显示代码块问题 @duenyang ([#152](https://github.com/TDesignOteam/tdesign-web-components/pull/152)) +- feat(api): 规范innerStyle和innerClass @duenyang ([#154](https://github.com/TDesignOteam/tdesign-web-components/pull/154)) +- fix(type): fix tsc build type @duenyang ([#155](https://github.com/TDesignOteam/tdesign-web-components/pull/155)) +- feat(publish): 修复在vite、webpack环境中使用问题 @duenyang ([#157](https://github.com/TDesignOteam/tdesign-web-components/pull/157)) +- feat(popup): 优化popup & 发布测试版本 @duenyang ([#158](https://github.com/TDesignOteam/tdesign-web-components/pull/158)) \ No newline at end of file diff --git a/site/pages/layout/component-layout.tsx b/site/pages/layout/component-layout.tsx index 4accfec..7f34e62 100644 --- a/site/pages/layout/component-layout.tsx +++ b/site/pages/layout/component-layout.tsx @@ -6,6 +6,7 @@ import styles from 'tdesign-site-components/lib/styles/style.css?raw'; import sidebarConfig from '../../sidebar.config.ts'; const routerList = JSON.parse(JSON.stringify(sidebarConfig).replace(/component:.+/g, '')); + @tag('component-layout') export class ComponentLayout extends Component<{ children?: VNode | VNode[] }> { asideRef: Element | null = null; diff --git a/site/routes.tsx b/site/routes.tsx index 4feffca..2cd6456 100644 --- a/site/routes.tsx +++ b/site/routes.tsx @@ -19,7 +19,7 @@ function createComponentRoutes(config: any[] = []) { export const routes = [ { path: '/', - redirect: '/components/button', + redirect: '/webcomponents/getting-started', }, ...createComponentRoutes(sidebar), { diff --git a/site/sidebar.config.ts b/site/sidebar.config.ts index 7053a28..d375bb8 100644 --- a/site/sidebar.config.ts +++ b/site/sidebar.config.ts @@ -8,36 +8,35 @@ export default [ title: '快速开始', titleEn: 'Getting Started', name: 'getting-started', - path: '/getting-started', + path: '/webcomponents/getting-started', component: () => import('@docs/getting-started.md'), }, { title: '自定义主题', titleEn: 'Theme Customization', name: 'custom-theme', - path: '/custom-theme', + path: '/webcomponents/custom-theme', component: () => import('@common/theme.md'), }, { title: '最佳实践', titleEn: 'Starter Kit', name: 'quick-start', - path: '/quick-start', + path: '/webcomponents/quick-start', component: () => import('@docs/starter.md'), }, - // 暂时注释 - // { - // title: '更新日志', - // titleEn: 'CHANGELOG', - // name: 'changelog', - // path: '/changelog', - // component: () => import('@/CHANGELOG.md'), - // }, + { + title: '更新日志', + titleEn: 'CHANGELOG', + name: 'changelog', + path: '/webcomponents/changelog', + component: () => import('@/CHANGELOG.md'), + }, { title: '组件概览', titleEn: 'Overview', name: 'overview', - path: '/overview', + path: '/webcomponents/overview', component: () => import('@common/docs/web/overview.md'), }, ], @@ -50,19 +49,19 @@ export default [ { title: 'Button 按钮', name: 'button', - path: '/components/button', + path: '/webcomponents/components/button', component: () => import('tdesign-web-components/button/README.md'), }, { title: 'Icon 图标', name: 'icon', - path: '/components/icon', + path: '/webcomponents/components/icon', component: () => import('tdesign-web-components/icon/README.md'), }, { title: 'Link 链接', name: 'link', - path: '/components/link', + path: '/webcomponents/components/link', component: () => import('tdesign-web-components/link/README.md'), }, ], @@ -76,19 +75,19 @@ export default [ { title: 'Divider 分割线', name: 'divider', - path: '/components/divider', + path: '/webcomponents/components/divider', component: () => import('tdesign-web-components/divider/README.md'), }, { title: 'Space 间距', name: 'space', - path: '/components/space', + path: '/webcomponents/components/space', component: () => import('tdesign-web-components/space/README.md'), }, { title: 'Grid 栅格', name: 'grid', - path: '/components/grid', + path: '/webcomponents/components/grid', component: () => import('tdesign-web-components/grid/README.md'), }, ], @@ -102,38 +101,38 @@ export default [ { title: 'Affix 固钉', name: 'menu', - path: '/components/affix', + path: '/webcomponents/components/affix', component: () => import('tdesign-web-components/affix/README.md'), }, { title: 'Dropdown 下拉菜单', titleEn: 'Dropdown', name: 'dropdown', - path: '/components/dropdown', + path: '/webcomponents/components/dropdown', component: () => import('tdesign-web-components/dropdown/README.md'), }, { title: 'Menu 导航菜单', name: 'menu', - path: '/components/menu', + path: '/webcomponents/components/menu', component: () => import('tdesign-web-components/menu/README.md'), }, { title: 'Breadcrumb 面包屑', name: 'breadcrumb', - path: '/components/breadcrumb', + path: '/webcomponents/components/breadcrumb', component: () => import('tdesign-web-components/breadcrumb/README.md'), }, { title: 'BackTop 回到顶部', name: 'backTop', - path: '/components/backTop', + path: '/webcomponents/components/backTop', component: () => import('tdesign-web-components/back-top/README.md'), }, { title: 'Tabs 选项卡', name: 'tabs', - path: '/components/tabs', + path: '/webcomponents/components/tabs', component: () => import('tdesign-web-components/tabs/README.md'), }, ], @@ -146,74 +145,68 @@ export default [ { title: 'Checkbox 多选框', name: 'checkbox', - path: '/components/checkbox', + path: '/webcomponents/components/checkbox', component: () => import('tdesign-web-components/checkbox/README.md'), }, { title: 'Input 输入框', name: 'input', - path: '/components/input', + path: '/webcomponents/components/input', component: () => import('tdesign-web-components/input/README.md'), }, { title: 'InputNumber 数字输入框', name: 'input-number', - path: '/components/input-number', + path: '/webcomponents/components/input-number', component: () => import('tdesign-web-components/input-number/README.md'), }, { title: 'RangeInput 范围输入框', name: 'range-input', - path: '/components/range-input', + path: '/webcomponents/components/range-input', component: () => import('tdesign-web-components/range-input/README.md'), }, { title: 'SelectInput 筛选器输入框', name: 'select-input', docType: 'form', - path: '/components/select-input', + path: '/webcomponents/components/select-input', component: () => import('tdesign-web-components/select-input/README.md'), }, { title: 'TagInput 标签输入框', name: ' tag-input', - path: '/components/tag-input', + path: '/webcomponents/components/tag-input', component: () => import('tdesign-web-components/tag-input/README.md'), }, { title: 'Radio 单选框', name: 'radio', - path: '/components/radio', + path: '/webcomponents/components/radio', component: () => import('tdesign-web-components/radio/README.md'), }, - { - title: 'Select 选择器', - name: 'select', - path: '/components/select', - // component: () => import('tdesign-web-components/select/README.md'), - }, { title: 'Slider 滑块', name: 'slider', - path: '/components/slider', + path: '/webcomponents/components/slider', component: () => import('tdesign-web-components/slider/README.md'), }, { title: 'Switch 开关', name: 'switch', - path: '/components/switch', + path: '/webcomponents/components/switch', component: () => import('tdesign-web-components/switch/README.md'), }, { title: 'Textarea 文本框', name: 'textarea', - path: '/components/textarea', + path: '/webcomponents/components/textarea', component: () => import('tdesign-web-components/textarea/README.md'), }, { title: 'Upload 上传', name: 'upload', - path: '/components/upload', + path: '/webcomponents/components/upload', component: () => import('tdesign-web-components/upload/README.md'), }, ], @@ -226,91 +219,79 @@ export default [ { title: 'Avatar 头像', name: 'avatar', - path: '/components/avatar', + path: '/webcomponents/components/avatar', component: () => import('tdesign-web-components/avatar/README.md'), }, { title: 'Badge 徽标', name: 'badge', - path: '/components/badge', + path: '/webcomponents/components/badge', component: () => import('tdesign-web-components/badge/README.md'), }, - { - title: 'Calendar 日历', - name: 'calendar', - path: '/components/calendar', - // component: () => import('tdesign-web-components/calendar/README.md'), - }, { title: 'Card 卡片', name: 'card', - path: '/components/card', + path: '/webcomponents/components/card', component: () => import('tdesign-web-components/card/README.md'), }, { title: 'Collapse 折叠面板', name: 'Collapse', - path: '/components/collapse', + path: '/webcomponents/components/collapse', component: () => import('tdesign-web-components/collapse/README.md'), }, - { - title: 'Table 表格', - name: 'table', - path: '/components/table', - // component: () => import('tdesign-web-components/table/README.md'), - }, { title: 'Tag 标签', name: 'tag', - path: '/components/tag', + path: '/webcomponents/components/tag', component: () => import('tdesign-web-components/tag/README.md'), }, { title: 'Image 图片', name: 'image', - path: '/components/image', + path: '/webcomponents/components/image', component: () => import('tdesign-web-components/image/README.md'), }, { title: 'List 列表', name: 'list', - path: '/components/list', + path: '/webcomponents/components/list', component: () => import('tdesign-web-components/list/README.md'), }, { title: 'Tooltip 文字提示', name: 'tooltip', - path: '/components/tooltip', + path: '/webcomponents/components/tooltip', component: () => import('tdesign-web-components/tooltip/README.md'), }, { title: 'Loading 加载', name: 'loading', - path: '/components/loading', + path: '/webcomponents/components/loading', component: () => import('tdesign-web-components/loading/README.md'), }, { title: 'Progress 进度条', name: 'progress', - path: '/components/progress', + path: '/webcomponents/components/progress', component: () => import('tdesign-web-components/progress/README.md'), }, { title: 'Skeleton 骨架屏', name: 'skeleton', - path: '/components/skeleton', + path: '/webcomponents/components/skeleton', component: () => import('tdesign-web-components/skeleton/README.md'), }, { title: 'Watermark 水印', name: 'watermark', - path: '/components/watermark', + path: '/webcomponents/components/watermark', component: () => import('tdesign-web-components/watermark/README.md'), }, { title: 'Swiper 轮播框', name: 'swiper', - path: '/components/swiper', + path: '/webcomponents/components/swiper', component: () => import('tdesign-web-components/swiper/README.md'), }, ], @@ -323,37 +304,37 @@ export default [ { title: 'Alert 警告提示', name: 'alert', - path: '/components/alert', + path: '/webcomponents/components/alert', component: () => import('tdesign-web-components/alert/README.md'), }, { title: 'Dialog 对话框', name: 'dialog', - path: '/components/dialog', + path: '/webcomponents/components/dialog', component: () => import('tdesign-web-components/dialog/README.md'), }, { title: 'Message 全局提示', name: 'message', - path: '/components/message', + path: '/webcomponents/components/message', component: () => import('tdesign-web-components/message/README.md'), }, { title: 'Notification 消息通知', name: 'notification', - path: '/components/notification', + path: '/webcomponents/components/notification', component: () => import('tdesign-web-components/notification/README.md'), }, { title: 'Popconfirm 气泡确认框', name: 'popconfirm', - path: '/components/popconfirm', + path: '/webcomponents/components/popconfirm', component: () => import('tdesign-web-components/popconfirm/README.md'), }, { title: 'Popup 弹出层', name: 'popup', - path: '/components/popup', + path: '/webcomponents/components/popup', component: () => import('tdesign-web-components/popup/README.md'), }, ], diff --git a/src/divider/README.md b/src/divider/README.md index d77975e..26e774b 100644 --- a/src/divider/README.md +++ b/src/divider/README.md @@ -27,3 +27,17 @@ spline: layout 带文字的分割线是在分割线中嵌入文字,在需要对分割内容进行解释说明时使用。 {{ text }} + +## API +### Divider Props + +名称 | 类型 | 默认值 | 说明 | 必传 +-- | -- | -- | -- | -- +className | String | - | 类名 | N +style | Object | - | 样式,TS 类型:`React.CSSProperties` | N +align | String | center | 文本位置(仅在水平分割线有效)。可选项:left/right/center | N +children | TNode | - | 子元素,同 content。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N +content | TNode | - | 子元素。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N +dashed | Boolean | false | 是否虚线(仅在水平分割线有效) | N +layout | String | horizontal | 分隔线类型有两种:水平和垂直。可选项:horizontal/vertical | N + diff --git a/src/dropdown/README.md b/src/dropdown/README.md index b6e4f39..fe2f5f3 100644 --- a/src/dropdown/README.md +++ b/src/dropdown/README.md @@ -12,7 +12,7 @@ spline: navigation {{ base }} - +{{ child }} ## API ### Dropdown Props diff --git a/src/popup/popup.tsx b/src/popup/popup.tsx index c4598fc..c9358dc 100644 --- a/src/popup/popup.tsx +++ b/src/popup/popup.tsx @@ -308,7 +308,6 @@ export default class Popup extends Component { } ready(): void { - console.log('==ready'); this.updatePopper(); } From 45353e8c75d7d1b5d5fb5730fe46ae6d4d37bf4d Mon Sep 17 00:00:00 2001 From: duenyang <377153400@qq.com> Date: Fri, 18 Oct 2024 17:28:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix(spell=20check):=20=E4=BF=AE=E6=94=B9=20?= =?UTF-8?q?spell=20check=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fbb4263..0765d02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,9 +47,9 @@ spline: explain - feat(popup): add popup 🎉 @duenyang ([#59](https://github.com/TDesignOteam/tdesign-web-components/pull/59)) - [feat]: add image,divider,space @carolin913 ([#58](https://github.com/TDesignOteam/tdesign-web-components/pull/58)) - feat(tooltip): add tooltip 🎉 @duenyang ([#61](https://github.com/TDesignOteam/tdesign-web-components/pull/61)) -- feat(loading): add loading adn portal 🎉 @duenyang ([#64](https://github.com/TDesignOteam/tdesign-web-components/pull/64)) +- feat(loading): add loading and portal 🎉 @duenyang ([#64](https://github.com/TDesignOteam/tdesign-web-components/pull/64)) - feat(avatar): add avatar component @aaronmhl ([#70](https://github.com/TDesignOteam/tdesign-web-components/pull/70)) -- feat(collpase): add collapse component @novlan1 ([#66](https://github.com/TDesignOteam/tdesign-web-components/pull/66)) +- feat(collapse): add collapse component @novlan1 ([#66](https://github.com/TDesignOteam/tdesign-web-components/pull/66)) - Feature/collapse transition @novlan1 ([#72](https://github.com/TDesignOteam/tdesign-web-components/pull/72)) - add slider component @novlan1 ([#71](https://github.com/TDesignOteam/tdesign-web-components/pull/71)) - chore: update prop type @novlan1 ([#80](https://github.com/TDesignOteam/tdesign-web-components/pull/80)) @@ -85,7 +85,7 @@ spline: explain - feat(progress): add new component progress @carolin913 ([#133](https://github.com/TDesignOteam/tdesign-web-components/pull/133)) - feat(notification): add new component notification @LzhengH ([#135](https://github.com/TDesignOteam/tdesign-web-components/pull/135)) - feat(skeleton): add new component skeleton @carolin913 ([#134](https://github.com/TDesignOteam/tdesign-web-components/pull/134)) -- tabs compelete🎉 @601odd ([#127](https://github.com/TDesignOteam/tdesign-web-components/pull/127)) +- tabs complete @601odd ([#127](https://github.com/TDesignOteam/tdesign-web-components/pull/127)) - fix(progress): icons use single tag @carolin913 ([#137](https://github.com/TDesignOteam/tdesign-web-components/pull/137)) - feat(message): add message @Tzz1194593491 ([#136](https://github.com/TDesignOteam/tdesign-web-components/pull/136)) - fix(icon): 修复多次渲染问题 @duenyang ([#140](https://github.com/TDesignOteam/tdesign-web-components/pull/140))