From f8f079dd1a7feb2c64b97dd1f3e1cb47e36ce414 Mon Sep 17 00:00:00 2001 From: tianhao Date: Tue, 16 Jun 2026 13:57:48 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20README=E5=92=8C=E5=AE=98=E7=BD=91?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=8E=AF=E5=A2=83=E4=B8=8E=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 ++++++++++++++++ site/index.html | 6 ++++++ 2 files changed, 22 insertions(+) diff --git a/README.md b/README.md index 783c011..a3ab828 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,22 @@ const MeToast = require('metona-toast'); ``` +## 环境与版本支持 + +| 环境 | 最低版本 | +|------|---------| +| Chrome | 64+ | +| Firefox | 63+ | +| Safari | 11+ | +| Edge | 79+ | +| Opera | 51+ | +| iOS Safari | 11+ | +| Android Chrome | 64+ | +| Node.js | 18+(ESM & CJS 双格式) | +| TypeScript | 4.5+(完整类型声明) | + +核心依赖:Web Animations API(Chrome 64+, Firefox 63+, Safari 11+)、Pointer Events、CSS Grid、CSS Custom Properties。 + ## 快速开始 浏览器中 `window` 上会注册两个全局变量:`MeToast` 和 `Met`,两者完全等价,任选其一使用。 diff --git a/site/index.html b/site/index.html index 1a511cc..5227a15 100644 --- a/site/index.html +++ b/site/index.html @@ -136,6 +136,12 @@ +
+

环境支持

+

Chrome 64+ / Firefox 63+ / Safari 11+ / Edge 79+ / Node.js 18+ / TypeScript 4.5+

+

依赖 Web Animations API · Pointer Events · CSS Grid · CSS Custom Properties — 所有现代浏览器原生支持

+
+

快速开始

浏览器 window 上仅注册两个全局变量:MeToastMet,完全等价