readme 路径调整

This commit is contained in:
2022-12-04 10:14:56 +08:00
parent 0f2f38f6fd
commit 20e901da0a
22 changed files with 53 additions and 53 deletions

View File

@@ -12,7 +12,7 @@ isComponent: true
```json
"usingComponents": {
"t-action-sheet": "tdesign-miniprogram/action-sheet/action-sheet",
"t-action-sheet": "/components/action-sheet/action-sheet",
}
```
@@ -37,7 +37,7 @@ isComponent: true
### 支持指令调用
```javascript
import ActionSheet, { ActionSheetTheme } from 'tdesign-miniprogram/action-sheet/index';
import ActionSheet, { ActionSheetTheme } from '/components/action-sheet/index';
// 指令调用不同于组件引用不需要传入visible
const basicListOption: ActionSheetShowOption = {
@@ -75,7 +75,7 @@ handler.close();
-- | -- | -- | -- | --
cancel-text | String | 取消 | 设置取消按钮的文本 | N
count | Number | 8 | 设置每页展示菜单的数量,仅当 type=grid 时有效 | N
items | Array | - | 必需。菜单项。TS 类型:`Array<string | ActionSheetItem>` `interface ActionSheetItem {label: string; color?: string; disabled?: boolean; icon?: string; }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/action-sheet/type.ts) | Y
items | Array | - | 必需。菜单项。TS 类型:`Array<string | ActionSheetItem>` `interface ActionSheetItem {label: string; color?: string; disabled?: boolean; icon?: string; }`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/action-sheet/type.ts) | Y
show-cancel | Boolean | true | 是否显示取消按钮 | N
theme | String | list | 展示类型列表和表格形式展示。可选项list/grid | N
visible | Boolean | null | 必需。显示与隐藏 | Y