Skip to content

Commit 4575099

Browse files
feat: ✨ 添加 web-type.json 支持 webstorm 代码提示 (#871)
Closes: #819
1 parent e5a24c4 commit 4575099

62 files changed

Lines changed: 1289 additions & 355 deletions

Some content is hidden

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

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
npm install pnpm -g
2323
pnpm install
2424
25+
- name: Run Build WEB TYPES
26+
run: pnpm build:web-types
27+
2528
- name: Run Compiler
2629
run: pnpm compiler
2730

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ yarn-error.log*
2626
*.sln
2727
*.sw*
2828
.history
29+
tags.json
30+
attributes.json
31+
web-types.json

build/qrcode.js

Lines changed: 0 additions & 119 deletions
This file was deleted.

docs/component/action-sheet.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# ActionSheet 动作面板
22

3+
从底部弹出的动作菜单面板。
4+
35
## 基本用法
46

57
通过 `v-model` 设置显示隐藏。

docs/component/backtop.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Backtop 回到顶部 `1.2.21`
1+
# Backtop 回到顶部
2+
3+
用于返回页面顶部的操作按钮。
24

35
## 基本用法
46

docs/component/button.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Button 按钮
22

3+
按钮用于触发一个操作,如提交表单或打开链接。
4+
5+
36
## 基本用法
47

58
基本按钮。

docs/component/card.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Card 卡片
22

3+
用于展示商品的图片、价格等信息。
4+
35
## 基本使用
46

57
通过 `title` 属性设置标题,默认插槽传入内容。

docs/component/cell.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Cell 单格
1+
# Cell 单元格
2+
3+
单元格为列表中的单个展示项。
24

35
## 基本用法
46

docs/component/checkbox.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Checkbox 复选框
22

3+
复选框用于在一组备选项中进行多选。
4+
35
## 基本用法
46

57
通过 `v-model` 绑定复选框的勾选状态,单独使用时值为 `boolean` 类型。

docs/component/collapse.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Collapse 折叠面板
22

3+
将一组内容放置在多个折叠面板中,点击面板的标题可以展开或收缩其内容。
4+
35
## 基本使用
46

57
`v-model` 为绑定值,可以为 array 类型(普通折叠)、 string 类型(手风琴)和 boolean 类型(收起展开查看更多)。CollapseItem 的 `name` 为必填, `title` 选填且可通过 `slot` 自定义。`name` 用于标识该折叠栏。

0 commit comments

Comments
 (0)