浏览代码

docs: update changelog & update demo

pointhalo 3 年之前
父节点
当前提交
3a14ba3a12

+ 6 - 6
content/input/form/index.md

@@ -207,23 +207,23 @@ class BasicDemoWithInit extends React.Component {
                     },
                     {
                         uid: '2',
-                        name: 'jiafang1.jpeg',
+                        name: 'resso.jpeg',
                         status: 'validateFail',
                         size: '222KB',
                         percent: 50,
                         preview: true,
-                        fileInstance:  new File([new ArrayBuffer(2048)], 'jiafang1.jpeg', { type: 'image/jpeg' }),
-                        url: 'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg'
+                        fileInstance:  new File([new ArrayBuffer(2048)], 'resso.jpeg', { type: 'image/jpeg' }),
+                        url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/Resso.png'
                     },
                     {
                         uid: '3',
-                        name: 'jiafang2.jpeg',
+                        name: 'dy.jpeg',
                         status: 'uploading',
                         size: '222KB',
                         percent: 50,
                         preview: true,
-                        fileInstance:  new File([new ArrayBuffer(2048)], 'jiafang2.jpeg', { type: 'image/jpeg' }),
-                        url: 'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg'
+                        fileInstance:  new File([new ArrayBuffer(2048)], 'dy.jpeg', { type: 'image/jpeg' }),
+                        url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dy.png'
                     }
                 ]
             }

+ 7 - 7
content/input/upload/index-en-US.md

@@ -584,12 +584,12 @@ import { IconUpload } from '@douyinfe/semi-icons';
         },
         {
             uid: '2',
-            name: 'jiafang2.jpeg',
+            name: 'dy.jpeg',
             status: 'uploading',
             size: '222KB',
             percent: 50,
             preview: true,
-            fileInstance: new File([new ArrayBuffer(2048)], 'jiafang2.jpeg', { type: 'image/jpeg' }),
+            fileInstance: new File([new ArrayBuffer(2048)], 'dy2.jpeg', { type: 'image/jpeg' }),
             url:
                 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dy.png',
         },
