
語言 🇹🇼 繁體中文
🇺🇸
English
🇧🇬
Български
🇨🇳
简体中文
🇹🇼
繁體中文
🇭🇷
Hrvatski
🇩🇰
Dansk
🇳🇱
Nederlands
🇺🇸
English (US)
🇨🇦
Français (Canada)
🇫🇷
Français (France)
🇩🇪
Deutsch
🇨🇾
Ελληνικά (Κύπρος)
🇬🇷
Ελληνικά
🇮🇱
עברית
🇮🇹
Italiano
🇯🇵
日本語
🇰🇷
한국어
🇵🇱
Polski
🇧🇷
Português (Brasil)
🇷🇺
Русский
🇺🇦
Русский (Украина)
🇧🇦
Српски (БиХ)
🇷🇸
Srpski (Latinica)
🇲🇪
Српски (Црна Гора)
🇷🇸
Српски
🇸🇮
Slovenščina
🇪🇸
Español
🇺🇦
Українська
🇹🇷
Türkçe
快速上手
用法
文件
FastComments Vue 2 Library
這是 FastComments 的官方 Vue 2 函式庫。
適用於 Vue 2 的 FastComments 評論元件
儲存庫
用法 
評論小工具
FastCommentsVue component 包含即時的 FastComments 評論小工具。
請將下方的 "demo" 替換為您的 "tenantId" - 可在 FastComments 管理區的 這裡 取得。
此小工具支援許多選項 - 請在 這裡 查看 FastCommentsConfig。
<script lang="ts">
import Vue from 'vue';
import FastCommentsVue from 'fastcomments-vue';
export default Vue.extend({
name: 'ServeDev',
components: {
FastCommentsVue
}
});
</script>
<template>
<div id="app">
<fast-comments-vue v-bind:config="{tenantId: 'demo'}" />
</div>
</template>
更新目前頁面(SPA 範例) 
在 FastComments 中,我們將文章 id(或留言所綁定的頁面)稱為 URL ID,因為它可以是 url 或一個 ID。 請以下列方式定義 URL ID。元件會監聽 config object 的變更並重新載入,因此你只需更新 "url" 和 "urlId" 設定即可。
完整的運作範例請見 這裡。
透過以下指令執行分頁範例:
npm run serve-pagination<fast-comments-vue v-bind:config="{tenantId: 'demo', url: 'https://example.com', urlId: 'some-page-id'}" />
帳戶區域(注意:歐盟客戶)
如果你的帳戶位於歐盟,請在 widget 設定中將 region = 'eu',例如:
<fast-comments-vue v-bind:config="{tenantId: 'demo', url: 'https://example.com', urlId: 'some-page-id', region: 'eu'}" />
否則,你不必定義 region。
需要幫助?
如果您在使用 Vue 2 函式庫時遇到任何問題或有疑問,請:
貢獻
歡迎貢獻!請造訪 GitHub 儲存庫 以查看貢獻指南。