Explorar o código

docs: update homepage demo text

pointhalo %!s(int64=3) %!d(string=hai) anos
pai
achega
75795ee3a1

+ 7 - 7
content/start/changelog/index.md

@@ -21,14 +21,13 @@ Semi 版本号遵循 **Semver** 规范(主版本号-次版本号-修订版本
 - 【Fix】
     - 修复 Table filter 影响数据原有排序问题 [#1036](https://github.com/DouyinFE/semi-design/issues/1036)
 
-
 #### 2.17.0 (2022-08-12)
 
 - 【Fix】
-  - Fix: 修复 Chromium 104 breakchange fit-content css 导致的 popover 样式问题 [#1022](https://github.com/DouyinFE/semi-design/issues/1022) [Chromium Issue](https://bugs.chromium.org/p/chromium/issues/detail?id=1350958)
-  - Fix: 修复 AvatarGroup 组件中 size 属性在 TS 定义中没有值 default [@AnoyiX](https://github.com/AnoyiX)
-  - Fix: 修复 TimePicker 设置为 undefined 是无反应的问题 [#918](https://github.com/DouyinFE/semi-design/issues/918) [@linjunc](https://github.com/linjunc)
-  - Fix: 修复Tree的renderFullLabel使用checkbox出现的问题
+  - 修复 Chromium 104 breakchange fit-content css 导致的 popover、dropdown 样式问题 [#1022](https://github.com/DouyinFE/semi-design/issues/1022) [Chromium Issue](https://bugs.chromium.org/p/chromium/issues/detail?id=1350958)
+  - 修复 AvatarGroup 组件中 size 属性在 TS 定义中没有值 default的问题 [@AnoyiX](https://github.com/AnoyiX)
+  - 修复 TimePicker 由有值变化为 undefined 时渲染未更新的问题 [#918](https://github.com/DouyinFE/semi-design/issues/918) [@linjunc](https://github.com/linjunc)
+  - 修复 Tree的renderFullLabel使用 checkbox 选择不中的问题
 
 #### 🎉 2.17.0-beta.1 (2022-08-09)
 - 【Fix】
@@ -39,7 +38,7 @@ Semi 版本号遵循 **Semver** 规范(主版本号-次版本号-修订版本
 - 【Feat】
     - Select 新增 A11y 键盘和焦点适配  [#205](https://github.com/DouyinFE/semi-design/issues/205)
     - DatePicker 快捷选择面板支持方位选择 [#895](https://github.com/DouyinFE/semi-design/issues/895)
-    - TagInput 支持拖拽排序
+    - TagInput 支持拖拽排序 [#707](https://github.com/DouyinFE/semi-design/issues/707)
     - Collapse.Panel 新增API disabled 和 showArrow  [#188](https://github.com/DouyinFE/semi-design/issues/188)
 - 【Fix】
     - 修复 Tooltip trigger 为 hover 时,点击children后再点击弹层,弹层会隐藏问题  [#977](https://github.com/DouyinFE/semi-design/issues/977)
@@ -49,7 +48,8 @@ Semi 版本号遵循 **Semver** 规范(主版本号-次版本号-修订版本
     - 修复在 Dropdown 中使用输入类组件,无法输入字母和数字问题
     - 修复 windows edge 浏览器 password input 默认 icon 的问题 [@linjunc](https://github.com/linjunc)
     - 修复点击 switch 边缘无法触发 change 的问题 [@linjunc](https://github.com/linjunc)
-    - 修正 handle 拼写错误的问题 [@linjunc](https://github.com/linjunc)
+- 【Chore】
+    - 更新 @douyinfe/semi-foundation 中部分 handle 函数名称拼写错误问题,对用户无影响 [@linjunc](https://github.com/linjunc)
 
 #### 🎉 2.16.0 (2022-07-29)
 - 【Fix】

+ 3 - 0
content/start/customize-theme/index.md

@@ -52,6 +52,9 @@ new SemiWebpackPlugin({
     /* ...options */
 });
 ```
+
+更多工程化方案(如Vite、NextJs)的主题接入,可参考 [DSM 文档](https://semi.design/dsm_manual/zh-CN/web/use#dsm_%E5%A6%82%E4%BD%95%E6%B6%88%E8%B4%B9%E4%B8%BB%E9%A2%98)
+
 ### 使组件级变量的改动生效
 
 如果在定制主题的过程中你修改了组件级别的变量,`theme` 字段需要用如下配置使改动生效:

+ 2 - 2
src/locale/en-US.js

@@ -83,7 +83,7 @@ const appLocale = {
         "volcengine_theme": "Volce Engine Theme",
         "home.pro.desc": "Design with real code components,convert your deisgn to code with one click",
 
-        "#nezha_s_magic_child_descent_#topic_activity_is_now_open!_according_to_the_rules_e2fe356bd395679eb176daa81ef0d082": "#Nezha's Magic Child Descent #Topic Activity is now open!",
+        "semi_design_share_2code": "#Semi Design2Code# Topic Activity is now open!",
         "access_is_simple_and_easy_to_use;": "Semi is easy to get started; the UI is beautiful and consistent; and the API is comprehensive, too.",
         "apple_account": "Apple Account",
         "as_an_excellent_benchmarking_industry": "As a benchmark among various UI libraries, Semi is doing really well. It also has a good guarantee for the fast respond as well as the efficiency of customer support.",
@@ -91,7 +91,7 @@ const appLocale = {
         "based_on_design_language_development__capable_of_online_debugging": "Based on design language development, capable of online debugging",
         "beautiful_style_and_unified_theme;": "Beautiful style and unified theme;",
         "beijing__china": "Beijing, China",
-        "big_v": "Big V",
+        "big_v": "KOL",
         "build__fully_aligned_design_resources_with_component_library_code__using": "Build, fully aligned design resources with component library code, using",
         "by_bytedance_douyin_front_with": "By ByteDance Douyin Front with",
         "chief_foodie__good_at_algorithms__especially": "Chief foodie, good at algorithms, especially",

+ 1 - 1
src/locale/zh-CN.js

@@ -122,7 +122,7 @@ const appLocale = {
         "douyin_creative_service_theme": "抖音创作服务主题",
         "volcengine_theme": "火山引擎主题",
         "system_notification": "系统通知",
-        "#nezha_s_magic_child_descent_#topic_activity_is_now_open!_according_to_the_rules_e2fe356bd395679eb176daa81ef0d082": "#哪吒之魔童降世# 话题活动开讲啦!根据活动规则,恭喜 13 位...",
+        "semi_design_share_2code": "#Semi Design2Code# 技术分享开讲啦!根据活动规则,恭喜 13 位...",
         "semi_design_share_presentation": "Semi Design 分享演示文稿",
         "beijing__china": "中国 北京",
         "douyin_certification": "官方认证",

+ 21 - 21
src/sitePages/newHome/components/theme/components/demo/index.jsx

@@ -1,16 +1,16 @@
 import { _t } from "src/utils/locale";
 import React from 'react';
 import styles from './index.module.scss';
-import {Descriptions, Typography, Form, Button, Avatar, Table} from '@douyinfe/semi-ui'
-import {IconBell, IconFeishuLogo, IconMail, IconMapPin, IconSemiLogo, IconUserCircle} from '@douyinfe/semi-icons'
-import avatarPng from './images/avatar.png'
-import classnames from 'classnames'
+import { Descriptions, Typography, Form, Button, Avatar, Table } from '@douyinfe/semi-ui';
+import { IconBell, IconFeishuLogo, IconMail, IconMapPin, IconSemiLogo, IconUserCircle } from '@douyinfe/semi-icons';
+import avatarPng from './images/avatar.png';
+import classnames from 'classnames';
 
 const { Title, Text } = Typography;
-const {Select, TextArea } = Form
-const {Option} = Select;
+const { Select, TextArea } = Form;
+const { Option } = Select;
 
-const {Column} = Table;
+const { Column } = Table;
 
 function Demo(props) {
     const data = [
@@ -20,20 +20,20 @@ function Demo(props) {
                 <span>
                     <Avatar 
                         size='small' 
-                        style={{backgroundColor: 'rgb(var(--semi-pink-5))', marginRight: 12}}>
+                        style={{ backgroundColor: 'rgb(var(--semi-pink-5))', marginRight: 12 }}>
                         <IconFeishuLogo></IconFeishuLogo>
                     </Avatar>{_t("system_notification", { }, "系统通知")}</span>
             ),
-            content: <Text>{_t("#nezha_s_magic_child_descent_#topic_activity_is_now_open!_according_to_the_rules_e2fe356bd395679eb176daa81ef0d082", { }, "#哪吒之魔童降世# 话题活动开讲啦!根据活动规则,恭喜 13 位...")}</Text>,
+            content: <Text>{_t("semi_design_share_2code", { }, "#Semi Design2Code# 技术分享开讲啦!根据活动规则,恭喜 13 位...")}</Text>,
             time: '2020-02-02 05:13',
         },
         {
             key: '2',
             sender: (
                 <span>
-                    <Avatar 
+                    <Avatar
                         size='small' 
-                        style={{backgroundColor: 'rgb(var(--semi-teal-5))', marginRight: 12}}>
+                        style={{ backgroundColor: 'rgb(var(--semi-teal-5))', marginRight: 12 }}>
                         <IconBell></IconBell>
                     </Avatar>{_t("system_notification", { }, "系统通知")}</span>
             ),
@@ -46,23 +46,23 @@ function Demo(props) {
                 <span>
                     <Avatar 
                         size='small' 
-                        style={{backgroundColor: 'rgb(var(--semi-grey-9))', marginRight: 12}}>
+                        style={{ backgroundColor: 'rgb(var(--semi-grey-9))', marginRight: 12 }}>
                         <IconSemiLogo></IconSemiLogo>
                     </Avatar>{_t("system_notification", { }, "系统通知")}</span>
             ),
             content: <Text>{_t("design", { }, "设计")}</Text>,
             time: '2020-01-26 11:01',
         }
-    ]
+    ];
     const tabaleData = [...Array(11)].map(() => data).flat();
 
-    const classes = classnames(styles.themeDemoContainer, props.className)
+    const classes = classnames(styles.themeDemoContainer, props.className);
     return (
         <div className={classes}>
             <section className={styles.profile}>
                 <header className={styles.profileHeader}>
                     <Avatar src={avatarPng} className={styles.avatar}></Avatar>
-                    <Title heading={4} style={{marginTop: 16}}>Richard Hendricks</Title>
+                    <Title heading={4} style={{ marginTop: 16 }}>Richard Hendricks</Title>
                     <Text className={styles.nickname}>@RichardHendricks</Text>
                 </header>
                 <main className={styles.profileMain}>
@@ -73,7 +73,7 @@ function Demo(props) {
                 </main>
                 <footer className={styles.profileFooter}>
                     <Text className={classnames(styles.badge1, styles.badge)} strong>{_t("official_topics", { }, "官方话题")}</Text>
-                    <Text className={classnames(styles.badge2, styles.badge)} strong>{_t("commercialization", { }, "商业化")}</Text>
+                    {/* <Text className={classnames(styles.badge2, styles.badge)} strong>{_t("commercialization", { }, "商业化")}</Text> */}
                     <Text className={classnames(styles.badge3, styles.badge)} strong>{_t("big_v", { }, "大 V")}</Text>
                 </footer>
             </section>
@@ -81,11 +81,11 @@ function Demo(props) {
                 <section className={styles.descriptionSection}>
                     <Title heading={4}>{_t("private_message_management", { }, "私信管理")}</Title>
                     <main className={styles.descriptionsWrapper}>
-                        <Descriptions align="left" style={{marginRight: 48, width: 338}}>
+                        <Descriptions align="left" style={{ marginRight: 48, width: 338 }}>
                             <Descriptions.Item itemKey={_t("apple_account", { }, "Apple 账号")}>[email protected]</Descriptions.Item>
                             <Descriptions.Item itemKey={_t("google_account", { }, "Google 账号")}>[email protected]</Descriptions.Item>
                         </Descriptions>
-                        <Descriptions align="left" style={{width: 338}}>
+                        <Descriptions align="left" style={{ width: 338 }}>
                             <Descriptions.Item itemKey='Instagram'>richard_aaa</Descriptions.Item>
                             <Descriptions.Item itemKey='Facebook'>Richard Hendricks</Descriptions.Item>
                         </Descriptions>
@@ -93,15 +93,15 @@ function Demo(props) {
                 </section>
                 <section className={styles.dataSection}>
                     <div>
-                        <Form layout="horizontal" initValues={{type: 'abc'}}>
+                        <Form layout="horizontal" initValues={{ type: 'abc' }}>
                             <Select field="type" noLabel={true}>
                                 <Option value="abc">{_t("douyin_little_assistant", { }, "抖音小助手")}</Option>
                                 <Option value="huoshan">{_t("volcano_little_helper", { }, "火山小助手")}</Option>
                             </Select>
-                            <TextArea field="content" placeholder='placeholder' noLabel={true} style={{width: 556, height: 75}} className={styles.textarea}></TextArea>
+                            <TextArea field="content" placeholder='placeholder' noLabel={true} style={{ width: 556, height: 75 }} className={styles.textarea}></TextArea>
                             <Button theme='solid' icon={<IconFeishuLogo />}>{_t("send", { }, "发送")}</Button>
                         </Form>
-                        <Table dataSource={tabaleData} pagination={{total: 33, pageSize: 3, formatPageText: false}} className={styles.table}>
+                        <Table dataSource={tabaleData} pagination={{ total: 33, pageSize: 3, formatPageText: false }} className={styles.table}>
                             <Column title={_t("sender", { }, "发信人")} dataIndex="sender" key="sender" />
                             <Column title={_t("private_message_content", { }, "私信内容")} dataIndex="content" key="content" />
                             <Column title={_t("time_of_dispatch", { }, "发信时间")} dataIndex="time" key="time" />

+ 1 - 1
src/templates/postTemplate.js

@@ -186,7 +186,7 @@ const components = {
                         <Tooltip content={
                             <span>
                                 如何使用可查阅:
-                                <a href='https://bytedance.feishu.cn/docx/doxcnVROZf61ey1zFzlErtJfL2d' target="_blank">Semi DSM 手册</a>
+                                <a href='https://semi.design/dsm_manual/zh-CN/web/componentToken' target="_blank">Semi DSM 手册</a>
                             </span>}
                         >
                             <IconHelpCircle size='large' type="help_circle" style={{ color: ' --semi-color-tertiary-light-default', marginLeft: 4 }}/>