From 9cfd6c24fd10e4544a035ef5ffd423f006af4237 Mon Sep 17 00:00:00 2001 From: alexchen Date: Thu, 18 Sep 2025 17:36:35 +0800 Subject: [PATCH] chore(): update docs --- .gitignore | 2 ++ docs/concepts/events.md | 9 ++++++--- docs/concepts/expressions.md | 1 + docs/learn/installation.mdx | 10 ++++++++++ .../current/concepts/events.md | 2 ++ .../current/concepts/expressions.md | 1 + .../current/learn/installation.mdx | 10 ++++++++++ 7 files changed, 32 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 2b7f59dd..44808bec 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,8 @@ .env.test.local .env.production.local .vscode +.history +.idea npm-debug.log* yarn-debug.log* diff --git a/docs/concepts/events.md b/docs/concepts/events.md index aab1667a..894974b9 100644 --- a/docs/concepts/events.md +++ b/docs/concepts/events.md @@ -80,6 +80,8 @@ events: ### 内建处理器:console.\* {#builtin-actions-console} +`console.log|warn|info` 默认不会打印信息在 console 中,如何开启请在 devtools 中输入`window.debugConsole.help()`查看。 + | Action | Arguments | description | | --------------- | --------- | ----------- | | `console.log` | `any` | - | @@ -201,9 +203,10 @@ events: ## 变更历史 {#history} -| 组件 | 版本 | 变更 | -| ---------- | ------ | ------------------------- | -| brick_next | 3.18.9 | 支持 `window.postMessage` | +| 组件 | 版本 | 变更 | +| ---------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------- | +| brick_next | 3.22.3 | `console.log` `console.warn` `console.info` 默认不在 console 中打印信息,如何开启请在 devtools 中输入`window.debugConsole.help()`查看 | +| - | 3.18.9 | 支持 `window.postMessage` | [history 会话历史]: history.md [provider 异步回调]: provider-bricks.md#provider-async-callback diff --git a/docs/concepts/expressions.md b/docs/concepts/expressions.md index ccba5f5d..010eea3b 100644 --- a/docs/concepts/expressions.md +++ b/docs/concepts/expressions.md @@ -70,6 +70,7 @@ properties: | `SYS` | `object` | 系统信息,例如当前登录用户名: `SYS.username`, 当前登录用户实例 ID: `SYS.userInstanceId` | | `TAG_URL` | `function` | 使用 JavaScript 的 [Tagged Template] 来实现对 URL 参数的自动编码(会忽略 `/` 的编码)。例如 `` TAG_URL`${APP.homepage}?q=${q}` `` 可以得到 `/hello?q=a%26b` (假设 `APP.homepage` 为 `/hello`、`q` 为 `a&b`)。 | | `THEME` | `object` | 通过 `THEME.getTheme()` 获得当前主题(通常为 `"light"` 或 `"dark-v2"`) | +| `LANGUAGE` | `string` | 用于标识当前应用的界面语言(如 `zh` 或 `en`),在国际化逻辑中统一使用,目前国际化语言支持`zh`,`en`。 | ## 递归标记 {#recursive-flag} diff --git a/docs/learn/installation.mdx b/docs/learn/installation.mdx index 7816a26b..cb08cf16 100644 --- a/docs/learn/installation.mdx +++ b/docs/learn/installation.mdx @@ -93,3 +93,13 @@ root.render(storyboard, { context, }); ``` + +## Browser Support + +Brick Next builds Web Components that run natively in all widely used desktop and mobile browsers. Custom Elements are natively supported in Chrome, Edge, Firefox, and Safari! + +Brick Next supports the following browsers: + +| Brick Next Version | Edge | Chrome | Firefox | Safari | Internet Explorer | Pre-Chromium Edge | +|--------------------|------|--------|---------|--------|-------------------|-------------------| +| V3 | v90+ | v90+ | v88+ | v15+ | ❌ | ❌ | diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/concepts/events.md b/i18n/zh/docusaurus-plugin-content-docs/current/concepts/events.md index 3e50d16e..76a9ab42 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/concepts/events.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/concepts/events.md @@ -80,6 +80,8 @@ events: ### 内建处理器:console.\* {#builtin-actions-console} +`console.log|warn|info` 默认不会打印信息在 console 中,如何开启请在 devtools 中输入`window.debugConsole.help()`查看。 + | Action | Arguments | description | | --------------- | --------- | ----------- | | `console.log` | `any` | - | diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/concepts/expressions.md b/i18n/zh/docusaurus-plugin-content-docs/current/concepts/expressions.md index 98415674..cae67630 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/concepts/expressions.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/concepts/expressions.md @@ -70,6 +70,7 @@ properties: | `SYS` | `object` | 系统信息,例如当前登录用户名: `SYS.username`, 当前登录用户实例 ID: `SYS.userInstanceId` | | `TAG_URL` | `function` | 使用 JavaScript 的 [Tagged Template] 来实现对 URL 参数的自动编码(会忽略 `/` 的编码)。例如 `` TAG_URL`${APP.homepage}?q=${q}` `` 可以得到 `/hello?q=a%26b` (假设 `APP.homepage` 为 `/hello`、`q` 为 `a&b`)。 | | `THEME` | `object` | 通过 `THEME.getTheme()` 获得当前主题(通常为 `"light"` 或 `"dark-v2"`) | +| `LANGUAGE` | `string` | 用于标识当前应用的界面语言(如 `zh` 或 `en`),在国际化逻辑中统一使用,目前国际化语言支持`zh`,`en`。 | ## 递归标记 {#recursive-flag} diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/learn/installation.mdx b/i18n/zh/docusaurus-plugin-content-docs/current/learn/installation.mdx index cb2831c7..dea73a22 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/learn/installation.mdx +++ b/i18n/zh/docusaurus-plugin-content-docs/current/learn/installation.mdx @@ -93,3 +93,13 @@ root.render(storyboard, { context, }); ``` + +## 浏览器支持 + +Brick Next 构建的 Web 组件可在所有广泛使用的桌面和移动浏览器中原生运行。Custom Elements在 Chrome、Edge、Firefox 和 Safari中原生支持! + +Brick Next 支持以下浏览器: + +| Brick Next Version | Edge | Chrome | Firefox | Safari | Internet Explorer | Pre-Chromium Edge | +|--------------------|------|--------|---------|--------|-------------------|-------------------| +| V3 | v90+ | v90+ | v88+ | v15+ | ❌ | ❌ |