Skip to content

Commit 2de8804

Browse files
committed
docs: update docs
1 parent ed7ef21 commit 2de8804

73 files changed

Lines changed: 224 additions & 80 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/uniapp-components/action-sheet/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ isComponent: true
88

99
## 引入
1010

11-
可在 `main.ts` 或在需要使用的页面或组件中引入。
11+
推荐使用 easycom 模式引入组件,配置后无需手动 import 即可直接在模板中使用 `<t-action-sheet />`。详细配置请参考 [快速开始](../getting-started)
12+
13+
如需手动引入:
1214

1315
```js
1416
import TActionSheet from '@tdesign/uniapp/action-sheet/action-sheet.vue';
@@ -40,7 +42,10 @@ import TActionSheet from '@tdesign/uniapp/action-sheet/action-sheet.vue';
4042
### 支持指令调用
4143

4244
```javascript
45+
// ActionSheetPlugin 和 ActionSheet 均可使用
4346
import { ActionSheetPlugin, ActionSheetTheme } from '@tdesign/uniapp';
47+
//
48+
// import { ActionSheet, ActionSheetTheme } from '@tdesign/uniapp';
4449

4550
// 指令调用不同于组件引用不需要传入visible
4651
const basicListOption: ActionSheetShowOption = {

packages/uniapp-components/avatar/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ isComponent: true
88

99
## 引入
1010

11-
可在 `main.ts` 或在需要使用的页面或组件中引入。
11+
推荐使用 easycom 模式引入组件,配置后无需手动 import 即可直接在模板中使用 `<t-avatar />`。详细配置请参考 [快速开始](../getting-started)
12+
13+
如需手动引入:
1214

1315
```js
1416
import TAvatar from '@tdesign/uniapp/avatar/avatar.vue';

packages/uniapp-components/back-top/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ isComponent: true
88

99
## 引入
1010

11-
可在 `main.ts` 或在需要使用的页面或组件中引入。
11+
推荐使用 easycom 模式引入组件,配置后无需手动 import 即可直接在模板中使用 `<t-back-top />`。详细配置请参考 [快速开始](../getting-started)
12+
13+
如需手动引入:
1214

1315
```js
1416
import TBackTop from '@tdesign/uniapp/back-top/back-top.vue';

packages/uniapp-components/badge/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ isComponent: true
88

99
## 引入
1010

11-
可在 `main.ts` 或在需要使用的页面或组件中引入。
11+
推荐使用 easycom 模式引入组件,配置后无需手动 import 即可直接在模板中使用 `<t-badge />`。详细配置请参考 [快速开始](../getting-started)
12+
13+
如需手动引入:
1214

1315
```js
1416
import TBadge from '@tdesign/uniapp/badge/badge.vue';

packages/uniapp-components/button/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ isComponent: true
88

99
## 引入
1010

11-
可在 `main.ts` 或在需要使用的页面或组件中引入。
11+
推荐使用 easycom 模式引入组件,配置后无需手动 import 即可直接在模板中使用 `<t-button />`。详细配置请参考 [快速开始](../getting-started)
12+
13+
如需手动引入:
1214

1315
```js
1416
import TButton from '@tdesign/uniapp/button/button.vue';

packages/uniapp-components/calendar/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ isComponent: true
88

99
## 引入
1010

11-
可在 `main.ts` 或在需要使用的页面或组件中引入。
11+
推荐使用 easycom 模式引入组件,配置后无需手动 import 即可直接在模板中使用 `<t-calendar />`。详细配置请参考 [快速开始](../getting-started)
12+
13+
如需手动引入:
1214

1315
```js
1416
import TCalendar from '@tdesign/uniapp/calendar/calendar.vue';

packages/uniapp-components/cascader/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ isComponent: true
88

99
## 引入
1010

11-
可在 `main.ts` 或在需要使用的页面或组件中引入。
11+
推荐使用 easycom 模式引入组件,配置后无需手动 import 即可直接在模板中使用 `<t-cascader />`。详细配置请参考 [快速开始](../getting-started)
12+
13+
如需手动引入:
1214

1315
```js
1416
import TCascader from '@tdesign/uniapp/cascader/cascader.vue';

packages/uniapp-components/cell/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ isComponent: true
88

99
## 引入
1010

11-
可在 `main.ts` 或在需要使用的页面或组件中引入。
11+
推荐使用 easycom 模式引入组件,配置后无需手动 import 即可直接在模板中使用 `<t-cell />`。详细配置请参考 [快速开始](../getting-started)
12+
13+
如需手动引入:
1214

1315
```js
1416
import TCell from '@tdesign/uniapp/cell/cell.vue';

packages/uniapp-components/checkbox/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ isComponent: true
88

99
## 引入
1010

11-
可在 `main.ts` 或在需要使用的页面或组件中引入。
11+
推荐使用 easycom 模式引入组件,配置后无需手动 import 即可直接在模板中使用 `<t-checkbox />`。详细配置请参考 [快速开始](../getting-started)
12+
13+
如需手动引入:
1214

1315
```js
1416
import TCheckbox from '@tdesign/uniapp/checkbox/checkbox.vue';

packages/uniapp-components/col/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ isComponent: true
88

99
## 引入
1010

11-
可在 `main.ts` 或在需要使用的页面或组件中引入。
11+
推荐使用 easycom 模式引入组件,配置后无需手动 import 即可直接在模板中使用 `<t-col />`。详细配置请参考 [快速开始](../getting-started)
12+
13+
如需手动引入:
1214

1315

1416
```js

0 commit comments

Comments
 (0)