@@ -634,7 +634,7 @@ import { IconPlus } from '@douyinfe/semi-icons';
     const defaultFileList = [
         {
             uid: '1',
-            name: 'jiafang.png',
+            name: 'dy.png',
             status: 'success',
             size: '130KB',
             preview: true,
@@ -702,12 +702,12 @@ import { IconPlus, IconEyeOpened } from '@douyinfe/semi-icons';
     const defaultFileList = [
         {
             uid: '1',
-            name: 'jiafang.png',
+            name: 'dy.png',
             status: 'success',
             size: '130KB',
             preview: true,
             url:
-                'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/e82f3b261133d2b20d85e8483c203112.jpg',
+                'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dy.png',
         },
     ];
     const handlePreview = (file) => {
@@ -745,12 +745,12 @@ import { IconPlus, IconEyeOpened } from '@douyinfe/semi-icons';
     const defaultFileList = [
         {
             uid: '1',
-            name: 'jiafang.png',
+            name: 'dy.png',
             status: 'success',
             size: '130KB',
             preview: true,
             url:
-                'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/e82f3b261133d2b20d85e8483c203112.jpg',
+                'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dy.png',
         },
     ];
     const handlePreview = (file) => {

+ 11 - 11
content/input/upload/index.md

@@ -105,7 +105,7 @@ import { IconPlus } from '@douyinfe/semi-icons';
     const defaultFileList = [
         {
             uid: '1',
-            name: 'jiafang1.jpeg',
+            name: 'dy.jpeg',
             status: 'success',
             size: '130kb',
             url:
@@ -113,7 +113,7 @@ import { IconPlus } from '@douyinfe/semi-icons';
         },
         {
             uid: '5',
-            name: 'jiafang3.jpeg',
+            name: 'resso.jpeg',
             percent: 50,
             size: '222kb',
             url:
@@ -593,12 +593,12 @@ import { IconUpload } from '@douyinfe/semi-icons';
         },
         {
             uid: '2',
-            name: 'jiafang.jpeg',
+            name: 'dy.jpeg',
             status: 'uploading',
             size: '222KB',
             percent: 50,
             preview: true,
-            fileInstance: new File([new ArrayBuffer(2048)], 'jiafang.jpeg', { type: 'image/jpeg' }),
+            fileInstance: new File([new ArrayBuffer(2048)], 'dy.jpeg', { type: 'image/jpeg' }),
             url:
                 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dy.png',
         },
@@ -643,7 +643,7 @@ import { IconPlus } from '@douyinfe/semi-icons';
     const defaultFileList = [
         {
             uid: '1',
-            name: 'jiafang.png',
+            name: 'dy.png',
             status: 'success',
             size: '130KB',
             preview: true,
@@ -715,12 +715,12 @@ import { IconPlus, IconEyeOpened } from '@douyinfe/semi-icons';
     const defaultFileList = [
         {
             uid: '1',
-            name: 'jiafang.png',
+            name: 'resso.png',
             status: 'success',
             size: '130KB',
             preview: true,
             url:
-                'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/e82f3b261133d2b20d85e8483c203112.jpg',
+                'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/Resso.png',
         },
     ];
     const handlePreview = (file) => {
@@ -737,7 +737,7 @@ import { IconPlus, IconEyeOpened } from '@douyinfe/semi-icons';
                 multiple
                 defaultFileList={defaultFileList}
                 onPreviewClick={handlePreview}
-                renderPicPreviewIcon={()=><IconEyeOpened style={{color: 'var(--semi-color-white)', fontSize: 24}} />}
+                renderPicPreviewIcon={()=><IconEyeOpened style={{color: 'var(--semi-color-white)', fontSize: 24 }} />}
             >
                 <IconPlus size="extra-large" />
             </Upload>
@@ -758,12 +758,12 @@ import { IconPlus, IconEyeOpened } from '@douyinfe/semi-icons';
     const defaultFileList = [
         {
             uid: '1',
-            name: 'jiafang.png',
+            name: 'resso.png',
             status: 'success',
             size: '130KB',
             preview: true,
             url:
-                'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/e82f3b261133d2b20d85e8483c203112.jpg',
+                'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/Resso.png',
         },
     ];
     const handlePreview = (file) => {
@@ -773,7 +773,7 @@ import { IconPlus, IconEyeOpened } from '@douyinfe/semi-icons';
     const [hotSpotLocation, $hotSpotLocation] = useState('end');
     return (
         <>
-            <Select value={hotSpotLocation} onChange={$hotSpotLocation} style={{ width: 120 }}>
+            <Select value={hotSpotLocation} insetLabel='hotSpotLocation' onChange={$hotSpotLocation} style={{ width: 250 }}>
                 <Select.Option value='start'>开始</Select.Option>
                 <Select.Option value='end'>结尾</Select.Option>
             </Select>

+ 8 - 0
content/start/changelog/index-en-US.md

@@ -16,6 +16,11 @@ Version:Major.Minor.Patch
 
 ---
 
+
+#### 🎉 2.10.1 (2022-05-10)
+- 【Fix】
+    - Fix the problem that when Select is inside the Popover, clicking Option will cause the outer Popover to be collapsed (the issue affects v2.5-v2.10) [#818](https://github.com/DouyinFE/semi-design/issues/818)
+
 #### 🎉 2.10.0 (2022-05-07)
 - 【Fix】
     - Fixed the error that `x-form-id` does not match on the server side and the client side when the Form component is used in `Nextjs`  [#808](https://github.com/DouyinFE/semi-design/issues/808) [@xuerzong](https://github.com/xuerzong)
@@ -26,6 +31,9 @@ Version:Major.Minor.Patch
 - 【Docs】
     - A11y:Switch, Banner added keyboard and focus behavior description
     - Update Tabs component FAQ
+- 【Chore】
+    - Update the typo problem of some function names in `@douyinfe/semi-foundation`, which has no effect on users [#660](https://github.com/DouyinFE/semi-design/pull/660)
+
 #### 🎉 2.10.0-beta.0 (2022-4-29)
 - 【New Component】
     - new component Carousel  [#678](https://github.com/DouyinFE/semi-design/issues/678)

+ 8 - 1
content/start/changelog/index.md

@@ -16,6 +16,10 @@ Semi 版本号遵循**Semver**规范(主版本号-次版本号-修订版本号
 ---
 
 
+#### 🎉 2.10.1 (2022-05-10)
+- 【Fix】
+    - 修复 Select 位于 Popover内时,点击 Option 会导致外层 Popover 也收起的问题(问题影响范围 v2.5- v2.10) [#818](https://github.com/DouyinFE/semi-design/issues/818)
+
 #### 🎉 2.10.0 (2022-05-07)
 - 【Fix】
     - 修复Form组件在`Nextjs`中使用时,`x-form-id`在服务端和客户端不匹配的报错问题  [#808](https://github.com/DouyinFE/semi-design/issues/808) [@xuerzong](https://github.com/xuerzong)
@@ -26,6 +30,9 @@ Semi 版本号遵循**Semver**规范(主版本号-次版本号-修订版本号
 - 【Docs】
     - A11y:Switch、Bannner 增加 键盘和焦点 行为说明
     - 更新 Tabs 组件 FAQ
+- 【Chore】
+    - 更新 @douyinfe/semi-foundation 中部分函数名称拼写错误问题,对用户无影响 [#660](https://github.com/DouyinFE/semi-design/pull/660)
+
 #### 🎉 2.10.0-beta.0 (2022-04-29)
 - 【New Component】
     - 新组件轮播图  [#678](https://github.com/DouyinFE/semi-design/issues/678)
@@ -148,7 +155,7 @@ Semi 版本号遵循**Semver**规范(主版本号-次版本号-修订版本号
     - Select 组件当用键盘上下键操作时,增加自动滚动交互,调整聚焦 option 的相对位置  [#607](https://github.com/DouyinFE/semi-design/issues/607) [@chenzn1](https://github.com/chenzn1)
     - 修复 next.js 项目使用 @douyinfe/semi-next 插件后,webpack.resolve.alias配置失效的问题  [#630](https://github.com/DouyinFE/semi-design/issues/630)
     - 修复 DatePicker open 受控时关闭面板后输入框聚焦态没有清空问题  [#528](https://github.com/DouyinFE/semi-design/issues/528)
-    - 修复 Tooltip 在 React17 里如果父级有阻止点击事件冒泡弹出层收起会失效 [#593](https://github.com/DouyinFE/semi-design/issues/593) [@chenc041](https://github.com/chenc041)
+    - 修复 Tooltip 在 React17 里如果父级有阻止点击事件冒泡弹出层收起会失效 (Tooltip、Popover 对 clickOutSide 行为监听的事件判断由 click 变更为 mousedown ) [#593](https://github.com/DouyinFE/semi-design/issues/593) [@chenc041](https://github.com/chenc041)
 
 #### 🎉 2.5.0-beta.0 (2022-02-18)
 - 【Fix】