diff --git a/CHANGELOG.md b/CHANGELOG.md index be7c75f..02a4ed6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,108 +5,108 @@ toc: false spline: explain --- -## 🌈 0.0.2 `2024-12-16` -### 🚀 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)) -- feat(alpha): 发布alpha测试版本 @duenyang ([#161](https://github.com/TDesignOteam/tdesign-web-components/pull/161)) -- feat(alpha): 发布alpha测试版本 @duenyang ([#162](https://github.com/TDesignOteam/tdesign-web-components/pull/162)) -- feat(use): 支持在React环境中使用 @duenyang ([#165](https://github.com/TDesignOteam/tdesign-web-components/pull/165)) -- feat(react): 支持在React中调用update @duenyang ([#169](https://github.com/TDesignOteam/tdesign-web-components/pull/169)) -- feat(react): 优化react适配逻辑 @duenyang ([#170](https://github.com/TDesignOteam/tdesign-web-components/pull/170)) -- feat(Vue): 支持在Vue中使用 @duenyang ([#172](https://github.com/TDesignOteam/tdesign-web-components/pull/172)) -- feat(slider,avatar,dialog): wc style split from common @carolin913 ([#173](https://github.com/TDesignOteam/tdesign-web-components/pull/173)) -- feat(vite): 支持在viet >= 5 版本中使用 @duenyang ([#175](https://github.com/TDesignOteam/tdesign-web-components/pull/175)) +## 🌈 0.0.2 `2024-12-16` +### 🚀 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 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(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)) +- 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 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)) +- 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)) +- feat(alpha): 发布alpha测试版本 @duenyang ([#161](https://github.com/TDesignOteam/tdesign-web-components/pull/161)) +- feat(alpha): 发布alpha测试版本 @duenyang ([#162](https://github.com/TDesignOteam/tdesign-web-components/pull/162)) +- feat(use): 支持在React环境中使用 @duenyang ([#165](https://github.com/TDesignOteam/tdesign-web-components/pull/165)) +- feat(react): 支持在React中调用update @duenyang ([#169](https://github.com/TDesignOteam/tdesign-web-components/pull/169)) +- feat(react): 优化react适配逻辑 @duenyang ([#170](https://github.com/TDesignOteam/tdesign-web-components/pull/170)) +- feat(Vue): 支持在Vue中使用 @duenyang ([#172](https://github.com/TDesignOteam/tdesign-web-components/pull/172)) +- feat(slider,avatar,dialog): wc style split from common @carolin913 ([#173](https://github.com/TDesignOteam/tdesign-web-components/pull/173)) +- feat(vite): 支持在viet >= 5 版本中使用 @duenyang ([#175](https://github.com/TDesignOteam/tdesign-web-components/pull/175)) - feat(jsx): 支持jsx通用方法 @duenyang ([#176](https://github.com/TDesignOteam/tdesign-web-components/pull/176)) ## 🌈 0.0.1-alpha.2 `2024-10-18` diff --git a/package-lock.json b/package-lock.json index d7d990d..f506958 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "tdesign-web-components", - "version": "0.0.1-alpha.2", + "version": "0.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "tdesign-web-components", - "version": "0.0.1-alpha.2", + "version": "0.0.2", "license": "MIT", "dependencies": { "@babel/runtime": "^7.24.7", @@ -16,6 +16,7 @@ "copy-to-clipboard": "^3.3.3", "htm": "^3.1.1", "lodash": "~4.17.15", + "omi": "^7.7.4", "omi-transition": "^0.1.11", "tailwind-merge": "^2.2.1", "tdesign-icons-web-components": "^0.2.0" @@ -77,9 +78,6 @@ "vite-plugin-pwa": "^0.20.0", "vite-plugin-tdoc": "^2.0.4", "workbox-precaching": "^7.1.0" - }, - "peerDependencies": { - "omi": ">=7.7.1" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -9367,9 +9365,10 @@ } }, "node_modules/omi": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/omi/-/omi-7.7.1.tgz", - "integrity": "sha512-LoCfSNXhfXfWvx93gNeikX2XVUFECVcJiPXs63/Nhybahliwo32nqbtpb6+XhWYsB1ohnSk0WDvGQuHvy8KXUQ==", + "version": "7.7.4", + "resolved": "https://mirrors.tencent.com/npm/omi/-/omi-7.7.4.tgz", + "integrity": "sha512-RlNmzhy6LoqlXNdWEdiT9+bEYQxmxARBsGhRmSZ7MJqHj5TMzilgw/An3OqBrMm6RiC1/LplJi1UQQdg4j3wNQ==", + "license": "MIT", "dependencies": { "construct-style-sheets-polyfill": "3.0.1", "reactive-signal": "^2.0.1", diff --git a/package.json b/package.json index cc4fa4b..b7207cc 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "site:intranet": "cd site && vite build --mode intranet", "site:preview": "cd site && vite build --mode preview && cd ../_site && cp index.html 404.html", "prebuild": "rimraf es/* lib/* dist/* esm/*", - "build": "npm run generate:entry && cross-env NODE_ENV=production rollup -c script/rollup.config.js", + "build": "npm run generate:entry && cross-env NODE_ENV=production rollup -c script/rollup.config.js && npm run build:tsc", "build:tsc": "run-p build:tsc-*", "build:tsc-lib": "tsc --emitDeclarationOnly -d -p ./tsconfig.build.json --outDir lib/", "build:tsc-esm": "tsc --emitDeclarationOnly -d -p ./tsconfig.build.json --outDir esm/", @@ -60,9 +60,6 @@ "path": "@commitlint/cz-commitlint" } }, - "peerDependencies": { - "omi": ">=7.7.1" - }, "dependencies": { "@babel/runtime": "^7.24.7", "@popperjs/core": "^2.11.8", @@ -71,6 +68,7 @@ "copy-to-clipboard": "^3.3.3", "htm": "^3.1.1", "lodash": "~4.17.15", + "omi": "^7.7.4", "omi-transition": "^0.1.11", "tailwind-merge": "^2.2.1", "tdesign-icons-web-components": "^0.2.0" diff --git a/src/button/button.tsx b/src/button/button.tsx index d52ba47..4aa4615 100644 --- a/src/button/button.tsx +++ b/src/button/button.tsx @@ -83,7 +83,6 @@ export default class Button extends Component { loading, shape, ignoreAttributes, - children, suffix, innerClass, innerStyle, @@ -129,8 +128,10 @@ export default class Button extends Component { style={innerStyle} {...rest} > - {iconNode ? iconNode : null} - {children} + {iconNode ? iconNode : null} + + + {suffix && {parseTNode(suffix)}} ); diff --git a/src/popup/popup.tsx b/src/popup/popup.tsx index c9358dc..6f2656c 100644 --- a/src/popup/popup.tsx +++ b/src/popup/popup.tsx @@ -19,6 +19,15 @@ export interface PopupProps extends TdPopupProps, StyledProps { updateScrollTop?: (content: HTMLElement) => void; } +export const defaultProps = { + attach: 'body', + destroyOnClose: false, + hideEmptyPopup: false, + placement: 'top', + showArrow: true, + trigger: 'hover' as TdPopupProps['trigger'], +}; + export const PopupTypes = { attach: [String, Function], content: [String, Number, Object, Function], @@ -59,14 +68,7 @@ export default class Popup extends Component { static propTypes = PopupTypes; - static defaultProps = { - attach: 'body', - destroyOnClose: false, - hideEmptyPopup: false, - placement: 'top', - showArrow: true, - trigger: 'hover', - }; + static defaultProps = defaultProps; triggerRef = createRef(); diff --git a/src/tooltip/tooltip.tsx b/src/tooltip/tooltip.tsx index b24b829..2181f1f 100644 --- a/src/tooltip/tooltip.tsx +++ b/src/tooltip/tooltip.tsx @@ -1,16 +1,18 @@ import '../popup'; -import { Component, createRef, OmiProps, tag } from 'omi'; +import { Component, createElement, createRef, OmiProps, tag } from 'omi'; import classname, { getClassPrefix } from '../_util/classname'; import { StyledProps } from '../common'; import { type PopupVisibleChangeContext } from '../popup'; +import { defaultProps as popupDefaultProps } from '../popup/popup'; import { PopupTypes } from '../popup/popup'; import { TdTooltipProps } from './type'; export interface TooltipProps extends TdTooltipProps, StyledProps {} export const tooltipDefaultProps: TooltipProps = { + ...popupDefaultProps, destroyOnClose: true, placement: 'top', showArrow: true, @@ -100,19 +102,19 @@ export default class Tooltip extends Component { }); } - return ( - - {children} - + return createElement( + 't-popup', + { + visible: this.popupVisible, + destroyOnClose, + showArrow, + overlayClassName: toolTipClass, + onVisibleChange: this.handleVisibleChange, + placement, + ...restProps, + ref: this.popupRef, + }, + children, ); } }