Prechádzať zdrojové kódy

docs: update demo, update form api sort

pointhalo 3 rokov pred
rodič
commit
6e50f369f1

+ 13 - 13
content/input/form/index-en-US.md

@@ -1574,28 +1574,28 @@ class CustomFieldDemo extends React.Component {
 
 | Properties        | Instructions                                                                                                                                                                                                                                                                                                        | Type                                            | Default    |
 | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- | ---------- |
+| autoScrollToError | If setting true,when submit or call formApi.validate () fails verification, it will automatically scroll to the wrong field, object config refer to [options](https://github.com/stipsan/scroll-into-view-if-needed#options)                                                                                       | boolean\| object                                | false      |
+| allowEmpty        | Whether to keep the key of the null field in the values, keep the key when true, and remove the key when false    | boolean                                         | false      |
+| component         | For declaring fields, not used at the same time as render, props.children                                                                                                                                                                                                                                           | ReactNode                                       |
+| className         | Classname for form tag                                                                                                                                                                                                                                                                                              | string                                          |
+| disabled          | If true, all fields inside the form structure will automatically inherit the disabled attribute                                                                                                                                                                                                                     | boolean                                         | false      |
+| extraTextPosition | The extraTextPosition property applied to each Field uniformly controls the display position of extraText. Middle (the vertical direction is displayed in the order of Label, extraText, and Field), bottom (the vertical direction is displayed in the order of Label, Field, and extraText) <br/>**since v1.9.0** | string                                          | 'bottom'   |
 | getFormApi        | This function will be executed once when the form is mounted and returns formApi. <br/>formApi can be used to modify the internal state of the form (value, touched, error)                                                                                                                                         | function (formApi: object)                      |            |
 | initValues        | Used to uniformly set the initial value of the form <br/>(will be consumed only once when form is mount)                                                                                                                                                                                                            | object                                          |            |
+| layout            | The layout of fields, optional `horizontal` or `vertical`                                                                                                                                                                                                                                                           | string                                          | 'vertical' |
+| labelCol          | Uniformly applied to the label label layout of each Field, with [Col Component](/en-US/basic/grid#Col), <br/>set `span`, `span` values, such as {span: 6, selected: 2}                                                                                                                     | object                                          |
+| labelAlign        | Text-align value of label                                                                                                                                                                                                                                                                                           | string                                          | 'left'     |
+| labelPosition     | Location of label in Field, optional 'top', 'left', 'inset' <br/> (inset label only partial component support)                                                                                                                                                                                                      | string                                          | 'top'      |
+| labelWidth        | Width of field'r label                                                                                                                                                                                                                                                                                              | string\|number                                  |            |
 | onChange          | Callback invoked when form update, including Fields mount/unmount / value change / <br/> blur / validation status change / error status change.                                                                                                                                                                     | function (formState: object)                    |            |
 | onValueChange     | Callback invoked when form values update                                                                                                                                                                                                                                                                            | function (values: object, changedValue: object) |
 | onReset           | Callback invoked after clicked on reset button or executed `formApi.reset()`                                                                                                                                                                                                                                        | function ()                                     |            |
 | onSubmit          | Callback invoked after clicked on submit button or executed `formApi.submit()`, <br/>and all validation pass.                                                                                                                                                                                                        | function (values: object)                       |            |
 | onSubmitFail      | Callback invoked after clicked on submit button or executed `formApi.submit()`,<br/> but validate failed.                                                                                                                                                                                                            | function (object, values: object)               |            |
-| validateFields    | Form-level custom validate functions are called at submit or formApi.validate(). <br/>Supported synchronous / asynchronous function                                                                                                                                                                                 | function (values)                               |            |
-| component         | For declaring fields, not used at the same time as render, props.children                                                                                                                                                                                                                                           | ReactNode                                       |
 | render            | For declaring fields, not used at the same time as component, props.children                                                                                                                                                                                                                                        | function                                        |
-| allowEmpty        | Whether to keep the key of the null field in the values, keep the key when true, and remove the key when false    | boolean                                         | false      |
-| layout            | The layout of fields, optional `horizontal` or `vertical`                                                                                                                                                                                                                                                           | string                                          | 'vertical' |
-| labelPosition     | Location of label in Field, optional 'top', 'left', 'inset' <br/> (inset label only partial component support)                                                                                                                                                                                                      | string                                          | 'top'      |
-| labelWidth        | Width of field'r label                                                                                                                                                                                                                                                                                              | string\|number                                  |            |
-| labelAlign        | Text-align value of label                                                                                                                                                                                                                                                                                           | string                                          | 'left'     |
-| className         | Classname for form tag                                                                                                                                                                                                                                                                                              | string                                          |
-| wrapperCol        | Uniformly apply the layout on each Field, with [Col component](/en-US/basic/grid#Col), <br/>set `span`, `span` values, such as {span: 20, selected: 4}                                                                                                                                     | object                                          |
-| labelCol          | Uniformly applied to the label label layout of each Field, with [Col Component](/en-US/basic/grid#Col), <br/>set `span`, `span` values, such as {span: 6, selected: 2}                                                                                                                     | object                                          |
-| autoScrollToError | If setting true,when submit or call formApi.validate () fails verification, it will automatically scroll to the wrong field, object config refer to [options](https://github.com/stipsan/scroll-into-view-if-needed#options)                                                                                       | boolean\| object                                | false      |
-| disabled          | If true, all fields inside the form structure will automatically inherit the disabled attribute                                                                                                                                                                                                                     | boolean                                         | false      |
 | showValidateIcon  | Whether the verification information block in the field automatically adds the corresponding status icon display <br/>**since v1.0.0**                                                                                                                                                                              | boolean                                         | true       |
-| extraTextPosition | The extraTextPosition property applied to each Field uniformly controls the display position of extraText. Middle (the vertical direction is displayed in the order of Label, extraText, and Field), bottom (the vertical direction is displayed in the order of Label, Field, and extraText) <br/>**since v1.9.0** | string                                          | 'bottom'   |
+| validateFields    | Form-level custom validate functions are called at submit or formApi.validate(). <br/>Supported synchronous / asynchronous function                                                                                                                                                                                 | function (values)                               |            |
+| wrapperCol        | Uniformly apply the layout on each Field, with [Col component](/en-US/basic/grid#Col), <br/>set `span`, `span` values, such as {span: 20, selected: 4}                                                                                                                                     | object                                          |
 
 ## FormState
 

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

@@ -1899,28 +1899,28 @@ render(WithFieldDemo2);
 | 属性              | 说明                                                                                                                                                                         | 类型                                          | 默认值     |
 | ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- | ---------- |
 | autoScrollToError | 若为 true,submit 或者调用 formApi.validate()校验失败时,将会自动滚动至出错的字段。object 型配置参考[options](https://github.com/stipsan/scroll-into-view-if-needed#options) | boolean\| object                              | false      |
+| allowEmpty        | 是否保留values中为空值的field的key,true时保留key,false时移除key                                     | boolean                                       | false      |
 | className         | form 标签的 classname                                                                                                                                                        | string                                        |
+| component         | 用于声明表单控件,不可与 render、props.children 同时使用                                                                                                                     | ReactNode                                     |            |
+| disabled          | 统一应用在每个 Field 的 disabled 属性                                                                                                            | boolean                                       | false      |
+| extraTextPosition  | 统一应用在每个 Field 上的extraTextPosition属性,控制extraText的显示位置,可选`middle`(垂直方向以Label、extraText、Field主体的顺序显示)、`bottom` (垂直方向以Label、Field主体、extraText的顺序显示)  <br/>**在 v1.9.0 开始提供**                                                                                                                       | string                                       | 'bottom'       |
 | getFormApi        | form mounted 时会回调该函数,将 formAPI 作为参数传入。formApi 可用于修改 form 内部状态(值、校验状态、错误信息)                                                             | function(formApi:object)                      |            |
 | initValues        | 用于统一设置表单初始值(仅会在组件挂载时消费一次),例如{fieldA:'hello', fieldB:['arr1', 'arr2']}                                                                       | object                                        |            |
+| layout            | Form 表单控件间的布局,目前支持水平(horizontal)、垂直(vertical)两种                                                                                                          | string                                        | 'vertical' |
+| labelAlign        | 统一配置label 的 text-align 值                                                                                                                                                       | string                                        | 'left'     |
+| labelCol          | 统一应用在每个 Field 的 label 标签布局,同[Col 组件](/zh-CN/basic/grid#Col),设置`span`、`offset`值,如{span: 6, offset: 2}                         | object                                        |
+| labelPosition     | 统一配置Field 中 label 的位置,可选'top'、'left'、'inset'(inset 标签内嵌仅部分组件支持)                                                                                              | string                                        | 'top'      |
+| labelWidth        | 统一配置label 宽度                                                                                                                                                                   | string\|number                                |            |
 | onChange          | form 更新时触发,包括表单控件挂载/卸载/值变更/blur/验证状态变更/错误提示变更, 入参为 formState                                                                               | function(formState:object)                    |            |
 | onValueChange     | form 的值被更新时触发,仅在表单控件值发生变化时触发。第一个入参为 formState.values,第二个入参为当前发生变化的 field                                                         | function(values:object, changedValue: object) |            |
 | onReset           | 点击 reset 按钮或调用 `formApi.reset()`时的回调函数                                                                                                                          | function()                                    |            |
 | onSubmit          | 点击 submit 按钮或调用 `formApi.submitForm()`,数据验证成功后的回调函数                                                                                                      | function(values:object)                       |            |
 | onSubmitFail      | 点击 submit 按钮或调用 `formApi.submitForm()`,数据验证失败后的回调函数                                                                                                      | function(errors:object, values:object)        |            |
-| validateFields    | Form 级别的自定义校验函数,submit 时或 formApi.validate 时会被调用(配置Form级别校验器后,Field级别校验器在submit或formApi.validate()时不会再被触发)。支持同步校验、异步校验                                                                                   | function(values)                              |            |
-| component         | 用于声明表单控件,不可与 render、props.children 同时使用                                                                                                                     | ReactNode                                     |            |
 | render            | 用于声明表单控件,不可与 component、props.children 同时使用                                                                                                                  | function                                      |
-| allowEmpty        | 是否保留values中为空值的field的key,true时保留key,false时移除key                                     | boolean                                       | false      |
-| layout            | Form 表单控件间的布局,目前支持水平(horizontal)、垂直(vertical)两种                                                                                                          | string                                        | 'vertical' |
-| labelPosition     | 统一配置Field 中 label 的位置,可选'top'、'left'、'inset'(inset 标签内嵌仅部分组件支持)                                                                                              | string                                        | 'top'      |
-| labelWidth        | 统一配置label 宽度                                                                                                                                                                   | string\|number                                |            |
-| labelAlign        | 统一配置label 的 text-align 值                                                                                                                                                       | string                                        | 'left'     |
+| showValidateIcon  | Field 内的校验信息区块否自动添加对应状态的 icon 展示 <br/>**在 v1.0.0 开始提供**                                                                                                                         | boolean                                       | true       |
 | style             | 可将内联样式传入 form 标签                                                                                                                                                   | object                                        |
+| validateFields    | Form 级别的自定义校验函数,submit 时或 formApi.validate 时会被调用(配置Form级别校验器后,Field级别校验器在submit或formApi.validate()时不会再被触发)。支持同步校验、异步校验                                                                                   | function(values)                              |            |
 | wrapperCol        | 统一应用在每个 Field 上的布局,同[Col 组件](/zh-CN/basic/grid#Col),设置`span`、`offset`值,如{span: 20, offset: 4}                                 | object                                        |
-| labelCol          | 统一应用在每个 Field 的 label 标签布局,同[Col 组件](/zh-CN/basic/grid#Col),设置`span`、`offset`值,如{span: 6, offset: 2}                         | object                                        |
-| disabled          | 统一应用在每个 Field 的 disabled 属性                                                                                                            | boolean                                       | false      |
-| showValidateIcon  | Field 内的校验信息区块否自动添加对应状态的 icon 展示 <br/>**在 v1.0.0 开始提供**                                                                                                                         | boolean                                       | true       |
-| extraTextPosition  | 统一应用在每个 Field 上的extraTextPosition属性,控制extraText的显示位置,可选`middle`(垂直方向以Label、extraText、Field主体的顺序显示)、`bottom` (垂直方向以Label、Field主体、extraText的顺序显示)  <br/>**在 v1.9.0 开始提供**                                                                                                                       | string                                       | 'bottom'       |
 
 ## FormState
 
@@ -2039,6 +2039,7 @@ import { Form, Button } from '@douyinfe/semi-ui';
 
 | 属性                  | 说明                                                                                                                                                                                                                | 类型                                                                                          | 默认值    |
 | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------- |
+| convert               | field 值改变后,在 rerender 前,对 filed 的值进行二次更新<br/> 使用示例: (value) => newValue                                                                                                                         | function(fieldValue)                                                                          |           |
 | field                 | 该表单控件的值在 formState.values 中的映射路径,Form 会使用该值来区分内部的表单控件<br/>**必填!!!** 示例:[Bindding Syntax](#表单控件值的绑定)                                                                      | string                                                                                        |           |
 | label                 | 该表单控件的 label 标签文本,不传的时候默认与 field 同名, 传入 object 时会将其透传给 Form.Label,具体配置请参考[Label](#Form.Label)                                                                                 | string\|object                                                                                |
 | labelPosition         | 该表单控件的 label 位置,可选'top'/'left'/'inset'。在Form与Field上同时传入时,以Field props为准                                                                                                                | string                                                                                        |
@@ -2057,7 +2058,6 @@ import { Form, Button } from '@douyinfe/semi-ui';
 | onChange              | 值变化时触发的回调                                                                                                                                                                                                  | function(filedValue: any \| ev: { target: { value: any }}) <br/>(具体参见各组件的 onChange 方法) |
 | onBlur                | 失去焦点时触发的回调                                                                                                                                                                                                | function() (具体参见各组件的 onBlur 方法)                                                   |
 | transform             | 校验前转换字段值,转换后的值仅会在校验时被消费,对 formState 无影响<br/> 使用示例: (value) => Number                                                                                                                 | function(fieldValue)                                                                          |           |
-| convert               | field 值改变后,在 rerender 前,对 filed 的值进行二次更新<br/> 使用示例: (value) => newValue                                                                                                                         | function(fieldValue)                                                                          |           |
 | allowEmptyString      | 是否允许值为空字符串。默认情况下值为''时,该 field 对应的 key 会从 values 中移除,如果你希望保留该 key,那么需要将 allowEmptyString 设为 true                                                                       | boolean                                                                                       | false     |
 | stopValidateWithError | 为 true 时,使用 rules 校验,碰到第一个检验不通过的 rules 后,将不再触发后续 rules 的校验                                                                                                  | boolean                                                                                       | false     |
 | helpText              | 自定义提示信息,与校验信息公用同一区块展示,两者均有值时,优先展示校验信息<br/>**v1.0.0 开始提供**                                                                                                                  | ReactNode                                                                                     |           |

+ 2 - 2
content/input/select/index-en-US.md

@@ -710,9 +710,9 @@ import { Select, Avatar, Tag } from '@douyinfe/semi-ui';
 
 () => {
     const list = [
-        { "name": "Keman Xia", "email": "[email protected]", "avatar": "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dy.png" },
+        { "name": "Keman Xia", "email": "[email protected]", "avatar": "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg" },
         { "name": "Yue Shen", "email": "[email protected]", "avatar": "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg" },
-        { "name": "Chenyi Qu", "email": "[email protected]", "avatar": "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/8bd8224511db085ed74fea37205aede5.jpg" },
+        { "name": "Chenyi Qu", "email": "[email protected]", "avatar": "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/Viamaker.png" },
         { "name": "Jiamao Wen", "email": "[email protected]", "avatar": "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/6fbafc2d-e3e6-4cff-a1e2-17709c680624.png" },
     ];
 

+ 6 - 5
content/input/select/index.md

@@ -767,8 +767,8 @@ import { Select, Avatar, Tag } from '@douyinfe/semi-ui';
 () => {
     const list = [
         { "name": "夏可漫", "email": "[email protected]", "avatar": "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dy.png" },
-        { "name": "申悦", "email": "[email protected]", "avatar": "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg" },
-        { "name": "曲晨一", "email": "[email protected]", "avatar": "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/8bd8224511db085ed74fea37205aede5.jpg" },
+        { "name": "申悦", "email": "[email protected]", "avatar": "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg" },
+        { "name": "曲晨一", "email": "[email protected]", "avatar": "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/Viamaker.png" },
         { "name": "文嘉茂", "email": "[email protected]", "avatar": "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/6fbafc2d-e3e6-4cff-a1e2-17709c680624.png" },
     ];
 
@@ -840,7 +840,7 @@ import { Select, Avatar, Tag } from '@douyinfe/semi-ui';
                 placeholder='请选择'
                 style={{ width: 280, height: 40 }}
                 onChange={v => console.log(v)}
-                defaultValue={'夏可漫'}
+                defaultValue={'申悦'}
                 renderSelectedItem={renderSelectedItem}
             >
                 {list.map((item, index) => renderCustomOption(item, index))}
@@ -850,7 +850,7 @@ import { Select, Avatar, Tag } from '@douyinfe/semi-ui';
                 maxTagCount={2}
                 style={{ width: 280, marginTop: 20 }}
                 onChange={v => console.log(v)}
-                defaultValue={['夏可漫', '申悦']}
+                defaultValue={['申悦', '曲晨一']}
                 multiple
                 renderSelectedItem={renderMultipleWithCustomTag}
             >
@@ -861,7 +861,7 @@ import { Select, Avatar, Tag } from '@douyinfe/semi-ui';
                 maxTagCount={2}
                 style={{ width: 280, marginTop: 20 }}
                 onChange={v => console.log(v)}
-                defaultValue={['夏可漫', '申悦']}
+                defaultValue={['申悦', '曲晨一']}
                 multiple
                 renderSelectedItem={renderMultipleWithCustomTag2}
             >
@@ -870,6 +870,7 @@ import { Select, Avatar, Tag } from '@douyinfe/semi-ui';
         </>
     );
 };
+
 ```
 
 ### 自定义弹出层样式

+ 2 - 2
content/input/taginput/index-en-US.md

@@ -369,8 +369,8 @@ class CustomRender extends React.Component {
         };
         this.list = [
             { "name": "xiakeman", "avatar":  "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dy.png"},
-            { "name": "shenyue",  "avatar":  "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg"},
-            { "name": "quchenyi", "avatar":  "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dbf7351bb779433d17c4f50478cf42f7.jpg"},
+            { "name": "shenyue",  "avatar":  "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg"},
+            { "name": "quchenyi", "avatar":  "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg"},
             { "name": "wenjiamao", "avatar":  "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/7abf810ff060ac3387bd027ead92c4e0.jpg"},
         ];
         this.mapList = new Map(this.list.map( item => [item.name,item]));

+ 2 - 2
content/input/taginput/index.md

@@ -369,8 +369,8 @@ class CustomRender extends React.Component {
         };
         this.list = [
             { "name": "夏可漫", "avatar":  "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dy.png"},
-            { "name": "申悦",  "avatar":  "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg"},
-            { "name": "曲晨一", "avatar":  "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dbf7351bb779433d17c4f50478cf42f7.jpg"},
+            { "name": "申悦",  "avatar":  "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg"},
+            { "name": "曲晨一", "avatar":  "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg"},
             { "name": "文嘉茂", "avatar":  "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/7abf810ff060ac3387bd027ead92c4e0.jpg"},
         ];
         this.mapList = new Map(this.list.map( item => [item.name,item]));

+ 2 - 2
packages/semi-ui/_base/_story/a11y.jsx

@@ -218,7 +218,7 @@ const initValues = {
             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',
+                'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
         },
         {
             uid: '3',
@@ -229,7 +229,7 @@ const initValues = {
             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',
+                'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
         },
     ],
 };

+ 6 - 6
packages/semi-ui/collapsible/_story/collapsible.stories.js

@@ -368,7 +368,7 @@ class WithUpload extends React.Component {
         status: 'success',
         uid: 'd116a179410eb0ca18e66074509bde93-0',
         url:
-          'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg',
+          'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
       },
       {
         preview: false,
@@ -376,7 +376,7 @@ class WithUpload extends React.Component {
         status: 'success',
         uid: 'b7d579069320590ba4b128672eedbae2-1',
         url:
-          'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg',
+          'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
       },
       {
         preview: false,
@@ -384,7 +384,7 @@ class WithUpload extends React.Component {
         status: 'success',
         uid: 'b7d579069320590ba4b128672eedbae2-2',
         url:
-          'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg',
+          'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
       },
     ];
   }
@@ -410,7 +410,7 @@ class WithUpload extends React.Component {
                 status: 'success',
                 uid: 'd116a179410eb0ca18e66074509bde93-0',
                 url:
-                  'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg',
+                  'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
               },
               {
                 preview: false,
@@ -418,7 +418,7 @@ class WithUpload extends React.Component {
                 status: 'success',
                 uid: 'b7d579069320590ba4b128672eedbae2-1',
                 url:
-                  'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg',
+                  'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
               },
               {
                 preview: false,
@@ -426,7 +426,7 @@ class WithUpload extends React.Component {
                 status: 'success',
                 uid: 'b7d579069320590ba4b128672eedbae2-2',
                 url:
-                  'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg',
+                  'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
               },
             ]}
             dragMainText="点击上传文件或拖拽文件到这里"

+ 1 - 1
packages/semi-ui/configProvider/_story/RTLDirection/RTLForm.jsx

@@ -35,7 +35,7 @@ class RTLForm extends React.Component {
                             type: 'image/jpeg',
                         }),
                         url:
-                            'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg',
+                            'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
                     },
                 ],
             },

+ 1 - 1
packages/semi-ui/select/_story/select.stories.js

@@ -2920,7 +2920,7 @@ SelectInputPropsDemo.story = {
 export const RenderSelectedItemCallCount = () => {
       const list = [
         { "name": "夏可漫", "email": "[email protected]", "avatar": "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/avatarDemo.jpeg" },
-        { "name": "申悦", "email": "[email protected]", "avatar": "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg" },
+        { "name": "申悦", "email": "[email protected]", "avatar": "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg" },
         { "name": "曲晨一", "email": "[email protected]", "avatar": "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/8bd8224511db085ed74fea37205aede5.jpg" },
         { "name": "文嘉茂", "email": "[email protected]", "avatar": "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/6fbafc2d-e3e6-4cff-a1e2-17709c680624.png" },
         { "name": "文嘉茂2", "email": "[email protected]", "avatar": "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/6fbafc2d-e3e6-4cff-a1e2-17709c680624.png" },

+ 1 - 1
packages/semi-ui/select/_story/select.stories.tsx

@@ -87,7 +87,7 @@ function CustomRender(props) {
             name: '申悦',
             email: '[email protected]',
             avatar:
-                'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg',
+                'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
         },
         {
             name: '曲晨一',

+ 1 - 1
packages/semi-ui/table/_story/Perf/Render/complex.jsx

@@ -3,7 +3,7 @@ import React from 'react';
 import { Table, Typography, Tag, Popover } from '../../../../index';
 
 const { Text } = Typography;
-const src = 'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg';
+const src = 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg';
 
 class App extends React.Component {
     constructor(props) {

+ 1 - 1
packages/semi-ui/table/_story/Perf/Render/resizableSelection.jsx

@@ -3,7 +3,7 @@ import React from 'react';
 import { Table, Typography, Tag, Popover } from '../../../../index';
 
 const { Text } = Typography;
-const src = 'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg';
+const src = 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg';
 
 class App extends React.Component {
     constructor(props) {

+ 2 - 2
packages/semi-ui/tagInput/_story/tagInput.stories.js

@@ -331,7 +331,7 @@ class CustomRender extends React.Component {
           name: 'semi',
           email: '[email protected]',
           avatar:
-            'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg',
+            'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
         },
       ],
     };
@@ -367,7 +367,7 @@ class CustomRender extends React.Component {
       const item = {};
       item.name = v.name || v;
       item.email = `${item.name}@byte.com`;
-      item.avatar = `https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg`;
+      item.avatar = `https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg`;
       return item;
     });
     this.setState({

+ 9 - 9
packages/semi-ui/upload/__test__/upload.test.js

@@ -45,7 +45,7 @@ const defaultFileList = [
         status: 'success',
         size: '130KB',
         preview: true,
-        url: 'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dbf7351bb779433d17c4f50478cf42f7.jpg',
+        url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
     },
     {
         uid: '2',
@@ -53,7 +53,7 @@ const defaultFileList = [
         status: 'uploadFail',
         size: '222KB',
         preview: false,
-        url: 'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dbf7351bb779433d17c4f50478cf42f7.jpg',
+        url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
     },
 ];
 
@@ -448,7 +448,7 @@ describe('Upload', () => {
             size: '222KB',
             preview: true,
             fileInstance,
-            url: 'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dbf7351bb779433d17c4f50478cf42f7.jpg',
+            url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
         };
         const props = {
             fileList: [file],
@@ -502,7 +502,7 @@ describe('Upload', () => {
             size: '222KB',
             preview: true,
             fileInstance,
-            url: 'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dbf7351bb779433d17c4f50478cf42f7.jpg',
+            url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
         };
         let props = {
             defaultFileList: [file],
@@ -535,7 +535,7 @@ describe('Upload', () => {
                     status: 'error',
                     size: '222KB',
                     preview: true,
-                    url: 'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dbf7351bb779433d17c4f50478cf42f7.jpg',
+                    url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
                 },
             ],
         };
@@ -756,7 +756,7 @@ describe('Upload', () => {
                     status: 'success',
                     size: '130KB',
                     preview: true,
-                    url: 'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dbf7351bb779433d17c4f50478cf42f7.jpg',
+                    url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
                 },
             ],
             showReplace: true,
@@ -786,7 +786,7 @@ describe('Upload', () => {
                     status: 'success',
                     size: '130KB',
                     preview: true,
-                    url: 'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dbf7351bb779433d17c4f50478cf42f7.jpg',
+                    url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
                 },
             ],
         };
@@ -839,7 +839,7 @@ describe('Upload', () => {
                     status: 'success',
                     size: '130KB',
                     preview: true,
-                    url: 'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/dbf7351bb779433d17c4f50478cf42f7.jpg',
+                    url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
                 },
             ],
         };
@@ -933,7 +933,7 @@ describe('Upload', () => {
                     name: 'jiafang1.jpeg',
                     status: 'success',
                     size: '130kb',
-                    url: 'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg',
+                    url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
                 },
             ],
             showPicInfo: true,

+ 5 - 5
packages/semi-ui/upload/_story/upload.stories.js

@@ -258,7 +258,7 @@ const defaultFileList = [
     status: 'success',
     size: '130kb',
     url:
-      'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg',
+      'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
   },
   {
     uid: '2',
@@ -266,7 +266,7 @@ const defaultFileList = [
     status: 'uploadFail',
     size: '222kb',
     url:
-      'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg',
+      'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
   },
   {
     uid: '3',
@@ -275,7 +275,7 @@ const defaultFileList = [
     percent: 50,
     size: '222kb',
     url:
-      'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg',
+      'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
   },
   {
     uid: '4',
@@ -284,7 +284,7 @@ const defaultFileList = [
     validateMessage: '文件过大',
     size: '222kb',
     url:
-      'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg',
+      'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
   },
   {
     uid: '5',
@@ -293,7 +293,7 @@ const defaultFileList = [
     validateMessage: '校验中',
     size: '222kb',
     url:
-      'https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bf8647bffab13c38772c9ff94bf91a9d.jpg',
+      'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
   },
 ];