forked from laocong/AIOps-Docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
36 additions
and
14,111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: 进阶 | ||
prev: ../case | ||
next: ./component | ||
prev: ../component/basic | ||
next: ../fag | ||
--- | ||
|
||
进阶主要包含两个部分: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: 大屏进阶 | ||
prev: ./component | ||
next: ../component/basic | ||
next: ../component | ||
--- | ||
|
||
## 创建一个大屏 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: 组件构成 | ||
prev: ../advanced/component | ||
prev: ../case | ||
next: ./develop | ||
--- | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,15 @@ | ||
--- | ||
title: 组件开发 | ||
prev: ./basic | ||
next: ./create | ||
next: ./related | ||
--- | ||
|
||
目前我们有两种组件开发方式 | ||
|
||
## 在线开发 | ||
|
||
直接在[组件开发平台](http://10.0.16.230:8089/#/app/component-develop)进行组件开发。该平台提供了在线 ide 和实时预览大屏。 | ||
直接在飞鱼平台进行组件开发。该平台提供了在线 ide 和实时预览大屏。 | ||
|
||
## 本地开发 | ||
|
||
本地开发可使用两种种形式进行(请提前确认都拥有 clone 对应仓库的权限) | ||
|
||
1. 直接 clone 对应仓库 | ||
|
||
```bash | ||
$ git clone ssh://[email protected]:36000/FlyFish/component-develop.git | ||
$ Cloning into 'ff-component-develop'... | ||
``` | ||
|
||
3. 可使用 VIS-Editor 和 VIS-Screen 直接进行本地开发(飞鱼开发者) | ||
|
||
## FAQ | ||
|
||
### 1. 组件开发平台账号如何获取? | ||
|
||
可以直接和对应的开发者进行申请。 | ||
|
||
### 2. 为什么指定下载器为`yarn`? | ||
|
||
由于我们的本地组件开发模板使用`lerna + workspace`来管理依赖和包。这样做的好处是可以将所有子包的依赖管理在一个`node_modules`中。因为我们的组件是独立的存在,每个组件都可能会拥有自己的依赖,这样就会存在复合的依赖。从而使本地开发变得冗余且沉重。使用`workspace + lerna`可以完美解决当前的问题。当然还能解决组件间的相互引用依赖问题。因为`lerna`会自动执行`link`的操作。 | ||
|
||
### 3. 为什么子包中还是会出现`node_modules`? | ||
|
||
`lerna`虽然可以帮我们把所有子包的依赖进行统一管理。但是若某些子包使用相同依赖不同版本时,这时底层`node_modules`只会安装先匹配的子包的依赖版本, 后面子包会维护在自己独立的`node_modules`里。毕竟依赖查询是个向上溯源的过程 | ||
本地开发库暂未开源,敬请期待。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: 组件通信 | ||
prev: ./react | ||
next: ./upload | ||
next: ../advanced/component | ||
--- | ||
|
||
::: tip | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.