-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat-zip-publisher-support-browser
- Loading branch information
Showing
167 changed files
with
4,051 additions
and
969 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Update and Publish Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
paths: | ||
- 'docs/docs/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
ref: 'develop' | ||
node-version: '16' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: cd docs && npm install | ||
- run: | | ||
cd docs | ||
npm version patch | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add package.json | ||
git commit -m "chore(docs): publish documentation" | ||
git push | ||
- run: cd docs && npm run build && npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Get version | ||
id: get_version | ||
run: echo "::set-output name=version::$(node -p "require('./docs/package.json').version")" | ||
|
||
comment-pr: | ||
needs: publish-docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Comment on PR | ||
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | ||
uses: actions/github-script@v4 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
github.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: '🚀 New version has been released: ' + '${{ needs.publish-docs.outputs.version }}' | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Publish Engine Beta | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'release/[0-9]+.[0-9]+.[0-9]+-beta' | ||
paths: | ||
- 'packages/**' | ||
|
||
jobs: | ||
publish-engine: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm install && npm run setup | ||
- run: | | ||
npm run build | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
- run: npm run pub:prerelease | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Get version | ||
id: get_version | ||
run: echo "::set-output name=version::$(node -p "require('./package.json').version")" |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Publish Engine | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish-engine: | ||
runs-on: ubuntu-latest | ||
if: >- | ||
contains(github.ref, 'refs/heads/release/') && | ||
(github.actor == 'JackLian' || github.actor == 'liujuping') | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm install && npm run setup | ||
- run: | | ||
npm run build | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
- run: npm run pub | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Get version | ||
id: get_version | ||
run: echo "::set-output name=version::$(node -p "require('./package.json').version")" |
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
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: Slot组件渲染报错问题 | ||
sidebar_position: 23 | ||
tags: [FAQ] | ||
--- | ||
|
||
## 问题描述 | ||
在低代码引擎的页面渲染过程中,可能会遇到一个关于Slot组件的报错,提示“Slot找不到”。实际上,在渲染态时不应使用Slot组件。 | ||
|
||
## 问题原因 | ||
低代码引擎渲染分为两个状态:设计态和渲染态。 | ||
- **设计态**:为了帮助插槽进行可视化设计,引入了Slot组件。 | ||
- **渲染态**:在此状态下,不需要使用Slot组件。 | ||
|
||
这个问题通常是因为在渲染态错误地使用了设计态的schema。 | ||
|
||
## 解决方案 | ||
1. **区分设计态和渲染态**:通过`project.exportSchema(TransformStage.Save)`的参数来区分。 | ||
- `TransformStage.Save`代表渲染态的schema,其中不包含Slot组件。 | ||
- 【默认值】`TransformStage.Render`代表设计态的schema,其中包含Slot组件。 | ||
2. **使用正确的API和参数**:确保在渲染态使用正确的schema,避免引用设计态的Slot组件。 | ||
3. **处理脏数据问题**:如果问题是由脏数据导致,清除数据并重新拖拽组件以恢复正常。 | ||
|
||
## 注意事项 | ||
- 确保在代码和配置中正确区分设计态和渲染态。 | ||
- 如果遇到持续的问题,检查是否有脏数据或配置错误,并进行相应的清理和调整。 | ||
|
||
## 相关链接 | ||
- Issue链接:[Issue #1798](https://github.com/alibaba/lowcode-engine/issues/1798) | ||
|
||
--- |
Oops, something went wrong.