瀏覽代碼

Merge pull request #204 from andreasvirkus/patch-2

Update docs to show how ESM can be imported
tags/1.2.4
Shivam Mishra 5 年之前
committed by GitHub
父節點
當前提交
fd0c9e08d9
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      docs/index.html

+ 2
- 0
docs/index.html 查看文件

@@ -272,6 +272,8 @@ redirect_to: "https://frappe.io/charts"
<pre><code class="hljs console"> npm install frappe-charts</code></pre>
<p>And include it in your project</p>
<pre><code class="hljs javascript"> import { Chart } from "frappe-charts"</code></pre>
<p>(for ES6+ import the ESModule from the dist folder)</p>
<pre><code class="hljs javascript"> import { Chart } from "frappe-charts/dist/frappe-charts.esm.js"</code></pre>
<p>... or include it directly in your HTML</p>
<pre><code class="hljs html"> &lt;script src="https://unpkg.com/frappe-charts@1.1.0"&gt;&lt;/script&gt;</code></pre>
<p>Use as:</p>


Loading…
取消
儲存