Caleb Porzio 3 년 전
부모
커밋
b57dfe8970
2개의 변경된 파일15개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/docs/package.json
  2. 14 0
      tests/cypress/manual-transition-test.html

+ 1 - 1
packages/docs/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@alpinejs/docs",
-    "version": "3.3.4-revision.1",
+    "version": "3.3.4-revision.2",
     "description": "The documentation for Alpine",
     "author": "Caleb Porzio",
     "license": "MIT"

+ 14 - 0
tests/cypress/manual-transition-test.html

@@ -3,6 +3,20 @@
     <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
 
     <table>
+        <tr>
+            <td><code>x-on:click.away</code></td>
+            <td>
+                <div x-data="{ show: false }">
+                    <button @click="show = true">Show</button>
+                  
+                    <h1 x-show="show" @click.away="show = false">h1</h1>
+                  
+                    <h2>h2</h2>
+                  </div>
+                </div>
+            </td>
+        </tr>
+
         <tr>
             <td><code>x-transition</code></td>
             <td>