Skip to content

Commit

Permalink
Merge pull request #1265 from LivySara/assist_doc_dev
Browse files Browse the repository at this point in the history
feat: 添加帮助文档弹框&文档中心调整
  • Loading branch information
terlinhe authored May 27, 2024
2 parents 54a8edf + 6d9bdbf commit 96127de
Show file tree
Hide file tree
Showing 34 changed files with 5,780 additions and 635 deletions.
4,233 changes: 4,233 additions & 0 deletions lib/client/src/bk-icon/demo.html

Large diffs are not rendered by default.

Binary file modified lib/client/src/bk-icon/fonts/iconcool.eot
Binary file not shown.
9 changes: 9 additions & 0 deletions lib/client/src/bk-icon/fonts/iconcool.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lib/client/src/bk-icon/fonts/iconcool.ttf
Binary file not shown.
Binary file modified lib/client/src/bk-icon/fonts/iconcool.woff
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/client/src/bk-icon/iconcool.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/client/src/bk-icon/iconcool.json

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions lib/client/src/bk-icon/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1229,3 +1229,12 @@ url("fonts/iconcool.eot?#iefix") format("embedded-opentype");
.bk-drag-builder:before {
content: "\e298";
}
.bk-drag-tuopu:before {
content: "\e2a2";
}
.bk-drag-jiedian:before {
content: "\e2a3";
}
.bk-drag-rongqi:before {
content: "\e2a4";
}
21 changes: 18 additions & 3 deletions lib/client/src/components/app-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
</ul>
</nav>
<div class="top-info">
<div class="help-doc" @click="closePage(true)">{{ $t('帮助文档') }}</div>
<bk-popover class="info-item"
theme="light header-top-info-popover"
animation="fade"
Expand Down Expand Up @@ -99,6 +100,7 @@
</bk-popover>
</div>
<changelog ref="log"></changelog>
<helpDocs :visible="visible" @closePage="closePage" />
</header>
</template>

Expand All @@ -112,7 +114,8 @@
export default defineComponent({
components: {
changelog
changelog,
helpDocs
},
computed: {
currentRoute () {
Expand Down Expand Up @@ -195,6 +198,10 @@
changeLang(lang.id)
}
const visible = ref(false)
const closePage = (value) => {
visible.value = value
}
return {
languageList,
userName,
Expand All @@ -205,7 +212,9 @@
goLogin,
toProjectList,
currentLang,
handleLanguageChange
handleLanguageChange,
visible,
closePage
}
}
})
Expand All @@ -222,7 +231,6 @@
top: 0;
z-index: 1000;
background: #182132;
.logo {
display: flex;
align-items: center;
Expand Down Expand Up @@ -274,6 +282,13 @@
align-items: center;
margin-left: auto;
.help-doc {
font-family: MicrosoftYaHei;
color: #96A2B9;
cursor: pointer;
margin: 0 16px;
}
.info-item {
cursor: pointer;
margin-left: 16px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 如何开发一个表格查询页面
### 第一步:拖拽“输入框”、“表格”组件到画布

<img src="../../../images/help/case-table1.png" alt="grid" width="640" class="help-img">
<img src="../../../images/help/case-table1.png" alt="grid" width="80%" class="help-img">

### 第二步:配置组件属性和指令

Expand All @@ -15,7 +15,7 @@

### 第三步:新建函数 “getTableData” 查询并获取表格数据

<img src="../../../images/help/case-table2.png" alt="grid" width="640" class="help-img">
<img src="../../../images/help/case-table2.png" alt="grid" width="80%" class="help-img">

**注意:**

Expand All @@ -25,7 +25,7 @@

2、可以使用 lesscode.函数名,必须通过编辑器自动补全功能选择需要调用的函数。

<img src="../../../images/help/case-table3.png" alt="grid" width="640" class="help-img">
<img src="../../../images/help/case-table3.png" alt="grid" width="80%" class="help-img">

### 第四步:“表格”组件 “data” 属性及事件配置

Expand All @@ -35,15 +35,15 @@

### 第五步:输入框 “enter” 事件绑定表格查询函数 “getTableData”

<img src="../../../images/help/case-table5.png" alt="grid" width="640" class="help-img">
<img src="../../../images/help/case-table5.png" alt="grid" width="80%" class="help-img">

### 第六步:表格分页事件绑定事件函数

分别给 “page-change” 和 “page-limit-change” 事件绑定表格查询函数 “getTableData”,并配置对应函数调用参数。

<img src="../../../images/help/case-table7.png" alt="grid" width="640" class="help-img">
<img src="../../../images/help/case-table7.png" alt="grid" width="80%" class="help-img">


### 第七步:预览效果

<img src="../../../images/help/case-table9.png" alt="grid" width="640" class="help-img">
<img src="../../../images/help/case-table9.png" alt="grid" width="80%" class="help-img">
File renamed without changes.
Loading

0 comments on commit 96127de

Please sign in to comment.