Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@
"rollup-plugin-styles": "^3.14.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.2",
"semver": "^7.7.1",
"tdesign-icons-view": "^0.3.4",
"tdesign-site-components": "^0.15.4",
"tdesign-site-components": "^0.15.6",
"typescript": "^4.5.3",
"vite": "^2.7.0",
"vite-plugin-pwa": "^0.11.11",
Expand Down
20 changes: 10 additions & 10 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
const plugins = [
require('autoprefixer'),
require('cssnano')({
preset: [
'default',
{
discardComments: {
removeAll: true,
},
},
],
}),
// require('cssnano')({
// preset: [
// 'default',
// {
// discardComments: {
// removeAll: true,
// },
// },
// ],
// }),
];

module.exports = {
Expand Down
89 changes: 0 additions & 89 deletions site/doc/getting-started.md

This file was deleted.

13 changes: 13 additions & 0 deletions site/docs/getting-started.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: React for Mobile
description: TDesign Mobile React is a UI component library for React and Mobile application.
spline: explain
---

## Installation

### npm

```bash
npm i tdesign-mobile-react
```
11 changes: 1 addition & 10 deletions getting-started.md → site/docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,8 @@ spline: explain
---


<!-- <div style="background: #d4e3fc; display: flex; align-items: center; line-height: 20px; padding: 14px 24px; border-radius: 3px; color: #555a65">
<svg fill="none" viewBox="0 0 16 16" width="16px" height="16px" style="margin-right: 5px">
<path fill="rgb(0, 82, 217)" d="M8 15A7 7 0 108 1a7 7 0 000 14zM7.4 4h1.2v1.2H7.4V4zm.1 2.5h1V12h-1V6.5z" fillOpacity="0.9"></path>
</svg>
目前组件库处于 Alpha 阶段,快速迭代中,请留意版本变化。
</div> -->

## 安装

目前组件库已发布一期组件的测试版本,还在快速迭代,注意留意版本变化
目前组件库处于 Alpha 阶段,快速迭代中,请留意版本变化。

```bash
npm i tdesign-mobile-react
Expand All @@ -29,7 +21,6 @@ import { Button } from 'tdesign-mobile-react';
import 'tdesign-mobile-react/es/style/index.css'; // 少量公共样式
```


## 浏览器兼容性

| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br/>Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br/>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br/>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br/>Safari |
Expand Down
Loading