diff --git a/site/mobile/mobile.config.js b/site/mobile/mobile.config.js index 4bb613b7..dc38fbe1 100644 --- a/site/mobile/mobile.config.js +++ b/site/mobile/mobile.config.js @@ -105,7 +105,7 @@ export default { { title: 'Sticky 吸顶', name: 'sticky', - component: () => import('tdesign-mobile-react/sticky/_example/index.jsx'), + component: () => import('tdesign-mobile-react/sticky/_example/index.tsx'), }, { title: 'BackTop 返回顶部', diff --git a/src/sticky/_example/base.jsx b/src/sticky/_example/base.tsx similarity index 100% rename from src/sticky/_example/base.jsx rename to src/sticky/_example/base.tsx diff --git a/src/sticky/_example/container.jsx b/src/sticky/_example/container.tsx similarity index 100% rename from src/sticky/_example/container.jsx rename to src/sticky/_example/container.tsx diff --git a/src/sticky/_example/index.jsx b/src/sticky/_example/index.tsx similarity index 100% rename from src/sticky/_example/index.jsx rename to src/sticky/_example/index.tsx diff --git a/src/sticky/_example/offset.jsx b/src/sticky/_example/offset.tsx similarity index 100% rename from src/sticky/_example/offset.jsx rename to src/sticky/_example/offset.tsx diff --git a/test/snap/__snapshots__/csr.test.jsx.snap b/test/snap/__snapshots__/csr.test.jsx.snap index 93fb9a43..8bc70f2b 100644 --- a/test/snap/__snapshots__/csr.test.jsx.snap +++ b/test/snap/__snapshots__/csr.test.jsx.snap @@ -474,6 +474,251 @@ exports[`csr snapshot test > csr test src/grid/_example/badge.tsx 1`] = ` `; +exports[`csr snapshot test > csr test src/sticky/_example/base.tsx 1`] = ` +
+ 用于常驻页面顶部的信息,操作展示 +
++ 基础吸顶 +
++ 吸顶距离 +
++ 指定容器 +
+用于分割、组织、细化有一定逻辑的组织元素内容和页面结构。
用于常驻页面顶部的信息,操作展示
基础吸顶
吸顶距离
指定容器
用于常驻页面顶部的信息,操作展示
基础吸顶
吸顶距离
指定容器